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

📄 lt_addcl.asp

📁 wap系统程序源码 用户名密码:admin
💻 ASP
字号:
<% @LANGUAGE="VBSCRIPT" CODEPAGE="65001" %>
<%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.inc"-->
<!--#include file="66hcsb.asp"-->
<%
ltid=usb(request("ltid"))
ltbt=usb(request("ltbt"))
lttxt=usb(request("lttxt"))
djjg=usb(request("djjg"))
if djjg="" then djjg="0"
ldid=usb(request("ldid"))
if ldid="" then ldid="0"
dj=usb(request("dj"))
t=usb(request("t"))
if t="" then t="1"
vote=usb(request("vote"))
%>
<wml>
<head><meta http-equiv='Cache-Control' content='no-cache'/>
</head>
<card title="发表帖子" ontimer="lt_list.asp?glsb=<%=glsb%>&amp;page=1&amp;ltid=<%=ltid%>">
<timer value="10"/>
<p>
<%if cw="1" then%>
标题不能为空<br/>
<%end if%>
<%if cw="2" then%>
内容不能为空<br/>
<%end if%>
<%if cw="3" then%>
错误:您的帖子已经发表成功!请不要刷新!<br/>
<%end if%>
<%if cw="4" then%>
错误:请先登陆!!<br/>
<%end if%>
<%
'----识别错误并跳转-----
if len(ftsj)>=6 then
set nppj=Server.CreateObject("ADODB.Recordset")
rspljj="select ftsj,id from sclt where cstr(id)='"&ltid&"'"
nppj.open rspljj,conn,1,2
if not nppj.eof then
if clng(ttvv)-clng(ftsj) < nppj("ftsj") then response.redirect "lt_add.asp?cw=9&glsb="&glsb&"&ltid="&ltid&"&dj="&dj&""
end if
nppj.close
set nppj=nothing
end if
if ltbt="" then response.redirect "lt_add.asp?cw=1&glsb="&glsb&"&ltid="&ltid&"&dj="&dj&""
if len(ltbt)<4 then response.redirect "lt_add.asp?cw=7&glsb="&glsb&"&ltid="&ltid&"&dj="&dj&""
if len(lttxt)<8 then response.redirect "lt_add.asp?cw=8&glsb="&glsb&"&ltid="&ltid&"&dj="&dj&""
if lttxt="" then response.redirect "lt_add.asp?cw=2&glsb="&glsb&"&ltid="&ltid&"&dj="&dj&""
if myid="" then response.redirect "lt_add.asp?cw=4&glsb="&glsb&"&ltid="&ltid&"&dj="&dj&""
'---开始增加----
set rs=Server.CreateObject("ADODB.Recordset")
rspl="select * from [lttz] order by id desc"
rs.open rspl,conn,1,2
if rs("txt")=lttxt and rs("name")=ltbt and rs("fid")=myid then response.redirect "lt_add.asp?cw=3&glsb="&glsb&"&ltid="&ltid&"&dj="&dj&""
  sql="update 66hc_gr set myjf=myjf+2,myjb=myjb+5,ftsl=ftsl+1,ftsj='"&ttvv&"'  Where CStr(id)="&myid
  conn.Execute(sql)
rs.addnew
if lttxt<>"" then rs("txt")=lttxt
if ltbt<>"" then rs("name")=ltbt
if ldid<>"" then rs("ldid")=ldid
if djjg<>"" then rs("mtjg")=djjg
if dj<>"" then rs("dj")=dj
if t<>"" then rs("touu")=t
if myid<>"" then rs("fid")=myid
if myni<>"" then rs("fname")=myni
rs("ltid")=ltid
if vote<>"" then rs("vote")=vote
if vote<>"" then
votes=split(utf8(vote),"\")
voteid=""
for i=0 to ubound(votes)
if votes(i)<>"" then
voteid=voteid&"0\"
end if
next
rs("addvote")=voteid
end if
rs.update
'---关闭数据----
rs.close
set rs=nothing
%>
帖子发表成功,正在返回。。。<br/>
积分加2分,奖励5钻币<br/>
</p>
</card>
</wml>

⌨️ 快捷键说明

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