<%@ Page Language="vb" AutoEventWireup="false" Codebehind="kelecardlist.aspx.vb" Inherits="LuckBet.kelecardlist"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>kelecardlist</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="../Styles.css" type="text/css" rel="stylesheet">
		<script language="JavaScript" src="../JS/GetDate.js"></script>
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<TABLE id="Table1" style="FONT-SIZE: 12px; LETTER-SPACING: 1px" cellSpacing="0" borderColorDark="#ffffff"
				cellPadding="3" width="100%" align="center" bgColor="#c5d5e4" borderColorLight="#335078"
				border="1">
				<TBODY>
					<TR bgColor="#b6ebc4">
						<TD style="HEIGHT: 35px" align="center" width="100%" bgColor="#d8e1eb" colSpan="6"><FONT face="宋体"><FONT style="FONT-WEIGHT: bold; FONT-SIZE: 13pt; COLOR: #330066" size="2">金 
									卡 统 计(<% =type%>
									统计)</FONT></FONT></TD>
					</TR>
					<TR>
						<TD align="center"><FONT face="宋体">
								<TABLE id="Table22" style="FONT-SIZE: 12px; LETTER-SPACING: 1px" cellSpacing="0" borderColorDark="#ffffff"
									cellPadding="3" width="99%" align="center" bgColor="#c5d5e4" borderColorLight="#335078"
									border="1">
									<TBODY>
										<TR bgColor="#b6ebc4">
											<TD align="center" width="100%" bgColor="#e4ebf1" colSpan="3" height="25">
												<TABLE id="Table3" height="40" cellSpacing="0" cellPadding="0" width="100%" border="0">
													<TBODY>
														<TR>
															<TD align="center"><asp:checkbox id="CheckBox1" runat="server" Text="选中所有" AutoPostBack="True"></asp:checkbox>&nbsp;&nbsp; 
																类别：
																<asp:dropdownlist id="ddltype" runat="server" AutoPostBack="True">
																	<asp:ListItem Value="0">全部</asp:ListItem>
																	<asp:ListItem Value="1">充值卡</asp:ListItem>
																	<asp:ListItem Value="2">VIP钻石卡</asp:ListItem>
																	<asp:ListItem Value="3">还魂机</asp:ListItem>
																	<asp:ListItem Value="4">7天乐</asp:ListItem>
																</asp:dropdownlist>&nbsp;<LABEL> </LABEL>制卡日期：
																<asp:textbox id="txtskTime" onfocus="setday(this);" runat="server" Width="85px"></asp:textbox>&nbsp;<LABEL>
																</LABEL><LABEL></LABEL>卡号：
																<asp:textbox id="txtsun" runat="server" Width="104px"></asp:textbox>&nbsp;<LABEL> </LABEL>
																<LABEL>充值日期：
																	<asp:textbox id="txtsdate2" onfocus="setday(this);" runat="server" Width="85px"></asp:textbox>&nbsp;
																</LABEL><LABEL></LABEL>充值用户：
																<asp:textbox id="txtusername" runat="server" Width="104px"></asp:textbox><asp:button id="Button2" runat="server" Text="查 询"></asp:button><BR>
																<font color="red">金币合计：<B><% =pub.Comma(amountcoin)%></B>个&nbsp; RMB合计：<B><% =pub.Comma(amountrmb)%></B>元</font></TD>
														</TR>
													</TBODY>
												</TABLE>
												<FONT face="宋体">
													<asp:linkbutton id="btnFirst" onclick="PageButtonClick" runat="server" CommandArgument="0" Font-Name="verdana">最前页

</asp:linkbutton>&nbsp; &nbsp;
													<asp:linkbutton id="btnPrev" onclick="PageButtonClick" runat="server" CommandArgument="prev">上一页

</asp:linkbutton>&nbsp; &nbsp;
													<asp:linkbutton id="btnNext" onclick="PageButtonClick" runat="server" CommandArgument="next">下一页

</asp:linkbutton>&nbsp; &nbsp;
													<asp:linkbutton id="btnLast" onclick="PageButtonClick" runat="server" CommandArgument="last">最后页

