📄 orderslist.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 submitForm()
{
if(document.form1.selectValue.value=="")
{
alert("请输入查找关键字");
document.form1.selectValue.focus();
return false;
}else
{
return true;
}
}
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()%>/select.do?page="+a;
return true;
}
}
function gomake(id)
{
window.location = "<%=request.getContextPath()%>/makes.do?id="+id;
}
</script>
</head>
<body bgcolor="#ffffff">
<jsp:include flush="false" page="index.jsp"/>
<center>
<form name="form1" action="<%=request.getContextPath()%>/query.do" method="POST" >
<table>
<tr>
<td >输入查询客户姓名</td>
<td>
<input type="text" maxlength="10" name="selectValue" value="${requestScope.selectValue}" onkeyup="value=value.replace(/[ -~]/g,'')" onkeydown="if(event.keyCode==13)event.keyCode=9" />
</td>
<td>
<input type="submit" value="查询" onclick="return submitForm()" > <br>
</td>
</tr>
</table>
<c:if test="${not empty requestScope.selectList}">
<table border="0" cellpadding="3" cellspacing="3" width="725" height="16">
<tr class="head">
<th>顾客姓名 </th>
<th>分销商名称 </th>
<th>订货日期 </th>
<th>负责人姓名 </th>
<th>类型</th>
<th>确认日期 </th>
<th> 选择发货单 </th>
</tr>
<c:forEach var="orders" items="${requestScope.selectList}" varStatus="current">
<tr class="single-item">
<td>${orders.customername} </td>
<td>${orders.sell} </td>
<td>${orders.ordertime}</td>
<td>${orders.principal}</td>
<td>${orders.type} </td>
<td>${orders.verifytime}</td>
<td> <center> <input type="button" onclick="return gomake('${orders.ID}');" value="提交"/></center></td>
</tr>
</c:forEach>
</table>
<table>
<tr class="double-item">
<td>
共有${requestScope.max}条记录    
</td>
<td>
<a href="<%=request.getContextPath()%>/select.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()%>/select.do?action=next&page=${requestScope.page+1}">下一页 </a>
</c:if>
</td>
<td>
<a href="<%=request.getContextPath()%>/select.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 + -