<%@ Page Language="vb" AutoEventWireup="false" Codebehind="DiceBetSet.aspx.vb" Inherits="LuckBet.DiceBetSet"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>BetSet</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">
	</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 style="FONT-WEIGHT: bold; FONT-SIZE: 13pt; COLOR: #330066" size="2">开 
								奖 设 置</FONT></FONT></TD>
				</TR>
				<TR>
					<TD align="center"><FONT face="宋体">
							<TABLE id="Table4" style="FONT-SIZE: 12px; LETTER-SPACING: 1px" cellSpacing="0" borderColorDark="#ffffff"
								cellPadding="3" width="90%" align="center" bgColor="#c5d5e4" borderColorLight="#335078"
								border="1">
								<TR bgColor="#b6ebc4">
									<TD style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #0000cc" align="center" bgColor="#e4ebf1"
										height="30">所有的操作必须在相应的信息前选择后</TD>
								</TR>
							</TABLE>
							<TABLE id="Table22" style="FONT-SIZE: 12px; LETTER-SPACING: 1px" cellSpacing="0" borderColorDark="#ffffff"
								cellPadding="3" width="90%" align="center" bgColor="#c5d5e4" borderColorLight="#335078"
								border="1">
								<TR bgColor="#b6ebc4">
									<TD align="center" width="100%" bgColor="#e4ebf1" colSpan="3" height="25">
										<TABLE id="Table3" style="WIDTH: 906px; HEIGHT: 88px" height="88" cellSpacing="0" cellPadding="0"
											width="906" border="0">
											<TR>
												<TD style="HEIGHT: 28px" align="center"><FONT face="宋体"><FONT color="#696969">关闭开心16游戏：</FONT>
														<asp:dropdownlist id="ddlclose16" runat="server" AutoPostBack="True">
															<asp:ListItem Value="0">是</asp:ListItem>
															<asp:ListItem Value="1">否</asp:ListItem>
														</asp:dropdownlist><FONT color="#696969">关闭游戏原因请在 系统管理→网站管理→关闭开心16游戏原因 处修改</FONT></FONT><BR>
													<font color="red">*关闭游戏时系统将同时关闭会员的自动投注状态！！</font></TD>
											</TR>
											<TR>
												<TD style="HEIGHT: 37px" align="center">&nbsp;
													<asp:checkbox id="CheckBox1" runat="server" AutoPostBack="True" Text="选中所有"></asp:checkbox>&nbsp;&nbsp;
													<asp:button id="Button1" runat="server" Text="设为系统开奖" Width="101px"></asp:button>&nbsp;
													<asp:button id="Button2" runat="server" Text="删除游戏记录"></asp:button></TD>
											</TR>
											<TR>
												<TD style="HEIGHT: 54px" align="center"><IFRAME style="WIDTH: 29.35%; HEIGHT: 22px" marginWidth="0" marginHeight="0" src="../Dice/kx16Clock.aspx"
														frameBorder="0" width="50%" scrolling="no" height="22"></IFRAME>&nbsp; 
													三个数字以,分开,如1,2,3
													<asp:textbox id="txtsb_threeNumber" runat="server" Width="87px"></asp:textbox>
													开奖结果
													<asp:textbox id="txtresult" runat="server" Width="39px"></asp:textbox>&nbsp;
													<asp:button id="Button7" runat="server" Text="设为人工开奖" Width="101px"></asp:button><BR>
													<font color="red">**每个加数用英文的逗号隔开！并确保三个数字的和等于您设置的结果！！</font>
												</TD>
											</TR>
										</TABLE>
										<asp:linkbutton id="btnFirst" onclick="PageButtonClick" runat="server" Font-Name="verdana" CommandArgument="0">最前页

</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></TD>
								</TR>
							</TABLE>
							<TABLE id="Table2" cellSpacing="0" cellPadding="0" width="90%" align="center" border="0">
								<TR>
									<TD style="HEIGHT: 169px" vAlign="top" align="center"><asp:datagrid id="DataGrid1" runat="server" Width="100%" BorderStyle="None" BorderWidth="1px"
											BorderColor="#93BEE2" CellPadding="3" AutoGenerateColumns="False" BackColor="White" DataKeyField="ID" AllowPaging="True" 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="期 号">
													<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
													<ItemStyle HorizontalAlign="Center"></ItemStyle>
													<ItemTemplate>
														<a href ='kx16NowPV.aspx?bnumber=<%# databinder.eval(container.dataitem,"bet_number") %>' target =_blank >
															<%# databinder.eval(container.dataitem,"bet_number") %>
														</a>
													</ItemTemplate>
												</asp:TemplateColumn>
												<asp:TemplateColumn HeaderText="开奖时间">
													<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
													<ItemStyle HorizontalAlign="Center"></ItemStyle>
													<ItemTemplate>
														<%# databinder.eval(container.dataitem,"bet_opendate") %>
													</ItemTemplate>
												</asp:TemplateColumn>
												<asp:TemplateColumn HeaderText="开奖结果">
													<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
													<ItemStyle HorizontalAlign="Center"></ItemStyle>
													<ItemTemplate>
														<%# databinder.eval(container.dataitem,"bet_result") %>
													</ItemTemplate>
												</asp:TemplateColumn>
												<asp:TemplateColumn HeaderText="开奖状态">
													<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
													<ItemStyle HorizontalAlign="Center"></ItemStyle>
													<ItemTemplate>
														<%# iif(DataBinder.Eval(Container, "DataItem.bet_state")=1,"<font color=red>未开奖</font>","已开奖") %>
													</ItemTemplate>
												</asp:TemplateColumn>
												<asp:TemplateColumn HeaderText="运行状态">
													<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
													<ItemStyle HorizontalAlign="Center"></ItemStyle>
													<ItemTemplate>
														<%# iif(DataBinder.Eval(Container, "DataItem.bet_auto")=true,"系统开奖","<font color=red>手动开奖</font>") %>
													</ItemTemplate>
												</asp:TemplateColumn>
											</Columns>
											<PagerStyle NextPageText="上一页" PrevPageText="下一页" HorizontalAlign="Right" ForeColor="#003399"
												Position="TopAndBottom" BackColor="#E8F4FF"></PagerStyle>
										</asp:datagrid></TD>
								</TR>
							</TABLE>
						</FONT>
					</TD>
				</TR>
			</TABLE>
		</form>
	</body>
</HTML>
