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

📄 store.jsp

📁 很好的东东 本人随便做的 仅供学习之用
💻 JSP
字号:

<%@page contentType="text/html; charset=GBK"%>
<%@ taglib prefix="c" uri="/WEB-INF/c.tld" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<html>
<head>
<title>select</title>
<style type="text/css">
<!--
#Layer1 {
	position:absolute;
	left:585px;
	top:16px;
	width:472px;
	height:279px;
	z-index:1;
}
.STYLE4 {
	font-family: "新宋体";
	font-size: 36px;
	color: #9966FF;
}
.aaa {
	font-family: "宋体";
	font-size: 14px;
	color: #0000ff;
}
.STYLE6 {
	font-size: 14px;
	color: #0000FF;
}
.STYLE7 {
	font-size: 14px;
	font-weight: bold;
}
body {
	background-image: url(images/bg3.gif);
}
.STYLE5 {font-size: 12px}
-->
</style>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/chuyun/skin.css">
  	<script type="text/javascript" src="<%=request.getContextPath()%>/chuyun/skin.js"></script>
  	
  	
<script type="text/javaScript">

function toPage()
{
  if(document.form1.pageText.value=="")
  {
            alert("请输入要前往的页数");
           document.form1.pageText.focus();
           return false;
  }else
        {
          a=document.form1.pageText.value;
          if(parseInt(a) <= 0||parseInt(a) >= parseInt("${requestScope.pagecount}"))
             a="${requestScope.pagecount}";
              if(parseInt(a) >= parseInt("${requestScope.pagecount}"))
             a="${requestScope.pagecount}";
          document.form1.action = "<%=request.getContextPath()%>/warehouse.do?page="+a;
          return true;
        }
}

</script>
</head>
<body bgcolor="#ffffff">
<center>
  <form name="form1" action="<%=request.getContextPath()%>/warehouse.do" method="POST" >
  
  
 
  
  <c:if test="${not empty requestScope.warehouseList}">
 
   <table border="0" cellpadding="3" cellspacing="3" width="725" height="16">
      <tr class="head">
        
        <th>仓库地址</th>
        <th>仓库电话 </th>
        <th>负责人姓名  </th>
        <th>仓库名称 </th>
      
        
      </tr>
    
      
   <c:forEach var="wh" items="${requestScope.warehouseList}" varStatus="current">
        <tr class="single-item">
       
          <td>${wh.address}  </td>
           <td>${wh.tel} </td>
          
             <td>${wh.principal}  </td>
              <td>${wh.warehouse}</td>
              
        
     
         </tr>
      </c:forEach>
      
      
  
    </table>
    
 <table>
      <tr class="double-item">
        <td>
          <a href="<%=request.getContextPath()%>/warehouse.do?action=frist">首页</a>
        </td>
        
        <td>
          <c:if test="${requestScope.page==1}">上一页</c:if>
          <c:if test="${requestScope.page!=1}">
            <a href="select.do?action=next&page=${requestScope.page-1}">上一页</a>
          </c:if>
        </td>
        
        <td>
          <c:if test="${requestScope.page==requestScope.pagecount}">下一页</c:if>
          <c:if test="${requestScope.page!=requestScope.pagecount}">
            <a href="<%=request.getContextPath()%>/warehouse.do?action=next&page=${requestScope.page+1}">下一页</a>
          </c:if>
        </td>
        
        <td>
          <a href="<%=request.getContextPath()%>/warehouse.do?action=last">尾页</a>
        </td>
        <td>${requestScope.page}          /
${requestScope.pagecount}        </td>
        <td>          转到
          <input type="text" size="2" name="pageText" onkeyup="value=value.replace(/[^\d]/g,'') " onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" value="${requestScope.page}"/>
          <input type="submit" onclick="return toPage(this)" value="GO"/>
        </td>
      </tr>
    </table>
  </c:if>
  </form>
</center>
 <br>
    <hr>

</body>
</html>

⌨️ 快捷键说明

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