📄 productbody.jsp
字号:
<%@page contentType="text/html;charset=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"%>
<!-- 定义标题 -->
<c:set var="pageTitle" scope="application">
<bean:message key="product.title"/>
</c:set>
<div id="product">
<!-- 关于商品的操作 -->
<form action="/CompanyIOSManagement_V1.0/protect/product/search.do" method="GET">
<table style="width:100%" cellspacing="0">
<tr>
<th width="5%">
<c:url var="addProduct" value="add.jsp" />
<a href="${ addProduct }" target="_self">
<img src="../../images/add_product.jpg" alt="add" border="0"/>
</a>
</th>
<th width="40%"> </th>
<th style="text-align:right">
<input name="search" type="text" id="search" />
<select name="search_type">
<option value="p_no"><bean:message key="product.property.no"/></option>
<option value="p_name"><bean:message key="product.property.name"/></option>
<option value="p_type"><bean:message key="product.property.type"/></option>
</select>
<input name="btn" type="submit" class="search_btn" value=" " />
</th>
</tr>
</table>
</form>
<form name="deleteForm" action="/CompanyIOSManagement_V1.0/protect/product/delete.do" method="POST">
<table style="width:100%;font-size: 14px;border: solid 1px #336699" cellspacing="0">
<tr bgcolor="#339999">
<th><span class="th_font"><bean:message key="product.property.id"/></span></th>
<th><span class="th_font"><bean:message key="product.property.no"/></span></th>
<th><span class="th_font"><bean:message key="product.property.name"/></span></th>
<th><span class="th_font"><bean:message key="product.property.size"/></span></th>
<th><span class="th_font"><bean:message key="product.property.madewhere"/></span></th>
<th><span class="th_font"><bean:message key="product.property.inprice"/></span></th>
<th><span class="th_font"><bean:message key="product.property.saleprice"/></span></th>
<th><span class="th_font"><bean:message key="product.property.lowestprice"/></span></th>
<th><span class="th_font"><bean:message key="product.property.type"/></span></th>
<th><span class="th_font"><bean:message key="product.property.unit"/></span></th>
<th colspan="2"><span class="th_font"><bean:message key="product.operation"/></span></th>
</tr>
<!-- 遍历所有商品 -->
<c:forEach var="ps" items="${ products_data }">
<c:set var="id" value="${ ps.key }" scope="session"/>
<c:set var="no" value="${ ps.value.no }" />
<c:set var="name" value="${ ps.value.name }" />
<c:set var="size" value="${ ps.value.size }" />
<c:set var="where" value="${ ps.value.madewhere }" />
<c:set var="iprice" value="${ ps.value.in_price }" />
<c:set var="sprice" value="${ ps.value.sale_price }" />
<c:set var="lprice" value="${ ps.value.lowest_price }" />
<c:set var="type" value="${ ps.value.type }" />
<c:set var="unit" value="${ ps.value.unit }" />
<tr style="background-color:#DDf3FF">
<td class="tr_bottom_border"><input type="checkbox" id="p_id" name="p_id" value="${ id }"/>
<input type="hidden" id="idd" name="idd"/>
</td>
<td class="tr_bottom_border">${ no }</td>
<td class="tr_bottom_border">${ name }</td>
<td class="tr_bottom_border">${ size }</td>
<td class="tr_bottom_border">${ where }</td>
<td class="tr_bottom_border">${ iprice }</td>
<td class="tr_bottom_border">${ sprice }</td>
<td class="tr_bottom_border">${ lprice }</td>
<td class="tr_bottom_border">${ type }</td>
<td class="tr_bottom_border">${ unit }</td>
<td class="tr_bottom_border">
<c:url var="modify" value="/protect/product/modify.do">
<c:param name="p_id" value="${ id }"/>
</c:url>
<a href="${ modify }">
<img src="../../images/updatebtn.jpg" alt="update" border="0"/>
</a>
</td>
<td class="tr_bottom_border">
<c:url var="delete" value="/protect/product/deleteOne.do">
<c:param name="id" value="${ id }"/>
</c:url>
<a href="${ delete }" onclick="checkDelete(this)">
<img src="../../images/deletebtn.jpg" alt="delete" border="0"/>
</a>
</td>
</tr>
</c:forEach>
<tr>
<td colspan="12">
<input class="deletebtn" type="submit" value="Delete Selected" onclick="checkDelete(this)">
</td>
</tr>
</table>
</form>
</div>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -