📄 storebody.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"%>
<%@taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<!-- 定义标题 -->
<c:set var="pageTitle" scope="application">
<bean:message key="house.title"/>
</c:set>
<div id="house">
<form name="searchForm" action="/CompanyIOSManagement_V1.0/protect/store/search.do" method="POST">
<table style="width:85%" align="center" cellspacing="0">
<tr>
<th width="47%"> </th>
<th width="38%"><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>
</select>
<input name="btn" type="submit" class="search_btn" value=" " />
</th>
</tr>
</table>
</form>
<table style="width:85%;font-size: 14px;border: solid 1px #336699" align="center" cellspacing="0">
<tr bgcolor="#339999">
<td class="th_font"><bean:message key="product.property.no"/></td>
<td class="th_font"><bean:message key="product.property.name"/></td>
<td class="th_font"><bean:message key="house.houseStore"/></td>
<td class="th_font"><bean:message key="product.property.unit"/></td>
<td class="th_font"><bean:message key="house.property.name"/></td>
</tr>
<!-- 查询所有商品的库存 -->
<c:forEach var="p" items="${ products_store_data }">
<c:set var="id" value="${ p.key }"></c:set>
<c:set var="no" value="${ p.value.p.no }"></c:set>
<c:set var="name" value="${ p.value.p.name }"></c:set>
<c:set var="num" value="${ p.value.p_num }"></c:set>
<c:set var="unit" value="${ p.value.p.unit }"></c:set>
<c:set var="position" value="${ p.value.house.name }"></c:set>
<tr>
<td class="tr_bottom_border">${ no }</td>
<td class="tr_bottom_border">${ name }</td>
<!-- 根据库存的多少,显示不同的样式 -->
<logic:greaterThan name="num" value="10">
<td class="tr_bottom_border">${ num }</td>
</logic:greaterThan>
<logic:lessEqual name="num" value="10">
<td class="tr_bottom_border">
<font style="color:red">${ num }
(<bean:message key="house.houseStore.notEnough"/>)</font>
</td>
</logic:lessEqual>
<td class="tr_bottom_border">${ unit }</td>
<td class="tr_bottom_border">${ position }</td>
</tr>
</c:forEach>
<tr>
<td colspan="5"> </td>
</tr>
</table>
</div>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -