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

📄 deptsystem.jsp

📁 一个oa系统
💻 JSP
字号:
<%@ page language="java" pageEncoding="gbk"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"
	prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html"
	prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic"
	prefix="logic"%>
<jsp:include page="islogin.jsp" flush="true"/> 
<html>
	<head>
		<title>部门制度列表</title>
		<style type="text/css">
<!--
body,td,th {
	font-size: 12px;
}
body {
	margin-left: 2px;
	margin-top: 2px;
	margin-right: 0px;
	margin-bottom: 0px;
}
a:link {
	color: #000000;
	text-decoration: none;
}
a:visited {
	text-decoration: none;
	color: #000000;
}
a:hover {
	text-decoration: underline;
	color: #333333;
}
a:active {
	text-decoration: none;
	color: #333333;
}
-->
</style>
<script type="text/javascript">
	function Check(){
		var turnpage = document.getElementById("turnPage").value;	
		var totals = document.getElementById("totalPages").value; 
		if(turnpage==""){
			alert("请输入要跳转的页面数");
		}else if(turnpage!=""&&isNumberString(turnpage,"1234567890")!=1){
	    	alert("请输入正确的页面数");
		}else if(turnpage!=""&&turnpage>totals){
	    	alert("请输入正确的页面数");
		}else if(turnpage!=""&&turnpage<=0){
	    	alert("请输入正确的页面数");
		}else{
			window.location="/oa/deptSystem.do?currentPage=" + turnpage;
		}
	}
	function isNumberString (InString,RefString)
	{
		if(InString.length==0) return (false);
		for (Count=0; Count < InString.length; Count++)
		{
			TempChar= InString.substring (Count, Count+1);
			if (RefString.indexOf (TempChar, 0)==-1)  
			return (false);
		}
		return (true);
	}
</script>
		<link href="../css.css" rel="stylesheet" type="text/css" />
	</head>
	<body>
		<table width="738" border="0" align="center" cellpadding="0"
			cellspacing="1">
			<tr>
				<td height="25">
					&nbsp;以下显示的是所有部门制度:
				</td>
				<td width="160">
					&nbsp;
					<div align="right">
						<a href="./getDept.do">添加新的部门制度</a>
					</div>
				</td>
			</tr>

		</table>
		<table width="738" border="0" align="center" cellpadding="0"
			cellspacing="1">
			<html:form action="/querySystem">
				<tr>
					<td height="25">
						<html:select property="department" value="所有部门">
							<html:option value="所有部门">所有部门</html:option>
							<html:options collection="alldept" property="department" />
						</html:select>
						<html:submit value="查询"></html:submit>
					</td>
				</tr>
			</html:form>
		</table>
		<html:form action="/deptSystem">
			<table width="740" border="0" align="center" cellpadding="0"
				cellspacing="1" bgcolor="#3868f8">
				<tr bgcolor="#B5B5FF">
					<td width="38" bgcolor="#CCCCCC">
						<div align="center">
							序号
						</div>
					</td>
					<td width="369" height="25" bgcolor="#CCCCCC">
						<div align="center">
							标&nbsp; 题
						</div>
					</td>
					<td width="93" bgcolor="#CCCCCC">
						<div align="center">
							部门
						</div>
					</td>
					<td width="122" bgcolor="#CCCCCC">
						<div align="center">
							发布时间
						</div>
					</td>
					<td width="112" bgcolor="#CCCCCC">
						<div align="center">
							操 作
						</div>
					</td>
				</tr>
				<%
				int count = 1;
				%>
				<logic:notEmpty name="allsystem">
					<logic:iterate id="system" name="allsystem">
						<tr bgcolor="#B5B5FF">
							<td bgcolor="#FFFFFF">
								<div align="center">
									<html:hidden name="system" property="id" />
									<%=count%>
									<%
									count++;
									%>
								</div>
							</td>
							<td height="25" bgcolor="#FFFFFF"
								style="padding-top:4px; padding-bottom:3px; padding-left:4px; padding-right:4px;">
								<div align="center">
									<bean:write name="system" property="topic" />
								</div>
							</td>
							<td bgcolor="#FFFFFF">
								<div align="center">
									<bean:write name="system" property="department" />
								</div>
							</td>
							<td bgcolor="#FFFFFF">
								<div align="center">
									<bean:write name="system" property="adddata" />
								</div>
							</td>
							<td bgcolor="#FFFFFF">
								<div align="center">
									<html:link page="/lookDeptSystem.do" paramId="id"
										paramName="system" paramProperty="id" >查看</html:link>
									<html:link page="/updateDeptSystem.do" paramId="id"
										paramName="system" paramProperty="id">修改</html:link>
									<html:link page="/deleteDeptSystem.do" paramId="id"
										paramName="system" paramProperty="id" onclick="">删除</html:link>
								</div>
							</td>
						</tr>
					</logic:iterate>
				</logic:notEmpty>
			</table>
			<logic:notEmpty name="pageBean">
								<table width="400" border="0" cellspacing="1" cellpadding="0"
									align="right">
								<tr>	
									<td>共<font color="red"><bean:write name="pageBean"property="totalRecoder" />
											</font>条记录
										</td>					
									 <td>当前第<font color="red">
											<bean:write name="pageBean" property="currentPage" /></font>/<font color="red"><bean:write name="pageBean" property="totalPages" /></font>页
									  		<input type="hidden" name="totalPages" value="<bean:write name="pageBean" property="totalPages" />"/>
									  </td><td>
											<html:link page="/deptSystem.do" paramId="currentPage"
												paramName="pageBean" paramProperty="firstPage">首页</html:link>
									  </td>
										<td>
											<html:link page="/deptSystem.do" paramId="currentPage"
												paramName="pageBean" paramProperty="upPage">上一页</html:link>
									  </td>
										<td>
											<html:link page="/deptSystem.do" paramId="currentPage"
												paramName="pageBean" paramProperty="downPage">下一页</html:link>
									  </td>
										<td>
											<html:link page="/deptSystem.do" paramId="currentPage"
												paramName="pageBean" paramProperty="lastPage">尾页</html:link>
									  </td>
										<td>
											<input type="text" name="turnPage" value="<bean:write name="pageBean" property="currentPage" />" size="2"/>
											<html:button property="" onclick="return Check();">GO</html:button>
										</td>
										
								  </tr>
							  </table>
			  </logic:notEmpty>
			<logic:empty name="allsystem">
				<p>
					&nbsp;
				</p>
				<div height="25" bgcolor="#CCCCCC" align="center">
					<font size="4">没有该部门的规章制度</font>
				</div>
			</logic:empty>
		</html:form>
	</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -