?? add_pro.asp
字號(hào):
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="checkadmin.asp" -->
<!--#include file="open.asp" -->
<%
dim title(8)
title(1)="添加新聞"
title(2)="添加公告"
title(3)="添加產(chǎn)品"
title(4)="添加案例"
title(5)="添加客戶"
title(6)="企業(yè)簡(jiǎn)介"
title(7)="聯(lián)系方式"
title(8)="人才招聘"
tid=Request("tid")
if tid="news" then
subject=title(1)
elseif tid="gg" then
subject=title(2)
elseif tid="product" then
subject=title(3)
elseif tid="add" then
subject=title(7)
elseif tid="job" then
subject=title(8)
elseif tid="call" then
subject=title(6)
elseif tid="project" then
subject=title(4)
else
subject=title(5)
end if
%>
<script language="javascript">
//去掉空格
function Trim(str){
if(str.charAt(0) == " "){
str = str.slice(1);
str = Trim(str);
}
return str;
}
//判斷是否是空
function isEmpty(pObj,errMsg){
var obj = eval(pObj);
if( obj == null || Trim(obj.value) == ""){
if (errMsg == null || errMsg =="")
{
alert("輸入為空!");
}
else
{
alert(errMsg);
}
obj.focus();
return false;
}
return true;
}
</script>
<script language="javascript">
function checked(theform){
if (!isEmpty(theform.title,'請(qǐng)輸入數(shù)據(jù)')) return false;
}
</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>無(wú)標(biāo)題文檔</title>
<style type="text/css">
<!--
.text {
font-size: 12px;
line-height: 22px;
color: #333333;
text-decoration: none;
cursor: help;
}
A.a01 {
font-size: 12px; color: #333333;text-decoration: none;}
A.a01:hover { font-size: 12px;
color: #CC9900;
text-decoration: underline;}
A {
font-size: 12px;
line-height: 22px;
color: #333333;
text-decoration: none;
}
A:hover {
font-size: 12px;
line-height: 22px;
color: #FF6600;
text-decoration: underline;
}
.form {
font-size: 12px;
color: #333333;
text-decoration: none;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-top-style: solid;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
border-top-color: #666666;
border-right-color: #efefef;
border-bottom-color: #efefef;
border-left-color: #666666;
}
.button {
font-size: 12px;
color: #FFFFFF;
text-decoration: none;
background-color: #FF9933;
border: 1px solid #c6c6c6;
}
.form2 {
font-size: 12px;
color: #333333;
text-decoration: none;
background-color: #f7f7f7;
border-top: 1px solid #CCCCCC;
border-right: 1px solid #666666;
border-bottom: 1px solid #666666;
border-left: 1px solid #CCCCCC;
}
.text2 {
font-size: 12px;
color: #4D5743;
text-decoration: none;
line-height: 22px;
}
-->
</style>
<link href="image/myweb.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.STYLE1 {color: #FF0000}
-->
</style>
</head>
<body style="margin:0">
<form action="add_product.asp" method="post" enctype="multipart/form-data" name="form1" id="form1" onSubmit="return checked(this);">
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="ececec" class="text">
<tr bgcolor="f7f7f7">
<td height="24" colspan="2" align="center"><%=subject%></td>
</tr>
<tr bgcolor="f7f7f7">
<td width="22%" height="24" align="right">標(biāo)題:</td>
<td width="78%" height="24"><input name="title" type="text" id="title" width="500">
<span class="STYLE1">*</span></td>
</tr>
<tr bgcolor="f7f7f7">
<td align="right">圖片:</td>
<td><input name="img" type="file" class="web_ipt" id="img"></td>
</tr>
<tr bgcolor="f7f7f7">
<td align="right">內(nèi)容:</td>
<td>
<textarea name="content" style="display:none"></textarea>
<IFRAME ID="eWebEditor1" SRC="/eWebeditor/ewebeditor.asp?id=content&style=s_coolblue" FRAMEBORDER="0" SCROLLING="no" WIDTH="550" HEIGHT="350"></IFRAME>
<input name="pro_name" type="hidden" id="pro_name" value="<%=tid%>">
<input name="temp" type="hidden" id="temp" value="temp"></td>
</tr>
<tr bgcolor="f7f7f7">
<td align="right"> </td>
<td height="40">
<input name="Submit" type="submit" value="提交">
<input name="Submit2" type="reset" value="重置"></td>
</tr>
</table>
</form>
</body>
</html><!--#include file="close.asp" -->
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -