ldfg_old.jsp 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  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. <%Wzbdao wdo1 = new Wzbdao();
  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="1396" align="center" valign="top" background="images/jtjj_06.jpg" class="borlm2"style="background-repeat:repeat-x">
  71. <table width="220" border="0" cellspacing="0" cellpadding="0" class="mt10">
  72. <%
  73. List<Lmb> gkzllist = lmDao.getValidSubLmb("10019");
  74. if(gkzllist!=null){
  75. for (Lmb item : gkzllist) {
  76. %>
  77. <tr>
  78. <td height="32" align="left" valign="middle" background="images/jtjj_09.jpg" class="left_wz">
  79. <a href="ldfg.jsp?lmid=<%=item.getLmid()%>" ><%=item.getLmmc() %></a>
  80. </td>
  81. </tr>
  82. <tr>
  83. <td height="8"></td>
  84. </tr>
  85. <%} }%>
  86. </table></td>
  87. </tr>
  88. </table></td>
  89. <td width="10" align="left" valign="top"></td>
  90. <td width="890" align="left" valign="top"><table width="890" border="0" cellspacing="0" cellpadding="0" class="borlm">
  91. <tr>
  92. <td height="29" align="center" valign="middle" background="images/index_19.jpg"><table width="98%" border="0" cellspacing="0" cellpadding="0">
  93. <tr>
  94. <td width="32%" align="left" valign="middle" class="blue14b"><%=lmmc %></td>
  95. <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;
  96. <a href="ldfg.jsp?lmid=<%=lmids %>" style="text-decoration:none;color: black;"> <%=flmmc %></a> &gt;&gt;
  97. <a href="ldfg.jsp?lmid=<%=lmids %>" style="text-decoration:none;color: black;"><%=lmmc %></a></td>
  98. </tr>
  99. </table></td>
  100. </tr>
  101. <tr>
  102. <td height="1411" align="center" valign="top"><table width="96%" border="0" cellspacing="0" cellpadding="0" class="mt8">
  103. <tr>
  104. <td align="left" valign="top" >
  105. <%
  106. List<Wzb> wzblist = new ArrayList<Wzb>();
  107. wzblist =(List)wdo1.getAllWzbForPage(lmids, l_start, page_size);
  108. if(wzblist != null)
  109. {
  110. ///
  111. for(Wzb wzb:wzblist)
  112. {
  113. String xm = wzb.getWzbt();
  114. String zw = wzb.getWzfbt();
  115. String bgdh = wzb.getZxdz();
  116. String lxdh = wzb.getAtemp();
  117. String fg = wzb.getWzzy();
  118. String img = wzb.getFjdz();
  119. %>
  120. <table width="851" border="0" cellspacing="0" cellpadding="0">
  121. <tr>
  122. <table width="851" border="0" cellspacing="0" cellpadding="0" class="black14">
  123. <tr>
  124. <td width="142" height="180" align="left" valign="top" class="norepeat"><table width="142" border="0" cellspacing="0" cellpadding="0">
  125. <tr>
  126. <td height="180" align="center" valign="middle" background="images/ldfg_ldbg.jpg" class="norepeat">
  127. <img src="../uploadfile/<%=img %>" width="126" height="165" /></td>
  128. </tr>
  129. </table></td>
  130. <td width="18">&nbsp;</td>
  131. <td width="691" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  132. <tr>
  133. <td width="8%" height="30" align="left" valign="middle" class="black14"><strong>姓名:</strong></td>
  134. <td width="92%" align="left" valign="middle"><%=xm %></td>
  135. </tr>
  136. <tr>
  137. <td height="30" align="left" valign="middle" class="black14"><strong>职务:</strong></td>
  138. <td align="left" valign="middle"><%=zw %></td>
  139. </tr>
  140. <tr>
  141. <td height="30" align="left" valign="top" class="black14"><strong>分工:</strong></td>
  142. <td align="left" valign="middle">
  143. <%=fg %>
  144. </td>
  145. </tr>
  146. </table></td>
  147. </tr>
  148. </table>
  149. <div class="borhuib"></div>
  150. <%
  151. } }
  152. %>
  153. <table width="851" border="0" cellspacing="0" cellpadding="0">
  154. <tr>
  155. <td>&nbsp;</td>
  156. </tr>
  157. </table></td>
  158. </tr>
  159. </table></td>
  160. </tr>
  161. </table></td>
  162. </tr>
  163. </table></td>
  164. </tr>
  165. </table></td>
  166. </tr>
  167. </table>
  168. <%@include file="Bottom.jsp" %>
  169. </body>
  170. </html>