📄 save.asp
字号:
<%@ LANGUAGE = VBScript.Encode %>
<!--#include file="users.asp" -->
<!--#include file="jl.asp" -->
<HTML><HEAD>
<META http-equiv="Content-Type" content="text/html; charset=gb2312">
<META name="GENERATOR" content="Microsoft FrontPage 5.0">
<META name="ProgId" content="FrontPage.Editor.Document">
<TITLE>添 加 下 载 程 序</TITLE>
<LINK rel="stylesheet" type="text/css" href="style.css">
</HEAD>
<%
dim rs
dim sql
dim count
set rs=server.createobject("adodb.recordset")
sql = "select * from Nclass order by Nclassid asc"
rs.open sql,conn,1,1
%><SCRIPT language="JavaScript">
var onecount;
onecount=0;
subcat = new Array();
<%
count = 0
do while not rs.eof
%>
subcat[<%=count%>] = new Array("<%= trim(rs("Nclass"))%>","<%= trim(rs("classid"))%>","<%= trim(rs("Nclassid"))%>");
<%
count = count + 1
rs.movenext
loop
rs.close
%>
onecount=<%=count%>;
function changelocation(locationid)
{
document.myform.Nclassid.length = 0;
var locationid=locationid;
var i;
for (i=0;i < onecount; i++)
{
if (subcat[i][1] == locationid)
{
document.myform.Nclassid.options[document.myform.Nclassid.length] = new Option(subcat[i][0], subcat[i][2]);
}
}
}
</SCRIPT> <SCRIPT language="javascript">
<!--
function CheckForm()
{
document.myform.txtcontent.value=document.myform.doc_html.value;
return true
}
//-->
</SCRIPT>
<BODY bgcolor="#0066FF">
<FORM method="POST" name="myform" action="df.asp?action=add">
<TABLE width="602" border="0" align="center" cellspacing="1" bgcolor="#000000" cellpadding="1">
<TBODY>
<TR align="center" bgcolor="#CCCCCC">
<TD colspan="4" height="25"><B><FONT color="#FFFFFF">添 加 下 载 程 序</FONT></B></TD>
</TR>
<TR bgcolor="#CCCCCC">
<TD align="right" width="80" nowrap height="30"><B><FONT color="#FF0000">软件类型</FONT>:</B></TD>
<TD width="208" height="30">
<%
sql = "select * from class"
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write "请先添加栏目。"
response.end
else
%>
<SELECT name="classid" onChange="changelocation(document.myform.classid.options[document.myform.classid.selectedIndex].value)" size="1">
<OPTION selected value>==请选类型==</OPTION>
<%
do while not rs.eof
%>
<OPTION value="<%=trim(rs("classid"))%>"><%=trim(rs("class"))%></OPTION>
<%
rs.movenext
loop
end if
rs.close
set rs = nothing
conn.Close
set conn = nothing
%>
</SELECT>
</TD>
<TD align="right" width="83" height="30"><B>选择分类:</B></TD>
<TD width="227" height="30">
<SELECT name="Nclassid">
<OPTION selected value>==请选分类==</OPTION>
</SELECT>
</TD>
</TR>
<TR bgcolor="#CCCCCC">
<TD align="right" width="80" nowrap height="30">软件名称:<br>
</TD>
<TD width="208" height="30">
<input type="text" name="name" size="33" maxlength="100">
</TD>
<TD align="right" width="83" height="30">文件大小:</TD>
<TD width="227" height="30">
<input type="text" name="size" size="20" maxlength="100" value=" K">
<a href="../admin_uploadfile.asp" target="_blank">上传 </a></TD>
</TR>
<TR bgcolor="#CCCCCC">
<TD align="right" width="80" nowrap height="30">授权方式:</TD>
<TD width="208" height="30">
<select name="mode" size="1">
<option value="共享软件">共享软件</option>
<option value="免费软件" selected>免费软件</option>
<option value="破解软件">破解软件</option>
</select>
</TD>
<TD align="right" width="83" height="30">应用平台:</TD>
<TD width="227" height="30">
<select name="roof" size="1">
<option value="Win9x/WinNT/Win2000/WinXP/WinME" selected>Win9x/WinNT/Win2000/WinXP/WinME</option>
<option value="Win9x/WinNT/Win2000/WinME">Win9x/WinNT/Win2000/WinME</option>
<option value="Win9x/WinNT/Win2000">Win9x/WinNT/Win2000</option>
<option value="Win9x/WinNT">Win9x/WinNT</option>
<option value="Win9x/WinME">Win9x/WinME</option>
<option value="ASP环境">ASP环境</option>
<option value="PHP环境">PHP环境</option>
<option value="CGI环境">CGI环境</option>
<option value="JSP环境">JSP环境</option>
<option value="Linux环境">Linux环境</option>
</select>
</TD>
</TR>
<TR bgcolor="#CCCCCC">
<TD align="right" width="80" nowrap height="30">推荐程度:</TD>
<TD width="208" height="30">
<select size=1 name=commend>
<option value="0stars.gif">0 颗星</option>
<option value="1stars.gif">1 颗星</option>
<option value="2stars.gif">2 颗星</option>
<option value="3stars.gif">3 颗星</option>
<option value="4stars.gif">4 颗星</option>
<option value="5stars.gif" selected>5 颗星</option>
</select>
</TD>
<TD align="right" width="83" height="30">开发商主页:</TD>
<TD width="227" height="30">
<input type="text" name="homepage" value="http://www.gy16.com">
</TD>
</TR>
<TR bgcolor="#CCCCCC">
<TD align="right" width="80" nowrap height="30">推荐:</TD>
<TD width="208" height="30">
<input type="checkbox" name="tj" value="on">
</TD>
<TD align="right" width="83" height="30">精品:</TD>
<TD width="227" height="30">
<input type="checkbox" name="hot" value="on">
</TD>
</TR>
<TR bgcolor="#CCCCCC">
<TD align="right" width="80" nowrap height="30">图片地址:</TD>
<TD colspan="3" height="30">
<input type="text" name="pic" size="82" class="smallinput" maxlength="100">
</TD>
</TR>
<TR bgcolor="#CCCCCC">
<TD align="right" width="80" nowrap height="30">程序简介:</TD>
<TD colspan="3" height="30"> <font color="#FF0000">
<textarea rows="6" name="show" cols="82" class="smallarea"></textarea>
</font> </TD>
</TR>
<TR bgcolor="#00CCFF">
<TD align="right" width="80" nowrap height="30">
<div align="center">下载地址1:</div>
</TD>
<TD colspan="3" height="30">
<input type="text" name="down1" size="82" class="smallinput" maxlength="100">
</TD>
</TR>
<TR bgcolor="#00CCFF">
<TD align="right" width="80" nowrap height="30">
<div align="center">下载1说明:</div>
</TD>
<TD colspan="3" height="30">
<input type="text" name="txt1" size="82" class="smallinput" maxlength="100">
</TD>
</TR>
<TR bgcolor="#00CC99">
<TD align="right" width="80" nowrap height="30">
<div align="center">下载地址2:</div>
</TD>
<TD colspan="3" height="30">
<input type="text" name="down2" size="82" class="smallinput" maxlength="100">
</TD>
</TR>
<TR bgcolor="#00CC99">
<TD align="right" width="80" nowrap height="30">
<div align="center">下载2说明:</div>
</TD>
<TD colspan="3" height="30">
<input type="text" name="txt2" size="82" class="smallinput" maxlength="100">
</TD>
</TR>
<TR bgcolor="#CC9999">
<TD align="right" width="80" nowrap height="30">
<div align="center">下载地址3:</div>
</TD>
<TD colspan="3" height="30">
<input type="text" name="down3" size="82" class="smallinput" maxlength="100">
</TD>
</TR>
<TR bgcolor="#CC9999">
<TD align="right" width="80" nowrap height="30">
<div align="center">下载3说明:</div>
</TD>
<TD colspan="3" height="30">
<input type="text" name="txt3" size="82" class="smallinput" maxlength="100">
</TD>
</TR>
<TR bgcolor="#FFCC00">
<TD align="right" width="80" nowrap height="30">
<div align="center">下载地址4:</div>
</TD>
<TD colspan="3" height="30">
<input type="text" name="down4" size="82" class="smallinput" maxlength="100">
</TD>
</TR>
<TR bgcolor="#FFCC00">
<TD align="right" width="80" nowrap height="30">
<div align="center">下载4说明:</div>
</TD>
<TD colspan="3" height="30">
<input type="text" name="txt4" size="82" class="smallinput" maxlength="100">
</TD>
</TR>
<TR bgcolor="#009999">
<TD align="right" width="80" nowrap height="30">
<div align="center">下载地址5:</div>
</TD>
<TD colspan="3" height="30">
<input type="text" name="down5" size="82" class="smallinput" maxlength="100">
</TD>
</TR>
<TR bgcolor="#009999">
<TD align="right" width="80" nowrap height="30">
<div align="center">下载5说明:</div>
</TD>
<TD colspan="3" height="30">
<input type="text" name="txt5" size="82" class="smallinput" maxlength="100">
</TD>
</TR>
</TBODY>
</TABLE>
<DIV align="center">
<CENTER>
<P><INPUT type="submit" value=" 添 加 " name="cmdok" class="buttonface"> <INPUT type="reset" value=" 清 除 " name="cmdcancel" class="buttonface"></P>
</CENTER></DIV>
</FORM>
</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -