⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 0086f48dcc1d001e1672a24ec0ef4ea6

📁 网上购物系统
💻
字号:
<%@ 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>商品进货价</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>商品出售价:</td>
    <td><input type="text" name="productPrice"></td>
  </tr>
  <tr>
    <td>商品库存:</td>
    <td><input type="text" name="productAmount"></td>
  </tr>
  <tr>
    <td>商品图片:</td>
    <td><input type="file" name="productPhoto"></td>
  </tr>
  <tr>
    <td>商品状态:</td>
    <td><input type="radio" name="productState" value="up">
      上架
      <input type="radio" name="productState" value="down">
      下架</td>
  </tr>
  <tr>
    <td>进货时间:</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>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -