www.pudn.com > liberSystem.rar > booktype_list.jsp, change:2012-05-31,size:1781b


<%@page import="com.ccl.service.BookTypeService"%> 
<%@page import="com.ccl.service.BookService"%> 
<%@ 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 BookTypeService().booktype_list(); 
  		request.setAttribute("lists", list); 
  	%> 
  	    <div class="box"> 
    	<table border="1"> 
    		<tr> 
    			<th colspan="3">图书类型列表</th> 
    		</tr> 
    		<tr> 
    			<td>编号</td> 
    			<td>类型名称</td> 
    			<td>操作</td> 
    		</tr> 
    		<c:forEach items="${lists}" var="l">  
	    		<tr> 
	    			<td>${l.id }</td> 
	    			<td>${l.name }</td> 
	    			<td><span><a href="booktype_edit.jsp?id=${l.id }">修改</a>|<a href="booktype_del?id=${l.id}" onclick="return _confim()">删除</a></span></td> 
	    		</tr> 
    		</c:forEach> 
    	</table> 
    </div> 
  </body> 
</html>