zzjg.jsp 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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. </head>
  8. <%@page import="com.ws.content.Wzbdao"%>
  9. <%@ include file="public/showcontent.jsp" %>
  10. <%@page import="com.ws.content.WzbVDao"%>
  11. <%@page import="com.ws.content.*"%>
  12. <%@ include file="public/config.jsp"%>
  13. <%@ include file="public/function.jsp"%>
  14. <%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
  15. <%
  16. String path = request.getContextPath();
  17. String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  18. %>
  19. <%
  20. //文章的业务逻辑
  21. WzDao wdao = new WzDao();
  22. LmDao ldao = new LmDao();
  23. WzbVDao wzvdao = new WzbVDao();
  24. //栏目编号
  25. String lmids = request.getParameter("lmid");
  26. //通过栏目编号获取栏目对象
  27. Lmb lm = ldao.getLmbByLmid(lmids);
  28. if(lm==null){
  29. lm = new Lmb();
  30. }
  31. String lmmc = lm.getLmmc();//栏目名称
  32. String flmid = lm.getFlmid();//父栏目编号
  33. Lmb flm = ldao.getLmbByLmid(flmid);
  34. if(flm==null){
  35. flm = new Lmb();
  36. }
  37. String flmmc = flm.getLmmc();
  38. //分页开始
  39. int offset = 0; //当前页
  40. try{
  41. offset =Integer.parseInt(request.getParameter("offset"));
  42. }catch(Exception e){
  43. offset=0;
  44. }
  45. long rows_num = (long)wzvDao.getCountsAllWzb(lmids);//总记录数
  46. int page_size =20; //每页记录数
  47. pgDao.setInt_num(page_size);
  48. long Current_Page = offset; //当前页
  49. pgDao.Init(Current_Page, rows_num);
  50. int l_start = (int)pgDao.getStart();
  51. int l_end = (int)pgDao.getEnd();
  52. //分页设定结束
  53. %>
  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="1133" 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">
  71. <%
  72. List<Lmb> gkzllist = lmDao.getValidSubLmb("10018");
  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"> <a href="zzjg.jsp?lmid=<%=item.getLmid()%>" ><%=item.getLmmc() %></a></td>
  78. </tr>
  79. <tr>
  80. <td height="8"></td>
  81. </tr>
  82. <%} }%>
  83. </table></td>
  84. </tr>
  85. </table></td>
  86. <td width="10" align="left" valign="top"></td>
  87. <td width="890" align="left" valign="top"><table width="890" border="0" cellspacing="0" cellpadding="0" class="borlm">
  88. <tr>
  89. <td height="29" align="center" valign="middle" background="images/index_19.jpg"><table width="98%" border="0" cellspacing="0" cellpadding="0">
  90. <tr>
  91. <td width="32%" align="left" valign="middle" class="blue14b"><%=lmmc %></td>
  92. <td width="68%" align="right" valign="middle"><img src="images/index_tb.gif" width="11" height="11" /> 您现在的位置: <a href="index.jsp" style="text-decoration:none;color: black;"> 首页</a>&gt;&gt;
  93. <a href="zzjg.jsp?lmid=<%=lmids %>" style="text-decoration:none;color: black;"> <%=flmmc %></a> &gt;&gt;
  94. <a href="zzjg.jsp?lmid=<%=lmids %>" style="text-decoration:none;color: black;"><%=lmmc %></a></td>
  95. </tr>
  96. </table></td>
  97. </tr>
  98. <tr>
  99. <td height="1150" align="center" valign="top"><table width="851" border="0" cellspacing="0" cellpadding="0" class="mt10 mb8">
  100. <tr>
  101. <%
  102. Wzbdao wdo1 = new Wzbdao();
  103. List<Wzb> wzblist =(List)wdo1.getAllWzbForPage(lmids, 0, 1);
  104. String nr = "";
  105. if(wzblist != null&&wzblist.size()>0)
  106. {
  107. Wzb wzb = wzblist.get(0);
  108. nr = wzvdao.getWzbOfWznr(wzb.getWzid());//获取查询的文章
  109. %>
  110. <%} %>
  111. <td align="left" valign="top">
  112. <%=nr %>
  113. </td>
  114. </tr>
  115. </table></td>
  116. </tr>
  117. </table></td>
  118. </tr>
  119. </table></td>
  120. </tr>
  121. </table>
  122. <%@include file="Bottom.jsp" %>
  123. </body>
  124. </html>