<%@ Register TagPrefix="ftb" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="addpro.aspx.vb" Inherits="LuckBet.addpro" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>addpro </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">
     <!--
      function Selecttype1()
      {
			var drpClass2=document.getElementById("ddlclass2");//分类二级
			var drpClass3=document.getElementById("ddlclass3");//分类三级
			for (var i=drpClass2.options.length;i>=0;i--)
			{
				drpClass2.remove(i);
			}
			for (var i=drpClass3.options.length;i>=0;i--)
			{
				drpClass3.remove(i);
			}
			var oHttpReq=new ActiveXObject("MSXML2.XMLHTTP");//发送请求
			var oDoc=new ActiveXObject("MSXML2.DOMDocument");//响应结果
			var Class1=document.getElementById("ddlclass1").value;
			oHttpReq.open("post","selectProKind.aspx?flag=1&Class1="+Class1,false);
			oHttpReq.setrequestheader("content-type","application/x-www-form-urlencoded");
			oHttpReq.send("");                  
			var result=oHttpReq.responseText;
			var newOption_0 = document.createElement("OPTION"); 
			newOption_0.text = "选择类型"; 
			newOption_0.value = '0'; 
			drpClass2.options.add(newOption_0);
			var newOption_1 = document.createElement("OPTION"); 
			newOption_1.text = "选择类型"; 
			newOption_1.value = '0'; 
			drpClass3.options.add(newOption_1);
			oDoc.loadXML(result);
			var items1 = oDoc.selectNodes("//NewDataSet/Class/Name");
			var items2 = oDoc.selectNodes("//NewDataSet/Class/twoid");

			var itemsLength=items1.length;
			 
			for(i=0;i<itemsLength;i++)

			
			{
			var newOption = document.createElement("OPTION");
			newOption.text=items1[i].text;
			newOption.value=items2[i].text;
			drpClass2.options.add(newOption);
			
			} 
	  }
   
   
     function Selecttype2()
      {
         var drpClass3=document.getElementById("ddlClass3");
         for (var i=drpClass3.options.length;i>=0;i--)
         {
             drpClass3.remove(i);
         }
        
         var oHttpReq=new ActiveXObject("MSXML2.XMLHTTP");
         var oDoc=new ActiveXObject("MSXML2.DOMDocument");
         var Class1=document.getElementById("ddlClass1").value;
         var Class2=document.getElementById("ddlClass2").value;
         oHttpReq.open("post","selectProKind.aspx?flag=2&&Class1="+Class1+"&Class2="+Class2,false);
         oHttpReq.setrequestheader("content-type","application/x-www-form-urlencoded");
         oHttpReq.send("");                  
         var result=oHttpReq.responseText;
         var newOption_0 = document.createElement("OPTION"); 
         newOption_0.text = "选择类型"; 
         newOption_0.value = '0'; 
         drpClass3.options.add(newOption_0);
         oDoc.loadXML(result);
         var items1 = oDoc.selectNodes("//NewDataSet/Class3/Name");
		 var items2 = oDoc.selectNodes("//NewDataSet/Class3/threeid");

			var itemsLength=items1.length;
			 
			for(i=0;i<itemsLength;i++)

			{
			var newOption = document.createElement("OPTION");
			newOption.text=items1[i].text;
			newOption.value=items2[i].text;
			drpClass3.options.add(newOption);
			
         //var items = oDoc.selectNodes("//NewDataSet/city/city");
		//for (var item = items.nextNode();item;item = items.nextNode())
		//{　
			
    　	//var areaName = item.selectSingleNode("city").nodeTypedValue;
    　	//var areaCode = item.selectSingleNode("threeid").nodeTypedValue;
		//var newOption = document.createElement("OPTION");　
    　	//newOption.text = areaName;　
    　	//newOption.value = areaCode;　
    　	//drp3.options.add(newOption);　
		}　
    }
   
