edit.asp
来自「教育管理系统」· ASP 代码 · 共 242 行
ASP
242 行
<!--#include file="security.asp"-->
<!--#include file="articleconn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="css/style.css">
<title>修改软件</title>
</head>
<body topmargin="20" leftmargin="15" bgcolor="#666666" >
<center>
<form method="POST" action="saveedit.asp?id=<%=request("id")%>">
<table width="600" border="0" cellspacing="0" cellpadding="0">
<%
dim sql
dim rs
sql="select * from learning where articleid="&request("id")
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
%>
<tr bgcolor="#000000">
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0" align="center">
<tr bgcolor="#333333">
<td colspan="2" height="20">
<div align="center"><font
color="#FFFFFF">修改软件页</font> </div>
</td>
</tr>
<tr bgcolor="#666666">
<td width="13%">
<div align="center">文件名称: </div>
</td>
<td>
<input type="text" name="title" size="20"
class="smallinput" maxlength="255" value="<%=rs("title")%>">
<font color="#FF0000" size="3">*</font> </td>
</tr>
<tr bgcolor="#666666">
<td width="13%">
<div align="center">文件大小:<font color="#0080C0"><b><font color="#0080C0">
</font></b></font></div>
</td>
<td>
<input type="text" name="dog" size="20"
class="smallinput" maxlength="255" value="<%=rs("dog")%>">
<font color="#FF0000" size="3">*</font></td>
</tr>
<tr bgcolor="#666666">
<td width="13%">
<div align="center">文件类别:</div>
</td>
<td>
<%
dim rs2,sql2
set rs2=server.createobject("adodb.recordset")
sql2="select * from zhu where zhuid="&rs("zhuid")
rs2.open sql2,conn,1,1%>
<%=rs2("zhu")%>=>
<%rs2.close%>
<select class="smallSel" name="typeid" size="1">
<%zhuid=rs("zhuid")%>
<%
dim rs1,sql1,sel
set rs1=server.createobject("adodb.recordset")
sql1="select * from type where zhuid='"&zhuid&"'"
rs1.open sql1,conn,1,1
do while not rs1.eof
sel="selected"
response.write "<option value='"+CStr(rs1("typeID"))+"' name=typeid "
if rs("typeid")=rs1("typeid") then Response.Write sel
Response.Write ">"+rs1("type")+"</option>"+chr(13)+chr(10)
rs1.movenext
loop
rs1.close
%>
</select>
</td>
</tr>
<tr bgcolor="#666666">
<td width="13%">
<div align="center">文件评价:</div>
</td>
<td>
<select size="1" name="softlevel">
<option value="★"<%
if instr(rs("softlevel"),"★") then
response.write "selected"
end if%>>★</option>
<option value="★★"<%
if instr(rs("softlevel"),"★★") then
response.write "selected"
end if%>>★★</option>
<option value="★★★"<%
if instr(rs("softlevel"),"★★★") then
response.write "selected"
end if%>>★★★</option>
<option value="★★★★"<%
if instr(rs("softlevel"),"★★★★") then
response.write "selected"
end if%>>★★★★</option>
<option value="★★★★★★"<%
if instr(rs("softlevel"),"★★★★★★") then
response.write "selected"
end if%>>★★★★★★</option>
</select>
</td>
</tr>
<tr bgcolor="#666666">
<td width="13%">
<div align="center">运行系统:</div>
</td>
<td>
<select name="runsystem" size="1">
<option value="WIN9X" <%if rs("runsystem") = "WIN9X" then Response.Write("selected")%>>WIN9X</option>
<option value="WIN9X/NT" <%if rs("runsystem") = "WIN9X/NT" then Response.Write("selected")%>>WIN9X/NT</option>
<option value="WIN9X/WIN2000/WINNT" <%if rs("runsystem") = "WIN9X/WIN2000/WINNT" then Response.Write("selected")%>>WIN9X/WIN2000/WINNT</option>
<option value="WINNT" <%if rs("runsystem") = "WINNT" then Response.Write("selected")%>>WINNT</option>
<option value="DOS" <%if rs("runsystem") = "DOS" then Response.Write("selected")%>>DOS</option>
<option value="LINUX" <%if rs("runsystem") = "LINUX" then Response.Write("selected")%>>LINUX</option>
<option value="UNIX/LINUX" <%if rs("runsystem") = "UNIX/LINUX" then Response.Write("selected")%>>UNIX/LINUX</option>
<option value="UNIX" <%if rs("runsystem") = "UNIX" then Response.Write("selected")%>>UNIX</option>
<option value="MAC" <%if rs("runsystem") = "MAC" then Response.Write("selected")%>>MAC</option>
</select>
</td>
</tr>
<tr bgcolor="#666666">
<td width="13%">
<div align="center">IP地址:</div>
</td>
<td>
<input type="text" name="url" size="50"
class="smallinput" maxlength="255" value="<%=rs("url")%>">
浏览该文件 </td>
</tr>
<tr bgcolor="#666666">
<td width="13%">
<div align="center">目录:</div>
</td>
<td>
<input type="text" name="url2" size="50"
class="smallinput" maxlength="255" value="<%=rs("url2")%>">
下载该文件 </td>
</tr>
<tr bgcolor="#666666">
<td width="13%">
<div align="center">影片集数:</div>
</td>
<td>
<input type="text" name="jishu" size="50"
class="smallinput" maxlength="255" value="<%=rs("jishu")%>">
</td>
</tr>
<tr bgcolor="#666666">
<td width="13%">
<div align="center">当前状态:</div>
</td>
<td>
<input type="text" name="zt" size="50"
class="smallinput" maxlength="255" value="<%=rs("zt")%>">
</td>
</tr>
<tr bgcolor="#666666">
<td width="13%">
<div align="center">缩略图地址:</div>
</td>
<td>
<input type="text" name="images" size="50"
class="smallinput" maxlength="255" value="<%=rs("images")%>">
<font color="#FF0000" size="3">*</font> </td>
</tr>
<tr bgcolor="#666666">
<td width="13%">
<div align="center">
<p>壁纸简介:</p>
</div>
</td>
<td>
<textarea rows="8" name="content" cols="70" class="smallarea"><%if rs("html")=false then
content=replace(rs("content"),"<br>",chr(13))
content=replace(content," "," ")
else
content=rs("content")
end if
response.write content%></textarea>
<font color="#FF0000" size="3">*</font> </td>
</tr>
<tr bgcolor="#666666">
<td width="13%">
<div align="center">站长推崇:</div>
</td>
<td>
<%if rs("best")=true then%>
是:
<input type="radio" name="best" value="1" checked>
<input type="radio" name="best" value="0">
:否
<%else%>
是:
<input type="radio" name="best" value="1">
<input type="radio" name="best" value="0" checked>
:否
<%end if%>
</td>
</tr>
<tr bgcolor="#666666">
<td width="13%" height="17">
<div align="center">清空评论:</div>
</td>
<td height="17">
<input type="checkbox" name="checkbox" value="on">
<input type="hidden" name="review">
<input type="hidden" name="reviewcount" value="0">
现有评论 <font color="#FF0000"><%=rs("reviewcount")%>篇</font></td>
</tr>
</table>
</td>
</tr>
</table>
<p>
<input type="submit" value=" 修 改 "
name="cmdok" class="buttonface">
<input type="reset" value=" 复 原 "
name="cmdcancel" class="buttonface">
</p>
</form>
<p align="center">以上代 <font color="#FF0000" size="3">*</font> 为必填写</p>
<div align="center"></div>
<div align="center"></div>
<p align="center"> <a href="mimi.asp"><font face="Webdings" size="4">7</font>返回管理页面</a>
</p> </center>
</body>
</html>
<%
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?