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

📄 storage.jsp

📁 关于ssh的整合,希望对大家有帮助
💻 JSP
字号:
<%@ page language="java"  pageEncoding="utf-8"%>
<%!int p=1;%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
Integer sum=(Integer)session.getAttribute("sum");
String p1= request.getParameter("p");
String p2= request.getParameter("p2");
if((p1==null || "".equals(p1))&&(p2==null || "".equals(p2)))
  {
    p1="1";
  }
  else if(p2!=null)
  {
    p1=p2;
  }
  int p = Integer.parseInt(p1);
  //总页数
  int s =(sum+5-1)/5;  
%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<html>
<html:base/>
<head>
<title>jb-aptech毕业设计项目</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css/style.css" rel="stylesheet" type="text/css">
<script src="../script/common.js"></script>
</head>
<body>
<form action="<%=path %>/storage.do" method="post">
<input type="hidden" name="flag" value="select"/>
<div class="page_title">产品查询</div>
<div class="button_bar">
	<button class="common_button" onclick="help('');">帮助</button>
	<button class="common_button" type="submit">查询</button>  
</div>
<table class="query_form_table">
	<tr>
		<th>产品</th>
		<td><input name="productname"/></td>
		<th>仓库</th>
		<td><input name="stkWarehouse"/></td>
		<th>&nbsp;</th>
		<td>&nbsp;</td>
	</tr>
</table>
</form>
<br />
<table class="data_list_table">
	<tr>
		<th>序号</th>
		<th>产品</th>
		<th>仓库</th>
		<th>货位</th>
		<th>件数</th>
		<th>备注</th>
	</tr>

  <logic:iterate id="st" name="list" scope="request">
  		<tr>
		<td class="list_data_number"><bean:write name="st" property="stkId"/></td>
		<td class="list_data_ltext"><bean:write name="st" property="product.prodName"/></td>
		<td class="list_data_ltext"><bean:write name="st" property="stkWarehouse"/></td>
		<td class="list_data_text"><bean:write name="st" property="stkWare"/></td>
		<td class="list_data_number"><bean:write name="st" property="stkCount"/></td>
		<td class="list_data_ltext"><bean:write name="st" property="stkMemo"/></td>		
		</tr>
  </logic:iterate>
	<tr>
		<th colspan="100" class="pager">
<div class="pager">
总页数:<%=s%>&nbsp; 当前页:<%=p%>&nbsp;每页显示5条;
    <%if(p!=1){ %>
    <a href="<%=path %>/storage.do?flag=list&p=<%=1%>">首页</a>
    <a href="<%=path %>/storage.do?flag=list&p=<%=p-1%>">上一页</a>
     <% } %>

    <%if(p!=s&&p<s){ %>
    <a href="<%=path %>/storage.do?flag=list&p=<%=p+1%>">下一页</a>
    <a href="<%=path %>/storage.do?flag=list&p=<%=s%>">尾页</a>
     <% } %>
</div>
		</th>
	</tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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