xgbm_old.jsp 5.1 KB

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