📄 admin_asset.html
字号:
<html>
<head>
<title>NET-OA</title>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<script language="JavaScript">
<!--
if (self==top){self.location.href="../default.asp"};
var add;
add=0;
function SelectUser(m,n,id,u) {
showModalDialog('../common/select_user.asp?m='+m+'&n='+n+'&ID='+id+'&u='+u,window,'dialogHeight:300px;dialogWidth:400px;dialogleft:200px;dialogtop:100px;help:no;status:no;scroll:no');
}
function win(id) {
showModalDialog('../common/user_info.asp?uid='+id,window,'dialogHeight:300px;dialogWidth:400px;dialogleft:180px;help:no;status:no;scroll:yes');
}
function CheckForm() {
var errorMsg = "";
if (document.form1.cType.value=="DEL"){
if (confirm("你确定要删除此资源吗?\n删除后不能恢复。")){
return true;
}else{
return false;
}
}else{
if (document.form1.aName.value==""){
errorMsg += "\n资源名称 \t- 资源名称不能为空";
}
if ((document.form1.bUser.value=="") && (document.form1.uUser.value=="")){
errorMsg += "\n使用部门&用户 \t- 至少需要选择一个以上的可以使用该资源的部门或用户";
}
if (errorMsg != ""){
msg = "_____________________________________________________\n\n";
msg += "此信息不能提交,因为有一些必填内容你还没有填写.\n";
msg += "请按要求把内容填完再提交.\n";
msg += "______________________________________________________\n\n";
msg += "以下内容要求填写: -\n";
errorMsg += alert(msg + errorMsg + "\n");
return false;
}
}
}
// -->
</script>
<link rel="stylesheet" href="../inc/style.css" type="text/css">
</head>
<body bgcolor="#FFFFFF" text="#000000" oncontextmenu="return false" scroll="no">
<table id=t1 width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="21" align="center" class="borderon">资源管理</td>
</tr>
</table>
<div style="position:relative; width:100%; height:expression(body.offsetHeight-t1.offsetHeight-2); z-index:1; left: 0px; top: 0px; overflow-x:hidden;overflow-y:scroll;">
<!--Net-OA1-->
</div>
<!--Net-OA2-->
<form name="form1" method="post" action="admin_asset.asp" onSubmit="return CheckForm();">
<table width="100%" border="1" bordercolor="#999999" cellspacing="0" cellpadding="2" align="center">
<tr bgcolor="#CCCCCC">
<td colspan="2">资源管理
<script language="JavaScript">
function MM_ChangeAdminType(selObj){
if (selObj.options[selObj.selectedIndex].value=="ADD"){
add=1;
document.form1.aName.value='';
document.form1.gUser.value='';
gUserName.className='hidden';
document.form1.bUser.value='';
bUserName.className='hidden';
document.form1.uUser.value='';
uUserName.className='hidden';
}else{
add=0;
document.form1.aName.value='<!--Net-OA3-->';
document.form1.gUser.value='<!--Net-OA4-->';
gUserName.className='';
document.form1.bUser.value='<!--Net-OA5-->';
bUserName.className='';
document.form1.uUser.value='<!--Net-OA6-->';
uUserName.className='';
}
}
</script>
</td>
</tr>
<tr bgcolor="#EEEEEE">
<td width="80" align="right">当前操作:</td>
<td>
<select name="cType" style="background-color:#EEEEEE" onChange="MM_ChangeAdminType(this);">
<!--Net-OA7-->
<option value="ADD">添加</option>
<!--Net-OA8-->
<option value="EDIT" selected>编辑</option>
<!--Net-OA9-->
<option value="DEL">删除</option>
<!--Net-OA10-->
</select>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="100" height="24" align="center">所属资源组:</td>
<td>
<select name="aID">
<!--Net-OA11-->
</select>
</td>
</tr>
<tr bgcolor="#EEEEEE">
<td align="right">资源名称:</td>
<td>
<input type="text" name="aName" size="15" maxlength="100" value="<!--Net-OA12-->">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td align="right">使用用户组:<img src="../images/member.gif" align="absmiddle" hspace="2" vspace="2" alt="选择用户组" onclick="SelectUser('Asset','Group',<!--Net-OA13-->,'gUser');"></td>
<td> <span id="gUserName"><!--Net-OA14--></span>
<input type="hidden" name="gUser" value="<!--Net-OA15-->"></td>
</tr>
<tr bgcolor="#EEEEEE">
<td align="right">使用部门:<img src="../images/member.gif" align="absmiddle" hspace="2" vspace="2" alt="选择部门" onclick="SelectUser('Asset','Branch',<!--Net-OA16-->,'bUser');" width="9" height="10"></td>
<td> <span id="bUserName"><!--Net-OA17--></span>
<input type="hidden" name="bUser" value="<!--Net-OA18-->">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td align="right">使用用户: <img src="../images/member.gif" width="9" height="10" align="absmiddle" hspace="2" vspace="2" alt="选择用户" onclick="SelectUser('Asset','User',<!--Net-OA19-->,'uUser');"></td>
<td> <span id="uUserName"><!--Net-OA20--></span>
<input type="hidden" name="uUser" value="<!--Net-OA21-->">
</td>
</tr>
<tr bgcolor="#CCCCCC">
<td align="center" colspan="2">
<input type="hidden" name="ID" value="<!--Net-OA22-->">
<input type="submit" name="S1" value=" 提交 ">
<input type="button" name="S2" value=" 取消 " onclick="history.back();">
</td>
</tr>
</table>
</form>
<!--Net-OA23-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -