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


<%@ 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> 
    <td>删除</td> 
  </tr> 
  <% 
  request.setCharacterEncoding("UTF-8"); 
LssDao dao=new LssDao(); 
  	ArrayList<Lss> tlist=dao.getAllLss(); 
  	if(tlist!=null){ 
  		Iterator<Lss> it=tlist.iterator(); 
  		while(it.hasNext()){ 
  			Lss t=it.next(); 
%> 
    <tr> 
    <td><%=t.getId()%></td> 
    <td><%=t.getLssxm() %></td> 
    <td><%=t.getXb()%></td> 
    <td><%=t.getSfzh() %></td> 
    <td><%=t.getLxdh()%></td> 
    <td><%=t.getYx() %></td> 
    <td><%=t.getDz() %></td> 
    <td><a href="lss/updateLss.jsp?id=<%=t.getId()%>">更新</a></td> 
    <td><a href="lss/deleteLss.jsp?id=<%=t.getId() %>" onclick="return confirm('是否删除?')">删除</a></td> 
  </tr> 
<% 		 		 
  		}  
 %> 
 </table>  
 <% 		 	 
  	}else{ 
  		out.print("没有零售商信息!"); 
  	 
  	} 
   
   %> 
   	 
  </body> 
</html>