www.pudn.com > Java_web_shipin_gongsi-.rar > showAllClInfo.jsp, change:2011-05-15,size:2063b


<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> 
<%@  page import="dao.*,bean.*" %> 
<% 
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 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="styles.css"> 
	--><style type="text/css"> 
<!-- 
body,td,th { 
	color: #FFFFFF; 
	font-size: 18px; 
} 
body { 
	background-color:#4E3D2D; 
} 
a{ 
	color:#FFFFFF; 
} 
--> 
</style> 
 
  </head> 
   
  <body style="background-color:#4E3D2D; color: #FFFFFF"> 
  <table width="80%" border="1"> 
    <tr> 
    <td>车辆编号</td> 
    <td>车牌号</td> 
    <td>车型</td>     
     <td>容量</td> 
    <td>驾驶员</td>     
    <td>状态</td>        
     
    <td>更新</td> 
    <td>删除</td> 
  </tr> 
  <% 
  request.setCharacterEncoding("UTF-8"); 
 ClDao dao=new ClDao(); 
  	ArrayList<Cl> tlist=dao.getAllCl(); 
  	if(tlist!=null){ 
  		Iterator<Cl> it=tlist.iterator(); 
  		while(it.hasNext()){ 
  			Cl t=it.next(); 
%> 
    <tr> 
    <td><%=t.getId()%></td> 
    <td><%=t.getCph() %></td> 
    <td><%=t.getCx()%></td> 
    <td><%=t.getRl() %></td> 
    <td><%=t.getJsy()%></td> 
    <td><%=t.getZt() %></td> 
    <td><a href="cl/updateCl.jsp?id=<%=t.getId()%>">更新</a></td> 
    <td><a href="cl/deleteCl.jsp?id=<%=t.getId() %>" onclick="return confirm('是否删除?')">删除</a></td> 
  </tr> 
<% 		 		 
  		}  
 %> 
 </table>  
 <% 		 	 
  	}else{ 
  		out.print("没有车辆信息!"); 
  	 
  	} 
   
   %> 
   	 
  </body> 
</html>