📄 grtzjx.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"-->
<wml>
<head><meta http-equiv='Cache-Control' content='no-cache'/>
</head>
<card title="编辑帖子">
<p>
<!--#include file="66hcsb.asp"-->
<!--#include file="xxts.asp"-->
<%
page=request("page")
if page="" then page="1"
url=request("url")
ltid=request("ltid")
tid=request("tid")
set objgbrr=Server.CreateObject("ADODB.Recordset")
ssql="select * from lttz where cstr(id)="&tid
objgbrr.open ssql,conn,1,1
spname1=objgbrr("name")
spjg1=objgbrr("txt")
if objgbrr("fid")=myid then
%>
<%
ltid=request("ltid")
cw=request("cw")
cz=request("cz")
if cz="" or cz="2"then
%>
<%if cw=1 then%>
错误:帖子标题不能为空!<br/>
<%end if%>
<%if cw=2 then%>
错误:续帖内容不能为空!<br/>
<%end if%>
<%if cw=3 then%>
未知错误!<br/>
<%end if%>
续帖内容[支持UBB]:<br/>
<input name="spjj<%=minute(now)%><%=second(now)%>" title="续帖内容:" type="text" format="*M" emptyok="true" value=""/><br/>
<anchor title="确定提交">[确定提交]
<go href="grtzjx.asp?glsb=<%=glsb%>&cz=1&tid=<%=tid%>&id=<%=id%>&url=<%=url%>&page=<%=page%>" method="post" accept-charset='utf-8'>
<postfield name="spjj1" value="$(spjj<%=minute(now)%><%=second(now)%>)"/>
</go>
</anchor>
<%end if%>
<%
if cz="1" then
'-----接收数据-----
tid=usb(request("tid"))
url=usb(request("url"))
name2=usb(request("name1"))
spjj2=usb(request("spjj1"))
'----识别错误并跳转-----
if spjj2="" then response.redirect "grtzjx.asp?glsb=" & glsb & "&cw=2&cz=2&tid="&tid&""
'---开始修改----
set rs=Server.CreateObject("ADODB.Recordset")
rspl="select * from lttz where cstr(id)="&tid
rs.open rspl,conn,1,2
if spjj2<>"" then rs("txt")=rs("txt")+"[br]作者在"&now()&"时续写以下内容[br]"+spjj2
rs.update
'---关闭数据----
rs.close
set rs=nothing
%>
成功续帖。。。
<%end if%>
<%else%>
您没有权利
<%end if%>
<br/>-----------<br/>
<a href="lt_view.asp?glsb=<%=glsb%>&tid=<%=tid%>&page=<%=page%>">返回上级</a><br/>
<!--#include file="w.asp"-->
</p>
</card>
</wml>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -