www.pudn.com > liberSystem.rar > admin_add.jsp, change:2012-05-28,size:2705b


<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> 
<% 
String path = request.getContextPath(); 
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 
%> 
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
<html> 
  <head> 
    <base href="<%=basePath%>"> 
     
    <title>My JSP 'admin_add.jsp' starting page</title> 
     
	<meta http-equiv="pragma" content="no-cache"> 
	<meta http-equiv="cache-control" content="no-cache"> 
	<meta http-equiv="expires" content="0">     
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> 
	<meta http-equiv="description" content="This is my page"> 
	<link rel="stylesheet" type="text/css" href="css/main.css"> 
	 
	<script type="text/javascript"> 
	function on_submit(){ 
		admin_add.submit(); 
	} 
	function on_same(){ 
		if(admin_add.password.value!=admin_add.repassword.value) 
		{ 
			alert("二次密码必须一致"); 
			return false; 
		} 
		return true; 
	} 
	function on_check(){ 
		if(admin_add.name.value=="") 
		{ 
			alert("管理员用户名不能为空"); 
			return; 
		} 
	} 
	</script> 
  </head> 
 
  <body style="text-align: center;"> 
  <div class="box"> 
  	<form action="admin_add" method="post" name="admin_add"> 
	  <table border="1"> 
	  <tr> 
	  	<th colspan="2">增加新的管理员</th> 
	  </tr> 
	  <tr> 
	  	<td>管理员账号:</td> 
	  	<td><input type="text" name="name"></td> 
	  </tr> 
	  <tr> 
	  	<td>管理员密码:</td> 
	  	<td><input type="password" name="password"></td> 
	  </tr> 
	  <tr> 
	  	<td>二次密码:</td> 
	  	<td><input type="password" name="repassword" onblur="on_same()"></td> 
	  </tr> 
	  <tr> 
	  	<td>权限选择:</td> 
	  	<td> 
	  	<span> 
	  		<label for="book"></label> 
	  		<input type="checkbox" id="book" name="book" value="1">图书操作权限 
	  	</span> 
	  	<span> 
	  		<label for="book"></label> 
	  		<input type="checkbox" id="borrow" name="borrow" value="1">借还操作权限 
	  	</span> 
	  	<span> 
	  		<label for="book"></label> 
	  		<input type="checkbox" id="query" name="query" value="1">查询操作权限 
	  	</span> 
	  	<span> 
	  		<label for="book"></label> 
	  		<input type="checkbox" id="reader" name="reader" value="1">读者操作权限 
	  	</span> 
	  	<span> 
	  		<label for="book"></label> 
	  		<input type="checkbox" id="system" name="system" value="1">系统操作权限 
	  	</span> 
	  	</td> 
	  </tr> 
	  <tr> 
	  	<td colspan="2" class="box_bottom"> 
	  		<input type="button" value="提交" onclick="on_submit()"> 
	  		<input type="reset" value="重置"> 
	  	</td> 
	  </tr> 
	  </table> 
	  </form> 
  </div> 
  </body> 
</html>