?? sellrecords.jsp
字號(hào):
<%@ page language="java" pageEncoding="gb2312"%>
<%@ 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" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html locale="true">
<head>
<html:base />
<title>sellRecords.jsp</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<style type="text/css">
<!--
.style1 {
font-family: "宋體";
font-size: 14px;
}
body {
background-color: #CCCCCC;
}
-->
</style>
<script type="text/javascript">
var tip=new Array();
tip[0]="例如: 2007-05";
tip[1]="例如: 張";
tip[2]="例如: 張";
tip[3]="未審核、通過(guò)、未通過(guò)、終結(jié)";
tip[4]="普通 或 特殊";
function showTip(){
var col=form1.select.value;
if(col=="a") form1.keyWord.value=tip[0];
if(col=="b") form1.keyWord.value=tip[1];
if(col=="c") form1.keyWord.value=tip[2];
if(col=="d") form1.keyWord.value=tip[3];
if(col=="e") form1.keyWord.value=tip[4];
}
function clearText(){
var key=form1.keyWord.value;
for(i=0;i<tip.length;i++){
if(tip[i]==key){
form1.keyWord.value="";
return;
}
}
}
function check(){
var key=form1.keyWord.value;
for(i=0;i<tip.length;i++){
if(tip[i]==key) return false;
}
var col=form1.select.value;
if(col!="a") return true;//只檢查日期格式
if(key!="" && key.match(/\d{1,2}-\d{1,2}/)==null){
return confirm("時(shí)間格式應(yīng)該為 yy-mm-dd 或 yy-mm,\n\n所輸入格式可能有誤,仍然要查詢么?");
}
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
<body >
<h1 align="center">銷售記錄</h1>
<form action="QueryOrdersRecords" name="form1" onsubmit="return check()" method="POST">
<table width="450" align="center" cellspacing="0" class="style1">
<tr>
<td width="84" align="right">查詢方式:</td>
<td width="102" align="left"> <select onChange="showTip()" name="select">
<option value="a">時(shí)間</option>
<option value="b">客戶</option>
<option value="c">負(fù)責(zé)人</option>
<option value="d">狀態(tài)</option>
<option value="e">類型</option>
</select></td>
<td width="59" align="right">關(guān)鍵字:</td>
<td width="126"><input name="keyWord" size="16" value="例如: 2007-05"
onFocus="clearText()"></td>
<td width="67" align="right"><input type="submit" value="查詢"></td>
</tr>
</table>
</form>
<hr>
<table width="600" border="1" align="center" cellspacing="0" class="style1">
<tr>
<td>訂單號(hào)</td>
<td>客戶</td>
<td>負(fù)責(zé)人</td>
<td>收貨地址</td>
<td>訂貨時(shí)間</td>
<td>審核時(shí)間</td>
<td>狀態(tài)</td>
<td>類型</td>
<td>詳細(xì)信息</td>
</tr>
<logic:present name="list">
<logic:iterate id="order" name="list">
<tr>
<td><bean:write name="order" property="id" /> </td>
<td><bean:write name="order" property="customerName" /> </td>
<td><bean:write name="order" property="principalName" /> </td>
<td><bean:write name="order" property="address" /></td>
<td><bean:write name="order" property="orderTime" /></td>
<td><bean:write name="order" property="verifyTime" /></td>
<td><bean:write name="order" property="status" /></td>
<td><bean:write name="order" property="type" /></td>
<td><a href="QueryOrderDetails?id=<bean:write name='order' property='id' />"
target="_blank">查看</a></td>
</tr>
</logic:iterate>
</logic:present>
<logic:present name="noOrderRecord">
<tr height="50"><td align="center" colspan="9">查詢不到滿足條件的記錄!</td></tr>
</logic:present>
</table>
</body>
</html:html>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -