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

📄 viewnote.asp

📁 自由领域ASP+WAP同学录(V1.0)系统是一套仿ChinaRen的即可用电脑浏览又可以用手机访问的互动同学录单班级系统。这套系统同学录系统可以满足现在WAP普及的今天同学用手机上网交流的需求
💻 ASP
字号:
<!--#include file="tra.asp"-->
<!--#include file="cconst.asp"-->
<!--#include file="conn.asp"-->
<!--#include file="getmasterusername.asp"-->
<% 
response.ContentType="text/vnd.wap.wml;charset=utf-8"
Response.Expires = -1
Response.AddHeader "Pragma", "no-cache"
Response.AddHeader "Cache-Control", "no-cache, must-revalidate"%>
<%
Function HtmlUNEncode(str)
	dim tempstr
	tempstr=str
    If Trim(tempstr)="" Or IsNull(tempstr) Then Exit Function
		tempstr=Replace(tempstr,"<br>",Chr(10))
 		tempstr=Replace(tempstr,"<p></p>",Chr(10) & Chr(10) )
 		tempstr=Replace(tempstr,"",Chr(13))
 		tempstr=Replace(tempstr,"&#39;",Chr(39))
 		tempstr=Replace(tempstr,"&quot;",Chr(34))  
  		tempstr=Replace(tempstr,"&nbsp;",Chr(9))
 		tempstr=Replace(tempstr,"&nbsp;",Chr(32))
 '		tempstr=Replace(tempstr,"&lt;","<") 
 '		tempstr=Replace(tempstr,"&gt;",">")
 		HtmlUNEncode=tempstr
End Function
%>
<?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><head><meta http-equiv="Cache-Control" content="max-age=0"/></head>
<card id="viewnote" title="&#x8BFB;&#x53D6;&#x77ED;&#x6D88;&#x606F;">
<%
id=request.querystring("id")
if cint(id)=0 then
response.redirect("error.asp")
end if
set rs=server.createobject("adodb.recordset")
sql="select * from permsg where id="&id
rs.open sql,conn,1,3
title=rs("title")
notedate=rs("adddate")
sender=getmasterusername(rs("username"))
content=rs("content")
conn.execute ("update permsg set isread=1 where id="&id)
%>
<p><%=tra(cnotetitle)%><br/><%=title%></p>
<p><%=tra(cnotetime)%><br/><%=notedate%></p>
<p><%=tra(csender)%><br/><%=sender%></p>
<p><%=tra(ccontent)%><br/><%=content%></p>
<p>---</p>
<%
response.write("<p align='center'>"&tra(cend)&"</p>")
response.write("<p align='center'><anchor title='Back'>"&tra(cback)&"<go href='readnote.asp?studentid="&session("studentid")&"'/></anchor></p>")
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
</card>
</wml>

⌨️ 快捷键说明

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