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


<%@page import="com.ccl.service.AdminService"%> 
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> 
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 
<% 
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_list.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 _confim(){ 
		var flag=confirm("您真的要删除此项数据吗?"); 
		return flag 
	} 
	 
	</script> 
  </head> 
  <body> 
  	<% 
  		List<Object> list=new AdminService().getAdimnList(); 
  		request.setAttribute("lists", list); 
  	%> 
  	    <div class="box"> 
    	<table border="1"> 
    		<tr> 
    			<th colspan="8">管理员信息</th> 
    		</tr> 
    		<tr> 
    			<td>管理员名称</td> 
    			<td>密码</td> 
    			<td>图书操作权限</td> 
    			<td>借还操作权限</td> 
    			<td>查询权限</td> 
    			<td>读者操作权限</td> 
    			<td>系统权限</td> 
    			<td>操作</td> 
    		</tr> 
    		<c:forEach items="${lists}" var="l">  
	    		<tr> 
	    			<td>${l.name }</td> 
	    			<td>${l.password }</td> 
	    			<td>${l.book==1?"是":"否" }</td> 
	    			<td>${l.borrow==1?"是":"否"  }</td> 
	    			<td>${l.query==1?"是":"否"  }</td> 
	    			<td>${l.reader==1?"是":"否"  }</td> 
	    			<td>${l.system==1?"是":"否"  }</td> 
	    			<td><span><a href="admin_edit.jsp?id=${l.id }">修改</a>|<a href="admin_del?id=${l.id}" onclick="return _confim()">删除</a></span></td> 
	    		</tr> 
    		</c:forEach> 
    	</table> 
    </div> 
  </body> 
</html>