xmdb.jsp 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <%@ page language="java" contentType="text/html; charset=gbk" pageEncoding="gbk"%>
  2. <%@page import="com.ws.content.Wzbdao"%>
  3. <%@ include file="public/showcontent.jsp" %>
  4. <%@page import="com.ws.content.WzbVDao"%>
  5. <%@page import="com.ws.content.*"%>
  6. <%@ include file="public/config.jsp"%>
  7. <%@ include file="public/function.jsp"%>
  8. <%
  9. String path = request.getContextPath();
  10. String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  11. %>
  12. <%
  13. //文章的业务逻辑
  14. WzDao wdao = new WzDao();
  15. LmDao ldao = new LmDao();
  16. WzbVDao wzvdao = new WzbVDao();
  17. //栏目编号
  18. String lmids = request.getParameter("lmid");
  19. //通过栏目编号获取栏目对象
  20. Lmb lm = ldao.getLmbByLmid(lmids);
  21. if(lm==null){
  22. lm = new Lmb();
  23. }
  24. String lmmc = lm.getLmmc();//栏目名称
  25. String flmid = lm.getFlmid();//父栏目编号
  26. Lmb flm = ldao.getLmbByLmid(flmid);
  27. if(flm==null){
  28. flm = new Lmb();
  29. }
  30. String flmmc = flm.getLmmc();
  31. //分页开始
  32. int offset = 0; //当前页
  33. try{
  34. offset =Integer.parseInt(request.getParameter("offset"));
  35. }catch(Exception e){
  36. offset=0;
  37. }
  38. long rows_num = (long)wzvDao.getCountsAllWzb(lmids);//总记录数
  39. int page_size =20; //每页记录数
  40. pgDao.setInt_num(page_size);
  41. long Current_Page = offset; //当前页
  42. pgDao.Init(Current_Page, rows_num);
  43. int l_start = (int)pgDao.getStart();
  44. int l_end = (int)pgDao.getEnd();
  45. //分页设定结束
  46. %>
  47. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  48. <html xmlns="http://www.w3.org/1999/xhtml">
  49. <head>
  50. <meta http-equiv="Content-Type" content="text/html; charset=gbk" />
  51. <title>长春市城市发展投资控股(集团)有限公司</title>
  52. <link href="css/main.css" rel="stylesheet" type="text/css" />
  53. <style type="text/css">
  54. <!--
  55. .style3 {font-size: 12px}
  56. -->
  57. .zdgzb img{width:880px;height:auto;}
  58. </style>
  59. </head>
  60. <body>
  61. <table width="1200" border="0" align="center" cellpadding="0" cellspacing="0">
  62. <%@include file="top.jsp" %>
  63. <tr>
  64. <td height="5" bgcolor="#FFFFFF"></td>
  65. </tr>
  66. </table>
  67. <table width="1200" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  68. <tr>
  69. <td align="left" valign="top"><table width="1200" border="0" cellspacing="0" cellpadding="0">
  70. <tr>
  71. <td width="300" align="left" valign="top"><table width="300" border="0" cellspacing="0" cellpadding="0">
  72. <tr>
  73. <td height="45" align="center" valign="middle" background="images/jtjj_03.jpg" class="whitel_ti">集团重点项目督办</td>
  74. </tr>
  75. <tr>
  76. <td height="800" align="center" valign="top" background="images/jtjj_06.jpg" style="background-repeat:repeat-x"><table width="220" border="0" cellspacing="0" cellpadding="0" class="mt10">
  77. <tr>
  78. <td height="32" align="left" valign="middle" background="images/jtjj_09.jpg" class="left_wz">
  79. <a href="xmdb.jsp?lmid=10020001" >集团重点工作汇总</a>
  80. </td>
  81. </tr>
  82. <tr>
  83. <td height="32" align="left" valign="middle" background="images/jtjj_09.jpg" class="left_wz">
  84. <a href="xmdb-fzgs.jsp?lmid=10020001" >分子公司工作汇总</a>
  85. </td>
  86. </tr>
  87. <tr>
  88. <td height="8"></td>
  89. </tr>
  90. </table></td>
  91. </tr>
  92. </table></td>
  93. <td width="10" align="left" valign="top"></td>
  94. <td width="890" align="left" valign="top"><table width="890" border="0" cellspacing="0" cellpadding="0" class="borlm">
  95. <tr>
  96. <td height="29" align="center" valign="middle" background="images/index_19.jpg"><table width="98%" border="0" cellspacing="0" cellpadding="0">
  97. <tr>
  98. <td width="32%" align="left" valign="middle" class="blue14b"><%=lmmc%></td>
  99. <td width="68%" align="right" valign="middle"><img src="images/index_tb.gif" width="11" height="11" /> <span class="black style3">您现在的位置:首页 &gt;&gt;</span></td>
  100. </tr>
  101. </table></td>
  102. </tr>
  103. <tr>
  104. <td height="100%" align="center" valign="top"><table width="880" border="0" cellspacing="0" cellpadding="0" class="mt3 mb3">
  105. <tr>
  106. <td align="left" valign="top"> <%
  107. Wzbdao wdo1 = new Wzbdao();
  108. List<Wzb> wzblist =(List)wdo1.getAllWzbForPage(lmids, 0, 1);
  109. String nr = "";
  110. if(wzblist != null&&wzblist.size()>0)
  111. {
  112. Wzb wzb = wzblist.get(0);
  113. nr = wzvdao.getWzbOfWznr(wzb.getWzid());//获取查询的文章
  114. %>
  115. <%} %>
  116. <td align="left" valign="top" class="black14 zdgzb">
  117. <%=nr %></td>
  118. </tr>
  119. </table></td>
  120. </tr>
  121. </table></td>
  122. </tr>
  123. </table></td>
  124. </tr>
  125. </table>
  126. </body>
  127. </html>