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

📄 glguestbook.asp

📁 软件信息如下: 软件名称:郑州聚鑫打包带厂网站源代码免费版 软件版本:V2008 建议分类:企业网站 联系EMAIL:hzy174@126.com 客服Q Q:908997410
💻 ASP
字号:
<% myself=request.servervariables("path_info")%>
<!--#include file="../inc/conn.asp" -->
<!--#include file="checkadmin_top.asp" -->
<% if request("submit")="删除选中的信息" then
for each k in request("sel")
CommandText="delete from guestbook where id="&k&""
Conn.Execute (CommandText)
next
end if
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../inc/test.css" type="text/css">
<script language="JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="100%" border="0" cellspacing="0" cellpadding="5">
  <tr> 
    <td align="center" bgcolor="#f1f1f1">反馈信息列表</td>
  </tr>
  <tr> 
    <td> 
      <%
set rs=Server.CreateObject("Adodb.RecordSet")
	  sql="select id,guesttitle,senddate,cl from guestbook order by id desc"
	  rs.open sql,conn,3,3
if rs.eof then
response.write""
else
rs.Pagesize=20
page=clng(request("page"))

if page<1 or page=empty then page=1
if page>rs.pagecount then page=rs.pagecount
rs.Absolutepage=page
%>
      <form name="form1" method="post" action="">
        <table width="100%" border="0" cellspacing="0" cellpadding="5">
          <tr> 
            <td width="10%">&nbsp;</td>
            <td align="center" width="50%">信息类型</td>
            <td align="center" width="20%">反馈时间</td>
            <td align="center">操作管理</td>
            <td align="center" width="10%">信息状态</td>
          </tr>
        </table>
        <table width="100%" border="0" cellspacing="1" cellpadding="5" bgcolor="#000000">
          <%do while not rs.eof%>
          <tr bgcolor="#FFFFFF"> 
            <td width="10%" bgcolor="#FFFFFF" align="center"> 
              <input type="checkbox" name="sel" value="<%=rs("id")%>">
            </td>
            <td width="50%">&nbsp;&nbsp;&nbsp;&nbsp;<%=rs("guesttitle")%></td>
            <td width="20%" align="center"><%=rs("senddate")%></td>
            <td align="center"><a href=viewguestbook.asp?id=<%=rs("id")%> onMouseDown="MM_openBrWindow('viewguestbook.asp?id=<%=rs("id")%>','','width=600,height=300')">查看详情</a></td>
            <td align="center" width="10%"><%if rs("cl")=false then
			response.write"未读"
			else
			response.write"已读"
			end if%></td>
          </tr>
          <%i=i+1
	  if i>20 then exit do
		rs.movenext
		loop
		%>
        </table>
        <br>
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr> 
            <td align="center"> 
              <input type="submit" name="Submit" value="删除选中的信息">
              &nbsp;&nbsp; 
              <%
if page<>1 then %>
              <a href=<%=myself%>?page=1>第一页</a> 
              <a href=<%=myself%>?page=<%=(page-1)%>>上一页</a> 
              <%
end if
if page<>rs.pagecount then
%>
              <a href=<%=myself%>?page=<%=(page+1)%>>下一页</a> 
              <a href=<%=myself%>?page=<%=rs.pagecount%>>最后一页</a> 
              <% end if %>
              <font style="font-size:9pt">&nbsp;</font><font style="font-size:9pt">页次:</font><font color=red style="font-size:9pt"><%=page%>/<%=rs.pagecount%></font> 共有记录<font color=red style="font-size:9pt"><%=rs.recordcount %></font>条</td>
          </tr>
        </table>
      </form>
    </td>
  </tr>
</table>
<%
end if%>
</body>
</html>
<!--#include file="checkadmin_bottom.asp" -->

⌨️ 快捷键说明

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