a_editlist.jsp
上传用户:lm2018
上传日期:2015-12-12
资源大小:30449k
文件大小:6k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page language="java" pageEncoding="GBK"%>
  2. <%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
  3. <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
  4. <%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
  5. <%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
  6. <html>
  7. <head>
  8. <style type="text/css">
  9. .tableHead{ /*表头*/
  10. font-size:12px;
  11. font-weight:bold;
  12. height:20pt;
  13. background:url(img/bg.bmp);
  14. text-align:buttom;
  15. }
  16. .myTable{
  17. border:#00A8FF 1px solid;
  18. border-collapse:collapse;
  19. /*padding:0px 0px 0px 0px;*/
  20. }
  21. .myTable TD{
  22. border:#00A8FF 1px solid;
  23. font-family:"宋体";
  24. font-size:10pt;
  25. /*height:22px;*/
  26. padding:0px 0px 0px 0px;
  27. }
  28. .text{
  29. font-family:"宋体";
  30. font-size:10pt;
  31. /*height:22px;*/
  32. padding:0px 0px 0px 0px;
  33. width:200px;
  34. height:22px;
  35. }
  36. </style>
  37. </head>
  38. <body>
  39. <form name="form1" method="post" action="${pageContext.request.contextPath}/affiche.do?method=editlist">
  40. <table width="100%" border="1" class="myTable">
  41. <tr class="tableHead">
  42. <td align="center" colspan="2">
  43. 公告查询
  44. </td>
  45. </tr>
  46. <tr>
  47. <td>
  48. 公告标题:
  49. </td>
  50. <td>
  51. <input type="text" name="atitle" size="50" />
  52. </td>
  53. </tr>
  54. <tr>
  55. <td>
  56. 发布时间:
  57. </td>
  58. <td>
  59. <input class="plain" name="begin" value="" size="15" maxlength="25" readonly />
  60. <a href="javascript:void(0)" onclick="if(self.gfPop)gfPop.fPopCalendar(document.form1.begin);return false;"> <img name="popcal" align="absmiddle" src="${pageContext.request.contextPath}/Img_file/calbtn.gif" width="34" height="22" border="0" alt="" /></a>
  61. &nbsp;至&nbsp;
  62. <input class="plain" name="end" value="" size="15" maxlength="25" readonly />
  63. <a href="javascript:void(0)" onclick="if(self.gfPop)gfPop.fPopCalendar(document.form1.end);return false;"> <img name="popcal" align="absmiddle" src="${pageContext.request.contextPath}/Img_file/calbtn.gif" width="34" height="22" border="0" alt="" /></a>
  64. <iframe width=174 height=189 name="gToday:normal:agenda.js" id="gToday:normal:agenda.js" src="${pageContext.request.contextPath}/date/ipopeng.htm" scrolling="no" frameborder="0"
  65. style="visibility:visible; z-index:999; position:absolute; top:-500px; left:-500px;">
  66. </iframe>
  67. </td>
  68. </tr>
  69. <tr>
  70. <td>
  71. &nbsp;
  72. </td>
  73. <td>
  74. <input type="submit" name="submit" value="查询" />
  75. &nbsp;
  76. <input type="reset" name="reset" value="重置" />
  77. </td>
  78. </tr>
  79. </table>
  80. </form>
  81. <table width="100%" class="myTable" border="1">
  82. <tr class="tableHead">
  83. <td width="80%" height="45" align="center">
  84. 公 告 管 理
  85. </td>
  86. <td width="20%">
  87. <a href="${pageContext.request.contextPath}/Jsp_file/affiche/a_edit.jsp">发布公告</a>
  88. </td>
  89. </tr>
  90. <tr>
  91. <td colspan="2">
  92. <table width="100%" border=1>
  93. <tr>
  94. <td align="center">
  95. 公告标题
  96. </td>
  97. <td align="center">
  98. 发布时间
  99. </td>
  100. <td align="center">
  101. 有效时间
  102. </td>
  103. <td align="center">
  104. 状态
  105. </td>
  106. <td align="center">
  107. 操作
  108. </td>
  109. </tr>
  110. <logic:present name="apage" scope="request">
  111. <logic:present name="apage" property="list" scope="request">
  112. <logic:empty name="apage" property="list" scope="request">
  113. <tr>
  114. <td colspan="5">
  115. <font color="red">暂时没有公告信息</font>
  116. </td>
  117. </tr>
  118. </logic:empty>
  119. </logic:present>
  120. </logic:present>
  121. <logic:present name="apage" scope="request">
  122. <logic:present name="apage" property="list" scope="request">
  123. <logic:notEmpty name="apage" property="list" scope="request">
  124. <logic:iterate id="aff" name="apage" property="list" scope="request">
  125. <tr>
  126. <td>
  127. <a href="${pageContext.request.contextPath}/affiche.do?method=show&id=${aff.aid}" title="点击查看详细信息">${aff.atitle}</a>&nbsp;
  128. </td>
  129. <td align="center">
  130. ${aff.asendTime}&nbsp;
  131. </td>
  132. <td align="center">
  133. ${aff.arealTime}&nbsp;
  134. </td>
  135. <td align="center">
  136. <logic:equal name="aff" property="astate" value="0">未审核</logic:equal>
  137. <logic:equal name="aff" property="astate" value="1">审核通过</logic:equal>
  138. <logic:equal name="aff" property="astate" value="-1">审核不通过</logic:equal>
  139. &nbsp;
  140. </td>
  141. <td align="center">
  142. <logic:equal name="aff" property="astate" value="0">
  143. <a href="${pageContext.request.contextPath}/affiche.do?method=update&id=${aff.aid}">修改</a> | <a href="${pageContext.request.contextPath}/affiche.do?method=delete&id=${aff.aid}">删除</a>
  144. </logic:equal>
  145. <logic:equal name="aff" property="astate" value="-1">
  146. <a href="${pageContext.request.contextPath}/affiche.do?method=update&id=${aff.aid}">修改</a> | <a href="${pageContext.request.contextPath}/affiche.do?method=delete&id=${aff.aid}">删除</a>
  147. </logic:equal>
  148. <logic:equal name="aff" property="astate" value="1">
  149. &nbsp;
  150. </logic:equal>
  151. &nbsp;
  152. </td>
  153. </tr>
  154. </logic:iterate>
  155. </logic:notEmpty>
  156. </logic:present>
  157. </logic:present>
  158. </table>
  159. </td>
  160. </tr>
  161. </table>
  162. <table width=100%>
  163. <tr>
  164. <td>
  165. <div align="right" style="font-size: 12">
  166. ${apage.pageBar}
  167. </div>
  168. </td>
  169. </tr>
  170. </table>
  171. </body>
  172. </html>