admin_addinfo.asp
来自「能进行网上购物的需求」· ASP 代码 · 共 115 行
ASP
115 行
<!--#include file="conn.asp"-->
<%
if session("admin_name")="" then
response.redirect "default.asp"
end if
%>
<script language = "JavaScript">
function CheckForm()
{
document.addNEWS.cnWords.value = document.frames.cnEditBox.getHTML(true);
document.addNEWS.content_ename.value = document.frames.cnEditBoxe.getHTML(true);
document.addNEWS.content_fname.value = document.frames.cnEditBoxf.getHTML(true);
document.addNEWS.imageNum.value = document.frames.cnEditBox.document.all("editImageNum").value;
document.addNEWS.editFirstImageName.value = document.frames.cnEditBox.document.all("editFirstImageName").value;
if (document.addNEWS.title.value.length == 0) {
alert("标题没有填写.");
document.addNEWS.title.focus();
return false;
}
return true;
}
</script>
<html>
<link rel="stylesheet" href="css.css" type="text/css">
</head>
<body bgcolor="#FFFFCC" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellspacing="1" cellpadding="2" vspace="0" hspace="0" bgcolor="#FFFFFF">
<tr bgcolor="#FFCC33">
<td height="27" bgcolor="#FFCC33" background="images/admin_bg_1.gif">.:: 您可以在这里进行用户相关操作</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="2">
<form name="addNEWS" method="post" action="addinfo_ok.asp" onSubmit="return CheckForm();">
<tr>
<td width="70%" bgcolor="#E8F1FF">
标题(简体):<input name="title" type="text" class="input" size="50"><br>
标题(繁体):<input name="title_fname" type="text" class="input" size="50"><br>
标题(英文):<input name="title_ename" type="text" class="input" size="50"></td>
<td bgcolor="#E8F1FF">
<font color="#FF0000">*</font>类别:
<%
set rs=server.createobject("ADODB.Recordset")
sql = "select * from BigClass"
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write "请先添加栏目。"
else
%>
<select name="BigClassid">
<option selected value="<%=trim(rs("BigClassID"))%>"><%=trim(rs("BigClassName"))%></option>
<%
rs.movenext
do while not rs.eof
%>
<option value="<%=trim(rs("BigClassID"))%>"><%=trim(rs("BigClassName"))%></option>
<%
rs.movenext
loop
end if
rs.close
%>
</select>
<%
ranNum=int(9*rnd)+10
iddata=month(now)&day(now)&hour(now)&minute(now)&second(now)&ranNum
%>
</select></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="2">
<tr>
<td valign="top" bgcolor="#E8F1FF">
<IFRAME STYLE="border: none" NAME=cnEditBox src="EditBox.asp" WIDTH=100% HEIGHT=280></IFRAME>
<br>繁体中文<br>
<IFRAME STYLE="border: none" NAME=cnEditBoxf src="EditBox_fname.asp" WIDTH=100% HEIGHT=260></IFRAME>
<br>英文<br>
<IFRAME STYLE="border: none" NAME=cnEditBoxe src="EditBox_ename.asp" WIDTH=100% HEIGHT=260></IFRAME>
</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="2">
<tr>
<td bgcolor="#E8F1FF">
</td>
<td bgcolor="#E8F1FF">
是否设为首页图片专题:<input type="radio" name="ok" value="true">
是
<input name="ok" type="radio" value="false" checked>
否 </td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="2">
<tr>
<td height="30" colspan="2" align="center" bgcolor="#E8F1FF">
<input type="submit" name="Submit" value="提交" class="input">
<input type="reset" name="Submit2" value="重置" class="input">
<!--获取EditBox的内容-->
<input name=cnWords type=hidden ID="cnWords" value="">
<input name=content_ename type=hidden ID="content_ename" value="">
<input name=content_fname type=hidden ID="content_fname" value="">
<input name=imageNum type=hidden ID="imageNum" value="<%=mImageNum%>">
<input name=editFirstImageName type=hidden ID="editFirstImageName" value="">
<!--获取EditBox的内容-->
</td>
</tr>
</form>
<tr>
<td height="30" colspan="2" align="center"> </td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?