📄 newsoft_body.asp
字号:
<%sub Newsoft_body()
sql="select * from d_cat"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
%>
<HTML><HEAD><TITLE>管理中心</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK
href="inc/djcss" type=text/css rel=StyleSheet>
<META content="MSHTML 6.00.2800.1126" name=GENERATOR>
</HEAD>
<body onkeydown=return(!(event.keyCode==78&&event.ctrlKey)) background=inc/dj_bg.gif>
<%if request.QueryString("action")="newsoft" then%>
<table width="98%" border="0" cellspacing="1" cellpadding="4" bgcolor="#293863" align="center">
<form name="form1" method="post" action="New_soft.asp">
<tr>
<td colspan="2" class="diaryhead">新增软件</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="16%" class="chinese">软件名称</td>
<td width="84%" class="chinese">
<input type="text" name="name" size="40" class="textarea">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="16%" class="chinese">软件大小</td>
<td width="84%" class="chinese">
<input name="size" type="text" class="textarea" value="K" size="20">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="16%" class="chinese">授权方式</td>
<td width="84%" class="chinese"> <select name="mode">
<option value="免费软件">免费软件</option>
<option value="共享软件">共享软件</option>
<option value="破解软件">破解软件</option>
</select></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="16%" class="chinese">应用平台</td>
<td width="84%" class="chinese"> <select name="roof">
<option value="WIN98">WIN98</option>
<option value="WINXP">WINXP</option>
<option value="WIN2000">WIN2000</option>
<option value="WIN98+WIN2000">WIN98+WIN2000</option>
<option value="WIN98+WIN2000+WINXP">WIN98+WIN2000+WINXP</option>
</select></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="16%" class="chinese">推荐程度</td>
<td width="84%" class="chinese">
<select name="commend">
<option value="5">5个星</option>
<option value="4">4个星</option>
<option value="3">3个星</option>
<option value="2">2个星</option>
<option value="1">1个星</option>
<option value="0">0个星</option>
</select>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="16%" class="chinese">所属分类</td>
<td width="84%" class="chinese">
<select name="of">
<%
dim catname,classname,catid,classid
Set rs = Server.CreateObject("ADODB.Recordset")
sql="SELECT * FROM d_cat"
rs.OPEN sql,Conn,1,1
if not (rs.eof and rs.bof) then
rs.movefirst
do while not rs.eof
sql="select * from d_class where cat_id="&rs("cat_id")
Set rs2 = Server.CreateObject("ADODB.Recordset")
rs2.OPEN sql,Conn,1,1
if not (rs2.eof and rs2.bof) then
do while not rs2.eof
catid=rs("cat_id")
classid=rs2("class_id")
catname=rs("cat_name")
classname=rs2("class_name")
%>
<option value='<%=rs2("class_id")%>'><%=rs2("class_name")%>(<%=rs("cat_name")%>)</option>
<%
rs2.movenext
loop
end if
rs.movenext
rs2.close
set rs2=nothing
loop
end if
%>
</select>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="16%" class="chinese">演示地址</td>
<td width="84%" class="chinese">
<input type="text" name="demo" size="60" class="textarea">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="16%" class="chinese">主页地址</td>
<td width="84%" class="chinese">
<input type="text" name="home" size="60" class="textarea" value="<%=homeurl%>">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="16%" class="chinese">图片地址</td>
<td width="84%" class="chinese">
<input type="text" name="showpic" size="60" class="textarea" value="<%=logo%>">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="16%" class="chinese">程序简介</td>
<td width="84%" class="chinese">
<textarea name="desc" cols="65" rows="10" class="textarea" value="没有"></textarea>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="16%" class="chinese">下载地址1</td>
<td width="84%" class="chinese">
<input type="text" name="url1" size="60" class="textarea">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="16%" class="chinese">下载地址2</td>
<td width="84%" class="chinese">
<input type="text" name="url2" size="60" class="textarea">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="16%" class="chinese">下载地址3</td>
<td width="84%" class="chinese">
<input type="text" name="url3" size="60" class="textarea">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="16%" class="chinese">下载地址4</td>
<td width="84%" class="chinese">
<input type="text" name="url4" size="60" class="textarea">
</td>
</tr>
<tr bgcolor="#E8E8E8">
<td colspan="2" class="chinese" align="center" height="30">
<input type="submit" name="Submit" value="确定新增" class="button">
<input type="reset" name="Reset" value="清空重填" class="button">
[<a href="admin_soft.asp">返回</a>] </td>
</tr>
<input type="hidden" name="action" value="newsoft">
<input type="hidden" name="MM_insert" value="true">
</form>
</table>
<%end if
if request.QueryString("action")="editsoft" then
if request.querystring("id")="" then
errmsg=errmsg+"<br>"+"<li>请指定操作的对象!"
call diserror()
response.end
else
if not isinteger(request.querystring("id")) then
errmsg=errmsg+"<br>"+"<li>非法的软件ID参数!"
call diserror()
response.end
end if
end if
sql="select * from soft where soft_id="&cint(request.querystring("id"))
set rs2=server.createobject("adodb.recordset")
rs2.open sql,conn,1,1%>
<table width="98%" border="0" cellspacing="1" cellpadding="4" bgcolor="#293863" align="center">
<form name="form1" method="post" action="New_soft.asp">
<tr>
<td colspan="2" class="diaryhead">编辑软件</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="16%" class="chinese">软件名称</td>
<td width="84%" class="chinese"> <input type="text" name="name" size="40" class="textarea" value="<%=rs2("soft_name")%>">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="16%" class="chinese">软件大小</td>
<td width="84%" class="chinese"> <input type="text" name="size" size="20" class="textarea" value="<%=rs2("soft_size")%>">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="16%" class="chinese">授权方式</td>
<td width="84%" class="chinese"> <input type="text" name="mode" class="textarea" value="<%=rs2("soft_mode")%>">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="16%" class="chinese">应用平台</td>
<td width="84%" class="chinese"> <input type="text" name="roof" class="textarea" value="<%=rs2("soft_roof")%>">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="16%" class="chinese">推荐程度</td>
<td width="84%" class="chinese"> <select name="commend" id="commend">
<option value="5" <%if rs2("soft_commend")=5 then response.write "selected" end if%>>5stars</option>
<option value="4" <%if rs2("soft_commend")=4 then response.write "selected" end if%>>4stars</option>
<option value="3" <%if rs2("soft_commend")=3 then response.write "selected" end if%>>3stars</option>
<option value="2" <%if rs2("soft_commend")=2 then response.write "selected" end if%>>2stars</option>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -