?? 0086f48dcc1d001e1672a24ec0ef4ea6
字號(hào):
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="UTF-8"%>
<%@ page import="com.cric.onlineshopclothes.dao.ProductDAO" %>
<%@ page import="com.cric.onlineshopclothes.javabean.Category" %>
<%@ page import="java.util.List" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
ProductDAO dao1=new ProductDAO();
List list=(List)dao1.getProductCategory();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'index.jsp' starting page</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<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>'
<body>
<form method="post" action="ProductServlet?oprate=add" enctype="multipart/form-data" name="productAdd">
<table width="523" height="368" border="0" align="center">
<tr>
<td colspan="2" bgcolor="#00FF00"><div align="center">
<h2>商品添加</h2>
</div></td>
</tr>
<tr>
<td width="99">商品名稱:</td>
<td width="414"><input type="text" name="productName"></td>
</tr>
<tr>
<td height="39">所屬類別:</td>
<td>
<select name="cid" >
<%
for(int i=0;i<list.size();i++){
Category category=(Category)list.get(i);
%>
<option value="<%=category.getCategoryId() %>"><%=category.getCategoryName() %></option>
<%}%>
</select>
</td>
</tr>
<tr>
<td height="53">商品描述:</td>
<td><textarea name="productDetail"></textarea></td>
</tr>
<tr>
<td>商品進(jìn)貨價(jià)</td>
<td> </td>
</tr>
<tr>
<td>商品出售價(jià):</td>
<td><input type="text" name="productPrice"></td>
</tr>
<tr>
<td>商品庫(kù)存:</td>
<td><input type="text" name="productAmount"></td>
</tr>
<tr>
<td>商品圖片:</td>
<td><input type="file" name="productPhoto"></td>
</tr>
<tr>
<td>商品狀態(tài):</td>
<td><input type="radio" name="productState" value="up">
上架
<input type="radio" name="productState" value="down">
下架</td>
</tr>
<tr>
<td>進(jìn)貨時(shí)間:</td>
<td><input type="text" name="productPrice2"></td>
</tr>
<tr>
<td>熱銷度:</td>
<td><input type="checkbox" name="checkbox" value="checkbox">
熱銷
<input type="checkbox" name="checkbox2" value="checkbox">
中等
<input type="checkbox" name="checkbox3" value="checkbox">
淡季</td>
</tr>
<tr>
<td>已售量:</td>
<td><input type="text" name="productPrice3"></td>
</tr>
<tr>
<td colspan="2"><div align="center">
<input type="submit" name="Submit" value="提交">
<input type="reset" name="reset" value="重置">
</div></td>
</tr>
</table>
</form>
</body>
</html>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -