📄 edit.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%response.buffer=true%>
<%Response.ContentType = "text/vnd.wap.wml; charset=utf-8"%>
<?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">
<!--#include file="conn.asp"-->
<wml>
<head>
<meta http-equiv="Cache-Control" content="no-Cache"/>
<meta http-equiv="Cache-Control" content="max-age=0"/>
</head>
<%
id=request.QueryString("id")
ids=request.QueryString("ids")
p=cint(request.QueryString("p"))
if p="" or p<1 then p=1
function encode(str)
if IsNull(str) then exit function
str=trim(str)
str=replace(str,"&","&")
str=replace(str,"<","<")
str=replace(str,">",">")
str=replace(str,Chr(13),"<br/>")
encode=str
end function
set rs=Server.CreateObject("ADODB.Recordset")
rsstr="select * from [bookmark] where [ID]="& id
rs.open rsstr,conn,1,2
if rs.recordcount =1 then
%>
<%
set rst=server.createobject("ADODB.Recordset")
Sql="select * from bookclass where num='" & pno & "' order by ClassID asc"
rst.open Sql,conn,1,2
%>
<card title="编辑书签">
<p>网站名称(必填):</p>
<p><input name="site<%=minute(now)%><%=second(now)%>" type="text" format="*M" emptyok="true" maxlength="15" value="<%=encode(rs("site"))%>"/></p>
<p>网站地址(必填):</p>
<p><input name="url<%=minute(now)%><%=second(now)%>" type="text" format="*M" emptyok="true" maxlength="30" value="<%=encode(rs("url"))%>"/></p>
<p>网址分类:
<select title="分类" name="fenlei<%=minute(now)%><%=second(now)%>" value="<%=rs("classid")%>">
<%
i=1
do while not rst.eof
%>
<option value="<%=rst("ClassID")%>"><%=rst("ClassName")%></option>
<%
i=i+1
rst.movenext
loop
rst.Close
set rst=nothing
%>
</select><br/>
<anchor>[-修 改-]
<go href="editok.asp" method="post" accept-charset="utf-8">
<postfield name="ids" value="$(fenlei<%=minute(now)%><%=second(now)%>)"/>
<postfield name="site" value="$(site<%=minute(now)%><%=second(now)%>)"/>
<postfield name="url" value="$(url<%=minute(now)%><%=second(now)%>)"/>
<postfield name="id" value="<%=id%>"/>
<postfield name="p" value="<%=p%>"/>
</go>
</anchor>
<br/>-----<br/>
<a href="index.asp">[书签首页]</a><br/>
<a href="../index.asp">[网址大全]</a><br/>
</p>
</card>
<%else%>
<card title="出错了">
<p>
无此书签!<br/>
-----<br/>
<a href="index.asp">[书签首页]</a><br/>
<a href="../index.asp">[网址大全]</a><br/>
</p>
</card>
<%end if%>
</wml>
<%
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -