You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
2.1 KiB

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>添加产品</title>
</head>
<body>
<form action="${pageContext.request.contextPath}/product/add" method="post">
<table>
<tr>
<td>商品编号:</td>
<td><input type="text" name="productId" value="1" readonly style="background-color: #e8f0fe;"></td>
</tr>
<tr>
<td>商品名称:</td>
<td><input type="text" name="productName" value="菠萝"></td>
</tr>
<tr>
<td>是否热门:</td>
<td>
<select name="isHot">
<option value="是" selected>是</option>
<option value="否">否</option>
</select>
</td>
</tr>
<tr>
<td>市场价格:</td>
<td><input type="text" name="marketPrice" value="23" style="background-color: #e8f0fe;"></td>
</tr>
<tr>
<td>销售价格:</td>
<td><input type="text" name="price" value="23" style="background-color: #e8f0fe;"></td>
</tr>
<tr>
<td>商品图片:</td>
<td><input type="file" name="image"></td>
</tr>
<tr>
<td>分类名称:</td>
<td><input type="text" name="categoryName" value="水果"></td>
</tr>
<tr>
<td>商品描述:</td>
<td><textarea name="description" rows="5" cols="40">菠萝.....</textarea></td>
</tr>
<tr>
<td>上架日期:</td>
<td><input type="text" name="launchDate" value="2025-3-25"></td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="reset" value="重置">
<input type="submit" value="添加" style="margin-left: 100px;">
</td>
</tr>
</table>
</form>
</body>
</html>