📄 editguanggao.asp
字号:
<%
if session("admin")="" then
response.redirect "admin.asp"
else
if session("flag")>1 then
response.write "<br/><p align=center>您没有操作的权限</p>"
response.end
end if
end if
%>
<%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>
<card id='main' title='广告修改' >
<p><%
id=request("id")
set rs=server.createobject("adodb.recordset")
sql = "select * from guanggao where id="&id
rs.open sql,conn,1,1
if rs.bof and rs.eof then
response.write "广告不存在!"
else
%>
所在版块:
<br/><select name='classid'>
<option value=''>==系统大类==</option>
<%
set rs2=server.createobject("adodb.recordset")
sql="select * from Aclass where classon=0 order by classtop"
rs2.open sql,conn,1,1
if rs2.bof and rs2.eof then
response.write ""
else
do while not rs2.eof
if left(request("classid"),1)="b" and right(request("classid"),(len(request("classid"))-1))=cstr(rs2("id")) then
sel="selected"
else
sel=""
end if
%>
<option <%=sel%> value='b<%=rs2("id")%>'><%=rs2("class")%></option>
<%
rs2.movenext
loop
end if
rs2.close
%>
<option value=''>==系统子类==</option>
<%
set rs2=server.createobject("adodb.recordset")
sql="select * from Anclass where nclasson=0 order by nclasstop"
rs2.open sql,conn,1,1
if rs2.bof and rs2.eof then
response.write ""
else
do while not rs2.eof
if left(request("classid"),1)="a" and right(request("classid"),(len(request("classid"))-1))=cstr(rs2("nclassid")) then
sel="selected"
else
sel=""
end if
%>
<option <%=sel%> value='a<%=rs2("nclassid")%>'><%=rs2("nclass")%></option>
<%
rs2.movenext
loop
end if
rs2.close
%>
<option value=''>==友链子类==</option>
<%
set rs2=server.createobject("adodb.recordset")
sql = "select * from linkclass"
rs2.open sql,conn,1,1
if rs2.bof and rs2.eof then
response.write ""
else
do while not rs2.eof
if left(request("classid"),1)="l" and right(request("classid"),(len(request("classid"))-1))=cstr(rs2("id")) then
sel="selected"
else
sel=""
end if
%>
<option value='l<%=rs2("id")%>'><%=rs2("class")%></option>
<%
rs2.movenext
loop
end if
rs2.close
%>
</select>
<br/>广告标题:
<br/><input type='text' name='title<%=minute(now)%><%=second(now)%>' value='<%=rs("title")%>' size='10'/>
<br/>广告说明:
<br/><input type='text' name='text<%=minute(now)%><%=second(now)%>' value='<%=rs("text")%>' size='10'/>
<br/>链接地址:
<br/><input type='text' value='<%=rs("link")%>' name='link<%=minute(now)%><%=second(now)%>' size='10'/>
<br/><anchor>[-保存-]
<go href='editguanggaosave.asp?id=<%=id%>' method='post' accept-charset='utf-8'>
<postfield name='title' value='$(title<%=minute(now)%><%=second(now)%>)'/>
<postfield name='text' value='$(text<%=minute(now)%><%=second(now)%>)'/>
<postfield name='link' value='$(link<%=minute(now)%><%=second(now)%>)'/>
</go>
</anchor>
<% end if
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
<br/>------------
<br/><a href='adminguanggao.asp'>广告明细</a>
<br/><a href='main.asp'>管理首页</a></p>
</card>
</wml>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -