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

📄 managermodifyproducts.jsp

📁 java sql jsp javabean
💻 JSP
字号:
<%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
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 'ManagerModifyProducts.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" href="mm_health_nutr.css" type="text/css" />
  </head>
  
  <body>
  <br>
    <form action="servlet/ManagerModifyProductsServlet">
    <table>
    <tr><td><img src="mm_spacer.gif" alt="" width="100" height="1" border="0"/></td><td>
    	<fieldset>
    	<legend>修改商品信息</legend>
    	<table cellpadding="6" cellspacing="3">
    		<c:if test="${requestScope.product!=null}">
    			<c:set value="${requestScope.product}" var="pro"></c:set>
    			<tr><td align="center">商品编号:</td><td><c:out value="${pro.pid}"></c:out>
    			<input type="hidden" name="p_id" value="${pro.pid}">
    			</td>
    			<td align="center" rowspan="3">图片:</td>
    			<td rowspan="3"><input type="image" src="${pro.picturepath}" title="${pro.pname}" alt="${pro.pname}"></td>
    			</tr>
    			<tr><td align="center">商品名称:</td><td><input type="text" value="${pro.pname}" name="p_name"></td>		
    			</tr>
    			<tr><td align="center">商品价格:</td><td><input type="text" value="${pro.pprice}" name="p_price"></td></tr>
    			<tr><td align="center">所属类别:</td>
    			<td>
    			<select name="p_smallcid">
    			<c:forEach var="cate" items="${requestScope.smallcate}">
    				
    				<c:if test="${cate.scid==pro.smallcid}">
    					<option selected value="${cate.scid}"><c:out value="${cate.sname}"></c:out></option>
    				</c:if>
    				<c:if test="${cate.scid!=pro.smallcid}">
    				<option value="${cate.scid}"><c:out value="${cate.sname}"></c:out></option>
    				</c:if>
    			</c:forEach>
    			</select>
    			</td>
    			<td>图片位置:</td>
    			<td><input type="file" name="p_picture"></td>
    			
    			</tr>
    			<tr><td align="center">库存量:</td>
    			<td><input type="text" value="${pro.amount}" name="p_amount"></td>
    			<td align="center">状态:</td>
    			<td>
    			<select name="p_status">
    			<c:forEach var="statu" items="${requestScope.status}">
    				<c:if test="${statu==pro.pstatus}">
    				<option selected value="${statu}"><c:out value="${statu}"></c:out></option>
    				</c:if>
    				<c:if test="${statu!=pro.pstatus}">
    				<option value="${statu}"><c:out value="${statu}"></c:out></option>
    				</c:if>
    			</c:forEach>		
    			</select>	
    			</td>
    			</tr>	
    		</c:if>
    		<tr><td colspan="4"><hr size="1px" color="green"></td></tr>
    		<tr><td colspan="4" align="center"><input type="submit" value=" 修 改 "></td></tr>
    	</table>
    	</fieldset>
    	</td></tr>
    </table>
    </form>
  </body>
</html>

⌨️ 快捷键说明

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