<%@ Register TagPrefix="uc1" TagName="LanguagesDeal" Src="LanguagesDeal.ascx" %>
<%@ Page language="c#" Codebehind="DataDownUser.aspx.cs" AutoEventWireup="True" Inherits="DreamerShop.Admin.DataDownUser" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>
			<%=myLanguagesDeal.GetMyString("TextDataDownManage")%>
			－<%=mConfigInf.strWebTitle%>
		</title>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<META content="<%=mConfigInf.strDescription%>" name=description>
		<META content="<%=mConfigInf.strKeywords%>" name=keywords>
		<LINK href="../StyleSheet1.css" rel="stylesheet">
		<SCRIPT language="javascript" id="clientEventHandlersJS">
		<!--
	
		function selall1()
		{	
			var a = document.getElementsByTagName("input");
		
			var str;
			var len;
			var state;
			
			for (var i=0; i<a.length; i++)
			{
				if (a[i].type == "checkbox") 
				{	
					str=a[i].id;
					len=str.lastIndexOf("SelAllClass");
					if((len * 1)>=1)
					{
						state=a[i].checked;
						break;
						}
				}
			}
			for (var i=0; i<a.length; i++)
			{
				if (a[i].type == "checkbox") 
				{
					str=a[i].id;
					len=str.lastIndexOf("ClassInf");
					if((len * 1)>=1)
						a[i].checked=state;
				}
			}
		}
		
		function selall2()
		{	
			var a = document.getElementsByTagName("input");
		
			var str;
			var len;
			var state;
			
			for (var i=0; i<a.length; i++)
			{
				if (a[i].type == "checkbox") 
				{	
					str=a[i].id;
					len=str.lastIndexOf("SelAllBrand");
					if((len * 1)>=1)
					{
						state=a[i].checked;
						break;
						}
				}
			}
			for (var i=0; i<a.length; i++)
			{
				if (a[i].type == "checkbox") 
				{
					str=a[i].id;
					len=str.lastIndexOf("BrandInf");
					if((len * 1)>=1)
						a[i].checked=state;
				}
			}
		}
		
		function imgHelp_onclick() {
			popUpWin("DSHelp/UserGradeManage.htm","Help",100,100,800,600);
			}
		
		function popUpWin(URLStr,WinName, left, top, width, height)
		{
			var popUpWin=0;
			if(popUpWin)

			{

			if(!popUpWin.closed) popUpWin.close();

			}

			popUpWin = open(URLStr, WinName, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
		}
		//-->
		</SCRIPT>
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<asp:label id="lbEditID" runat="server" Visible="false"></asp:label><uc1:languagesdeal id="myLanguagesDeal" runat="server" Visible="False"></uc1:languagesdeal>
			<table cellSpacing="0" cellPadding="0" width="97%" align="center" border="0">
				<tr>
					<td vAlign="top" height="262">
						<table cellSpacing="0" cellPadding="0" width="100%" border="0">
							<tr>
								<td vAlign="top" bgColor="#ffffff" height="300"><FONT face="宋体"><asp:panel id="PanGetGlobalNum" runat="server" Visible="False">
											<TABLE cellSpacing="10" cellPadding="5" width="600" align="left" border="0">
												<TR>
													<TD align="left"><b><%=myLanguagesDeal.GetMyString("DataDownUserTextGetGlobalNumTitle")%></b></TD>
												</TR>
												<TR>
													<TD align="left">
														<asp:LinkButton id="lkbGetGlobalNum" runat="server" ForeColor="Blue" CausesValidation="False" onclick="lkbGetGlobalNum_Click">
															<%=myLanguagesDeal.GetMyString("DataDownUserTextApplyGlobalNum")%>
														</asp:LinkButton></TD>
												</TR>
												<TR>
													<TD align="left">
														<asp:Label id="lbGlobalNumInfo" runat="server" ForeColor="Red"></asp:Label></TD>
												</TR>
											</TABLE>
										</asp:panel><asp:panel id="Pan1" runat="server">
											<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
												<TR>
													<TD class="p12black"><SPAN class="p9orange"><IMG height="11" src="IMAGES/icon_1.gif" width="12" align="absMiddle">&nbsp;<%=myLanguagesDeal.GetMyString("TextDataDistribution")%>--&gt;<%=myLanguagesDeal.GetMyString("DataDownUserTextUser")%>&nbsp;<IMG 
                  language=javascript id=imgHelp style="CURSOR: pointer" 
                  onclick="return imgHelp_onclick()" 
                  alt='<%=myLanguagesDeal.GetMyString("TextHelp")%>' 
                  src="../Images/Admin/helpicon.gif"> </SPAN>
													</TD>
													<TD>
														<asp:ImageButton id="btAddNew" runat="server" ImageUrl="../Images/Admin/fb-new.gif" onclick="btAddNew_Click"></asp:ImageButton><%=myLanguagesDeal.GetMyString("DataDownUserTextAddNewUser")%></TD>
												</TR>
											</TABLE>
											<HR noShade SIZE="1">
											<asp:datagrid id="dgList" runat="server" CssClass="table-shangxia" PageSize="20" AllowPaging="false"
												AutoGenerateColumns="False" Width="100%" DataKeyField="UserID">
												<HeaderStyle HorizontalAlign="Center" BackColor="#F1F1F1"></HeaderStyle>
												<Columns>
													<asp:BoundColumn DataField="UserName" HeaderText="DataDownUserTextName">
														<HeaderStyle></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
													</asp:BoundColumn>
													<asp:BoundColumn DataField="DomainName" HeaderText="DataDownUserTextDomainName">
														<HeaderStyle></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
													</asp:BoundColumn>
													<asp:BoundColumn DataField="EndTime" HeaderText="DataDownUserTextEndTime">
														<HeaderStyle></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
													</asp:BoundColumn>
													<asp:BoundColumn DataField="IsLock" HeaderText="TextLockStr">
														<HeaderStyle></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
													</asp:BoundColumn>
													<asp:TemplateColumn HeaderText="TextOperation">
														<HeaderStyle></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<ItemTemplate>
															<asp:Button id="btEdit" Text="修改" CssClass="go-wenbenkuang" CommandName="Edit" Runat="server"></asp:Button>
															<asp:Button id="btDelete" Text="删除" CssClass="go-wenbenkuang" CommandName="Delete" Runat="server"></asp:Button>
														</ItemTemplate>
													</asp:TemplateColumn>
												</Columns>
												<PagerStyle Visible="False" NextPageText="下一页" PrevPageText="上一页" HorizontalAlign="Right"></PagerStyle>
											</asp:datagrid>
											<TABLE class="table-zuoyou" id="Table1" width="100%" align="center" border="0">
												<TR align="center" bgColor="#f1f1f1">
													<TD>
														<asp:button id="btFirst" runat="server" CssClass="go-wenbenkuang" BorderStyle="Groove" Text=" 首 页" onclick="btFirst_Click"></asp:button>&nbsp;
														<asp:button id="btPre" runat="server" CssClass="go-wenbenkuang" BorderStyle="Groove" Text="上一页" onclick="btPre_Click"></asp:button>&nbsp;
														<asp:button id="btNext" runat="server" CssClass="go-wenbenkuang" BorderStyle="Groove" Text="下一页" onclick="btNext_Click"></asp:button>&nbsp;
														<asp:button id="btLast" runat="server" CssClass="go-wenbenkuang" BorderStyle="Groove" Text=" 尾 页" onclick="btLast_Click"></asp:button>&nbsp;
														<asp:label id="lbPage" runat="server"></asp:label>&nbsp;
														<%=myLanguagesDeal.GetMyString("TextGotoPage")%>
														<asp:textbox id="txtPageNum" runat="server" CssClass="wenbenkuang" Width="30px" MaxLength="3"></asp:textbox>
														<asp:CompareValidator id="CompareValidator2" runat="server" Operator="DataTypeCheck" Type="Integer" ControlToValidate="txtPageNum"
															Display="Dynamic" ErrorMessage="输入数字" ForeColor="#FF0000"></asp:CompareValidator><%=myLanguagesDeal.GetMyString("TextPages")%>
														<asp:button id="btGo" runat="server" CssClass="go-wenbenkuang" Text="Go"></asp:button></TD>
												</TR>
											</TABLE>
										</asp:panel></FONT>
									<asp:panel id="Pan2" runat="server" Visible="False">
										<TABLE class="p9black" cellSpacing="0" cellPadding="0" width="100%" border="0">
											<TR>
												<TD style="WIDTH: 711px">
													<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
														<TR>
															<TD class="p12black" align="left"><SPAN class="p9orange"><IMG height="11" src="IMAGES/icon_1.gif" width="12" align="absMiddle">&nbsp;<%=myLanguagesDeal.GetMyString("TextDataDownManage")%>--&gt;
																	<asp:Label id="lbMessage" runat="server"></asp:Label>&nbsp;<IMG 
                        language=javascript id=imgHelp style="CURSOR: pointer" 
                        onclick="return imgHelp_onclick()" 
                        alt='<%=myLanguagesDeal.GetMyString("TextHelp")%>' 
                        src="../Images/Admin/helpicon.gif"> </SPAN>
															</TD>
															<TD align="right" width="50"><!--BUTTON_BEGIN-->
																<TABLE>
																	<TR>
																		<TD vAlign="bottom" noWrap>
																			<asp:ImageButton id="ibtReturn" runat="server" CausesValidation="False" ImageUrl="../Images/Admin/fb-cancel.gif" onclick="ibtReturn_Click"></asp:ImageButton><%=myLanguagesDeal.GetMyString("TextReturn")%></TD>
																	</TR>
																</TABLE> <!--BUTTON_END--></TD>
														</TR>
													</TABLE>
												</TD>
											</TR>
										</TABLE>
										<HR noShade SIZE="1">
										<TABLE cellSpacing="1" cellPadding="5" width="700" align="center" bgColor="#cccccc" border="0">
											<TR bgColor="#ffffff">
												<TD align="right" width="20%"><%=myLanguagesDeal.GetMyString("DataDownUserTextName")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--用户名：--></TD>
												<TD class="pad" width="80%"></FONT>
													<asp:textbox id="txtUserName" runat="server" CssClass="wenbenkuang" Width="120px" MaxLength="30"></asp:textbox>
													<asp:RequiredFieldValidator id="rfvUserName" runat="server" ControlToValidate="txtUserName" Display="Dynamic"
														ErrorMessage="请输入用户名" ForeColor="#FF0000"></asp:requiredfieldvalidator></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("DataDownUserTextDomainName")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--域名：--></TD>
												<TD class="pad"></FONT>
													<asp:textbox id="txtDomainName" runat="server" CssClass="wenbenkuang" Width="250px" MaxLength="100"></asp:textbox><%=myLanguagesDeal.GetMyString("DataDownUserTextDomainNameExplain")%></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("DataDownUserTextPriceGrade")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--用户等级：--></TD>
												<TD class="pad">
													<asp:checkbox id="ckDownMarketPrice" runat="server" Text="市场价" Checked="True"></asp:checkbox>
													<asp:checkbox id="ckDownPrice" runat="server" Text="会员价" Checked="True"></asp:checkbox>
													<asp:checkbox id="ckDownVIPPrice" runat="server" Text="VIP价" Checked="True"></asp:checkbox>
													<asp:CheckBoxList id="ckDownGradePrice" runat="server" RepeatDirection="Horizontal" RepeatColumns="3"
														Visible="False"></asp:CheckBoxList></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("DataDownUserTextEndTime")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%></TD>
												<TD class="pad">
													<asp:TextBox id="txtEndTime" runat="server" CssClass="wenbenkuang"></asp:TextBox>(<%=myLanguagesDeal.GetMyString("TextFormat")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%>yyyy-mm-dd 
													hh:mm:ss)
													<asp:RegularExpressionValidator id="revEndTime" runat="server" ControlToValidate="txtEndTime" Display="Dynamic"
														ErrorMessage="请输入指定格式时间" ValidationExpression="[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}" ForeColor="#FF0000"></asp:RegularExpressionValidator>
													<asp:RequiredFieldValidator id="rfvEndTime" runat="server" ControlToValidate="txtEndTime" Display="Dynamic"
														ErrorMessage="请输入终止时间" ForeColor="#FF0000"></asp:requiredfieldvalidator></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right" ><%=myLanguagesDeal.GetMyString("DataDownUserTextDownClass")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><BR>
													<asp:CheckBox id="ckSelAllClass" onclick="selall1()" runat="server" Text="全选"></asp:CheckBox></TD>
												<TD class="pad">
													<asp:CheckBoxList id="cblClassInf" runat="server" RepeatDirection="Horizontal" RepeatColumns="4"></asp:CheckBoxList></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("DataDownUserTextDownBrand")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><BR>
													<asp:CheckBox id="ckSelAllBrand" onclick="selall2()" runat="server" Text="全选"></asp:CheckBox></TD>
												<TD class="pad">
													<asp:CheckBoxList id="cblBrandInf" runat="server" RepeatDirection="Horizontal" RepeatColumns="4"></asp:CheckBoxList></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("DataDownUserTextDownTime1")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%></TD>
												<TD class="pad">
													<asp:TextBox id="txtDownStartTime1" runat="server" CssClass="wenbenkuang" Width="80"></asp:TextBox>(<%=myLanguagesDeal.GetMyString("TextFormat")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%>hh:mm:ss)
													<asp:RegularExpressionValidator id="revDownStartTime1" runat="server" ControlToValidate="txtDownStartTime1" Display="Dynamic"
														ErrorMessage="请输入指定格式时间" ValidationExpression="[0-9]{2}:[0-9]{2}:[0-9]{2}"></asp:RegularExpressionValidator>
													<asp:TextBox id="txtDownEndTime1" runat="server" CssClass="wenbenkuang" Width="80"></asp:TextBox>(<%=myLanguagesDeal.GetMyString("TextFormat")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%>hh:mm:ss)
													<asp:RegularExpressionValidator id="revDownEndTime1" runat="server" ControlToValidate="txtDownEndTime1" Display="Dynamic"
														ErrorMessage="请输入指定格式时间" ValidationExpression="[0-9]{2}:[0-9]{2}:[0-9]{2}"></asp:RegularExpressionValidator>	
														</TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("DataDownUserTextDownTime2")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%></TD>
												<TD class="pad">
													<asp:TextBox id="txtDownStartTime2" runat="server" CssClass="wenbenkuang" Width="80"></asp:TextBox>(<%=myLanguagesDeal.GetMyString("TextFormat")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%>hh:mm:ss)
													<asp:RegularExpressionValidator id="revDownStartTime2" runat="server" ControlToValidate="txtDownStartTime2" Display="Dynamic"
														ErrorMessage="请输入指定格式时间" ValidationExpression="[0-9]{2}:[0-9]{2}:[0-9]{2}"></asp:RegularExpressionValidator>
													<asp:TextBox id="txtDownEndTime2" runat="server" CssClass="wenbenkuang" Width="80"></asp:TextBox>(<%=myLanguagesDeal.GetMyString("TextFormat")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%>hh:mm:ss)
													<asp:RegularExpressionValidator id="revDownEndTime2" runat="server" ControlToValidate="txtDownEndTime2" Display="Dynamic"
														ErrorMessage="请输入指定格式时间" ValidationExpression="[0-9]{2}:[0-9]{2}:[0-9]{2}"></asp:RegularExpressionValidator>	
														</TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right" ><%=myLanguagesDeal.GetMyString("TextLockStr")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--是否锁定：--></TD>
												<TD class="pad"><FONT color="red">
														<asp:CheckBox id="ckStateLock" runat="server" Text="锁定" EnableViewState="False"></asp:CheckBox></FONT></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right" width="20%"></TD>
												<TD class="pad">&nbsp;
													<asp:button id="btSubmit" runat="server" CssClass="go-wenbenkuang" Text="提交信息" onclick="btSubmit_Click"></asp:button>&nbsp;&nbsp;
													<asp:button id="btSave" runat="server" CssClass="go-wenbenkuang" Text="更新信息" onclick="btSave_Click"></asp:button></TD>
											</TR>
										</TABLE>
										<P align="center">
											<asp:Label id="lbInfo" runat="server" ForeColor="Red"></asp:Label></P>
									</asp:panel></td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</form>
	</body>
</HTML>
