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

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. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  7. <html:html lang="true">
  8. <head>
  9. <html:base />
  10. <title>会议室列表</title>
  11. <link href="${pageContext.request.contextPath}/Css_file/oa.css" rel="stylesheet" type="text/css" />
  12. </head>
  13. <body>
  14. <div class="t">
  15. <html:form action="/meetroom" styleId="form1">
  16. <input type="hidden" name="task" value="query">
  17. <table width=100% border=1 cellspacing=0 cellpadding=0 class="tr3 f_one">
  18. <tr>
  19. <td>
  20. 会议室编号:
  21. </td>
  22. <td>
  23. <html:text property="rmid" value="" />
  24. </td>
  25. <td>
  26. 会议室名称:
  27. </td>
  28. <td>
  29. <html:text property="rname" />
  30. </td>
  31. <td>
  32. 会议室状态:
  33. </td>
  34. <td>
  35. <html:select property="rstate">
  36. <html:option value="-1">====请选择====</html:option>
  37. <html:option value="0">未使用</html:option>
  38. <html:option value="1">使用中</html:option>
  39. <html:option value="2">不可使用(维护中)</html:option>
  40. </html:select>
  41. </td>
  42. <tr>
  43. <td colspan="6" align="center">
  44. <input type="submit" class="btn" value=" 查询 ">
  45. <input name="reset" type="reset" class="btn" value=" 重置 " />
  46. </td>
  47. </tr>
  48. </table>
  49. </html:form>
  50. </div>
  51. <div class="t">
  52. <TABLE width=100% cellspacing="0" cellpadding="0" border="1" class="tr3 f_one">
  53. <tr class="tr3 f_one">
  54. <th class="h">
  55. 会议室编号
  56. </th>
  57. <th class="h">
  58. 会议室名称
  59. </th>
  60. <th class="h">
  61. 会议室地点
  62. </th>
  63. <th class="h">
  64. 会议室容纳人数
  65. </th>
  66. <th class="h">
  67. 会议室状态
  68. </th>
  69. <th class="h">
  70. 操作[
  71. <html:link action="/meetroom?task=addlist">添加</html:link>
  72. ]
  73. </th>
  74. </tr>
  75. <logic:present name="meetroomtpage" property="list" scope="request">
  76. <logic:empty name="meetroomtpage" property="list" scope="request">
  77. <tr>
  78. <th colspan=6 align="center" class="tr3 f_one">
  79. <SPAN style="color: red">暂时无任何信息</SPAN>
  80. </th>
  81. </tr>
  82. </logic:empty>
  83. </logic:present>
  84. <logic:present name="meetroomtpage" scope="request">
  85. <logic:present name="meetroomtpage" scope="request" property="list">
  86. <logic:notEmpty name="meetroomtpage" property="list" scope="request">
  87. <logic:iterate id="meetroom" name="meetroomtpage" property="list" scope="request">
  88. <tr class="tr3 f_one">
  89. <Td class="tr3 f_one">
  90. ${meetroom.rmid}
  91. </Td>
  92. <Td>
  93. ${meetroom.rname}
  94. </Td>
  95. <Td>
  96. ${meetroom.raddress}
  97. </Td>
  98. <Td>
  99. ${meetroom.rnumber} 人
  100. </Td>
  101. <th>
  102. <logic:equal name="meetroom" property="rstate" value="0">未使用</logic:equal>
  103. <logic:equal name="meetroom" property="rstate" value="1">使用中</logic:equal>
  104. <logic:equal name="meetroom" property="rstate" value="2">不可使用(维护中)</logic:equal>
  105. </th>
  106. <Th>
  107. <logic:equal name="meetroom" property="rstate" value="0">
  108. <html:link action="/meetroom?task=init&rmid=${meetroom.rmid}">修改</html:link>
  109. </logic:equal>
  110. <logic:equal name="meetroom" property="rstate" value="2">
  111. <html:link action="/meetroom?task=life&rmid=${meetroom.rmid}">激活</html:link>
  112. </logic:equal>
  113. <logic:equal name="meetroom" property="rstate" value="0">
  114. <html:link action="/meetroom?task=support&rmid=${meetroom.rmid}">冻结</html:link>
  115. </logic:equal>
  116. </Th>
  117. </tr>
  118. </logic:iterate>
  119. </logic:notEmpty>
  120. </logic:present>
  121. </logic:present>
  122. </TABLE>
  123. </div>
  124. </body>
  125. </html:html>
  126. <table width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#0099CC">
  127. <tr bgcolor="#ADD8CF">
  128. <td align="center" bgcolor="#DBEEEA">
  129. <bean:write name="meetroomtpage" property="pageBar" filter="false" />
  130. </td>
  131. </tr>
  132. </table>