</asp:linkbutton>&nbsp; 总共有
													<asp:label id="lblcount" runat="server" ForeColor="Red"></asp:label>&nbsp;条 记录
													<asp:label id="lblCurrentIndex" runat="server"></asp:label>&nbsp;
													<asp:label id="lblPageCount" runat="server"></asp:label></FONT></TD>
										</TR>
									</TBODY>
								</TABLE>
								<TABLE id="Table2" cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
									<TR>
										<TD style="HEIGHT: 169px" vAlign="top" align="center"><FONT face="宋体"><asp:datagrid id="DataGrid1" runat="server" Width="100%" AllowPaging="True" DataKeyField="ID"
													BackColor="White" AutoGenerateColumns="False" CellPadding="3" PageSize="18" BorderColor="#93BEE2" BorderWidth="1px" BorderStyle="None" AllowCustomPaging="True">
													<SelectedItemStyle Font-Bold="True" ForeColor="#CCFF99" BackColor="#009999"></SelectedItemStyle>
													<AlternatingItemStyle Font-Size="X-Small" BackColor="#E8F4FF"></AlternatingItemStyle>
													<ItemStyle Font-Size="X-Small" ForeColor="#003399" BackColor="White"></ItemStyle>
													<HeaderStyle Font-Size="X-Small" ForeColor="White" BackColor="#337FB2"></HeaderStyle>
													<Columns>
														<asp:TemplateColumn HeaderText="选择">
															<HeaderStyle HorizontalAlign="Center" Width="25px"></HeaderStyle>
															<ItemStyle HorizontalAlign="Center"></ItemStyle>
															<ItemTemplate>
																<asp:CheckBox id="PID" runat="server"></asp:CheckBox>
															</ItemTemplate>
														</asp:TemplateColumn>
														<asp:TemplateColumn HeaderText="ID">
															<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
															<ItemStyle HorizontalAlign="Center"></ItemStyle>
															<ItemTemplate>
																<%# DataBinder.Eval(Container, "DataItem.id") %>
															</ItemTemplate>
														</asp:TemplateColumn>
														<asp:TemplateColumn HeaderText="卡号">
															<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
															<ItemStyle HorizontalAlign="Center"></ItemStyle>
															<ItemTemplate>
																<%# DataBinder.Eval(Container, "DataItem.cc_number") %>
															</ItemTemplate>
														</asp:TemplateColumn>
														<asp:TemplateColumn HeaderText="密码">
															<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
															<ItemStyle HorizontalAlign="Center"></ItemStyle>
															<ItemTemplate>
																<%# DataBinder.Eval(Container, "DataItem.cc_password") %>
															</ItemTemplate>
														</asp:TemplateColumn>
														<asp:TemplateColumn HeaderText="卡类型">
															<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
															<ItemStyle HorizontalAlign="Center"></ItemStyle>
															<ItemTemplate>
																<%# iif(DataBinder.Eval(Container, "DataItem.cc_type")="1","充值卡","") %>
																<%# iif(DataBinder.Eval(Container, "DataItem.cc_type")="2","VIP钻石卡","") %>
																<%# iif(DataBinder.Eval(Container, "DataItem.cc_type")="3","还魂机","") %>
																<%# iif(DataBinder.Eval(Container, "DataItem.cc_type")="4","7天乐","") %>
															</ItemTemplate>
														</asp:TemplateColumn>
														<asp:TemplateColumn HeaderText="金币">
															<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
															<ItemStyle HorizontalAlign="right"></ItemStyle>
															<ItemTemplate>
																<%# pub.Comma(DataBinder.Eval(Container, "DataItem.cc_Coinamount")) %>
																<IMG src="../Images/images_36.gif">
															</ItemTemplate>
														</asp:TemplateColumn>
														<asp:TemplateColumn HeaderText="制卡日期">
															<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
															<ItemStyle HorizontalAlign="Center"></ItemStyle>
															<ItemTemplate>
																<%# DataBinder.Eval(Container, "DataItem.cc_date") %>
															</ItemTemplate>
														</asp:TemplateColumn>
														<asp:TemplateColumn HeaderText="有效期">
															<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
															<ItemStyle HorizontalAlign="Center"></ItemStyle>
															<ItemTemplate>
																<%# DataBinder.Eval(Container, "DataItem.cc_overdate") %>
															</ItemTemplate>
														</asp:TemplateColumn>
														<asp:TemplateColumn HeaderText="制卡人">
															<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
															<ItemStyle HorizontalAlign="Center"></ItemStyle>
															<ItemTemplate>
																<%# DataBinder.Eval(Container, "DataItem.cc_MakeMan") %>
															</ItemTemplate>
														</asp:TemplateColumn>
														<asp:TemplateColumn HeaderText="用户">
															<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
															<ItemStyle HorizontalAlign="Center"></ItemStyle>
															<ItemTemplate>
																<a href ='../Games/user.aspx?usid=<%# DataBinder.Eval(Container, "DataItem.cc_userid") %>' target =_blank >
																	<%# iif(not isdbnull(DataBinder.Eval(Container, "DataItem.cc_userid")),pub.GetUserInfo("UserName",DataBinder.Eval(Container, "DataItem.cc_userid")),"") %>
																</a>
															</ItemTemplate>
														</asp:TemplateColumn>
														<asp:TemplateColumn HeaderText="充值日期 ">
															<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
															<ItemStyle HorizontalAlign="Center"></ItemStyle>
															<ItemTemplate>
																<%# DataBinder.Eval(Container, "DataItem.cc_donedate") %>
															</ItemTemplate>
														</asp:TemplateColumn>
													</Columns>
													<PagerStyle NextPageText="下一页" Font-Size="X-Small" PrevPageText="上一页" HorizontalAlign="Right"
														ForeColor="#003399" Position="TopAndBottom" BackColor="#E8F4FF" Mode="NumericPages"></PagerStyle>
												</asp:datagrid></FONT></TD>
									</TR>
								</TABLE>
							</FONT>
						</TD>
					</TR>
				</TBODY>
			</TABLE>
		</form>
	</body>
</HTML>
