📄 index2.jsp
字号:
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ 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" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>中青网络会所>>会员消费月排行榜 试行版V2.0</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="" name=keywords>
<META content="" name=description>
<STYLE type=text/css ></STYLE>
<link href="css/style.css" rel="stylesheet" type="text/css">
<META content="MSHTML 6.00.2900.3243" name=GENERATOR>
<script type="text/javascript">
function changeValue(){
// alert(document.getElementById("chb").checked);
if(document.getElementById("chb").checked==true){
document.getElementById("chkValue").value="1";
}else{
document.getElementById("chkValue").value="0";
}
// alert(document.getElementById("chkValue").value);
}
//如果用户选择了精确查询复选框的话,则在提交表单的时候判断他输入的会员编号是否合法。
function chkForm(){
if(document.getElementById("chb").checked==true){
var custNo=document.getElementById("custNo").value;
if(custNo.length==0){
alert("你要查询的会员帐号还没有输入呢。");
return false;
}else if(custNo.length!=18&&custNo.length!=15){
alert("你要查询的会员帐号不正确,请重新录入!");
document.getElementById("custNo").focus();
return false;
}
}
return true;
}
</script>
</HEAD>
<BODY bgColor=#ffffff leftMargin=0 background=images/ds_bg.jpg
topMargin=0 marginwidth="0" marginheight="0">
<CENTER>
<TABLE cellSpacing=0 cellPadding=0 width=902 border=0>
<TBODY>
<tr>
<td colspan="2" height="120" bgcolor="#FF9900"><div align="center"><img src="images/topBanner.jpg" width="918" height="120"></div></td>
</tr>
<TR>
<TD width=1 bgColor=#d2aed2></TD>
<TD width=900>
<TABLE cellSpacing=0 cellPadding=0 width=900 border=0>
<TBODY>
<TR>
<TD vAlign=top align=middle width=189 bgColor=#fef5f6><TABLE
style="BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #ffffff 1px solid; BORDER-LEFT: #ffffff 1px solid; BORDER-BOTTOM: #ffffff 1px solid"
cellSpacing=0 cellPadding=0 width=100% bgColor=#d25eba border=0>
<TBODY>
<TR>
<TD><IMG height=30 alt="" src="images/topAward.gif"
width=45 border=0></TD>
<TD class="link02 bold" width=110>近期冠军列表</TD>
<TD class=link02 width=48></TD>
</TR>
</TBODY>
</TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=200 border=0>
<TBODY>
<TR>
<TD width="200" height=4><table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
<c:forEach items="${firstInfo}" var="fi" varStatus="count">
<tr>
<td width="69" bgcolor="#FF9966"><span class="STYLE4">${fi.rankMonth.monthDate }</span></td>
<td width="120"><span class="ipnut2">${firstNos[count.count-1] }</span></td>
</tr>
</c:forEach>
</table></TD>
</TR>
<TR>
<TD align=middle valign="middle" class="link08 l15"
style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-TOP: 15px">
</TD></TR>
<TR>
<TD height=4></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=100% border=0>
<TBODY>
<TR>
<TD bgColor=#fcf8d8 height=4><TABLE cellSpacing=0 cellPadding=0 width=100% border=0>
<TBODY>
<TR>
<TD
align=middle bgcolor="#b24fd0" class=link016 style="PADDING-TOP: 10px"><B>中青会员月消费排行榜简介</B></TD>
</TR>
<TR>
<TD height=10></TD>
</TR>
<TR>
<TD background=images/dszs_060222_002.gif
height=4></TD>
</TR>
<TR>
<TD
vAlign=top class="link016 l17"
style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; PADDING-TOP: 10px"><p><span class="style3">说明:</span><span class="style2">为回报广大骨灰级的顾客朋友一直以来对中青的支持与厚爱,特推出本“会员消费月排行榜”,本排行榜从2007年12月开始公布并实施相应的奖励,首先申明,我们设立本排行榜的目的并非是想让大家拼得你死我活的来上榜,而是对我们网吧的顾客的一个诚意的回报。我们也知道,你们一个月在我们这花费那么多的钱,也算为我们作了那么多的贡献,我们怀者一颗诚挚的心,表示感谢,并以此为实际行动来表达中青对你们的感谢。</span></p>
<p class="style3"> 本会员排行榜从2009年3月份开始,执行新的回报方式:<br>
共投入<font color="red">1200元</font>取前<font color="red">50名</font>分七个等级实行奖励方案<br>
<span class="STYLE5">一等奖取<font color="red">1名</font>回报<font color="red">108元</font>, <br>
二等奖取<font color="red">2名</font>每人回报<font color="red">88元</font>,<br>
三等奖取<font color="red">3名</font>每人回报<font color="red">68元</font>,四等奖取<font color="red">4名</font>每人回报<font color="red">48元</font>,<br>
五等奖取<font color="red">5名</font>每人回报<font color="red">28元</font>,<br>
六等奖取<font color="red">10名</font>每人回报<font color="red">18元</font>,<br>
七等奖取<font color="red">25名</font>每人回报<font color="red">8元</font>。<br>
</span>我们将在每个月初时发布上个月的会员消费排行信息,望大家及时关注本网吧网站的公布信息.</p></TD>
</TR>
</TBODY>
</TABLE></TD></TR></TBODY></TABLE>
</TD>
<TD width=2 bgColor=#ffffff></TD>
<TD style="PADDING-TOP: 1px" vAlign=top align=middle
bgColor=#ffffff>
<form id="selectForm" name="selectForm" method="post" onsubmit="return chkForm();" style="border:none" action="selectRank.do">
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#fbeee0">
<tr>
<td colspan="7"><TABLE
style="BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #ffffff 1px solid; BORDER-LEFT: #ffffff 1px solid; BORDER-BOTTOM: #ffffff 1px solid"
cellSpacing=0 cellPadding=0 width=100% bgColor=#d25eba border=0>
<TBODY>
<TR>
<TD width="42"><IMG height=23 alt="" src="images/submit2.gif"
width=25 border=0></TD>
<TD class="link02 bold" width=133>排行榜查询</TD>
<TD class=link02 width=532>请输入您的查询条件!</TD>
</TR>
</TBODY>
</TABLE></td>
</tr>
<tr>
<td width="10%" bgcolor="#FFFFcc">会员帐号:
</td>
<td width="31%" bgcolor="#FFFFbb"><input name="custNo" type="text" class="ipnut1" id="custNo" size="20" maxlength="18" />
<input type="hidden" name="oprate" value="select"/>
<input name="chb" id="chb" type="checkbox" onclick="changeValue();" style="border: none;" title="精确匹配" value="checkbox" />
精确<input type="hidden" name="chkValue" id="chkValue" value="0" /></td>
<td width="10%" bgcolor="#FFFFCC">所属等级:</td>
<td width="11%" bgcolor="#FFFFbb"><select name="levelID" id="levelID">
<option value="0">所有</option>
<option value="1">一等奖</option>
<option value="2">二等奖</option>
<option value="3">三等奖</option>
<option value="4">四等奖</option>
<option value="5">五等奖</option>
</select></td>
<td width="10%" bgcolor="#FFFFbb">所在年月:</td>
<td width="23%" bgcolor="#FFFFbb"><select name="year" id="year">
<option value="2009">2009</option>
</select>
年
<select name="month">
<option value="0">全部</option>
<option value="01">一月</option>
<option value="02">二月</option>
<option value="03">三月</option>
<option value="04">四月</option>
<option value="05">五月</option>
<option value="06">六月</option>
<option value="07">七月</option>
<option value="08">八月</option>
<option value="09">九月</option>
<option value="10">十月</option>
<option value="11">十一月</option>
<option value="12">十二月</option>
</select>
月</td>
<td width="5%" bgcolor="#FFFFbb"><input type="image" src="images/submit.gif" alt="单击查询" width="30" height="30" /></td>
</tr>
<tr>
<td> </td>
<td colspan="6"> </td>
</tr>
<tr>
<td colspan="7"><TABLE cellSpacing=0 cellPadding=0 width=100% bgColor=#b24fd0
border=0>
<TBODY>
<TR>
<TD width=33><IMG height=23 alt=""
src="images/erji_002.gif" width=33 border=0></TD>
<TD width="213" class="link02 bold">排行榜详细信息</TD>
<TD width="467"
align=right class=link02 style="PADDING-RIGHT: 5px">您现在的位置:<a href="http://www.zqnet8.cn/">中青网络会所</a>>><a href="#">会员月消费排行榜</a></TD>
</TR>
<TR>
<TD bgColor=#ffffff colSpan=3 height=4></TD>
</TR>
</TBODY>
</TABLE></td>
</tr>
</table>
</form>
<TABLE
style="BORDER-RIGHT: #e9d6c5 5px solid; BORDER-TOP: #e9d6c5 5px solid; BORDER-LEFT: #e9d6c5 5px solid; BORDER-BOTTOM: #e9d6c5 5px solid"
cellSpacing=0 cellPadding=0 width=700 bgColor=#fff7db border=0>
<TBODY>
<TR>
<TD
style="PADDING-RIGHT: 4px; PADDING-LEFT: 4px; PADDING-BOTTOM: 4px; PADDING-TOP: 4px"
vAlign=top align=middle><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr class="trborder">
<th bgcolor="#FFCC66" class="wShadow"><img src="images/01tYear.gif" width="140"></th>
<th bgcolor="#FFCC66" class="wShadow"><img src="images/02tCustNo.gif" width="140"></th>
<th bgcolor="#FFCC66" class="wShadow"><img src="images/03tLevel.gif" width="140"></th>
<th bgcolor="#FFCC66" class="wShadow"><img src="images/04tAward.gif" width="140"></th>
<th bgcolor="#FFCC66" class="wShadow"><img src="images/05tState.gif" width="140"></th>
</tr>
<c:forEach items="${currentMonthRank}" var="rank" varStatus="count">
<c:if test="${(count.count%2) eq 0}">
<tr align="center" valign="middle">
<td class="td3">${showCurDate }</td>
<td class="td3">${rankInfos[count.count-1] }</td>
<td class="td3">${rank.rankLevel.levelName }</td>
<td class="td3">${rank.rankLevel.levelAward }</td>
<td class="td3">
<c:if test="${rank.isReceived eq 1}"><font color="red">已领取</font></c:if>
<c:if test="${rank.isReceived eq 0}">暂未领取</c:if>
<c:if test="${rank.isReceived eq 2}"><font color="green">逾期未领</font></c:if>
</td>
</tr>
</c:if>
<c:if test="${(count.count%2) eq 1}">
<tr align="center" valign="middle">
<td class="td4">${showCurDate }</td>
<td class="td4">${rankInfos[count.count-1] }</td>
<td class="td4">${rank.rankLevel.levelName }</td>
<td class="td4">${rank.rankLevel.levelAward }</td>
<td class="td4">
<c:if test="${rank.isReceived eq 1}"><font color="red">已领取</font></c:if>
<c:if test="${rank.isReceived eq 0}">暂未领取</c:if>
<c:if test="${rank.isReceived eq 2}"><font color="green">逾期未领</font></c:if>
</td>
</tr>
</c:if>
</c:forEach>
</table>
</TD>
</TR></TBODY></TABLE>
</TD></TR></TBODY></TABLE></TD>
<TD width=3
background=images/right_bg.gif></TD></TR></TBODY></TABLE>
</CENTER></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -