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

📄 userlist.vm

📁 负责公文的传输及一些处理功能
💻 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 update_onclick(intID){
  window.navigate("editdept.jsp?unitId=" + intID);
}
function del_onclick(userId){
  if (!confirm("确实要删除该人员吗?")){
    return false ;
  }
  thisForm.action = "useradmin.do";
  thisForm.method.value = "deluser";
  thisForm.userId.value = userId;
  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 newUser(){
  thisForm.action = "useradmin.do?method=edituser&userId=0";
  thisForm.submit();
}

</script>
</head>
<body scroll=no>
<br>
<table width="98%"  border="0" align="center" cellpadding="0" cellspacing="0" background="$request.getContextPath()/image/4_bar.gif">
        <tr height=30>
			 <td>&nbsp;&nbsp;</td>
             <td width="160" colspan=2><font face="宋体, 新宋体">人员信息列表</font></td>
             <td align="right">
				<button onclick="newUser()" accesskey="Q">新建人员(Q)</button>
             </td>
        </tr>
        <tr><td height=1 bgcolor="#FFFFFF" colspan=10>&nbsp;</td></tr>
</table>
<table width="98%" border="1" 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>办公电话</font></td>
       <td  nowrap width=25%><font color=white>操作</font> </td>
  </tr>
  #foreach($user in $!page.getList())
    <tr height=23 align="center" bgcolor="$page.getOddRowColor()">
      <td>$!user.getAccount()&nbsp;</td>
      <td>$!user.getUserName()&nbsp;</td>
      <td>$!user.getDeptName()&nbsp;</td>
      <td>$!user.getOfficeTel()&nbsp;</td>
      <td><a href="useradmin.do?method=edituser&userId=$!user.getUserId()">修改</a>&nbsp;<a href="#" onclick="del_onclick($!user.getUserId())">删除</a></td>
    </tr>
  #end
</table>
<br>
<table width="95%"  border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
  <td align=right>
    <form id=thisForm action="useradmin.do" method="post">
    <input type=hidden name=method value="userlist">
      <input type=hidden name=start value="1">
      <input type=hidden name=unitId value="$!userinfo.getUnit().getUnitId()">
      <input type=hidden name=userId >
    </form>
    $page.getPageHeader()
  </td>
</tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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