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

📄 unitlist.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 del_onclick(canDelete){
  if (canDelete){
     alert("本单位下已建有部门或直属单位,无法删除!");
     return false;
  }
  if (!confirm("确实要删除该单位吗?")){
    return false ;
  }
  return true ;
}
function newUnit(){
  thisForm.action = "$request.getContextPath()/viewListUnit.do?method=editUnit&unitId=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="newUnit()" 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=45%><font color=white>单位名称</font></td>
       <td  nowrap width=10%><font color=white>联系人</font></td>
       <td  nowrap width=20%><font color=white>联系电话</font></td>
       <td  nowrap width=15%><font color=white>操作</font> </td>
    </tr>
	#set ($i=1)
	#foreach($item in $page.getList())
	<tr height=23 bgcolor="$page.getOddRowColor()" align="center">
       <td align="center">$i</td>
	   <td><a href="$request.getContextPath()/viewListUnit.do?method=viewUnit&unitId=$!item.unitId">$!item.unitName</a></td>
       <td>&nbsp;$!item.unitMaster</td>
       <td>&nbsp;$!item.telephone</td>
       <td align="center">
			<a href="$request.getContextPath()/viewListUnit.do?method=editUnit&unitId=$!item.unitId">编辑</a>&nbsp;
			<a href="javascript:if(del_onclick($!item.canDelete)) location='$request.getContextPath()/viewListUnit.do?method=delUnit&unitId=$!item.unitId'">删除</a>
	   </td>
	</tr>
	#set($i=$i+1)
	#end
</table>
<br>
 <table width="98%"  border="0" align="center" cellpadding="0" cellspacing="0">
   <tr>
     <td align=right>
       <form id=thisForm action="unitList.do?method=unitList" method="post">
         <input type=hidden name=start value="1">
		 <input type=hidden name=unitId value="$!userinfo.getUnit().getUnitId()">
       </form>
       $page.getPageHeader()
     </td>
   </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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