kshf.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="cnscucsb.asp"--><%
- '====================================================================
- ' 请你保留这段说明,这并不会影响你的速度. 电脑交流:http://www.cnscu.cn
- ' 程序制作:横云 掌上校园收倾心整理收集于互联网,感谢你的支持!
- ' 升级时间: 2008-2-5 主页地址:HTTP://wap.cnscu.cn
- ' E-Mail: cnscu@126.com 客服QQ:554904632 QQ群:30493504 QQ群2:46659883
- '====================================================================
- %> <%
- tid=usb(request("tid"))
- ltbt=usb(request("dgly"))
- %>
- <wml>
- <head><meta http-equiv='Cache-Control' content='no-cache'/>
- </head>
- <%
- set nppj=Server.CreateObject("ADODB.Recordset")
- rspljj="select ltid,id from lttz where cstr(id)='"&tid&"'"
- nppj.open rspljj,conn,1,2
- if not nppj.eof then
- ltid=nppj("ltid")
- else
- response.redirect "lt_view.asp?cw=1&cnscu="&cnscu&"&tid="&tid&"&dj="&dj&""
- end if
- nppj.close
- set nppj=nothing
- if len(hfsj)>=6 then
- set rsjj=Server.CreateObject("ADODB.Recordset")
- rsh="select hfsj,id from sclt where cstr(id)='"<id&"'"
- rsjj.open rsh,conn,1,2
- if not rsjj.eof then
- if clng(ttvv)-clng(hfsj) < rsjj("hfsj") then response.redirect "lt_view.asp?cw=10&cnscu="&cnscu&"&tid="&tid&"&dj="&dj&""
- end if
- rsjj.close
- set rsjj=nothing
- end if
- '----识别错误并跳转-----
- if ltbt="" then response.redirect "lt_view.asp?cw=1&cnscu="&cnscu&"&tid="&tid&"&dj="&dj&""
- if myid="" then response.redirect "lt_view.asp?cw=4&cnscu="&cnscu&"&tid="&tid&"&dj="&dj&""
- '---开始增加----
- set rs=Server.CreateObject("ADODB.Recordset")
- rspl="select * from lthf order by id desc"
- rs.open rspl,conn,1,2
- if rs("fid")=myid and rs("nr")=ltbt then response.redirect "lt_view.asp?cw=7&cnscu="&cnscu&"&tid="&tid&"&dj="&dj&""
- sql="update cnscu_gr set myjf=myjf+1,myjb=myjb+2,hfsj='"&ttvv&"' Where CStr(id)="&myid
- conn.Execute(sql)
- rs.addnew
- if ltbt<>"" then rs("nr")=ltbt
- rs("fid")=myid
- if tid<>"" then rs("tid")=tid
- rs("fni")=myni
- rs.update
- '---关闭数据----
- rs.close
- set rs=nothing
- set rsl=Server.CreateObject("ADODB.Recordset")
- rspll="select hfs,id,hhsj,dgtm,st,yc from lttz where cstr(id)="&tid
- rsl.open rspll,conn,1,2
- rsl("hfs")=rsl("hfs")+1
- rsl("hhsj")=now()
- if rsl("dgtm")<>"2100-10-10 12:12:12" and rsl("dgtm")<>"2000-10-10 12:12:12" and rsl("st")<>"1" and rsl("yc")<>"1" then rsl("dgtm")=now()
- rsl.update
- rsl.close
- set rsl=nothing
- %>
- <card title="快速回复" ontimer="lt_list.asp?cnscu=<%=cnscu%>&ltid=<%=ltid%>&page=<%=request("ppage")%>">
- <timer value="10"/>
- <p>
- 帖子回复成功,正在返回。。。<br/>
- 回帖是一种美德,感谢你!<br/>
- <br/>
- </p>
- </card>
- </wml>