bj_ly.asp
资源名称:wap.rar [点击查看]
上传用户:sking1122
上传日期:2020-09-24
资源大小:1005k
文件大小:3k
源码类别:
手机WAP编程
开发平台:
ASP/ASPX
- <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%><?xml version="1.0" encoding="utf-8"?>
- <%response.buffer=true%>
- <%Response.ContentType = "text/vnd.wap.wml; charset=utf-8"%>
- <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
- <!--#include file="conn.inc"-->
- <!--#include file="cnscu_sb.asp"-->
- <wml><%
- '====================================================================
- ' 请你保留这段说明,这并不会影响你的速度. 电脑交流:http://www.cnscu.cn
- ' 程序制作:横云 掌上校园收倾心整理收集于互联网,感谢你的支持!
- ' 升级时间: 2008-2-5 主页地址:HTTP://wap.cnscu.cn
- ' E-Mail: cnscu@126.com 客服QQ:554904632 QQ群:30493504 QQ群2:46659883
- '====================================================================
- %> <head>
- <meta http-equiv="Cache-Control" content="no-Cache"/>
- <meta http-equiv="Cache-Control" content="max-age=0"/>
- </head>
- <%
- Function c2u(sGBStr)
- Dim i,c
- if sGBStr<> "" then
- For i = 1 to Len(sGBStr)
- c = Mid(sGBStr,i,1)
- if c=chr(13) then
- c2u = c2u & "<br/>"
- else
- c2u = c2u & "&#x" & Hex(AscW(c)) & ";"
- end if
- Next
- end if
- End Function
- id=request.QueryString("id")
- page=request.QueryString("page")
- set rs=Server.CreateObject("ADODB.Recordset")
- rsstr="select * from [gbook] where [ID]="& id
- rs.open rsstr,conn,1,2
- if rs.recordcount =1 then
- %>
- <card title="编辑留言">
- <p>名称(必填):<br/>
- <input name="name<%=minute(now)%><%=second(now)%>" title="名称" type="text" format="*M" emptyok="true" maxlength="10" value="<%=rs("name")%>"/><br/>
- 标题(必填):<br/>
- <input name="title<%=minute(now)%><%=second(now)%>" title="标题" type="text" format="*M" emptyok="true" maxlength="20" value="<%=rs("title")%>"/><br/>
- 内容(必填):<br/>
- <input name="text<%=minute(now)%><%=second(now)%>" title="内容" type="text" format="*M" emptyok="true" maxlength="500" value="<%=rs("text")%>"/><br/>
- 联系方式(隐藏):<br/>
- <input name="lianxi<%=minute(now)%><%=second(now)%>" title="联系方式" type="text" format="*M" emptyok="true" maxlength="50" value="<%=rs("lianxi")%>"/><br/>
- 性质:<br/>
- <select title="性质" name="open<%=minute(now)%><%=second(now)%>">
- <option title="公开" value="0">公开</option>
- <option title="秘密" value="1">秘密</option>
- </select><br/>
- <anchor>[-提交修改-]
- <go href="bj_lycl.asp?page=<%=page%>&sb=<%=sb%>" method="post" accept-charset="utf-8">
- <postfield name="id" value="<%=id%>"/>
- <postfield name="name" value="$(name<%=minute(now)%><%=second(now)%>)"/>
- <postfield name="title" value="$(title<%=minute(now)%><%=second(now)%>)"/>
- <postfield name="text" value="$(text<%=minute(now)%><%=second(now)%>)"/>
- <postfield name="lianxi" value="$(lianxi<%=minute(now)%><%=second(now)%>)"/>
- <postfield name="open" value="$(open<%=minute(now)%><%=second(now)%>)"/>
- </go>
- </anchor><br/>
- ----------<br/>
- <a href="wap_ly.asp?sb=<%=sb%>">返回留言管理</a><br/>
- <a href="admin_index.asp?sb=<%=sb%>">返回管理首页</a><br/>
- <a href="../index.asp?sb=<%=sb%>">返回网站首页</a><br/>
- <!--#include file="bq.gif"-->
- <%
- conn.close
- set conn=nothing
- %>
- <%end if%>
- </p>
- </card>
- </wml>