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


<%@ 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"> 
	--> 
 
  </head> 
   
  <body style="background-color: #4E3D2D; color: #FFFFFF"> 
 <%    
   request.setCharacterEncoding("UTF-8");   
   String id=request.getParameter("id");   
   		if(id==null||"".equals(id)){   
   		out.println("没有相关車輛信息!");  
   		}else{   
   			ClDao dao=new ClDao();   
   			Cl t=dao.getClInfoById(id);   
   			if(t!=null){   
%>  
<form method="post" action="cl/doUpdateClInfo.jsp?id=<%=t.getId() %>"> 
<table width="40%"> 
					<tr> 
						<td scope="col"> 
							车牌号	</td> 
						<td scope="col"> 
							<input name="cph" type="text"  value="<%=t.getCph() %>" ></td> 
					</tr> 
					 
					<tr> 
						<td scope="col"> 
							车型	</td> 
						<td scope="col"> 
							<input name="cx" type="text"  value="<%=t.getCx() %>"></td> 
					</tr> 
										<tr> 
						<td scope="col"> 
							 容量	</td> 
						<td scope="col"> 
							<input name="rl" type="text"  value="<%=t.getRl() %>">吨</td> 
					</tr> 
 
					<tr> 
						<td scope="col"> 
							 驾驶员	</td> 
						<td scope="col"> 
							<input name="jsy" type="text"  value="<%=t.getJsy() %>"></td> 
					</tr> 
					<tr> 
						<td scope="col"> 
							状态</td> 
						<td scope="col"> 
							<select name="zt"> 
								<option value="空闲">空闲</option> 
								<option value="已派出">已派出</option> 
							</select></td> 
					</tr> 
				</table> 
 
<input type="submit" value="修改"/>	 
</form>		 
 <% 	} 
 	 
   		} 
   %> 
  </body> 
</html>