add_all_slly.jsp
上传用户:zdly666
上传日期:2022-08-09
资源大小:6511k
文件大小:8k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

JavaScript

  1. <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
  2. <%@ include file="conn.jsp"%>
  3. <% 
  4. String condition="select * from manage";
  5. rs=stmt.executeQuery(condition);
  6. rs.next();
  7. %>
  8. <html>
  9. <head>
  10. <link rel="stylesheet" href="style.css" type="text/css">
  11. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  12. <title><%=rs.getString("title")%></title>
  13. <link href="style.css" rel="stylesheet" type="text/css">
  14. <style type="text/css">
  15. <!--
  16. .style1 {font-family: "宋体"}
  17. .style2 {font-size: 9px}
  18. .style3 {color: #9999CC; text-decoration: none; font-family: "宋体";}
  19. .style4 {font-size: 9pt}
  20. .style5 {color: #999999}
  21. .style6 {font-family: "宋体"; color: #999999; }
  22. .style7 {color: #FF0000}
  23. .style8 {font-family: Tahoma}
  24. a.rights:link {
  25. COLOR: #000000;
  26. TEXT-DECORATION: none;
  27. }
  28. a.rights:visited {
  29. COLOR: #000000;
  30. TEXT-DECORATION: none;
  31. }
  32. a.rights:hover {
  33. COLOR: #FF0000;  
  34. TEXT-DECORATION: none;
  35. }
  36. .style9 {
  37. font-size: 9pt;
  38. color: #FF0000;
  39. font-weight: bold;
  40. }
  41. -->
  42. </style>
  43. </head>
  44. <body background="img/beijing.gif" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
  45. <table width="650" border="0" align="center" cellpadding="0" cellspacing="0" class="tittle0">
  46.   <tr>
  47.     <td width="389" align="center" valign="middle"><img src="img/toplogo11.gif" width="389" height="150"></td>
  48.     <td width="66" background="img/toplogobg.jpg">&nbsp;</td>
  49.     <td width="195"><img src="img/toplogo2.jpg" width="203" height="150"></td>
  50.   </tr>
  51. </table>
  52. <table width="650" border="0" align="center" cellpadding="0" cellspacing="0" class="tittle1">
  53.   <tr>
  54.     <td height="26" background="img/bg.gif"><table width="100%" height="15" border="0" cellpadding="0" cellspacing="0">
  55.       <tr align="center">
  56.         <td class="font0"><span class="font0">版主:</span><font color="#006699"><%=rs.getString("adminname")%></font></td>
  57.         <td class="font0"><a href="login.jsp">管理员登陆</a> </td>
  58.         <td class="font0"><a href="Index.jsp" class="font0">个人简介</a>  <a href="add.jsp" class="font0"> </a></td>
  59.         <td class="font0"><a href="add.jsp" class="font0">给我留言</a></td>
  60.         <td class="font0"> <font color="#000099"> <span> <a href="news.jsp" class="font0">新闻系统</a></span><font color="#000099"> </font><font color="#000099"> </font></font></td>
  61.         <td class="font0"><font color="#000099"><a href="Picture1.jsp"  class="font0">个人相册</a></font></td>
  62.       </tr>
  63.     </table></td>
  64.   </tr>
  65. </table>
  66. <p>
  67. </p>
  68. <% 
  69. String condition2="select * from users order by id DESC";
  70. rs=stmt.executeQuery(condition2);
  71. int intPageSize; 
  72. int intRowCount; 
  73. int intPageCount; 
  74. int intPage; 
  75. String strPage;
  76. int i;
  77. intPageSize = 8;
  78. strPage = request.getParameter("page");
  79. if(strPage==null){
  80. intPage = 1;
  81. }
  82. else
  83. {
  84. intPage = Integer.parseInt(strPage);
  85. if(intPage<1){ intPage = 1;}
  86. }
  87. rs.last(); 
  88. intRowCount = rs.getRow(); 
  89. intPageCount =(intRowCount+intPageSize-1) / intPageSize;
  90. if(intPage>intPageCount) intPage = intPageCount;
  91. if(intPageCount>0){
  92. rs.absolute((intPage-1) * intPageSize+1); 
  93. i = 0; 
  94. while(i< intPageSize && !rs.isAfterLast())
  95. {
  96. String MessageID=rs.getString("id");
  97. String name=rs.getString("name");
  98. String content=rs.getString("content");
  99. String qq=rs.getString("qq");
  100. String email=rs.getString("email");
  101. String http=rs.getString("http");
  102. String time=rs.getString("time");
  103. String ip=rs.getString("ip");
  104. String sex=rs.getString("sex");
  105. String recontent=rs.getString("recontent");
  106. %>
  107. <table width="650" border="0" cellspacing="0" cellpadding="0" align="center" style="word-break:break-all">
  108.   <tr> 
  109.     <td width="81" height="10"><img src="img/top1.gif" width="81" height="22"></td>
  110.     <td width="575" background="img/top2.gif">&nbsp;</td>
  111.     <td width="1"><img src="img/top3.gif" width="47" height="22"></td>
  112.   </tr>
  113.   <tr> 
  114.     <td colspan="3" align="center" bgcolor="#FFFFFF" class="tittle2"><table width="100%" height="28" border="0" cellpadding="0" cellspacing="0" background="img/bg.gif" class="tittle3">
  115.         <tr> 
  116.           <td width="4%" align="center"><img src="img/topicnew.gif" width="16" height="18"></td>
  117.           <td width="39%"><span class="style2"><span class="style4"><span class="style7"><%=name%><span style="font-family: &quot;??&quot;;" #invalid_attr_id="none"></span></span><span class="style3">留言于</span><font color="#000099"><font color="#FF0000"><%=time%>&nbsp;&nbsp;</font></font></span></span></td>
  118.           <td width="39%"><span class="style4"><font color="#000099">IP:</font><font color="#FF0000"><%=rs.getString("ip")%></font></span></td>
  119.           <td width="3%"><a href="<%=http%>" target="_blank"><img src="img/icon_homepage.gif" alt="<%=name%>的主页" width="16" height="16" border="0"></a></td>
  120.           <td width="3%"><a href="http://search.tencent.com/cgi-bin/friend/user_show_info?ln=<%=qq%>" target="_blank"><img src="img/icon_editor_oicq.gif" alt="<%=name%>的QQ是:<%=qq%>" width="16" height="16" border="0"></a></td>
  121.           <td width="3%"><a href="mailto:<%=email%>"><img src="img/icon_email.gif" alt="<%=name%>的Email是:<%=email%>" width="16" height="16" border="0"></a></td>
  122.           <td width="3%"><a href="add_return_ly.jsp?id=<%=MessageID%>"><img src="img/icon_reply_topic.gif" width="16" height="16" border="0" alt="回复该留言[只有版主才有的权利]"></a></td>
  123.           <td width="3%"><a href="add_edit.jsp?id=<%=MessageID%>"><img src="img/icon_edit_topic.gif" width="16" height="16" border="0" alt="编辑该留言[只有版主才有的权利]"></a></td>
  124.           <td width="3%"><a href="add_delete.jsp?id=<%=MessageID%>"><img src="img/icon_delete_reply.gif" alt="删除该留言[只有版主才有的权利]" width="16" height="16" border="0"></a></td>
  125.         </tr>
  126.         <tr></tr>
  127.       </table>
  128.       <table width="100%" border="0" cellspacing="0" cellpadding="0">
  129.         <tr> 
  130.           <td width="100" height="92" align="center" valign="top"> <table width="100%" border="0" cellspacing="3" cellpadding="0">
  131.             <tr>
  132.               <td align="center"><img src="img/<%=sex%>.gif"></td>
  133.             </tr>
  134.             <tr>
  135.               <td align="center"><span class="style4"><%=name%></span></td>
  136.             </tr>
  137.           </table></td>
  138.           <td width="423"><span class="style4"><%=content %></span></td>
  139.         </tr>
  140.         <tr align="center"> 
  141.           <td colspan="2" valign="top"><img src="images/bg_4.gif" width="100%" height="1"></td>
  142.         </tr>
  143.         <tr> 
  144.           <td colspan="2" height="20"><font color="#006699">  <img src="img/locktop.gif" width="15" height="15" align="absmiddle"></font><span class="font0"><span class="style1">版主回复:<span class="style6"></span></span><span class="style5"><%=recontent%></span></span></td>
  145.         </tr>
  146.       </table></td>
  147.   </tr>
  148. </table>
  149. <table border="0" width="650" cellspacing="0" cellpadding="0" height="7" align="center">
  150.   <tr> 
  151.     <td width="2%" align="center"><img src="img/end1.gif" width="12" height="14"></td>
  152.     <td width="89%" align="center" background="img/end2.gif"></td>
  153.     <td width="9%" align="center"><img src="img/end3.gif" width="65" height="14"></td>
  154.   </tr>
  155.  
  156. </table>
  157. <p> 
  158.   <% 
  159.   
  160. rs.next(); 
  161.    i++; 
  162.   } 
  163.   }
  164. rs.close();
  165. stmt.close(); 
  166. conn.close();
  167. %>
  168. </p>
  169. <p>  
  170. </p>
  171. <table width="650" border="0" align="center" cellpadding="0" cellspacing="1" class="tittle0">
  172.   <tr>
  173.     <td height="28" align="center" background="img/bg.gif" class="font0 style1">当前显示第<span class="style7"> <%=intPage%></span> 页&nbsp;&nbsp; 共 <%=intPageCount%> 页 &nbsp;&nbsp;&nbsp;&nbsp;导航:<a href="add_all_slly.jsp?page=1" class="font0">首页</a>
  174.       <%if(intPage>1){%>
  175.       <a href="add_all_slly.jsp?page=<%=intPage-1%>" class="font0">上一页</a>
  176.       <%}else{%>
  177. 上一页
  178. <%
  179.   }%>
  180.  
  181. <%if(intPage<intPageCount){%>
  182. <a href="add_all_slly.jsp?page=<%=intPage+1%>" class="font0">下一页</a>
  183. <%}else{%>
  184. 下一页
  185. <%
  186.   }%>
  187. <a href="add_all_slly.jsp?page=<%=intPageCount%>" class="font0">尾页</a> </td>
  188.   </tr>
  189. </table>
  190. <table width="650" border="0" align="center" cellpadding="0" cellspacing="0">
  191.   <tr>
  192.     <td align="center"><p class="style4 style8"><a href="http://jorwoo.yeah.net" target="_blank" class="rights">周亚平</a>&nbsp;&nbsp; 版权所有 <br>
  193. 程序设计:周亚平&nbsp;&nbsp; E-mail: <a href="mailto:zhouyaping1986@126.com" class="rights">zhouyaping1986@126.com</a><br>
  194. QQ:153589840</p>    </td>
  195.   </tr>
  196. </table>