?? user_add.jsp
字號:
<%@ page contentType="text/html;charset=gb2312" %>
<%@ include file="incdb.jsp"%>
<%@ include file="sessionadmin.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="0">
<title>財務管理系統</title>
<link rel="stylesheet" href="images/css.css" type="text/css" media="screen">
<script Language="JavaScript">
<!--
function check_input(theForm)
{
if (theForm.name.value == "")
{
alert("請輸入管理員名稱");
theForm.name.focus();
return (false);
}
if (theForm.pass.value == "")
{
alert("請輸入管理員密碼");
theForm.pass.focus();
return (false);
}
if (theForm.name.value.length > 20)
{
alert("管理員名稱長度應小于20個字符");
theForm.name.focus();
return (false);
}
if (theForm.pass.value.length > 16)
{
alert("管理員密碼長度應小于16個字符");
theForm.pass.focus();
return (false);
}
if (theForm.truename.value == "")
{
alert("請輸入真實姓名");
theForm.truename.focus();
return (false);
}
if (theForm.classid.value == "")
{
alert("請選擇欄目");
theForm.classid.focus();
return (false);
}
if (theForm.ipaddress.value == "")
{
alert("請輸入用戶的IP地址");
theForm.ipaddress.focus();
return (false);
}
}
//-->
</script>
</head>
<body topmargin=0>
<TABLE width=400 border="0" align=center cellpadding=4 cellspacing=1 class="tableBorder">
<form method="POST" action="user_save.jsp" onsubmit="return check_input(this)">
<TR bgcolor="#6699CC">
<Th colspan=2><div align="center" class="whitetitle"><B>增加用戶</B></div></Th>
</TR>
<TR>
<TD width="30%" class="forumrow"> <strong>用戶名稱</strong></TD>
<TD width="70%" class="forumrow">
<input TYPE="text" name=name size=20 maxlength=20> **不得超過 10 個字符</TD>
</TR>
<TR>
<TD width="30%" class="forumrow"> <strong>用戶密碼</strong></TD>
<TD width="70%" class="forumrow">
<input TYPE="password" name=pass size=20 maxlength=16>
**不得超過 16 個字符</TD>
</TR>
<TR>
<TD class="forumrow"> <strong>真實姓名</strong></TD>
<TD class="forumrow"><input name=truename TYPE="text" id="truename" size=20 maxlength=16>
**不得超過 10 個字符</TD>
</TR>
<TR>
<TD width="30%" class="forumrow"> <strong>所屬部門</strong></TD>
<TD width="70%" class="forumrow">
<select name="classid">
<option value="">請選擇所屬部門</option>
<% Vector listclass = new Vector();
DispClass dispclass = new DispClass();
listclass = dispclass.allClass();
for(int i=0;i<listclass.size();i++) {
IClass classinfo = (IClass)listclass.elementAt(i);%>
<option value="<%=classinfo.getID()%>"><%=classinfo.getName()%></option>
<%}%>
</select> **</TD>
</TR>
<TR>
<TD class="forumrow"> <strong>限制IP</strong></TD>
<TD class="forumrow">
<input name=ipaddress TYPE="text" id="ipaddress" size=20 maxlength=16>
**請輸入用戶IP地址</TD>
</TR>
<TR>
<TD height="45" colspan=2 align=center class="forumrow"> <FONT color=#000000>
<INPUT name=Submit type=submit value="確 定">
<INPUT name=Submit2 type=reset value="清 除"></FONT></TD>
</TR>
</form>
</TABLE>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -