<%@ Page language="c#" Codebehind="DataDownStart.aspx.cs" AutoEventWireup="True" Inherits="DSDataDistribution.DataDownStart" %>
<%@ Register TagPrefix="uc1" TagName="LanguagesDeal" Src="LanguagesDeal2.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title></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">
		<LINK href="../StyleSheet1.css" rel="stylesheet">
		<SCRIPT language="javascript" id="clientEventHandlersJS">
		<!--
			
		function selallProduct()
		{	
			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("ckSelAllProduct");
					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("ckSelItemProduct");
					if((len * 1)>=1)
						a[i].checked=state;
				}
			}
		}
		
		function selallClass()
		{	
			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("ckSelAllClass");
					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("ckSelItemClass");
					if((len * 1)>=1)
						a[i].checked=state;
				}
			}
		}
		
		function selallBrand()
		{	
			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("ckSelAllBrand");
					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("ckSelItemBrand");
					if((len * 1)>=1)
						a[i].checked=state;
				}
			}
		}
		
		//-->
		</SCRIPT>
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<uc1:languagesdeal id="myLanguagesDeal" Visible="False" runat="server"></uc1:languagesdeal>
		<form id="Form1" method="post" 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("DataDownStartTextDown")%></SPAN></TD>
					<TD width="200"></TD>
					<TD width="100"></TD>
				</TR>
			</TABLE>
			<HR noShade SIZE="1">
			<TABLE border="0">
				<TR>
					<TD>
						<TABLE cellSpacing="1" cellPadding="5" width="100%" align="left" bgColor="#cccccc" border="0">
							<TR bgColor="#f1f1f1">
								<TD>
									<TABLE cellSpacing="2" cellPadding="1" border="0">
										<TR>
											<td><%=myLanguagesDeal.GetMyString("DataDownStartTextDownDataType")%></td>
											<TD><asp:radiobuttonlist id="rblDownDataType" runat="server" RepeatDirection="Horizontal" AutoPostBack="True" onselectedindexchanged="rblDownDataType_SelectedIndexChanged">
													<asp:ListItem Value="0" Selected="True">商品</asp:ListItem>
													<asp:ListItem Value="1">分类</asp:ListItem>
													<asp:ListItem Value="2">品牌</asp:ListItem>
												</asp:radiobuttonlist></TD>
											<TD><asp:dropdownlist id="drlDownOriginSite" runat="server"></asp:dropdownlist></TD>
											<td><asp:RangeValidator id="rvSelDownOriginSite" runat="server" ErrorMessage="请选择数据来源网站" MinimumValue="1"
													MaximumValue="999999" ControlToValidate="drlDownOriginSite" Display="Dynamic"></asp:RangeValidator></td>
											<TD><asp:linkbutton id="lkbOriginSiteManage" runat="server" CausesValidation="False" ForeColor="Blue" onclick="lkbOriginSiteManage_Click">
													<%=myLanguagesDeal.GetMyString("DataDownStartTextManageOriginSite")%>
												</asp:linkbutton></TD>
										</TR>
									</TABLE>
								</TD>
							</TR>
							<TR bgColor="#f1f1f1">
								<TD><asp:panel id="PanProduct1" runat="server">
										<TABLE border="0">
											<TR>
												<TD>&nbsp;<%=myLanguagesDeal.GetMyString("DataDownStartTextAddTimeStart")%>
													<asp:TextBox id="txtStartDate" onclick="WdatePicker()" runat="server" Width="65px" CssClass="wenbenkuang"></asp:TextBox></TD>
												<TD>&nbsp;<%=myLanguagesDeal.GetMyString("DataDownStartTextAddTimeEnd")%>
													<asp:TextBox id="txtEndDate" onclick="WdatePicker()" runat="server" Width="65px" CssClass="wenbenkuang"></asp:TextBox></TD>
												<TD>
													<asp:Button id="btProductSearch" runat="server" CssClass="go-wenbenkuang" Text="搜寻数据" onclick="btProductSearch_Click"></asp:Button></TD>
											</TR>
										</TABLE>
									</asp:panel><asp:panel id="PanProduct2" runat="server" Visible="False">
										<TABLE border="0">
											<TR>
												<TD>&nbsp;<%=myLanguagesDeal.GetMyString("DataDownStartTextSaveAtClass")%>
													<asp:dropdownlist id="drlProductClass" runat="server"></asp:dropdownlist></TD>
												<TD>&nbsp;<%=myLanguagesDeal.GetMyString("DataDownStartTextSaveAtBrand")%>
													<asp:dropdownlist id="drlProductBrand" runat="server"></asp:dropdownlist></TD>
												<TD></TD>
											</TR>
											<TR>
												<TD colSpan="5">
													<asp:RadioButtonList id="rblProductDownImg" runat="server" RepeatDirection="Horizontal">
														<asp:ListItem Value="0">不下载图片</asp:ListItem>
														<asp:ListItem Value="1" Selected="True">用原路径名称下载图片</asp:ListItem>
														<asp:ListItem Value="2">下载图片，并重新命名</asp:ListItem>
													</asp:RadioButtonList></TD>
											</TR>
											<TR>
												<TD colSpan="5">
													<asp:Button id="btProductSave" runat="server" Width="150" CssClass="go-wenbenkuang" Text="下载选择商品"
														Font-Bold="True" Height="30" onclick="btProductSave_Click"></asp:Button></TD>
											</TR>
										</TABLE>
									</asp:panel>
									<asp:panel id="PanClass1" runat="server" Visible="False">
										<TABLE border="0">
											<TR>
												<TD>
													<asp:Button id="btClassSearch" runat="server" CssClass="go-wenbenkuang" Text="搜寻数据" onclick="btClassSearch_Click"></asp:Button></TD>
											</TR>
										</TABLE>
									</asp:panel><asp:panel id="PanClass2" runat="server" Visible="False">
										<TABLE border="0">
											<TR>
												<TD colSpan="5">
													<asp:Button id="btClassSave" runat="server" Width="150" CssClass="go-wenbenkuang" Text="下载选择分类"
														Font-Bold="True" Height="30" onclick="btClassSave_Click"></asp:Button></TD>
											</TR>
										</TABLE>
									</asp:panel>
									<asp:panel id="PanBrand1" runat="server" Visible="False">
										<TABLE border="0">
											<TR>
												<TD>
													<asp:Button id="btBrandSearch" runat="server" CssClass="go-wenbenkuang" Text="搜寻数据" onclick="btBrandSearch_Click"></asp:Button></TD>
											</TR>
										</TABLE>
									</asp:panel><asp:panel id="PanBrand2" runat="server" Visible="False">
										<TABLE border="0">
											<TR>
												<TD colSpan="5">
													<asp:RadioButtonList id="rblBrandDownImg" runat="server" RepeatDirection="Horizontal">
														<asp:ListItem Value="0">不下载图片</asp:ListItem>
														<asp:ListItem Value="1">用原路径名称下载图片</asp:ListItem>
														<asp:ListItem Value="2" Selected="True">下载图片，并重新命名</asp:ListItem>
													</asp:RadioButtonList></TD>
											</TR>
											<TR>
												<TD colSpan="5">
													<asp:Button id="btBrandSave" runat="server" Width="150" CssClass="go-wenbenkuang" Text="下载选择品牌"
														Font-Bold="True" Height="30" onclick="btBrandSave_Click"></asp:Button></TD>
											</TR>
										</TABLE>
									</asp:panel>
								</TD>
							</TR>
						</TABLE>
					</TD>
				</TR>
			</TABLE>
			<DIV align="center">
				<asp:label id="lbProductInfo" runat="server" ForeColor="Red"></asp:label></DIV>
			<asp:panel id="PanProduct3" runat="server" Visible="False">
				<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
					<TR>
						<TD>
							<asp:datagrid id="dgList1" runat="server" Width="100%" CssClass="table-shangxia" DataKeyField="ProductID"
								AutoGenerateColumns="False" AllowPaging="True">
								<HeaderStyle HorizontalAlign="Center" BackColor="#F1F1F1"></HeaderStyle>
								<Columns>
									<asp:BoundColumn DataField="ProductNumber" HeaderText="TextProductNumber">
										<HeaderStyle></HeaderStyle>
										<ItemStyle HorizontalAlign="Center"></ItemStyle>
									</asp:BoundColumn>
									<asp:BoundColumn DataField="ProductName" HeaderText="TextProductName">
										<HeaderStyle></HeaderStyle>
										<ItemStyle HorizontalAlign="Center"></ItemStyle>
									</asp:BoundColumn>
									<asp:BoundColumn DataField="ProductClass" HeaderText="DataDownStartTextClass">
										<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
										<ItemStyle HorizontalAlign="Center"></ItemStyle>
									</asp:BoundColumn>
									<asp:BoundColumn DataField="ProductBrand" HeaderText="DataDownStartTextBrand">
										<HeaderStyle></HeaderStyle>
										<ItemStyle HorizontalAlign="Center"></ItemStyle>
									</asp:BoundColumn>
									<asp:BoundColumn DataField="AddTime" HeaderText="DataDownStartTextAddTime">
										<HeaderStyle></HeaderStyle>
										<ItemStyle HorizontalAlign="Center"></ItemStyle>
									</asp:BoundColumn>
									<asp:TemplateColumn>
										<HeaderStyle></HeaderStyle>
										<HeaderTemplate>
											<asp:CheckBox id="ckSelAllProduct" runat="server" onClick="selallProduct()"></asp:CheckBox>
										</HeaderTemplate>
										<ItemStyle HorizontalAlign="Center"></ItemStyle>
										<ItemTemplate>
											<asp:CheckBox id="ckSelItemProduct" runat="server"></asp:CheckBox>
										</ItemTemplate>
									</asp:TemplateColumn>
								</Columns>
								<PagerStyle Visible="False" NextPageText="下一页" PrevPageText="上一页" HorizontalAlign="Right"></PagerStyle>
							</asp:datagrid></TD>
					</TR>
				</TABLE>
				<TABLE class="table-zuoyou" id="Table1" width="100%" align="center" border="0">
					<TR align="center" bgColor="#f1f1f1">
						<TD>
							<asp:button id="btFirst1" runat="server" CssClass="go-wenbenkuang" Text=" 首 页" BorderStyle="Groove" onclick="btFirst1_Click"></asp:button>&nbsp;
							<asp:button id="btPre1" runat="server" CssClass="go-wenbenkuang" Text="上一页" BorderStyle="Groove" onclick="btPre1_Click"></asp:button>&nbsp;
							<asp:button id="btNext1" runat="server" CssClass="go-wenbenkuang" Text="下一页" BorderStyle="Groove" onclick="btNext1_Click"></asp:button>&nbsp;
							<asp:button id="btLast1" runat="server" CssClass="go-wenbenkuang" Text=" 尾 页" BorderStyle="Groove" onclick="btLast1_Click"></asp:button>&nbsp;
							<asp:label id="lbPage1" runat="server"></asp:label>&nbsp;
							<%=myLanguagesDeal.GetMyString("TextGotoPage")%>
							<asp:textbox id="txtPageNum1" runat="server" Width="30px" CssClass="wenbenkuang" MaxLength="3"></asp:textbox>
							<asp:CompareValidator id="cpvPageNum1" runat="server" Display="Dynamic" ControlToValidate="txtPageNum1"
								ErrorMessage="输入数字" Operator="DataTypeCheck" Type="Integer" ForeColor="#FF0000"></asp:CompareValidator><%=myLanguagesDeal.GetMyString("TextPages")%>
							<asp:button id="btGo1" runat="server" CssClass="go-wenbenkuang" Text="Go" onclick="btGo1_Click"></asp:button></TD>
					</TR>
				</TABLE>
			</asp:panel>
			<DIV align="center">
				<asp:label id="lbClassInfo" runat="server" ForeColor="Red"></asp:label></DIV>
			<asp:panel id="PanClass3" runat="server" Visible="False">
				<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
					<TR>
						<TD>
							<asp:datagrid id="dgList2" runat="server" Width="100%" CssClass="table-shangxia" DataKeyField="ClassID"
								AutoGenerateColumns="False" AllowPaging="false">
								<HeaderStyle HorizontalAlign="Center" BackColor="#F1F1F1"></HeaderStyle>
								<Columns>
									<asp:BoundColumn DataField="ClassName2" HeaderText="ClassTextClassName">
										<HeaderStyle></HeaderStyle>
										<ItemStyle HorizontalAlign="left"></ItemStyle>
									</asp:BoundColumn>
									<asp:TemplateColumn>
										<HeaderStyle></HeaderStyle>
										<HeaderTemplate>
											<asp:CheckBox id="ckSelAllClass" runat="server" onClick="selallClass()"></asp:CheckBox>
										</HeaderTemplate>
										<ItemStyle HorizontalAlign="Center"></ItemStyle>
										<ItemTemplate>
											<asp:CheckBox id="ckSelItemClass" runat="server"></asp:CheckBox>
										</ItemTemplate>
									</asp:TemplateColumn>
								</Columns>
								<PagerStyle Visible="False" NextPageText="下一页" PrevPageText="上一页" HorizontalAlign="Right"></PagerStyle>
							</asp:datagrid></TD>
					</TR>
				</TABLE>
			</asp:panel>
			<DIV align="center">
				<asp:label id="lbBrandInfo" runat="server" ForeColor="Red"></asp:label></DIV>
			<asp:panel id="PanBrand3" runat="server" Visible="False">
				<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
					<TR>
						<TD>
							<asp:datagrid id="dgList3" runat="server" Width="100%" CssClass="table-shangxia" DataKeyField="BrandID"
								AutoGenerateColumns="False" AllowPaging="False">
								<HeaderStyle HorizontalAlign="Center" BackColor="#F1F1F1"></HeaderStyle>
								<Columns>
									<asp:BoundColumn DataField="BrandName" HeaderText="BrandTextName">
										<HeaderStyle></HeaderStyle>
										<ItemStyle HorizontalAlign="left"></ItemStyle>
									</asp:BoundColumn>
									<asp:TemplateColumn>
										<HeaderStyle></HeaderStyle>
										<HeaderTemplate>
											<asp:CheckBox id="ckSelAllBrand" runat="server" onClick="selallBrand()"></asp:CheckBox>
										</HeaderTemplate>
										<ItemStyle HorizontalAlign="Center"></ItemStyle>
										<ItemTemplate>
											<asp:CheckBox id="ckSelItemBrand" runat="server"></asp:CheckBox>
										</ItemTemplate>
									</asp:TemplateColumn>
								</Columns>
								<PagerStyle Visible="False" NextPageText="下一页" PrevPageText="上一页" HorizontalAlign="Right"></PagerStyle>
							</asp:datagrid></TD>
					</TR>
				</TABLE>
			</asp:panel>
		</form>
		<script language="javascript" src="UserControl/DatePicker/WdatePicker.js" type="text/javascript"></script>
	</body>
</HTML>
