?? usernew.jsp
字號:
<%@ page contentType="text/html;charset=gb2312"%>
<jsp:useBean id="offLogBean" class="com.officelog.OffLogBean" scope="page"/>
<%
boolean isadmin=offLogBean.userNew(request,response);
if(!isadmin)
response.sendRedirect("default.html");
%>
<jsp:useBean id="partid" class="java.lang.String" scope="request" />
<jsp:useBean id="partname" class="java.lang.String" scope="request" />
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../conn/style.css" rel="stylesheet" type="text/css">
<script language=javascript>
function check()
{
if(document.form1.truename.value=="")
{
alert("用戶名為空");
return false;
}
if(document.form1.username.value=="")
{
alert("帳號不能為空");
return false;
}
if(document.form1.password.value=="")
{
alert("密碼不能為空");
return false;
}
}
</script>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
<div align="center">
<p> </p>
<form method="post" action="/OfficeLog/dept/userSave.jsp" name="form1" onsubmit="javascript:return check();">
<input type="hidden" name="partid" value="<%=partid%>">
<table width="40%" border="1" cellspacing="0" cellpadding="0" bordercolorlight="#000000" bordercolordark="#FFFFFF">
<tr bgcolor="#CCCCCC">
<td height="25">
<div align="center"><font size="2">新增員工--<%=partname%></font></div>
</td>
</tr>
<tr>
<td height="30">
<div align="center"><font size="2">真實姓名
<input type="text" name="truename">
</font></div>
</td>
</tr>
<tr>
<td height="30">
<div align="center"><font size="2">帳 號
<input type="text" name="username">
</font> </div>
</td>
</tr>
<tr>
<td height="30">
<div align="center"><font size="2">初始密碼
<input type="password" name="password">
</font></div>
</td>
</tr>
<tr>
<td height="30">
<div align="center">權限設置
</div>
</td>
</tr>
<tr>
<td height="30">
<div align="center">
<input type="radio" name="flag" value="4" checked>
普通員工
<input type="radio" name="flag" value="2">
錄入員
<input type="radio" name="flag" value="3">
部門經理
<input type="radio" name="flag" value="1">
管理員
</div>
</td>
</tr>
</table>
<p>
<input type="submit" name="Submit" value="確定">
<input type="reset" name="reset" value="重置">
</p>
<br><br>
<font color="#000000">* 姓名和帳號必須是唯一的 * </font>
</form>
<p> </p>
<p align=center></p> </div>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -