<%@ Page Language="vb" AutoEventWireup="false" Codebehind="kelecard.aspx.vb" Inherits="LuckBet.kelecard"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>kelecard</title>
		<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<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">
				<TR bgColor="#b6ebc4">
					<TD style="HEIGHT: 35px" align="center" width="100%" bgColor="#d8e1eb" colSpan="6"><FONT face="宋体"><FONT size="2"><FONT face="宋体"><FONT size="2"><FONT style="FONT-WEIGHT: bold; FONT-SIZE: 16px; COLOR: #000066" color="#ffffff">
											添 加&nbsp;卡 类</FONT></FONT></FONT></FONT></FONT></TD>
				</TR>
				<TR>
					<TD align="center"><FONT face="宋体">
							<TABLE id="Table2" style="WIDTH: 729px; HEIGHT: 56px" cellSpacing="0" cellPadding="0" width="729"
								border="0">
								<TR>
									<TD style="HEIGHT: 25px" align="center">卡类</TD>
									<TD style="HEIGHT: 25px" align="center">卡号</TD>
									<TD style="HEIGHT: 25px" align="center">密码</TD>
									<TD style="HEIGHT: 25px" align="center">金币</TD>
									<TD style="HEIGHT: 25px" align="center">有效期</TD>
									<TD rowspan="2" style="HEIGHT: 56px"></TD>
								</TR>
								<TR>
									<TD align="center" style="HEIGHT: 31px">
										<asp:DropDownList id="ddlcardtype" runat="server" AutoPostBack="True">
											<asp:ListItem Value="1">充值卡</asp:ListItem>
											<asp:ListItem Value="2">VIP钻石卡</asp:ListItem>
											<asp:ListItem Value="3">还魂机(30天)</asp:ListItem>
											<asp:ListItem Value="4">7天乐</asp:ListItem>
										</asp:DropDownList></TD>
									<TD align="center" style="HEIGHT: 31px">
										<asp:TextBox id="txtcardID" runat="server" Width="179px" ReadOnly="True"></asp:TextBox></TD>
									<TD align="center" style="HEIGHT: 31px">
										<asp:TextBox id="TxtCardpwd" runat="server" Width="132px" Height="22px" ReadOnly="True"></asp:TextBox></TD>
									<TD align="center" style="HEIGHT: 31px">
										<asp:TextBox id="txtcoin" runat="server" Width="74px" Height="22px">100000</asp:TextBox></TD>
									<TD align="center" style="HEIGHT: 31px">
										<asp:textbox id="txtoverTime" onfocus="setday(this);" runat="server" Width="85px" ReadOnly="True"></asp:textbox></TD>
									<TD rowspan="2" style="HEIGHT: 31px"><asp:Button id="Button1" runat="server" Width="70px" Text="添 加" Height="25px"></asp:Button></TD>
								</TR>
							</TABLE>
						</FONT>
					</TD>
				</TR>
				<TR bgColor="#b6ebc4">
					<TD style="HEIGHT: 35px" align="center" width="100%" bgColor="#d8e1eb" colSpan="6"><FONT face="宋体"><FONT size="2"><FONT style="FONT-WEIGHT: bold; FONT-SIZE: 16px; COLOR: #000066" color="#ffffff">
									卡 类&nbsp;管 理</FONT></FONT></FONT></TD>
				</TR>
				<TR>
					<TD align="center"><FONT face="宋体">
							<asp:datagrid id="dbpubInfoList" runat="server" DataKeyField="ID" BackColor="White" AutoGenerateColumns="False"
								CellPadding="3" BorderColor="#93BEE2" BorderWidth="1px" BorderStyle="None" Width="100%" AllowPaging="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"></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="Center"></ItemStyle>
										<ItemTemplate>
											<asp:Label id=Label2 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.cc_number") %>'>
											</asp:Label>
										</ItemTemplate>
									</asp:TemplateColumn>
									<asp:TemplateColumn HeaderText="密码">
										<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
										<ItemStyle HorizontalAlign="Center"></ItemStyle>
										<ItemTemplate>
											<asp:Label id="Label1" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.cc_password") %>'>
											</asp:Label>
										</ItemTemplate>
									</asp:TemplateColumn>
									<asp:TemplateColumn HeaderText="金币">
										<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
										<ItemStyle HorizontalAlign="Center"></ItemStyle>
										<ItemTemplate>
											<asp:Label id=Label4 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.cc_Coinamount") %>'>
											</asp:Label>
										</ItemTemplate>
										<EditItemTemplate>
											<asp:TextBox id="txtccoin" runat="server" Width="104px" Text='<%# DataBinder.Eval(Container, "DataItem.cc_Coinamount") %>'>
											</asp:TextBox>
										</EditItemTemplate>
									</asp:TemplateColumn>
									<asp:TemplateColumn HeaderText="有效期">
										<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
										<ItemStyle HorizontalAlign="Center"></ItemStyle>
										<ItemTemplate>
											<asp:Label id=Label5 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.cc_overdate","{0:d}") %>'>
											</asp:Label>
										</ItemTemplate>
										<EditItemTemplate>
											<asp:textbox id="txtcoverdate" onfocus="setday(this);" runat="server" Width="85px" ReadOnly="True" Text='<%# DataBinder.Eval(Container, "DataItem.cc_overdate","{0:d}") %>'>
											</asp:textbox>
										</EditItemTemplate>
									</asp:TemplateColumn>
									<asp:TemplateColumn HeaderText="制卡日期">
										<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
										<ItemStyle HorizontalAlign="Center"></ItemStyle>
										<ItemTemplate>
											<asp:Label id="Label6" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.cc_date","{0:d}") %>'>
											</asp:Label>
										</ItemTemplate>
									</asp:TemplateColumn>
									<asp:TemplateColumn HeaderText="制卡人">
										<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
										<ItemStyle HorizontalAlign="Center"></ItemStyle>
										<ItemTemplate>
											<asp:Label id="Label7" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.cc_MakeMan") %>'>
											</asp:Label>
										</ItemTemplate>
									</asp:TemplateColumn>
									<asp:EditCommandColumn ButtonType="LinkButton" UpdateText="更新" HeaderText="编辑" CancelText="取消" EditText="编辑">
										<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
										<ItemStyle HorizontalAlign="Center"></ItemStyle>
									</asp:EditCommandColumn>
									<asp:ButtonColumn Text="删除" HeaderText="删除" CommandName="Delete">
										<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
										<ItemStyle HorizontalAlign="Center"></ItemStyle>
									</asp:ButtonColumn>
								</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>
		</form>
	</body>
</HTML>
