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


<%@ 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"> 
	--> 
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
		<style type="text/css"> 
<!-- 
body,td,th { 
	color: #FFFFFF; 
	font-size: 18px; 
} 
 
body { 
	background-color: #4E3D2D; 
} 
--> 
</style> 
	</head> 
	<script type="text/javascript"> 
	function checkall(f){ 
	for(i=0;i<f.length;i++){ 
		if(f.elements[i].type=="text"||f.elements[i].type=="password"){ 
			if(f.elements[i].value==""){ 
				alert("请输入相关信息!"); 
				f.elements[i].focus(); 
				return false; 
			} 
		} 
	 
	} 
	return true; 
	} 
</script> 
	<body> 
		<div align="center"> 
			<form method="post" action="sp/doInsertSpInfo.jsp" 
				onsubmit="return checkall(this)"> 
 
				<table width="60%"> 
					<tr> 
						<td scope="col" width="30%"> 
							商品名	</td> 
						<td scope="col"> 
							<input name="spm" type="text"></td> 
					</tr> 
					 
					<tr> 
						<td scope="col"> 
							价格	</td> 
						<td scope="col"> 
<input name="jg" type="text"></td> 
					</tr> 
										<tr> 
						<td scope="col"> 
							单位	</td> 
						<td scope="col"> 
							<input name="dw" type="text"></td> 
					</tr> 
 
					<tr> 
						<td scope="col"> 
							零售商信息</td> 
						<td scope="col"> 
						<select name="lssid"> 
							<% LssDao recruitdao=new LssDao(); 
	ArrayList<Lss> list=recruitdao.getAllLss(); 
	Iterator<Lss> it=list.iterator(); 
	while(it.hasNext()){ 
	Lss r=it.next(); 
%>	 
<option value="<%=r.getId() %>">编号:<%=r.getId() %>联系人:<%=r.getLssxm() %></option> 
<%	 
	} 
  %> 
</select>   
  </td> 
					</tr> 
 
					<tr> 
						<td scope="col"> 
							<input type="submit" value="添加"/></td> 
						<td scope="col"> 
							 </td> 
					</tr> 
				</table> 
 
			</form> 
		</div> 
	</body> 
</html>