-->
		</script>
	</HEAD>
	<body bottomMargin="0" leftMargin="0" topMargin="0" rightMargin="0">
		<form id="Form1" method="post" runat="server">
			</TABLE>
			<TABLE id="Table4" 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 style="FONT-WEIGHT: bold; FONT-SIZE: 16px; COLOR: #000066" color="#ffffff">添 
									加 奖 品</FONT></FONT></FONT></TD>
				</TR>
				<TR>
					<TD align="center"><FONT face="宋体"><FONT face="宋体">
								<asp:panel id="Panel2" runat="server" HorizontalAlign="Center" Font-Size="10pt" Width="80%">
									<TABLE id="Table13" style="WIDTH: 528px; HEIGHT: 32px" cellSpacing="0" cellPadding="0"
										width="528" border="0">
										<TR>
											<TD align="center">这里是新增奖品栏目，为了让客户更清楚了解产品及用途，请详细填写！<BR>
												现在是：
												<asp:Label id="lblprodata" runat="server" Font-Names="Arial" ForeColor="Purple"></asp:Label></TD>
										</TR>
									</TABLE>
									<HR style="BORDER-RIGHT: #330066 double; BORDER-TOP: #330066 double; BORDER-LEFT: #330066 double; BORDER-BOTTOM: #330066 double; HEIGHT: 4px"
										width="100%" SIZE="4">
									<BR>
									<TABLE id="Table8" style="FONT-SIZE: 12px; WIDTH: 704px; HEIGHT: 98px" cellSpacing="0"
										cellPadding="0" width="704" border="1">
										<TR>
											<TD style="WIDTH: 67px; HEIGHT: 27px" align="center">产品名称</TD>
											<TD style="WIDTH: 225px; HEIGHT: 27px">
												<asp:TextBox id="txtproname" runat="server" CssClass="textbox"></asp:TextBox></TD>
											<TD style="WIDTH: 96px; HEIGHT: 27px" align="center">产品类型</TD>
											<TD style="HEIGHT: 27px">
												<asp:DropDownList id="ddlclass1" runat="server"></asp:DropDownList>
												<asp:DropDownList id="ddlclass2" runat="server"></asp:DropDownList></TD>
										</TR>
										<TR>
											<TD style="WIDTH: 67px" align="center">品&nbsp;&nbsp;&nbsp; 牌</TD>
											<TD style="WIDTH: 225px">
												<asp:DropDownList id="ddlclass3" runat="server"></asp:DropDownList></TD>
											<TD style="WIDTH: 96px" align="center"><FONT color="#0000ff"><FONT color="#0000ff">兑换价格￥</FONT></FONT></TD>
											<TD>
												<asp:TextBox id="txtprice" runat="server" CssClass="textbox"></asp:TextBox><FONT color="#0000ff">系统会自动转换成金币数</FONT></TD>
										</TR>
										<TR>
											<TD align="center" colSpan="4">首页推荐
												<asp:DropDownList id="ddltj" runat="server">
													<asp:ListItem Value="是">是</asp:ListItem>
													<asp:ListItem Value="否" Selected="True">否</asp:ListItem>
												</asp:DropDownList>&nbsp; 特价产品
												<asp:DropDownList id="ddljj" runat="server">
													<asp:ListItem Value="是">是</asp:ListItem>
													<asp:ListItem Value="否" Selected="True">否</asp:ListItem>
												</asp:DropDownList>&nbsp; 今日推荐
												<asp:DropDownList id="ddlday" runat="server">
													<asp:ListItem Value="是">是</asp:ListItem>
													<asp:ListItem Value="否" Selected="True">否</asp:ListItem>
												</asp:DropDownList></TD>
										</TR>
									</TABLE>
									<BR>
									<TABLE id="Table9" style="FONT-SIZE: 12px; WIDTH: 704px; HEIGHT: 604px" cellSpacing="0"
										cellPadding="0" width="704" border="1">
										<TR>
											<TD style="WIDTH: 88px; HEIGHT: 294px" vAlign="middle" align="center"><FONT face="宋体">奖品介绍</FONT></TD>
											<TD style="HEIGHT: 294px"><FONT color="#ff0000">
													<FTB:FreeTextBox id="FreeTextBox1" runat="server" ButtonPath="../images/ftb/office2003/"></FTB:FreeTextBox></FONT></TD>
										</TR>
										<TR>
											<TD style="WIDTH: 88px; HEIGHT: 81px" align="center"><FONT face="宋体">图片</FONT></TD>
											<TD style="HEIGHT: 81px" vAlign="middle"><FONT face="宋体"><BR>
													<TABLE id="Table10" style="WIDTH: 630px; HEIGHT: 69px" borderColor="gainsboro" cellSpacing="0"
														borderColorDark="#ffffff" cellPadding="0" width="630" border="1">
														<TR>
															<TD style="WIDTH: 118px" align="center">
																<asp:image id="imgpro" runat="server" Width="76px" Height="65px" AlternateText="没上传图片"></asp:image></TD>
															<TD align="left"><INPUT class="textbox" id="File1" style="BORDER-RIGHT: gainsboro 1px solid; BORDER-TOP: gainsboro 1px solid; BORDER-LEFT: gainsboro 1px solid; WIDTH: 257px; BORDER-BOTTOM: gainsboro 1px solid; HEIGHT: 22px"
																	type="file" size="23" name="File1" runat="server">&nbsp;
																<asp:button id="bntimgFtp" runat="server" Width="48px" ForeColor="Black" Height="19px" BorderStyle="None"
																	BorderWidth="1px" BorderColor="Control" BackColor="Control" Text="上传"></asp:button>&nbsp;
																<asp:button id="bntDelimg" runat="server" Width="48px" ForeColor="Black" Height="19px" BorderStyle="None"
																	BorderWidth="1px" BorderColor="Control" BackColor="Control" Text="删除"></asp:button><BR>
																&nbsp; (图片大小为150*150,这样您的网站更美观)</TD>
														</TR>
													</TABLE>
												</FONT>
											</TD>
										</TR>
										<TR>
											<TD style="WIDTH: 88px; HEIGHT: 255px" vAlign="top" align="center"><FONT face="宋体">相关图片</FONT></TD>
											<TD style="HEIGHT: 255px"><FONT face="宋体">
													<TABLE id="Table11" style="WIDTH: 630px; HEIGHT: 177px" cellSpacing="0" cellPadding="0"
														width="630" border="0">
														<TR>
															<TD style="WIDTH: 366px; HEIGHT: 67px" vAlign="top" align="center"><BR>
																<TABLE id="Table12" style="WIDTH: 446px; HEIGHT: 120px" borderColor="gainsboro" cellSpacing="0"
																	borderColorDark="#ffffff" cellPadding="1" width="446" border="1">
																	<TR>
																		<TD><INPUT class="textbox" id="File2" style="BORDER-RIGHT: gainsboro 1px solid; BORDER-TOP: gainsboro 1px solid; BORDER-LEFT: gainsboro 1px solid; WIDTH: 280px; COLOR: #009900; BORDER-BOTTOM: gainsboro 1px solid; HEIGHT: 22px"
																				type="file" size="27" name="File1" runat="server">&nbsp;
																			<asp:button id="butimgG1" runat="server" Width="48px" ForeColor="Black" Height="19px" BorderStyle="None"
																				BorderWidth="1px" BorderColor="Control" BackColor="Control" Text="上传1"></asp:button>&nbsp;
																			<asp:button id="Button1" runat="server" Width="48px" ForeColor="Black" Height="19px" BorderStyle="None"
																				BorderWidth="1px" BorderColor="Control" BackColor="Control" Text="删除1"></asp:button></TD>
																	</TR>
																	<TR>
																		<TD><INPUT class="textbox" id="File3" style="BORDER-RIGHT: gainsboro 1px solid; BORDER-TOP: gainsboro 1px solid; BORDER-LEFT: gainsboro 1px solid; WIDTH: 280px; COLOR: #009900; BORDER-BOTTOM: gainsboro 1px solid; HEIGHT: 22px"
																				type="file" size="27" name="File1" runat="server">&nbsp;
																			<asp:button id="butimgG2" runat="server" Width="48px" ForeColor="Black" Height="19px" BorderStyle="None"
																				BorderWidth="1px" BorderColor="Control" BackColor="Control" Text="上传2"></asp:button>&nbsp;
																			<asp:button id="Button2" runat="server" Width="48px" ForeColor="Black" Height="19px" BorderStyle="None"
																				BorderWidth="1px" BorderColor="Control" BackColor="Control" Text="删除2"></asp:button></TD>
																	</TR>
																	<TR>
																		<TD><INPUT class="textbox" id="File4" style="BORDER-RIGHT: gainsboro 1px solid; BORDER-TOP: gainsboro 1px solid; BORDER-LEFT: gainsboro 1px solid; WIDTH: 280px; COLOR: #009900; BORDER-BOTTOM: gainsboro 1px solid; HEIGHT: 22px"
																				type="file" size="27" name="File1" runat="server">&nbsp;
																			<asp:button id="butimgG3" runat="server" Width="48px" ForeColor="Black" Height="19px" BorderStyle="None"
																				BorderWidth="1px" BorderColor="Control" BackColor="Control" Text="上传3"></asp:button>&nbsp;
																			<asp:button id="Button3" runat="server" Width="48px" ForeColor="Black" Height="19px" BorderStyle="None"
																				BorderWidth="1px" BorderColor="Control" BackColor="Control" Text="删除3"></asp:button></TD>
																	</TR>
																	<TR>
																		<TD><INPUT class="textbox" id="File5" style="BORDER-RIGHT: gainsboro 1px solid; BORDER-TOP: gainsboro 1px solid; BORDER-LEFT: gainsboro 1px solid; WIDTH: 280px; COLOR: #009900; BORDER-BOTTOM: gainsboro 1px solid; HEIGHT: 22px"
																				type="file" size="27" name="File1" runat="server">&nbsp;
																			<asp:button id="butimgG4" runat="server" Width="48px" ForeColor="Black" Height="19px" BorderWidth="1px"
																				BorderColor="Control" BackColor="Control" Text="上传4"></asp:button>&nbsp;
																			<asp:button id="Button4" runat="server" Width="48px" ForeColor="Black" Height="19px" BorderStyle="None"
																				BorderWidth="1px" BorderColor="Control" BackColor="Control" Text="删除4"></asp:button></TD>
																	</TR>
																</TABLE>
																&nbsp;&nbsp;</TD>
														</TR>
														<TR>
															<TD vAlign="top" align="center">
																<asp:image id="imgG1" runat="server" Width="72px" Height="60px" AlternateText="相关图片(1)"></asp:image>&nbsp;
																<asp:image id="imgG2" runat="server" Width="72px" Height="60px" AlternateText="相关图片(2)"></asp:image>&nbsp;&nbsp;
																<asp:image id="ImgG3" runat="server" Width="72px" Height="60px" AlternateText="相关图片(3)"></asp:image>&nbsp;
																<asp:image id="ImgG4" runat="server" Width="72px" Height="60px" AlternateText="相关图片(4)"></asp:image></TD>
														</TR>
													</TABLE>
												</FONT>
											</TD>
										</TR>
									</TABLE>
									<asp:Button id="butADDpro" runat="server" Width="85px" CssClass="button" Height="30px" Text="添  加"></asp:Button>
								</asp:panel><asp:panel id="Panel3" runat="server" Width="54.07%" Font-Size="10pt" HorizontalAlign="Center"
									ForeColor="Purple"><BR>新产品添加成功， 
<asp:HyperLink id="HyperLink9" runat="server" NavigateUrl="addpro.aspx">点击这里继续添加</asp:HyperLink></asp:panel></FONT></FONT></TD>
				</TR>
				<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"></FONT></FONT></FONT></FONT></FONT></TD>
				</TR>
			</TABLE>
		</form>
	</body>
</HTML>
