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

Applet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=GB2312"%>
  2. <%@ page import="java.sql.*,java.lang.*"%>
  3. <jsp:useBean id="project_newPageBean" class="MyFly.Bean.project_newPageBean" scope="request"/>
  4. <STYLE type=text/css>
  5. BODY {
  6. BACKGROUND: #799ae1; FONT: 9pt 宋体; MARGIN: 0px
  7. }
  8. TABLE {
  9. BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: 0px
  10. }
  11. TD {
  12. FONT: 12px 宋体
  13. }
  14. IMG {
  15. BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: 0px; VERTICAL-ALIGN: bottom
  16. }
  17. A {
  18. COLOR: #000000; FONT: 12px 宋体; TEXT-DECORATION: none
  19. }
  20. A:hover {
  21. COLOR: #428eff; TEXT-DECORATION: underline
  22. }
  23. .sec_menu {
  24. BACKGROUND: #d6dff7; BORDER-BOTTOM: white 1px solid; BORDER-LEFT: white 1px solid; BORDER-RIGHT: white 1px solid; OVERFLOW: hidden
  25. }
  26. .menu_title {
  27. }
  28. .menu_title SPAN {
  29. COLOR: #215dc6; FONT-WEIGHT: bold; LEFT: 8px; POSITION: relative; TOP: 2px
  30. }
  31. .menu_title2 {
  32. }
  33. .menu_title2 SPAN {
  34. COLOR: #428eff; FONT-WEIGHT: bold; LEFT: 8px; POSITION: relative; TOP: 2px
  35. }
  36. .style1 {color: #FF0000}
  37. </STYLE>
  38. <script language="javascript" src="../js/column.js"></script>
  39. <html>
  40. <head>
  41. <title>事业新闻</title>
  42. <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
  43. </head>
  44. <body>
  45. <p>&nbsp;</p>
  46. <table width="595" height="2%" border="0" align="center" cellpadding="0" cellspacing="0">
  47.   <tr> 
  48.     <td height="33" align="center"><span class="style1">事业新闻管理</span></td>
  49.   </tr>
  50. </table>
  51. <table width="637" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
  52.       <tr valign="middle" bgcolor="#799ae1">
  53.     <td width="337" height="29" align="center"><font color="#FFFFFF">文章标题</font></td>
  54.         <td width="138" height="29" align="center"><font color="#FFFFFF">添加时间</font></td>
  55.         
  56.         <td width="79" align="center"><font color="#FFFFFF">编辑</font></td>
  57.         <td width="73" align="center"><font color="#FFFFFF">删除</font></td>
  58.       </tr>
  59.       <%
  60.       int size=15;
  61.       String strNum=request.getParameter("pageNum");
  62.   int cur;
  63.   project_newPageBean.init(size);
  64.   int pageNum=project_newPageBean.get_pageCount(); //取得总页数
  65.       if(strNum == null || strNum.equals(""))
  66.   {
  67.        cur=1;
  68.   }
  69.   else
  70.   {
  71.            cur=Integer.parseInt(strNum);//取得要显示的页
  72.   }
  73.   
  74.   if(cur < 1)
  75.   {
  76.      cur = 1;
  77.   }
  78.   if(cur > pageNum)
  79.   {
  80.      cur = pageNum;
  81.   }
  82.   project_newPageBean.get_pageRow(cur);
  83.   
  84.   for(int i=0; i<project_newPageBean.getItems(); i++)
  85.   {
  86.  %>
  87.       <tr>
  88.      <td height="28" align="center">&nbsp;<%=project_newPageBean.getTitle(i)%></td>
  89.         <td height="28" align="center">&nbsp;<%=project_newPageBean.getAppendTime(i)%></td>
  90.         
  91.         <td width="79" align="center"><a href="product_newEdit.jsp?index=<%=project_newPageBean.getID(i)%>"><img src="../images/admin/edit.gif" alt="" width="19" height="18" border="0"></a></td>
  92.         <td width="73" align="center"><a href="product_newDel.jsp?index=<%=project_newPageBean.getID(i)%>"><img src="../images/admin/del.gif" alt="" width="16" height="16" border="0"></a></td>
  93.       </tr>
  94.       <%
  95. }
  96. %>
  97.     </table>
  98. <br>
  99. &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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="project_newView.jsp?pageNum=<%=1%>">首页 
  100.      <a href="project_newView.jsp?pageNum=<%=cur-1 %>">上一页</a> &nbsp;
  101.  
  102.      <a href="project_newView.jsp?pageNum=<%=cur+1 %>">下一页</a> 
  103.   
  104. <a href="project_newView.jsp?pageNum=<%=pageNum%>">尾页</a>&nbsp;页次:<font color="#FF0000"><%=cur%></font><%=pageNum%><form name="form1" method="post" action="project_newAdd.jsp">
  105.                       &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;&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;&nbsp;&nbsp;&nbsp;&nbsp;
  106.                       <input type="submit" name="Submit" value="添加">
  107.                     </form>
  108. <p>&nbsp;</p>
  109. <%@ page contentType="text/html; charset=GB2312"%>
  110. <p>&nbsp; </p>
  111. </body>
  112. </html>