manange_new.jsp
上传用户:yatiankong
上传日期:2014-05-16
资源大小:5604k
文件大小:8k
源码类别:

Applet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312"%>
  2. <%@ page import="java.sql.*,ntsky.admin.article.*"%>
  3. <jsp:useBean id="Pagination" class="ntsky.common.Pagination"/>
  4. <%
  5. Article aie = new Article();
  6. int curPages = Pagination.curPages(Pagination.strPage(request,"page"));
  7. Pagination.setRows(10);//每页显示10条
  8. int totalPages = Pagination.getPages(aie.sum());//取出总页数
  9. %>
  10. <html>
  11. <head>
  12. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  13. <title>修改文章</title>
  14. <link rel="stylesheet" href="../../css/admin.css" type="text/css">
  15. </head>
  16. <STYLE type=text/css>
  17. BODY {
  18. BACKGROUND: #799ae1; FONT: 9pt 宋体; MARGIN: 0px
  19. }
  20. TABLE {
  21. BORDER-LEFT: 0px; BORDER-TOP: 0px
  22. }
  23. TD {
  24. FONT: 12px 宋体;
  25. border-bottom-color: #CCFFFF;
  26. border-left-style: none;
  27. }
  28. IMG {
  29. BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: 0px; VERTICAL-ALIGN: bottom
  30. }
  31. A {
  32. COLOR: #000000; FONT: 12px 宋体; TEXT-DECORATION: none
  33. }
  34. A:hover {
  35. COLOR: #428eff; TEXT-DECORATION: underline
  36. }
  37. .sec_menu {
  38. BACKGROUND: #d6dff7; BORDER-BOTTOM: white 1px solid; BORDER-LEFT: white 1px solid; BORDER-RIGHT: white 1px solid; OVERFLOW: hidden
  39. }
  40. .menu_title {
  41. }
  42. .menu_title SPAN {
  43. COLOR: #215dc6; FONT-WEIGHT: bold; LEFT: 8px; POSITION: relative; TOP: 2px
  44. }
  45. .menu_title2 {
  46. }
  47. .menu_title2 SPAN {
  48. COLOR: #428eff; FONT-WEIGHT: bold; LEFT: 8px; POSITION: relative; TOP: 2px
  49. }
  50. .style1 {color: #FF0000}
  51. </STYLE>
  52. <body>
  53. <p>&nbsp;</p>
  54. <table width="696" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
  55. <tr><td><div align="center" class="style1">产品分享管理</div></td>
  56. </tr>
  57. </table>
  58. <table width="696" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
  59.   <form action="search.jsp" method="post"> 
  60.   <tr>
  61.       <td height="28" align="left" class="title">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;查找文章:&nbsp;&nbsp; 
  62.         <input type="text" name="search" size="20">&nbsp;&nbsp;
  63.       <input type="submit" value="Search"></td>
  64.   </tr>
  65.   </form>
  66. </table>
  67. <br>
  68. <table width="696" border="0" align="center" cellpadding="0" cellspacing="0">
  69.   <tr> 
  70.     <td height="73"><table width="696" height="12%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
  71.         <tr align="center"> 
  72.           <td width="71%" height="32">文章题目(加入时间)(成功分享)</td>
  73.           <td width="10%">点击次数</td>
  74.           <td width="10%">编辑</td>
  75.           <td width="9%">删除</td>
  76.         </tr>
  77.         <%
  78. if((aie.sum()) > 0){
  79. ResultSet rs = Pagination.getPageSet(aie.rs_title(),curPages);
  80. int i=1;//变量获得每页显示的条数
  81. while(rs.next()){
  82. %>
  83.         <tr align="center"> 
  84.           <td height="28"> <table width="100%" height="27" border="0" cellpadding="0" cellspacing="0">
  85.               <tr> 
  86.                 <td width="67%" height="27" align="center"><a href="../../news/listarticle.jsp?articleid=<%=rs.getString("articleid")%>"><%=rs.getString("title")%></a></td>
  87.                 <td width="33%" align="center"><%=rs.getString("date")%></td>
  88.               </tr>
  89.             </table></td>
  90.           <td height="28"> <%=rs.getString("hits")%> </td>
  91.           <td height="28"><a href=editarticle.jsp?articleid=<%=rs.getString("articleid")%>><img src="../images/admin/edit.gif" alt="编辑栏目" width="19" height="18" border="0"></a></td>
  92.           <td height="28"><a href="delarticle.jsp?articleid=<%=rs.getString("articleid")%>"><img src="../images/admin/del.gif" width="16" height="16" border="0"></a></td>
  93.         </tr>
  94.         <tr align="center">
  95.           <td height="32">文章题目(加入时间)(事业介绍)</td>
  96.           <td>点击次数</td>
  97.           <td>编辑</td>
  98.           <td>删除</td>
  99.         </tr>
  100.         <tr align="center">
  101.           <td height="28">
  102.             <table width="100%" height="27" border="0" cellpadding="0" cellspacing="0">
  103.               <tr>
  104.                 <td width="67%" height="27" align="center"><a href="../../news/listarticle.jsp?articleid=<%=rs.getString("articleid")%>"><%=rs.getString("title")%></a></td>
  105.                 <td width="33%" align="center"><%=rs.getString("date")%></td>
  106.               </tr>
  107.           </table></td>
  108.           <td height="28"> <%=rs.getString("hits")%> </td>
  109.           <td height="28"><a href=editarticle.jsp?articleid=<%=rs.getString("articleid")%>><img src="../images/admin/edit.gif" alt="编辑栏目" width="19" height="18" border="0"></a></td>
  110.           <td height="28"><a href="delarticle.jsp?articleid=<%=rs.getString("articleid")%>"><img src="../images/admin/del.gif" width="16" height="16" border="0"></a></td>
  111.         </tr>
  112.         <tr align="center">
  113.           <td height="32">文章题目(加入时间)(事业新闻)</td>
  114.           <td>点击次数</td>
  115.           <td>编辑</td>
  116.           <td>删除</td>
  117.         </tr>
  118.         <tr align="center">
  119.           <td height="28">
  120.             <table width="100%" height="27" border="0" cellpadding="0" cellspacing="0">
  121.               <tr>
  122.                 <td width="67%" height="27" align="center"><a href="../../news/listarticle.jsp?articleid=<%=rs.getString("articleid")%>"><%=rs.getString("title")%></a></td>
  123.                 <td width="33%" align="center"><%=rs.getString("date")%></td>
  124.               </tr>
  125.           </table></td>
  126.           <td height="28"> <%=rs.getString("hits")%> </td>
  127.           <td height="28"><a href=editarticle.jsp?articleid=<%=rs.getString("articleid")%>><img src="../images/admin/edit.gif" alt="编辑栏目" width="19" height="18" border="0"></a></td>
  128.           <td height="28"><a href="delarticle.jsp?articleid=<%=rs.getString("articleid")%>"><img src="../images/admin/del.gif" width="16" height="16" border="0"></a></td>
  129.         </tr>
  130.         <tr align="center">
  131.           <td height="32">文章题目(加入时间)(经营之道)</td>
  132.           <td>点击次数</td>
  133.           <td>编辑</td>
  134.           <td>删除</td>
  135.         </tr>
  136.         <tr align="center">
  137.           <td height="28">
  138.             <table width="100%" height="27" border="0" cellpadding="0" cellspacing="0">
  139.               <tr>
  140.                 <td width="67%" height="27" align="center"><a href="../../news/listarticle.jsp?articleid=<%=rs.getString("articleid")%>"><%=rs.getString("title")%></a></td>
  141.                 <td width="33%" align="center"><%=rs.getString("date")%></td>
  142.               </tr>
  143.           </table></td>
  144.           <td height="28"> <%=rs.getString("hits")%> </td>
  145.           <td height="28"><a href=editarticle.jsp?articleid=<%=rs.getString("articleid")%>><img src="../images/admin/edit.gif" alt="编辑栏目" width="19" height="18" border="0"></a></td>
  146.           <td height="28"><a href="delarticle.jsp?articleid=<%=rs.getString("articleid")%>"><img src="../images/admin/del.gif" width="16" height="16" border="0"></a></td>
  147.         </tr>
  148.         <%
  149. i=i+1;
  150. if(i>10)
  151. break;
  152. }
  153. rs.close();
  154. %>
  155.         <%}else{%>
  156.         <tr align="center"> 
  157.           <td height="27" colspan="4" class="title"><div align="left"></div></td>
  158.         </tr>
  159.         <%}%>
  160.       </table></td>
  161.   </tr>
  162.   <tr> 
  163.     <td height="31"> 
  164.       <table width="100%" cellpadding="0" cellspacing="0">
  165.         <tr> 
  166.           <td width="62%" height="29">&nbsp;</td>
  167.           <td width="21%" align="center" valign="bottom"> 
  168.             <%if(curPages>1){%>
  169.             <a href="article.jsp?page=<%=curPages-1%>"><img src="../images/prev.gif" width="36" height="11" border="0"></a> 
  170.             <%}%>
  171.           </td>
  172.           <td width="17%" valign="bottom"> 
  173.             <%if(curPages<totalPages){%>
  174.             <a href="article.jsp?page=<%=curPages+1%>"><img src="../images/next.gif" width="36" height="11" border="0"></a> 
  175.             <%}%>
  176.           </td>
  177.         </tr>
  178.       </table></td>
  179.   </tr>
  180. </table>
  181. <%aie.close();%>
  182. <p>&nbsp;</p>
  183. </body>
  184. </html>