📄 meetingpromulgatelist.jsp
字号:
<%@ page language="java" pageEncoding="gbk"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%@ page import="com.wondersgroup.framework.core.bo.Page" %>
<%@ page import="java.util.List" %>
<%@ page import="com.wondersgroup.businessmodule.meetingmanage.web.form.MeetingRequestListElement" %>
<html:html lang="true">
<head>
<html:base />
<title>meetingRequestList.jsp</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link href="/YZOA/include/style.css" rel="stylesheet" type="text/css">
</head>
<script language="javascript" src="/YZOA/include/validateRequired.js"></script>
<script language="javascript" src="/YZOA/include/calendar.js"></script>
<script language="javascript">
//翻页
function toPage(o){
document.meetingRequestListForm.curPage.value=o;
document.meetingRequestListForm.submit();
}
//显示全部记录
function showAll(){
document.meetingRequestListForm.curPage.value=1;
document.meetingRequestListForm.startTime.value='';
document.meetingRequestListForm.endTime.value='';
document.meetingRequestListForm.roomId.value='';
document.meetingRequestListForm.title.value='';
document.meetingRequestListForm.submit();
}
//结束会议申请
function endRequest(o){
alert(o);
window.location.href="/YZOA/meetingPromulgateAction.do?action=init&code="+o;
}
//会议查询标示 ,判断查询已发布还是未发布
function changeFlag(o){
if(o=='0'){
document.meetingRequestListForm.flag.value="";
document.getElementById('divButton1').style.display='none';
document.getElementById('divButton2').style.display='block';
}else{
document.meetingRequestListForm.flag.value="promulgate";
document.getElementById('divButton1').style.display='block';
document.getElementById('divButton2').style.display='none';
}
showAll();
}
</script>
<%
Page pageEl = (Page)request.getAttribute("page");
%>
<body>
<html:form action="/meetingPromulgateListAction">
<html:hidden property="flag"/>
<table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" class="bg-1">
<tr class="bg-2">
<td width="19%" nowrap><div align="right"><font color="#244475">开始 时间: </font></div></td>
<td width="30%">
<html:text property="startTime" styleClass="textfield2" onclick="showCal()" size="20"></html:text>
</td>
<td width="20%"><div align="right"><font color="#244475">结束 时间: </font></div></td>
<td width="31%">
<html:text property="endTime" styleClass="textfield2" onclick="showCal()" size="20"></html:text>
</td>
</tr>
<tr bgcolor="#f5f5f5">
<td><div align="right"><font color="#244475">会议 地址: </font></div></td>
<td>
<html:select property="roomId">
<html:option value="">---------</html:option>
<html:options collection="options" name="BeanCollectionSelect" property="value" labelProperty="name" />
</html:select>
</td>
<td><div align="right"><font color="#244475">会议 标题: </font></div></td>
<td><html:text property="title" styleClass="textfield2"size="20"></html:text></td>
</tr>
<tr>
<td height="30" colspan="4" class="bg-2" align="center">
<html:submit styleClass="btn">查询</html:submit>
<input type="button" class="btn" onclick="showAll();" value="显示全部">
<input name="print" type="button" class="btn" onClick="window.print()" value="打印">
</td>
</tr>
</table>
<br>
<table width="98%" border="0" align="center" class="bg1">
<tr>
<td>
<table width="98%" class="bg" align="center">
<tr>
<td align="left" width="76%"><strong>待结束审批会议列表</strong></td>
<td align="right">
<!-- 显示已结束按钮 -->
<logic:equal name="meetingRequestListForm" property="flag" value="">
<div id="divButton1" style="display:none;">
<input type="button" class="btn" value="待结束" onclick="changeFlag('0');"/>
</div>
<div id="divButton2" style="display:block;">
<input type="button" class="btn" value="已结束" onclick="changeFlag('1');"/>
</div>
</logic:equal>
<!-- 显示待结束按钮 -->
<logic:notEqual name="meetingRequestListForm" property="flag" value="">
<div id="divButton1" style="display:block;">
<input type="button" class="btn" value="待结束" onclick="changeFlag('0');"/>
</div>
<div id="divButton2" style="display:none;">
<input type="button" class="btn" value="已结束" onclick="changeFlag('1');"/>
</div>
</logic:notEqual>
</td>
</tr>
</table>
</td>
</tr>
<tr align="center">
<td height="3" colspan="5" class="titleline"></td>
</tr>
<tr>
<td>
<table width="98%" border="1" align="center" cellpadding="4"
cellspacing="0" bordercolorlight="cccccc" bordercolordark="ffffff">
<tr align="center" class="bg">
<td width="5%" height="28" nowrap><strong>序号</strong></td>
<td width="11%" nowrap><strong>会议标题</strong></td>
<td width="9%" nowrap><strong>会议编号</strong></td>
<td width="18%" nowrap><strong>开始时间</strong></td>
<td width="11%" nowrap><strong>结束时间</strong></td>
<td width="10%" nowrap><strong>会议地址</strong></td>
<td width="11%" nowrap><strong>主持人名称</strong></td>
<td width="9%" nowrap><strong>状态</strong></td>
<td width="16%" nowrap><strong>操作</strong></td>
</tr>
<%List result = pageEl.getResult();
MeetingRequestListElement element;
for(int i=0;i<result.size();i++){
element = (MeetingRequestListElement)result.get(i);
%>
<tr align="center" bgcolor="f2f2f2" style="cursor:hand"
onmouseout=mOut(this,1); onmouseover=mOvr(this)>
<td width="5%" height="28"><%=pageEl.getStart()+i %></td>
<td width="11%"><%=element.getTitle() %></td>
<td width="9%"><%=element.getId() %></td>
<td width="18%"><%=element.getStartTime() %></td>
<td width="11%"><%=element.getEndTime() %></td>
<td width="10%"><%=element.getPosition() %></td>
<td width="11%"><%=element.getPerson() %></td>
<td width="9%"><%=element.getStatus() %></td>
<td width="16%"><%=element.getPerId() %>
<a href="/YZOA/meetingRequestAction.do?action=view&code=<%=element.getId() %>"><img src="../../image/detail.GIF" alt="查看" border="0"></a>
<%if(element.getStatus().equals("审批通过")){ %>
<input type="button" name="check" value="结束" class="btn" onclick="endRequest('<%=element.getId() %>&perId=<%=element.getPerId() %>');">
<%} %>
</td>
</tr>
<%} %>
</table>
</td>
</tr>
</table>
<table width="96%" border="0" align="center" cellpadding="4"
cellspacing="0">
<tr>
<td align="center" clospan="3">
<span onclick="toPage(1);">【首页】</span>
<%if(pageEl.hasPreviousPage()){ %>
<span onclick="toPage(<%=(pageEl.getCurrentPageNo()-1) %>);">【上一页】</span>
<%}else{ %>
【上一页】
<%} %>
<%if(pageEl.hasNextPage()){ %>
<span onclick="toPage(<%=(pageEl.getCurrentPageNo()+1) %>);">【下一页】</span>
<%}else{ %>
【下一页】
<%} %>
<span onclick="toPage(<%=pageEl.getTotalPageCount() %>);">【尾页】</span>
当前页:<%=pageEl.getCurrentPageNo() %>/<%=pageEl.getTotalPageCount() %>;
记录总数:<%=pageEl.getTotalSize() %>
<html:text property="curPage" size="2"/>
<html:submit styleClass="btn">Goto</html:submit>
</td>
</tr>
</table>
</html:form>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -