LT_HuiShou.Asp
资源名称:4.rar [点击查看]
上传用户:zhbanny
上传日期:2020-11-04
资源大小:161k
文件大小:2k
源码类别:
手机WAP编程
开发平台:
ASP/ASPX
- <!--#Include File="../Inc/Head.Asp"--><%
- Private FangWen
- Set FangWen=New xkon_FangWen
- FangWen.FangWen()
- FangWen.A()
- Set FangWen=Nothing
- Private c,s
- Set c=New xkon_Response
- Set s=New xkon_Request
- Private Sub LieBiao()
- Dim p,i,Cn1
- p=s.QueryString("p")
- If p="" Then
- p=1
- Else
- p=Clng(p)
- End If
- Dim SQL
- SQL="Select * From TieZhi"
- SQL=SQL&" Where Shan='1' Order By ID Desc"
- c.Write("<form method=""post"" action=""LT_HuiShou.Asp""><table width=100% ><tr><td></td><td>ID</td><td>贴子名称</td><td>发贴人</td><td>点击数</td><td>回复数</td><td>状态</td><td></td><td></td></tr>")
- Call OpenData()
- Set Cn1=Server.CreateObject("Adodb.Recordset")
- Cn1.Open SQL,Conn,1,1
- Cn1.PageSize=20
- If Not Cn1.Eof Then
- Cn1.AbsolutePage=p
- End If
- For i=1 To 20
- If Cn1.Eof Then Exit For
- c.Write("<tr><td><input type=""checkbox"" name=""id"" value="""&Cn1("ID")&""" /></td><td>"&Cn1("ID")&"</td><td>"&Mid(Cn1("MingChen"),1,20)&"</td><td>"&Cn1("NiChen")&"</td><td>"&Cn1("DianJi")&"</td><td>"&Cn1("HuiFu")&"</td><td>"&Cn1("Qian")&"</td><td></td></tr>")
- Cn1.MoveNext
- Next
- c.Write("</table>")
- Call CPage(Cn1.PageCount,p,"LT_TieZhi.Asp")
- Cn1.Close
- Set Cn1=Nothing
- Call CloseData()
- c.Write("操作:<input type=""submit"" name=""submit"" value=""还原"" /><input type=""submit"" name=""submit"" value=""删除"" /></form>")
- End Sub
- Private Sub Submit1()
- Dim Submit,S_ID,ID,i,SQL
- Submit=s.Form("Submit")
- S_ID=Request.Form("ID")
- If S_ID="" Then
- Call xkon_Error("缺少操作对象")
- Else
- ID=Split(S_ID,",")
- For i=0 To Ubound(ID)
- If i=0 Then
- SQL=SQL&" ID="&Clng(ID(i))
- Else
- SQL=SQL&" Or ID="&Clng(ID(i))
- End If
- Next
- Call OpenData()
- Select Case Submit
- Case "还原"
- SQL="Update TieZhi Set Shan='0' Where"&SQL
- Conn.Execute(SQL)
- Call JiLu("还原贴子"&s.Form("ID"))
- Case "删除"
- SQL="Delete From TieZhi Where"&SQL
- Conn.Execute(SQL)
- Call JiLu("回收站删除贴子"&s.Form("ID"))
- End Select
- Call CloseData()
- End If
- End Sub
- Call H_Title("回收站")
- If s.Form("submit")<>"" Then
- Call Submit1()
- End If
- Call LieBiao()
- Call H_End()
- Set c=Nothing
- Set s=Nothing
- %>