📄 down_admin_add.asp
字号:
<%@language=vbscript codepage=936 %>
<!--#include file="Conn.asp"-->
<!--#include file="Admin.asp"-->
<!-- #include file="Inc/Head.asp" -->
<%
dim rs
dim sql
dim count
set rs=server.createobject("adodb.recordset")
sql = "select * from SmallClass_down order by SmallClassID asc"
rs.open sql,conn,1,1
%>
<script language = "JavaScript">
var onecount;
subcat = new Array();
<%
count = 0
do while not rs.eof
%>
subcat[<%=count%>] = new Array("<%= trim(rs("SmallClassName"))%>","<%= trim(rs("BigClassName"))%>","<%= trim(rs("SmallClassName"))%>");
<%
count = count + 1
rs.movenext
loop
rs.close
%>
onecount=<%=count%>;
function changelocation(locationid)
{
document.addNEWS.SmallClassName.length = 1;
var locationid=locationid;
var i;
for (i=0;i < onecount; i++)
{
if (subcat[i][1] == locationid)
{
document.addNEWS.SmallClassName.options[document.addNEWS.SmallClassName.length] = new Option(subcat[i][0], subcat[i][2]);
}
}
}
function CheckForm()
{
document.addNEWS.cnWords.value = document.frames.cnEditBox.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;
}
if (document.addNEWS.DownloadUrl.value.length == 0) {
alert("下载地址没有填写");
document.addNEWS.DownloadUrl.focus();
return false;
}
return true;
}
</script>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top"><table border="0" cellpadding="2" cellspacing="1" class="table_southidc">
<form name="addNEWS" method="post" action="Down_add_ok.asp" onSubmit="return CheckForm();">
<tr>
<td class="back_southidc" height="30" colspan="3" align="center">添加下载</td>
</tr>
<tr>
<td width="132" height="25" bgcolor="#ECF5FF"><font color="#FF0000">*</font>下载名称:</td>
<td colspan="2" bgcolor="#ECF5FF">
<input name="title" type="text" class="input" size="30"></td>
</tr>
<tr>
<td height="25" valign="top" bgcolor="#ECF5FF"><font color="#FF0000">*</font>下载说明:</td>
<td colspan="2" valign="top" bgcolor="#ECF5FF">
<IFRAME STYLE="border: none" NAME=cnEditBox src="EditBox1.asp" WIDTH=500 HEIGHT=400></IFRAME></td>
</tr>
<tr bgcolor="#ECF5FF">
<td height="25"><font color="#FF0000">*</font>下载地址:</td>
<td>
<input name="DownloadUrl" type="text" id="PhotoUrl2" size="30" maxlength="200"></td>
<td>
<iframe style="top:2px" ID="UploadFiles" src="../upload_Photo.asp?PhotoUrlID=1" frameborder=0 scrolling=no width="320" height="25"></iframe></td>
</tr>
<tr>
<td height="25" bgcolor="#ECF5FF"><font color="#FF0000">*</font>文件大小:</td>
<td colspan="2" bgcolor="#ECF5FF">
<input name="FileSize" type="text" class="input" id="fileSize" size="30">
K </td>
</tr>
<tr>
<td height="30" colspan="3" align="center" bgcolor="#ECF5FF">
<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=imageNum type=hidden ID="imageNum" value="<%=mImageNum%>">
<input name=editFirstImageName type=hidden ID="editFirstImageName" value="">
<!--获取EditBox的内容-->
</td>
</tr>
</form>
<tr>
<td height="30" colspan="3" align="center"> </td>
</tr>
</table></td>
</tr>
</table>
<!-- #include file="Inc/Foot.asp" -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -