LT_HuiFu.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.HuiFu()
- Set FangWen=Nothing
- Private c,s
- Set c=New xkon_Response
- Set s=New xkon_Request
- Private Sub LieBiao()
- Dim Cn1,p,i,SQL
- p=s.QueryString("p")
- if p="" Then
- p=1
- Else
- p=Clng(p)
- End If
- SQL="Select * From HuiFu Order By Id Desc"
- c.Write("<form method=""post"" action=""LT_HuiFu.Asp""><table width=100% ><tr><td></td><td>ID</td><td>回复内容</td><td>用户名</td><td>昵称</td><td>IP</td><td>贴子ID</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>"&Cn1("NeiRong")&"</td><td>"&Cn1("ZhangHao")&"</td><td>"&Cn1("NiChen")&"</td><td>"&Cn1("IP")&"</td><td>"&Cn1("TieZhi")&"</td><td>"&Cn1("ShiJian")&"</td><td>"&Zhuan(Cn1("MiMing"))&"</td></tr>")
- Cn1.MoveNext
- Next
- c.Write("</table>")
- Call CPage(Cn1.PageCount,p,"LT_HuiFu.Asp")
- Cn1.Close
- Set Cn1=Nothing
- Call CloseData()
- c.Write("操作:<input type=""submit"" name=""submit"" value=""删除"" /></form>")
- End Sub
- Private Sub Submit1()
- Dim SQL,ID,S_ID,i,a
- S_ID=Request.Form("ID")
- If S_ID="" Then
- Call xkon_Error("缺少操作对象")
- Else
- ID=Split(S_ID,",")
- Select Case Submit
- Case "通过审核"
- SQL="Update HuiFu Set ZhuangTai='1' Where"
- a="1"
- Case "待审"
- SQL="Update HuiFu Set ZhuangTai='0' Where"
- a="2"
- Case "删除"
- SQL="Delete From HuiFu Where"
- a="3"
- End Select
- 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()
- Conn.Execute(SQL)
- Select Case a
- Case "1"
- Call JiLu("将回复通过审核"&s.Form("ID"))
- Case "2"
- Call JiLu("将回复设为未审核"&s.Form("ID"))
- Case "3"
- Call JiLu("将回复删除"&s.Form("ID"))
- End Select
- Call CloseData()
- End If
- End Sub
- Call H_Title("回复管理")
- Dim Submit
- Submit=s.Form("Submit")
- If Submit<>"" Then
- Call Submit1()
- End If
- Call LieBiao()
- Call H_End()
- Set c=Nothing
- Set s=Nothing
- %>