% dim strFileName const MaxPerPage=15 dim totalPut,CurrentPage,TotalPages dim i,j dim ArticleID dim Title dim sql,rs dim BigClassName,SmallClassName,SpecialName dim PurviewChecked dim strAdmin,arrAdmin PurviewChecked=false strFileName=Request.ServerVariables("admin/SCRIPT_NAME")&"?" if request("page")<>"" then currentPage=cint(request("page")) else currentPage=1 end if bigid=request("bigid") if request("Action")="passed" then if bigid<>"" then if request("act")="clock" then sql="Update [huanping] set passed=true where id=" & CLng(bigid) else sql="Update [huanping] set passed=false where id=" & CLng(bigid) end if conn.Execute sql call CloseConn() end if response.redirect "?page="¤tPage end if if request("Action")="Del" then sql="delete from huanping where id=" &bigid& "" conn.Execute sql end if sql="select * from huanping where id>0" sql=sql & " order by id desc" Set rs= Server.CreateObject("ADODB.Recordset") rs.open sql,conn,1,1 %>
| 管 理 |
| 姓名 | 联系地址或单位 | 留言日期 | 状态 | 操 作 | |
| <%=rs("Name")%> | <%=rs("address")%> | <%=rs("email")%> | <%=rs("Time")%> | <%if rs("passed")<>0 then %> &page=<%=currentPage%>&Action=passed&act=notclock">显示<%else%>&page=<%=currentPage%>&Action=passed&act=clock">未显示<%end if%> | ">查看 &Action=Del" onClick="return ConfirmDel();">删除 |