⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 edit.asp

📁 admin/admin.asp是WAP的后台管理登陆页面
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%Response.ContentType = "text/vnd.wap.wml; charset=utf-8"%>
<!-- #include file="conn.asp" -->
<!-- #include file="onlines.asp" --><?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> 
<wml>
<%
dim rsad,pno,id
set rsad=Server.CreateObject("ADODB.Recordset")
rsad.open "select phone from login where id='"&request("shouji")&"'",conn,1,3
if rsad.bof and rsad.eof then
response.redirect "index.asp"
else
pno=rsad("phone")
end if
rsad.close
set rsad=nothing
id=request.QueryString("id")
%><head><meta http-equiv='Cache-Control' content='no-cache'/>
</head>
<card title="编辑主题">
<p>
<%
function encodestr(str)
	str=trim(str)
	if IsNull(str) then exit function
	str=replace(str,"&","&amp;")
	str=replace(str,"<","&lt;")
	str=replace(str,">","&gt;")
	str=replace(str,"$","$$")
	str=replace(str,"'","&#39;")
        str=replace(str,Chr(13),"<br/>")
	encodestr=str
end function

	dim rs,sql
	set rs=Server.CreateObject("ADODB.Recordset")
	sql="select title,con from art where id="&id
	rs.open sql,conn,1,1
	if rs.bof and rs.eof then
	response.write "主题不存在,或已被管理员删除!"
	else
%>如果输入框显示不正确,请先删除输入框内容再刷新一下<br/>
标题:<input name="ti" type="text" format="*M" maxlength="20" value='<%=encodestr(rs("title"))%>'/></p>
<p>内容:<input name="tcx" type="text" format="*M" emptyok="true" maxlength="750" value='<%=encodestr(rs("con"))%>'/></p>
<p><anchor>提交修改
<go href="editsave.asp?id=<%=id%>&amp;shouji=<%=request("shouji")%>" method="post" accept-charset="utf-8">
<postfield name="title" value="$(ti)"/>
<postfield name="con" value="$(tcx)"/>
</go>
</anchor><br/>
----------<br/>
<a href="list.asp?id=<%=id%>&amp;shouji=<%=request("shouji")%>">[==返回==]</a><br/>
<a href="bbs.asp?shouji=<%=request("shouji")%>">[论坛首页]</a><br/>
<a href="../index.asp?shouji=<%=request("shouji")%>">[网站首页]</a><br/>
<% end if
rs.close
set rs=nothing
conn.close
set conn=nothing
%></p>
</card>
</wml>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -