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


<%@page import="com.ccl.service.AdminService"%> 
<%@page import="com.ccl.domin.Operator"%> 
<%@ 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(); 
	} 
	 
	</script> 
  </head> 
   
  <% 
  	String id=request.getParameter("id"); 
  	Operator o=null; 
  	if(id!=null) 
  		o=new AdminService().getAdminLogin(Integer.parseInt(id)); 
  	request.setAttribute("o", o); 
  %> 
   
   
  <body style="text-align: center;"> 
  <div class="box"> 
  	<form action="admin_update" method="post" name="admin_add"> 
	  <table border="1"> 
	  <tr> 
	  	<th colspan="2">修改管理员权限</th> 
	  </tr> 
	  <tr> 
	  	<td>管理员账号:</td> 
	  	<td>${o.name }</td> 
	  </tr> 
	  <tr> 
	  	<td>权限选择:</td> 
	  	<td> 
	  	<span> 
	  		<input type="checkbox" id="book" name="book" value="1" <%if(o.getBook()==1)out.print("checked='checked'"); %> ><label for="book">图书操作权限</label> 
	  		<input type="hidden" name="id" value="${o.id }"> 
	  	</span> 
	  	<span> 
	  		<input type="checkbox" id="borrow" name="borrow" value="1" <%if(o.getBorrow()==1)out.print("checked='checked'"); %>><label for="borrow">借还操作权限</label> 
	  	</span> 
	  	<span> 
	  		<input type="checkbox" id="query" name="query" value="1" <%if(o.getQuery()==1)out.print("checked='checked'"); %>><label for="query">查询操作权限</label> 
	  	</span> 
	  	<span> 
	  		<input type="checkbox" id="reader" name="reader" value="1" <%if(o.getReader()==1)out.print("checked='checked'"); %>><label for="reader">读者操作权限</label> 
	  	</span> 
	  	<span> 
	  		<input type="checkbox" id="system" name="system" value="1" <%if(o.getSystem()==1)out.print("checked='checked'"); %>><label for="system">系统操作权限</label> 
	  	</span> 
	  	</td> 
	  </tr> 
	  <tr> 
	  	<td colspan="2" class="box_bottom"> 
	  		<input type="button" value="提交" onclick="on_submit()"> 
	  		<input type="button" value="返回" onclick="javascript:history.go(-1)"> 
	  	</td> 
	  </tr> 
	  </table> 
	  </form> 
  </div> 
  </body> 
</html>