Ku_msg.asp
Upload User: pengwei803
Upload Date: 2021-02-10
Package Size: 3311k
Code Size: 5k
Development Platform:

HTML/CSS

  1. <!--#include file="../Ku_inc/Ku_sql.asp"-->
  2. <!--#include file="../Ku_inc/Ku_config.asp"-->
  3. <!--#include file="Ku_conn.asp"-->
  4. <!--#include file="../Ku_inc/Ku_md5.asp"-->
  5. <!--#include file="../Ku_inc/inc.asp"-->
  6. <!-- #include file="Session.asp"-->
  7. <html>
  8. <head>
  9. <title>内容列表</title>
  10. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  11. <link href="include/style.css" rel="stylesheet" type="text/css">
  12. <style type="text/css">
  13. <!--
  14. input{
  15. height:22px;
  16. border:1px solid #BEBEBE;
  17. background-color:#FFF;
  18. padding-top: 2px;
  19. padding-right: 8px;
  20. padding-bottom: 0pt;
  21. padding-left: 3px;
  22. }
  23. -->
  24. </style>
  25. </head>
  26. <body>
  27. <script language="JavaScript" type="text/javascript">
  28. function checkall(form)
  29. {
  30. for (var i=0;i<form.elements.length;i++)    {
  31. var e = form.elements[i];
  32. if (e.name != 'chkall') e.checked = form.chkall.checked; 
  33. }
  34. }
  35. </script>
  36. <table width="94%" border="0" align="center" cellpadding="0" cellspacing="0">
  37.   <tr>
  38.   <td height="30" style="border: 1px solid #D0D4D9" bgcolor="#EEEEEE"><b> 当前栏目:&gt; </b>
  39. 短信咨询管理</td>
  40.   </tr>
  41. </table>
  42. <table width="95%" border="0" align="center" cellpadding="3" cellspacing="1">
  43.   <tr>
  44.     <td width="39%">
  45.       &nbsp;<input class="input_back" type="button" name="Submit1" value="管理首页"onclick="location.href='main.asp'"/></td>
  46. <form method="post" action="?" name="myKeyword">
  47.     <td width="60%">
  48.     <div align="right">搜索:
  49.         <input name="myKeyword" type="text" id="myKeyword" value="" style="WIDTH:30%" maxlength="50">
  50.         <input type="submit" name="Submit" value="搜索(S)" class="input_back">
  51.     </div>
  52.     </td>
  53.     </form>
  54.   </tr>
  55. <form action="Deal_msg.asp?action=del" method=post name="thisform">
  56. <tr>
  57. <td colspan="2"><table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="cecfce">
  58. <tr>
  59. <td width="30" bgcolor="e7ebef" style="font-weight: bold"><div align="center">操作</div></td>  
  60. <td height="25" bgcolor="e7ebef" style="font-weight: bold">标题</td>
  61. <td width="125" bgcolor="e7ebef" style="font-weight: bold"><div align="center">
  62. 咨询人</div></td>
  63. <td width="125" bgcolor="e7ebef" style="font-weight: bold"><div align="center">日期</div></td>
  64. <td width="80" bgcolor="e7ebef" style="font-weight: bold"><div align="center">操作</div></td>
  65. <%
  66. set rs=server.createobject("adodb.recordset")
  67. sql="select * from Ku_msg where 1=1 "
  68. if not (Trim(Request("pageID"))="" or isempty(Trim(Request("pageID"))) ) then
  69. sql=sql&" and pageID="&clng(Request("pageID"))&""
  70. end if
  71. if not (Trim(Request("myKeyword"))="" or isempty(Trim(Request("myKeyword"))) ) then
  72. sql=sql&" and (title like '%" & Trim(Request("myKeyword")) & "%' or content like  '%" & Trim(Request("myKeyword")) & "%')"
  73. end if
  74. sql=sql&" order by addtime desc"
  75. 'response.write sql
  76. 'response.End
  77. rs.open sql,conn,1,1
  78. dim a
  79. Set a=New PageList
  80. listLimit=15
  81. '模拟分页一页显示分页数
  82. pageLists=5
  83. '设置分页参数
  84. If rs.BOF or rs.EOF Then 
  85. %>
  86. </tr>
  87. <tr bgcolor="#C6E3F4">
  88.   <td height="28" colspan="6" align="center" bgcolor="#FFFFFF">暂无记录!</td>
  89.   </tr>
  90. <%
  91. else
  92. '分页循环开始
  93. totalList=rs.recordcount
  94. a.InitPara=array(totalList,listLimit,pageLists)
  95. a.PageList()
  96. rs.pagesize=listLimit
  97. page = request("page")
  98. If page="" Then
  99. page=1
  100. End If
  101. rs.absolutepage = page
  102. for i=1 to rs.pagesize
  103. %>
  104. <tr bgcolor="#ffffff" onMouseOver='this.style.backgroundColor="#F6f6f6"' 
  105. onMouseOut='this.style.backgroundColor="#FAFAFA"'>
  106. <td height="28" align="center"><input type="checkbox" name="ID" value="<%=Trim(rs("ID"))%>"></td>
  107. <td><%=Trim(rs("title"))%></td>
  108. <td align="center"><%=rs("name")%></td>
  109. <td align="center"><%=Trim(rs("addtime"))%></td>
  110. <td align="center">
  111. <%if rs("huifu")=1 then%>[<font color="#FF0000">已回复</font>]<%else%>
  112. <a href="deal_msg.asp?action=huifu&id=<%=rs("id")%>">[未回复]</a>
  113. <%end if%>
  114. </td>
  115. </tr>
  116. <%
  117. rs.movenext
  118. if rs.eof then exit for
  119. next
  120. end if
  121. %>
  122. </table></td>
  123.   </tr>
  124.   <tr>
  125.     <td colspan="2"><div align="right">
  126.           <input type=checkbox name=chkall value=on onClick="checkall(this.form)">全部选中<input type=submit name=action onClick="{if(confirm('确定删除选定的纪录吗?')){this.document.thisform.submit();return true;}return false;}" value="批量删除(D)" class="input_back">
  127.     </div></td>
  128.   </tr>
  129.   <tr>
  130.     <td colspan="2"><%=a.PageInfo%></td>
  131.   </tr>
  132.   <tr>
  133.     <td colspan="2"></td>
  134.   </tr>
  135.  </form>
  136. </table>
  137. <%
  138. rs.close
  139. set rs=nohing
  140. %>
  141. <hr/>
  142. <br>
  143. <p align="center"><!-- #include file="Ku_bottom.asp"--></p>
  144. </body>
  145. </html>