📄 init.vm
字号:
<html>
<head>
<title>初始化单位信息</title>
<link rel="stylesheet" type="text/css" href="$request.getContextPath()/csslib/style.css">
<script Language="JavaScript" src="$request.getContextPath()/jslib/FloatButton.js"></script>
<script Language="JavaScript" src="$request.getContextPath()/jslib/function.js"></script>
<script language="javascript">
function window_onload(){
thisForm.unitName.focus();
}
function submit_onclick(){
if (check()){
thisForm.submit();
}
}
function check(){
if (trim(thisForm.unitName.value) == ""){
alert("请填写单位名称!");
thisForm.unitName.focus();
return false;
}
if (trim(thisForm.managerAccount.value) == ""){
alert("请填写单位管理员帐号!");
thisForm.managerAccount.focus();
return false;
}
if (trim(thisForm.managerPwd.value) != trim(thisForm.pwdConfirm.value)){
alert("密码输入不一致!");
thisForm.managerPwd.focus();
return false;
}
else
{
if(thisForm.managerPwd.value==""){
alert("用户的密码不能为空!");
thisForm.managerPwd.focus();
return false;
}
if(thisForm.managerPwd.value.length>0 && thisForm.managerPwd.value.length<5){
alert("为了确保安全,用户的密码位数应该在五位以上,请重输!");
thisForm.managerPwd.focus();
return false;
}
}
return true;
}
function sslogin(field, event) {
var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
if (keyCode == 13) { if(check()){thisForm.submit();}}
return true;
}
function reset1(){
thisForm.unitName.value="";
thisForm.managerAccount.value="";
thisForm.managerPwd.value="";
thisForm.pwdConfirm.value="";
thisForm.unitName.focus();
}
</script>
</head>
<body scroll=no onload="window_onload();">
<form action="$request.getContextPath()/viewListUnit.do" method="post" name="thisForm">
<input type=hidden name=method value="initUnit">
<input type=hidden name=unitId value="0">
<input type=hidden name=fatherId value="0">
<input type=hidden name=allFatherId value="0">
<input type=hidden name=action value="0">
<input type=hidden name=unitType value="0">
<input type=hidden name=unitStyle value="1">
<input type=hidden name=printNumber value="15">
<table align=center width=100% height=90%>
<tr><td>
<table align="center" valign=middle width="300px" border="1" cellpadding="0" cellspacing="0" bordercolordark="white" bordercolorlight="black">
<tr class="TTitle" align="center">
<td nowrap colspan=4><font color=white size=2><b>【系统初始化单位信息】</b></font>
</td>
</tr>
<tr height=25>
<td align=right nowrap><font color=red>*</font>单 位 名 称: </td>
<td nowrap colspan=3>
<input type="text" name="unitName" maxlength="30" value="" onkeypress="return handleEnter(this, event)">
</td>
</tr>
<tr height=25>
<td align=right nowrap><font color=red>*</font>管 理员帐号: </td>
<td nowrap colspan=3>
<input type="text" name="managerAccount" maxlength="15" value="" onkeypress="return handleEnter(this, event)">
</td>
</tr>
<tr height=25>
<td align=right nowrap><font color=red>*</font>管 理员密码: </td>
<td nowrap colspan=3>
<input type="password" name="managerPwd" maxlength="15" value="" onkeypress="return handleEnter(this, event)">
</td>
<tr height=25>
<td align=right nowrap><font color=red>*</font>密 码 确 认: </td>
<td nowrap colspan=3>
<input type="password" name="pwdConfirm" maxlength="20" value="" onkeypress="return sslogin(this, event)">
</td>
</tr>
<tr height=35>
<td colspan="4" align="center">
<button onclick="submit_onclick()">保 存</button>
<button type="reset" onclick="reset1()">重 填</button>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -