📄 fileedit.asp
字号:
<!--#include file="mdb/conn.asp" -->
<!--#include file="config.asp" -->
<!--#include file="check.asp" -->
<html>
<head>
<%
typen=Request("typeid")
if Request.QueryString("cz")="editfile" then
id=Request.QueryString("id")
sql = "SELECT * FROM desktop where id="&id
Set rs = Server.CreateObject("ADODB.Recordset")
rs.OPEN sql,Conn,1,1
name=rs("name")
typeid=rs("typeid")
URL=rs("SURL")
hot=rs("hot")
zhuanti=rs("zhuanti")
jj=html_1(rs("jj"))
rs.close
Set rs=Nothing
function html_1(fString)
fString = Replace(fString, "</P><P>" , CHR(10) & CHR(10))
fString = Replace(fString, "<BR>" , CHR(10))
html_1= fString
end function
title="编辑文件"
cz="editfile"
else
title="添加文件"
cz="addfile"
end if
%>
<title><%=title%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="INDEX.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="<%=bgcolor%>" text="#000000">
<!--#include file="top.asp" -->
<table width="760" border="0" align="center" cellpadding="5" cellspacing="0" bgcolor="#FFFFFF">
<form name="form" method="post" action="savefile.asp?cz=<%=cz%>&typeid=<%=typeid%>&id=<%=id%>">
<tr>
<td height="15" colspan="3" align="right" class="sxz"><!--#include file="admintop.asp" --></td>
</tr>
<tr>
<td class="sxz" width="238" align="right">文件名称:</td>
<td class="bk" width="345">
<input type="text" name="name" class="an" maxlength="50" value="<%=name%>" size="20">
</td>
<td class="bk" width="165" rowspan="3" align="CENTER">
<img src='<%=url%>' border='0' class='bk'></td>
</tr>
<tr>
<td class="zx" width="238" align="right">所属专题:</td>
<td class="xzy" width="345">
<select name="zhuanti" class="cp">
<option value='0'>不参与专题</option>
<%
sql = "SELECT * FROM zhuanti"
Set rs1 = Server.CreateObject("ADODB.Recordset")
rs1.OPEN sql,Conn,1,1
if rs1.eof and rs1.bof then
Response.Write"<option>还没有任何专题</option>"
else
do while not rs1.eof
Response.Write"<option value='"&rs1("id")&"'"
if zhuanti=rs1("id") then Response.Write" selected"
Response.Write">"&rs1("name")&"</option>"
rs1.movenext
loop
end if
rs1.close
set rs1=nothing
%>
</select>
* </td>
</tr>
<tr>
<td class="zx" valign="top" width="238" align="right">文件简介:</td>
<td width="345" height="100" valign="top" class="xzy">
<textarea name="jj" class="an" cols="40" rows="5"><%=jj%></textarea>
<br><input type=submit value=" 提交 " name="submit">
</td>
</tr>
</form>
</table>
<table width="760" border="0" cellspacing="0" cellpadding="5" align="center">
<tr>
<td height="1"></td>
</tr>
<tr>
<td bgcolor="#FFFFFF" class="bk"> 请注意,必须填写带有“*”项目,缩略图如果不填写则使用默认图片</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!--#include file="foot.asp" -->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -