?? cardinputerresult.jsp
字號(hào):
<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<%@page import="teleReport.domain.CardInfo"%>
<%@page import="org.apache.struts.util.LabelValueBean"%>
<%@page import="java.util.*"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html:html lang="true">
<head>
<bean:define id="totalPId" name="cardBean" property="totalPage" />
<bean:define id="curPId" name="cardBean" property="currentPage" />
<link rel="stylesheet" type="text/css" href="../common/css/common.css" />
<title>卡銷(xiāo)售信息查詢(xún)結(jié)果</title>
<%
String str = totalPId.toString();
int n = Integer.parseInt(str);
List v = new ArrayList();
for (int i = 1; i <= n; i++) {
v.add(new LabelValueBean(Integer.toString(i), Integer
.toString(i)));
}
pageContext.setAttribute("v", v);
%>
<%
String type =(String)session.getAttribute("userClass");
if (!type.equals("1")) {
session.setAttribute("notLogin", true);
out.print("<script language=javascript>window.location.href='/TeleReport/jsp/login.jsp';</script>");
}
%>
<html:base />
</head>
<body>
<div style="position:absolute;margin:15px,0px,0px,0px;width:1085px;">
<logic:empty name="cardBean" property="pageCardList">
沒(méi)有符合要求的選項(xiàng),請(qǐng)
<html:link href="./cardInputerQuery.jsp">返回</html:link>
</logic:empty>
<logic:notEmpty name="cardBean"
property="pageCardList">
<br>
<table width="200" border="1">
<tbody>
<tr>
<td class="item">
卡銷(xiāo)售單編號(hào)
</td>
<td class="item">
產(chǎn)品編號(hào)
</td>
<td class="item">
城市
</td>
<td class="item">
銷(xiāo)售日期
</td>
<td class="item">
卡單張面值
</td>
<td class="item">
卡銷(xiāo)售數(shù)量
</td>
<td class="item">
折扣后金額
</td>
<td class="item">
稽查狀態(tài)
</td>
<td class="item">
稽查者
</td>
<td class="item">
稽查時(shí)間
</td>
<td class="item">
操作
</td>
</tr>
<logic:iterate id="element" name="cardBean" property="pageCardList">
<tr>
<td class="item_value">
<bean:write name="element" property="cardSaleId" />
</td>
<td class="item_value">
<bean:write name="element" property="proName" />
</td>
<td class="item_value">
<bean:write name="element" property="cityName" />
</td>
<td class="item_value">
<bean:write name="element" property="saleDate" />
</td>
<td class="item_value">
<bean:write name="element" property="singleV" />
</td>
<td class="item_value">
<bean:write name="element" property="proNumber" />
</td>
<td class="item_value">
<bean:write name="element" property="discordV" />
</td>
<td class="item_value">
<logic:equal value="0" property="state" name="element">未稽核</logic:equal>
<logic:equal value="1" property="state" name="element">已稽核</logic:equal>
<logic:equal value="2" property="state" name="element">未通過(guò)</logic:equal>
</td>
<td class="item_value">
<bean:write name="element" property="checkId" />
</td>
<td class="item_value">
<bean:write name="element" property="checkTime" />
</td>
<td class="item_value">
<div id="operation"
<%if(((CardInfo) element).getState().equals("1")){%>
style="visibility: hidden" <%} %>>
<a
href="./goToUpdateCard.do?cardSaleId=<%=((CardInfo) element).getCardSaleId()%>">
更新 </a>
<a
href="./ensureCard.do?cardSaleId=<%=((CardInfo) element).getCardSaleId()%>">
刪除 </a>
</div>
</td>
</tr>
</logic:iterate>
</tbody>
</table>
<br>
<table>
<tr>
<td width="2%"></td>
<td>
<html:form action="/jsp/goHeadPageInCard">
<html:submit value="首頁(yè)"></html:submit>
</html:form>
</td>
<td>
<html:form action="/jsp/goToLastPageInCard">
<html:submit value="上一頁(yè)"></html:submit>
</html:form>
</td>
<td>
<html:form action="/jsp/goToNextPageInCard">
<html:submit value="下一頁(yè)"></html:submit>
</html:form>
</td>
<td>
<html:form action="/jsp/goEndPageInCard">
<html:submit value="尾頁(yè)"></html:submit>
</html:form>
</td>
<td>
<html:form action="jsp/goNextPageInCard">
總共有
<bean:write name="cardBean" property="totalPage"></bean:write>
頁(yè), 第
<html:select property="currentPage">
<html:options collection="v" labelProperty="label"
property="value" />
</html:select>
頁(yè)
<html:submit value="跳轉(zhuǎn)"></html:submit>
</html:form>
</td>
<td width="55%"></td>
</tr>
</table>
<br>
<br>
<html:form action="/jsp/download">
<p align="right">
<input name="Submit" type="submit" class="button" value="導(dǎo)出">
</p>
</html:form>
</logic:notEmpty>
</div>
</body>
</html:html>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -