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

📄 listdept.jsp

📁 本源码为教学管理信息系统
💻 JSP
字号:
<%@page contentType="text/html;charset=GBK"%>
<%@ taglib prefix="ww" uri="webwork" %>
<%@ include file="/include/header.inc"%>
<script language="javascript">
<!--
	function Save(){
	  if(verify()== true){  
		document.createForm.action = "listDept!save.action";
	  	document.createForm.submit();
	  }
	}
	function Delete(){
		if(hasChecked(delForm)==false){
			alert("请选择要删除的部门");
			return;
		}
		if(confirm("您确定要删除选中的部门吗?")==true){
		    document.delForm.action = "listDept!delete.action";
			document.delForm.submit();
		}
	}
	function QueryById(id){
		document.delForm.action ="listDept!queryById.action?dwdm="+id;
		document.delForm.submit();
	}
	function verify(){
		var form = document.forms['createForm']; 
		var obje = form.elements['dept.dwmc'];
		if (checkIsNull(obje, "部门名称")== false) return false;	
		return true;
	}
//-->
</script>
<form name="createForm" method="POST" >
<table cellspacing="0" cellpadding="0" align="center">
	<tr><td class="topg"/></tr>
</table>
<table cellspacing="0" cellpadding="0" align="center" class="wukuang" >
	<tr>
		<td width="1%" align="left" ><img class="img" src="<%= request.getContextPath() %>/images/tleft.gif"></td>
		<td width="20%" align="left" >[部门维护]</td>
		<td width="30%" align="center">&nbsp;</td>
		<td width="38%"  align="right">
			<a href="javascript:QueryById('<ww:property value="dept.dwdm"/>')"><img class="imgd" src="<%= request.getContextPath() %>/images/button/add.gif"></a>
			<a href="javascript:Delete()"><img class="imgd" src="<%= request.getContextPath() %>/images/button/del.gif"></a>
		</td>    
		<td width="1%" align="left" ><img class="img" src="<%= request.getContextPath() %>/images/tright.gif"></td>
   	</tr>
	</form>
	<form name="delForm" action="deleteDepartment.action" method="POST">
</table>
<table cellspacing="0" cellpadding="0" align="center">
	<tr><td class="topg"/></tr>
</table>
<table align="center" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td><img class="img" src="<%= request.getContextPath() %>/images/result.gif"  align="absmiddle"></td>
	</tr>
</table>
<table border="1" cellspacing="1" cellpadding="2" class="bgtable" align="center" style="table-layout:fixed">
	<tr align="center" class="henglan"> 
		<td  width="5%"><div align="center">序号</div></td>
		<td  width="5%" align="center"><input type="checkbox" backcolor ="#BDD7DF" name="allcheck" onclick="javascript:checkall(document.delForm,document.delForm.allcheck);" /></td>
		<td  width="15%"><div align="center">部门代码</div></td>
		<td  width="55%"><div align="center">部门名称</div></td>
		<td  width="10%"><div align="center">部门级别</div></td>
		<td  width="10%"><div align="center">功能操作</div></td>
	</tr>
	<ww:iterator value="DepartmentList" status="status" >
		<ww:if test="#status.odd == true">
			<tr class="tabtd1" onMouseOver="MouseMoveIn(this);" onMouseOut="MouseMoveOut(this);">
		</ww:if><ww:else>
			<tr class="tabtd2" onMouseOver="MouseMoveIn(this);" onMouseOut="MouseMoveOut(this);">
		</ww:else>			
			<td align="center"><ww:property value="#status.count"/></td>
			<td align="center" ><input type="checkbox" name="selectedDepartmentIds[<ww:property value="#status.count-1"/>]" value="<ww:property value="dwdm"/>" class="wu"></td>
			<td  align="center"><ww:property value="dwdm"/></td>
			<td  align="center"><ww:property value="dwmc"/></td>  
			<td align="center"><ww:property value="dwjb"/></td>
			<td align="center"><a href="javascript:QueryById('<ww:property value="dwdm"/>')">[修改]</a></td>
		</tr>	
	</ww:iterator>		
</table>
</form>
	

⌨️ 快捷键说明

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