⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 addadmin.jsp

📁 该程序能够准确的记录互联网用户上网所用的流量
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %><%@ taglib uri="/WEB-INF/fmt.tld" prefix="fmt" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
 <head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>中国电信上海网上客服中心--用户注册</title><link href="../../css/shct10000.css" rel="stylesheet" type="text/css"><style type="text/css"><!--.STYLE1 {	font-size: 14px;	font-weight: bold;}--></style><!-- <script type="text/javascript">	--var req;		function loginNameCheck(){		 var loginName = document.getElementById('loginName').value;         var url = "../checkNameExist.do?type=admin&loginName="+loginName;                  if (window.XMLHttpRequest) {             req = new XMLHttpRequest();         }else if (window.ActiveXObject) {             req = new ActiveXObject("Microsoft.XMLHTTP");         }        if(req){            req.open("post", url, true);            req.onreadystatechange = callback;            req.send(null);                 }			}			function callback() {	    if (req.readyState == 4) {        if (req.status == 200) {                 parseMessage();        }else{            alert ("Not able to retrieve description" + req.statusText);        }           }else{        	document.getElementById("info").innerHTML = "正在验证用户名....";    }   }       function parseMessage() {      var xmlDoc = req.responseXML.documentElement;       var node = xmlDoc.getElementsByTagName('info');      document.getElementById('info').innerHTML = node[0].firstChild.nodeValue;          }      function clearCheckInfo() {    document.getElementById('info').innerHTML = "";   }	 </script>--> <script type="text/javascript"><!--   //用户登录function loginNameCheck(url){	// alert("into check...");	var username = document.getElementById("loginName").value;	// var password = document.getElementById("loginPassword").value;	// var parameter = "username="+username+"&password="+password;	var parameter = "username="+username;	 alert("parameter="+parameter);	var loginDiv = document.getElementById("loginDiv");	loginDiv.innerHTML = "<font size='4' color='green'>"+"正在检测...</font>";	sendAsynchronRequest(url,parameter,loginCallBack);} var xmlHttp;//create XMLRequest objectfunction createXMLHttpRequest(){	    if(window.XMLHttpRequest){ //Mozilla 浏览器        xmlHttp = new XMLHttpRequest();    }else if(window.ActiveXObject) { //IE 浏览器    	try{        	xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");        }catch(e){        	try {            	xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");        	}catch(e){}        }    }    if(xmlHttp == null){    	alert("不能创建XMLHttpRequest对象实例");    	return false;    }}//发送异步请求的方法 AsynchronRequest methodfunction sendAsynchronRequest(url,parameter,loginCallBack){	createXMLHttpRequest();	if(parameter == null){	 	//步骤三:设置属性(事件处理器)		xmlHttp.onreadystatechange = loginCallBack;		//步骤四: 设置 open()和 send()方法并调用		//alert("before open()...");		xmlHttp.open("GET",url,true);		//发出一个异步的请求		//alert("after open()...");		//alert("before send()...");		xmlHttp.send(null);//该方式请求体为空		//alert("after send()...");	}else{		xmlHttp.onreadystatechange = loginCallBack;		xmlHttp.open("POST",url,true);				//post提交必须设置为此种方式		xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded;");		//将 patameter放置在请求体当中		xmlHttp.send(parameter);	}}//处理用户登录返回结果的回调函数function loginCallBack(){	// alert("readyState="+xmlHttp.readyState);	//步骤六:判断是否全部接收返回信息和信息是否正确	if(xmlHttp.readyState == 4){		// alert("status="+xmlHttp.status);		if(xmlHttp.status == 200){			var xmlDoc = xmlHttp.responseXML;						var message = xmlDoc.getElementsByTagName("message")[0];			var error = xmlDoc.getElementsByTagName("error")[0];					var loginDiv = document.getElementById("loginDiv");			if(message != null){				alert("该帐户可以使用");				loginDiv.innerHTML = "<font size='4' color='green'>"+message.firstChild.nodeValue+"</font>";			}			if(error != null ){								loginDiv.innerHTML = "<font size='4' color='red'>"+error.firstChild.nodeValue+"</font>";			}								}	}}   	--></script></head>	<c:if test="${!empty message}" >			<script type="text/javascript">				alert('<c:out value="${message}"/>');			</script>			<c:remove var="message"/>		</c:if><body><center><form  name="addAdminForm" method="post" action="/woss_ajd0706_team3/admin/addAdmin.do">    <table width="776" border="0" align="center" cellpadding="0" cellspacing="0">            <tr>              <td align="left" style="border-bottom:1px solid #E5E5E5"><img src="../../image/index_zc_sign-up2.gif" width="120" height="30"></td>            </tr>			<tr>               <td height="25" align="left">            	            	请填写您的注册信息		          </td>            </tr>      </table>		   	       <!--书签插入位置-->		   <table width="776" border="0" cellspacing="0" cellpadding="0">         	<tr>         		<td id="card1" width="776" align="center" bgcolor="#3D84CD" style="cursor:hand; color:#ffffff; font-size:14px; font-weight:bold">         			基本信息</td>			            </tr>             </table>	<table width="776" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #E5E5E5">      <tr>         <td align="center">          	            <table width="764" border="0" cellspacing="0" cellpadding="0">	                  	<tr>         		<td colspan="4" align="left">         			<font style="color:#FAAD45">*</font> 为必填信息:         		</td>            </tr>             </table>          <table width="764" border="0" cellspacing="0" cellpadding="0">            <tr>               <td width="20" height="25" align="center" style="color:#FAAD45">*</td>              <td width="100" height="25" align="center"> 网站帐号:</td>              <td width="177" height="25" align="left">	            <span class="table_k_bg1">					  				          <input type="text" id="loginName" name="loginName" maxlength="20" size="20" value="" alt="网站帐号" > 			            </span>		  	  </td>                            <td align="left"  width="467" >										<table border="0" cellspacing="0" cellpadding="0">				<tr>					<td width="117" align="left">					<img src="../../image/shct10000_in_buttonSFKY.gif" height="23" width="114" border="0" style="cursor:hand;padding-top:2px" onClick="javascript:loginNameCheck('../../admin/managers/checkLogin.do');">					</td>					<td id="info" colspan="4" style="color:red; font-size:14px; font-weight:bold" align="left" >&nbsp;					<DIV id="loginDiv"></DIV></td>									</tr></table>			    				   </td>			            </tr>            <tr>               <td colspan="2">&nbsp;</td>	              <td colspan="2" align="left">              	(账号的有效字符为a-z小写英文字母、0-9数字或下划线“_”,长度应在1-10个字符之间)              </td>			            </tr>          </table>                             <table width="764" border="0" align="center" cellpadding="0" cellspacing="0">                      <tr>               <td width="20" height="30" align="center" valign="middle" style="color:#FAAD45">*</td>              <td width="100" height="30" align="center" valign="middle">  登录密码:</td>              <td width="177" height="30" align="left" valign="middle">              	<span class="table_k_bg1">                 	<input type="password" name="password1" size="21" value="" alt="登录密码" onfocus="clearCheckInfo();">               </span>              </td>              <td width="467" height="30" align="left" valign="middle">              	<a href="#"></a>              	(最少为6位数字或者字母)              </td>            </tr>                        <tr>               <td width="20" height="30" align="center" valign="middle" style="color:#FAAD45">*</td>

⌨️ 快捷键说明

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