⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 meetingrequestlist.jsp

📁 一段很有意义的源码,看了就知道,不信试一试啊!
💻 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 newRequestRecord(){
	window.location.href="/YZOA/meetingRequestAction.do?action=init";
}
//撤销会议申请
function countermandRequest(o){
	if(confirm('确定撤销会议申请?') == true)
		window.location.href="/YZOA/meetingRequestAction.do?action=countermand&code="+o;
}
//取消会议申请
function cancelRequest(o){
		window.location.href="/YZOA/meetingRequestAction.do?action=countermand&code="+o;
}
//删除会议申请
function removeRequest(o){
	if(confirm('确定删除会议申请?') == true)
		window.location.href="/YZOA/meetingRequestAction.do?action=remove&code="+o;
}

</script>
<logic:present name="info" scope="session">
<logic:notEmpty name="info" scope="session">
<script>
	alert('<%=session.getAttribute("info") %>');
	<% session.removeAttribute("info"); %>
</script>
</logic:notEmpty>
</logic:present>
<%
Page pageEl = (Page)request.getAttribute("page");
 %>
<body>
	<html:form action="/meetingRequestListAction">
		<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">
							<input name="create" type="button" class="btn" id="create" onClick="newRequestRecord();" value="会议申请">
						</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%">
							<a href="/YZOA/meetingRequestAction.do?action=view&code=<%=element.getId() %>"><img src="../../image/detail.GIF" alt="查看" border="0"></a>
							<%if(element.getStatus().equals("待发送")||element.getStatus().equals("审批未通过")){ %>
								<a href="/YZOA/meetingRequestAction.do?action=submit&code=<%=element.getId() %>"><img src="/YZOA/image/submit.gif" alt="提交" border="0"></a>
								<input type="button" name="back" class="btn" value="删除" onClick="removeRequest('<%=element.getId() %>');"/>
								<a href="/YZOA/meetingRequestAction.do?action=initUpdatePage&code=<%=element.getId() %>"><img src="/YZOA/image/modify.gif" alt="修改"  border="0"></a>
							<%}
							if(element.getStatus().equals("待审批")||element.getStatus().equals("审批通过")){ %>
								<input type="button" name="back" class="btn" value="撤回" onClick="countermandRequest('<%=element.getId() %>');"/>
							<%}
							if(element.getStatus().equals("发布状态")){ %>
								<a href="shenqingjilu.htm" onClick="confirm('确定取消会议?')">
									<img src="/YZOA/image/withdraw.gif" alt="取消会议" border="0">
								</a>
							<%} %>
								
							</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>
					&nbsp;
					当前页:<%=pageEl.getCurrentPageNo() %>/<%=pageEl.getTotalPageCount() %>;
					&nbsp;
					记录总数:<%=pageEl.getTotalSize() %>
					&nbsp;
					<html:text property="curPage" size="2"/>
					&nbsp;
					<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 + -