<%@ Register TagPrefix="ftb" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="pubnews.aspx.vb" Inherits="LuckBet.pubnews" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>pubnews</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">
		<script language="JavaScript" src="../JS/GetDate.js"></script>
		<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","selectNewsclass.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","selectNewsclass.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);

		}　
    }
   
   
-->
		</script>
	</HEAD>
	<body>
		<SCRIPT language="javascript" src="../JS/color.js"></SCRIPT>
		<IFRAME width="260" height="165" id="colourPalette" src="../nc_selcolor.htm" style="BORDER-RIGHT:gray 1px solid; BORDER-TOP:gray 1px solid; LEFT:0px; VISIBILITY:hidden; BORDER-LEFT:gray 1px solid; BORDER-BOTTOM:gray 1px solid; POSITION:absolute; TOP:0px"
			frameborder="0" scrolling="no"></IFRAME>
		<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>
					<TD style="HEIGHT: 35px" align="center"><FONT face="宋体" style="FONT-SIZE: 13pt">添 加 信 息</FONT></TD>
				</TR>
				<TR bgColor="#b6ebc4">
					<TD width="100%" bgColor="#d8e1eb" align="center"><FONT face="宋体">
							<TABLE id="Table3" style="WIDTH: 800px; HEIGHT: 687px" width="800" border="1">
								<TR>
									<TD style="WIDTH: 77px; HEIGHT: 17px" align="center" height="17">&nbsp;<FONT face="宋体">类型</FONT></TD>
									<TD colSpan="5" style="HEIGHT: 17px">
										<asp:dropdownlist id="ddlclass1" runat="server"></asp:dropdownlist>
										<asp:dropdownlist id="ddlclass2" runat="server"></asp:dropdownlist>
										<asp:dropdownlist id="ddlclass3" runat="server"></asp:dropdownlist>
										<asp:DropDownList id="ddltype" runat="server">
											<asp:ListItem Value="0">普通信息</asp:ListItem>
											<asp:ListItem Value="1">图片广告</asp:ListItem>
										</asp:DropDownList>(选择图片广告时请在图片中上传.jpg图片)<FONT face="宋体"></FONT></TD>
								</TR>
								<TR>
									<TD style="WIDTH: 77px" align="center" height="19">&nbsp;标 题</TD>
									<TD colSpan="5">
										<asp:TextBox id="txttitle" runat="server" Width="300px" CssClass="textbox"></asp:TextBox></TD>
								</TR>
								<TR>
									<TD style="WIDTH: 77px" align="center" height="19">&nbsp;标题颜色</TD>
									<TD colSpan="5">
										<asp:TextBox id="txtcolor" onclick="Getcolor(this)" runat="server" Width="58px" BorderStyle="None">0</asp:TextBox></TD>
								</TR>
								<TR>
									<TD style="WIDTH: 77px" align="center" height="19">&nbsp;图片</TD>
									<TD colSpan="5"><font color="red">
											<TABLE id="Table10" style="WIDTH: 640px; HEIGHT: 67px" borderColor="gainsboro" cellSpacing="0"
												borderColorDark="#ffffff" cellPadding="0" width="640" border="1">
												<TR>
													<TD style="WIDTH: 118px" align="center">
														<asp:image id="imgpro" runat="server" Width="118px" Height="80px" 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" Height="19px" Text="上传" BackColor="Control"
															BorderColor="Control" ForeColor="Black" BorderWidth="1px" BorderStyle="None"></asp:button>&nbsp;
														<asp:button id="bntDelimg" runat="server" CssClass="button" Width="48px" Height="19px" Text="删除"
															BackColor="Control" BorderColor="Control" ForeColor="Black"></asp:button></TD>
												</TR>
											</TABLE>
										</font>
									</TD>
								</TR>
								<TR>
									<TD style="WIDTH: 77px" align="center">&nbsp;内&nbsp; 容</TD>
									<TD vAlign="top" colSpan="5" width="700">
										<FTB:FreeTextBox id="FreeTextBox1" runat="server" Width="100%" ButtonPath="../images/ftb/office2003/"
											Height="480px"></FTB:FreeTextBox></TD>
								</TR>
							</TABLE>
						</FONT>
					</TD>
				</TR>
				<TR>
					<TD align="center"><FONT face="宋体">
							<asp:Button id="butedit" runat="server" Width="78px" Text="保 存" CssClass="button" Height="32px"></asp:Button></FONT></TD>
				</TR>
			</TABLE>
		</form>
	</body>
</HTML>
