📄 updatebody.jsp
字号:
<%@page contentType="text/html; charset=GBK" pageEncoding="GBK"%>
<%@page isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="bean" uri="http://struts.apache.org/tags-bean"%>
<%@taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<!-- 定义标题 -->
<c:set var="pageTitle" scope="application">
<bean:message key="product.title.update"/>
</c:set>
<html:javascript formName="productForm"/>
<div id="product">
<html:form action="/protect/product/addupdate.do?method=update" method="POST" onsubmit="return validateProductForm(this)">
<table style="width:40%;border-bottom:dashed 1px #336699;font-size:14px" align="center" cellspacing="0">
<tr>
<th class="tr_bg_left"> </th>
<th class="tr_bg_middle" colspan="2"><bean:message key="product.title.update"/></th>
<th class="tr_bg_right"> </th>
</tr>
<c:set var="p" value="${ p_update }"/>
<c:set var="id" value="${ p.id }"/>
<c:set var="no" value="${ p.no }"/>
<c:set var="name" value="${ p.name }"/>
<c:set var="size" value="${ p.size }"/>
<c:set var="where" value="${ p.madewhere }"/>
<c:set var="iprice" value="${ p.in_price }"/>
<c:set var="sprice" value="${ p.sale_price }"/>
<c:set var="lprice" value="${ p.lowest_price }"/>
<c:set var="type" value="${ p.type }"/>
<c:set var="unit" value="${ p.unit }"/>
<tr>
<td> </td>
<td>
<input name="p_id" type="hidden" value="${ id }">
<bean:message key="product.property.no"/>
</td>
<td><input class="text_input" name="p_no" type="text" value="${ no }"></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><bean:message key="product.property.name"/></td>
<td><input class="text_input" name="p_name" type="text" value="${ name }"></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><bean:message key="product.property.size"/></td>
<td><input class="text_input" name="p_size" type="text" value="${ size }"></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><bean:message key="product.property.madewhere"/></td>
<td><input class="text_input" name="madewhere" type="text" value="${ where }"></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><bean:message key="product.property.inprice"/></td>
<td><input class="text_input" name="in_price" type="text" value="${ iprice }"></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><bean:message key="product.property.saleprice"/></td>
<td><input class="text_input" name="sale_price" type="text" value="${ sprice }"></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><bean:message key="product.property.lowestprice"/></td>
<td><input class="text_input" name="lowest_price" type="text" value="${ lprice }"></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><bean:message key="product.property.type"/></td>
<td><select style="width:120px" name="p_type" size="1" id="type">
<option>${ type }</option>
<c:forEach var="type" items="${ product_types }">
<c:set var="t_id" value="${ type.key }"/>
<c:set var="t_name" value="${ type.value.name }"/>
<option value="${ t_name }">${ t_name }</option>
</c:forEach>
</select>
</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><bean:message key="product.property.unit"/></td>
<td><select style="width:120px" name="p_unit" id="unit">
<option>${ unit }</option>
<c:forEach var="unit" items="${ product_units }">
<c:set var="u_id" value="${ unit.key }"/>
<c:set var="u_name" value="${ unit.value.name }"/>
<option value="${ u_name }">${ u_name }</option>
</c:forEach>
</select>
</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td><input type="submit" class="updatebtn" value="">
</td>
<td> </td>
</tr>
</table>
</html:form>
</div>
<div style="align:center;color:red"><html:errors/></div>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -