newoperator.jsp

来自「jsp/servlet中国移动模拟收费系统」· JSP 代码 · 共 97 行

JSP
97
字号
<%@ page language="java" pageEncoding="UTF-8"%>
<HTML><HEAD><TITLE>中国移动业务管理系统</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<link href="../style.css" rel="stylesheet" type="text/css">

	</HEAD>
	<BODY bgColor=#ffffff leftMargin=0 topMargin=0 marginheight="0"
		marginwidth="0">
		<TABLE cellSpacing=0 cellPadding=0 width="580" border=0>
			<TBODY>
				<TR>
					<TD height=25>
						&nbsp;您现在的位置:新增操作员
					</TD>
				</TR>
				<TR>
					<TD bgColor=#2650a6>
						<IMG height=1 src="images\blank(1).gif" width=1>
					</TD>
				</TR>
				<TR>
					<TD>
						<IMG height=2 src="images\blank(1).gif" width=574>
					</TD>
				</TR>
				<TR vAlign=top>
					<TD height="600" bgColor=#f1f3f9>
						<form method="POST" action="newoperator" name=newoperator>
						<font color="red">${error}</font><br>
						<font color="blue"><%=request.getAttribute("error") %></font>
						
							<p>
								登录ID:
								<input type="text" name="T1" size="20" value="" maxlength=10>
							</p>
							<p>
								姓 名:
								<input type="text" name="T2" size="20" value="">
							</p>
							<p>
								密码:
								<input type="password" name="T3" size="20" value="">
							</p>
							<p>
								密码确认:
								<input type="password" name="T4" size="20" value="">
							</p>
							<p>
								是否管理员:
								<input type="radio" value="Y" checked name="R1">
								是&nbsp;&nbsp;&nbsp; 
     							<input type="radio" name="R1" value="N">
      							</p>
							<p>
								<input type="button" value="提交" onclick="JavaScript:checkForm();">
							</p>
						</form>
					</TD>
				</TR>
			</TBODY>
		</TABLE>
		<BR>
		
	</BODY>
</HTML>

<Script language="JavaScript">
	function checkForm(){
		var theForm = document.newoperator;
		if(theForm.T1.value==""){
			alert("请输入用户名");
			theForm.T1.focus();
		}else if(theForm.T1.value.length < 10){
			alert("请输入十位用户名");
			theForm.T1.focus();
		}else if(theForm.T2.value==""){
			alert("请输入姓名");
			theForm.T2.focus();
		}else if(theForm.T3.value==""){
			alert("请输入密码");
			theForm.T3.focus();
		}else if(theForm.T4.value==""){
			alert("确认密码不应为空");
			theForm.T4.focus();
		}else if(theForm.T3.value != theForm.T4.value){
			alert("初始密码与确认密码不相等!");
			theForm.T4.focus();
		}
		else{
			theForm.submit();
		}
		
	}
</Script>

⌨️ 快捷键说明

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