Pinke_list.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="30%">
  45.       <input class="input_back" type="button" name="Submit" value="拼客分类"onclick="location.href='pinke_kind.asp'"/>      
  46. <input class="input_back" type="button" name="Submit1" value="添加拼客"onclick="location.href='Pinke_add.asp'"/>
  47. <input class="input_back" type="button" name="Submit0" value="管理首页"onclick="location.href='main.asp'"/></td>
  48.     <td width="30%">
  49.      <p align="center"> </td>
  50. <form method="post" action="?" name="myKeyword">
  51.     <td width="40%">
  52.     <div align="right">搜索:
  53.         <input name="myKeyword" type="text" id="myKeyword" value="" style="WIDTH:30%" maxlength="50">
  54.         <input type="submit" name="Submit" value="搜索(S)" class="input_back">
  55.     </div>
  56.     </td>
  57.     </form>
  58.   </tr>
  59. <form action="deal_pinke.asp?action=del" method=post name="thisform">
  60. <tr>
  61. <td colspan="3"><table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="cecfce">
  62. <tr>
  63. <td width="30" bgcolor="e7ebef" style="font-weight: bold"><div align="center">操作</div></td>  
  64. <td height="25" bgcolor="e7ebef" style="font-weight: bold">标题</td>
  65. <td width="125" bgcolor="e7ebef" style="font-weight: bold"><div align="center">
  66. 拼客分类</div></td>
  67. <td width="125" bgcolor="e7ebef" style="font-weight: bold"><div align="center">日期</div></td>
  68. <td width="80" bgcolor="e7ebef" style="font-weight: bold"><div align="center">操作</div></td>
  69. <%
  70. set rs=server.createobject("adodb.recordset")
  71. if request.querystring("id")="" then
  72. sql="select * from Gu_pinke where 1=1"
  73. else
  74. sql="select * from Gu_pinke where pkind="&request.querystring("id")&" and 1=1"
  75. end if
  76. if not (Trim(Request("pageID"))="" or isempty(Trim(Request("pageID"))) ) then
  77. sql=sql&" and pageID="&clng(Request("pageID"))&""
  78. end if
  79. if not (Trim(Request("myKeyword"))="" or isempty(Trim(Request("myKeyword"))) ) then
  80. sql=sql&" and (title like '%" & Trim(Request("myKeyword")) & "%' or content like  '%" & Trim(Request("myKeyword")) & "%')"
  81. end if
  82. sql=sql&" order by addtime desc"
  83. 'response.write sql
  84. 'response.End
  85. rs.open sql,conn,1,1
  86. dim a
  87. Set a=New PageList
  88. listLimit=15
  89. '模拟分页一页显示分页数
  90. pageLists=5
  91. '设置分页参数
  92. If rs.BOF or rs.EOF Then 
  93. %>
  94. </tr>
  95. <tr bgcolor="#C6E3F4">
  96.   <td height="28" colspan="6" align="center" bgcolor="#FFFFFF">暂无记录!</td>
  97.   </tr>
  98. <%
  99. else
  100. '分页循环开始
  101. totalList=rs.recordcount
  102. a.InitPara=array(totalList,listLimit,pageLists)
  103. a.PageList()
  104. rs.pagesize=listLimit
  105. page = request("page")
  106. If page="" Then
  107. page=1
  108. End If
  109. rs.absolutepage = page
  110. for i=1 to rs.pagesize
  111. %>
  112. <tr bgcolor="#ffffff" onMouseOver='this.style.backgroundColor="#F6f6f6"' 
  113. onMouseOut='this.style.backgroundColor="#FAFAFA"'>
  114. <td height="28" align="center"><input type="checkbox" name="ID" value="<%=Trim(rs("ID"))%>"></td>
  115. <td><%=Trim(rs("title"))%> <%if rs("shenhe")=0 then%>[<a href="Deal_pinke.asp?action=shenhefl&id=<%=rs("id")%>"><font color="#FF0000">未审核</font></a>]<%end if%></td>
  116. <%
  117. cid=rs("pkind")
  118. set kurs=server.createobject("adodb.recordset")
  119.     csql="select * from Gu_pkind where id="&cid
  120.     kurs.open csql,conn,1,3
  121. %>
  122. <td align="center"><%=kurs("name")%></td>
  123. <td align="center"><%=Trim(rs("addtime"))%></td>
  124. <td align="center"><a href="Deal_Pinke.asp?action=tisheng&ID=<%=Trim(rs("ID"))%>">上移</a> <a href="Pinke_edit.asp?id=<%=rs("id")%>">编辑</a></td>
  125. </tr>
  126. <%
  127. rs.movenext
  128. if rs.eof then exit for
  129. next
  130. end if
  131. %>
  132. </table></td>
  133.   </tr>
  134.   <tr>
  135.     <td colspan="3"><div align="right">
  136.           <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">
  137.     </div></td>
  138.   </tr>
  139.   <tr>
  140.     <td colspan="3"><%=a.PageInfo%></td>
  141.   </tr>
  142.   <tr>
  143.     <td colspan="3"></td>
  144.   </tr>
  145.  </form>
  146. </table>
  147. <%
  148. rs.close
  149. set rs=nohing
  150. %>
  151. <hr/>
  152. <br>
  153. <p align="center"><!-- #include file="Ku_bottom.asp"--></p>
  154. </body>
  155. </html>