?? departlist.vm
字號:
<html>
<head>
<title>部門信息維護</title>
<link rel="stylesheet" href="$request.getContextPath()/csslib/style.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script Language="JavaScript" src="$request.getContextPath()/jslib/function.js"></script>
<script language="javascript">
function init(){
#if($showMessage)
alert("$showMessage");
#end
}
function update_onclick(intID){
window.navigate("editdept.jsp?unitId=" + intID);
}
function del_onclick(deptId,canDel){
if (canDel > 0){
alert("本部門下有人員,無法刪除!");
return false;
}
if (!confirm("確實要刪除該部門嗎?")){
return false ;
}
thisForm.action = "$request.getContextPath()/deptAction.do";
thisForm.method.value = "deleteDept";
thisForm.deptId.value = deptId;
thisForm.submit();
}
function viewpsn_onclick(intID){
window.navigate("userlist.jsp?unitId=" + intID);
}
function jumptoPage(intPage, form){
var oForm = document.all(form);
if(oForm==null) return;
oForm.intPage.value=intPage;
oForm.submit();
}
function jumpto(intPageCount,form){
if(event.keyCode != 13) return;
var pageValue = parseInt(event.srcElement.value);
if(isNaN(pageValue) || pageValue<=0) {
event.srcElement.value="";
return;
}
if(pageValue>intPageCount) return;
jumptoPage(pageValue, form);
}
function newDepart(){
thisForm.action = "deptAction.do?method=editDept&deptId=";
thisForm.submit();
}
</script>
</head>
<body scroll=no onload="init()">
<br>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" background="$request.getContextPath()/image/4_bar.gif">
<tr height=30>
<td> </td>
<td width="160" colspan=2><font face="宋體, 新宋體">部門信息列表</font></td>
<td align="right">
<button onclick="newDepart()" accesskey="Q">新建部門(Q)</button>
</td>
</tr>
<tr><td height=1 bgcolor="#FFFFFF" colspan=10> </td></tr>
</table>
<table width="98%" align="center" cellpadding="0" cellspacing="0" border="1" bordercolordark="#BEC3ED" bordercolorlight="#BEC3ED">
<tr height=26 style="background:url($request.getContextPath()/image/table_title.gif)" align="center">
<td nowrap width=10%><font color=white>編號</font></td>
<td nowrap width=25%><font color=white>部門名稱</font></td>
<td nowrap width=20%><font color=white>聯系電話</font></td>
<td nowrap width=20%><font color=white>EMAIL</font></td>
<td nowrap width=25%><font color=white>操作</font> </td>
</tr>
#set ($i=1)
#foreach($dept in $page.getList())
<tr height=23 align="center" bgcolor="$page.getOddRowColor()">
<td align="center">$i</td>
<td align="center"> <a href="$request.getContextPath()/deptAction.do?method=editDept&deptId=$!dept.getUnitId()&viewStatus=1">$!dept.getUnitName()</a></td>
<td align="center"> $!dept.getTelephone()</td>
<td align="center"> $!dept.getUnitEmail()</td>
<td align="center"><a href="deptAction.do?method=editDept&deptId=$!dept.getUnitId()">修改</a> <a href="#" onclick="del_onclick($!dept.getUnitId(),$!dept.getCanDelete())">刪除</a></td>
</tr>
#set ($i=$i+1)
#end
</table>
<br>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align=right>
<form id=thisForm action="deptList.do" method="post">
<input type=hidden name=start value="1">
<input type=hidden name=where>
<input type=hidden name=method value="deptList">
<input type=hidden name=deptId>
</form>
$page.getPageHeader()
</td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -