<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TopicAdd.aspx.cs" Inherits="web.admin.TopicAdd" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>

		<title>ProductField</title><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
		<LINK href="images/adminstyle.css" type="text/css" rel="stylesheet"></LINK>
<style type="text/css">
body {margin:0px; height:768px}
</style>
		<script language="JavaScript">
<!--
//By Dicky 2005-2-17 11:16:49
function Window_Load(Flag)
{

if (Flag == 0)
{

  parent.document.all['Loading'].style.display = 'block';
  parent.document.all['Loading'].style.width = '500';
   parent.document.all['Loading'].style.height = '60';
  //show the window
}
else
{
  parent.document.all['Loading'].style.display = 'none';
  
  //hide the window
}
}
//-->
</script>
<script language="javascript">
			function ShopStop()
			{
				if(document.Form1.ddlShopStop.value == "1")
				{
			     eval("stopwords" + ".style.display=\"\";");
				}
				else
				{
				eval("stopwords" + ".style.display=\"none\";");
				}
			}
			</script>
			<script language="javascript" type="text/javascript">
<!--
function changeColor(o) {
    document.getElementById("colorBox").style.color = o.value;
}
//-->
</script>
	</HEAD>
	<body rightmargin="0" leftmargin="0" topmargin="0">
	
		<form id="Form1" method="post" runat="server" >
		
<table width="100%" height="550"  cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top">
<div class="top">
          <table width="100%" align="center" cellpadding="0" cellspacing="0" background="img/labelbg.gif" >
            <tr>
		      <td height="33" class="tl"></td>
		      <td class="tm"><span class="tt">专题活动管理 &gt;&gt; 专题活动或类别<asp:Label ID="mc" runat="server"></asp:Label>&nbsp;
                  <span style="color: #ff0033">说明:为了保持首页或者其他页面调用美观.专题调用小图片在制作的时候尽量保持一样大小!</span></span></td>
		      <td class="tm2"><span class="tt"></span></td>
		<td class="tr"></td>
	</tr>
</table>
</div>
        <div class="mframe"> 
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
      <td class="ml"></td>
              <td  class="mm" align="left" valign="top"> <br>
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
                    <td bgcolor="#FFFFFF" valign="top" > 
                      <table width="100%"  cellspacing="0" cellpadding="0">
                        <tr>
		<td class="ml1"></td>
		<td class="mm1">
<table cellSpacing="1" cellPadding="1" width="100%" align="center" border="0"
				id="Table4">
                              <tr>
					            <td height="145"> 
                            <table width="100%" border="0" align="center" cellpadding="5" cellspacing="5"  >
                                    <tr bgcolor="#FFFFFF"> 
                                      <td width="275" align="right" > 选择活动类别：&nbsp;</td>
                                      <td width="1242" height="6" align="left" > 
                                        <asp:DropDownList ID="plei" runat="server" AutoPostBack="True" OnSelectedIndexChanged="plei_SelectedIndexChanged"> 
                                        </asp:DropDownList> &nbsp; <asp:HiddenField ID="Hiddenarea" runat="server" /> 
                                        <asp:TextBox ID="atype" runat="server"></asp:TextBox> 
                                        &nbsp; <asp:Button ID="Bt_lx"
                                              runat="server"  Text="添加活动类别" OnClick="Bt_lx_Click" /> 
                                        &nbsp; <asp:Button ID="BT_del"
                                                  runat="server"  Text="删除该活动类别" Visible="False" OnClick="BT_del_Click" />
                                          <span style="color: #ff0033">注意：删除类别将删除该类下的所有活动</span></td>
                                    </tr>
                                    <tr bgcolor="#FFFFFF"> 
                                      <td width="275" rowspan="2" align="right" > 
                                        选择添加类型：&nbsp;</td>
                                      <td width="1242" height="11" align="left" > 
                                        <asp:RadioButton ID="ismb" runat="server" AutoPostBack="True" Checked="True" GroupName="spmb" Text="启用已经添加的模板进行专题商品页面制作!" OnCheckedChanged="ismb_CheckedChanged" /></td>
                                    </tr>
                                    <tr bgcolor="#FFFFFF"> 
                                      <td height="19" align="left" bgcolor="#F3F3F3" > 
                                        <asp:RadioButton ID="notmb" runat="server" Text="不，我不想启用模板，我的专题商品页面已经单独制作，页面上的商品我已经做成图片，并且都做好了连接，是张整体的专题促销图" AutoPostBack="True" GroupName="spmb" OnCheckedChanged="notmb_CheckedChanged" /></td>
                                    </tr>
                                    <tr bgcolor="#FFFFFF"> 
                                      <td height="23" align="right" >&nbsp;专题活动名称： 
                                      </td>
                                      <td height="23" align="right" ><div align="left"> 
                                          <asp:TextBox ID="ztname" runat="server" Width="364px"></asp:TextBox>
                                          标题颜色: 
                                          <asp:TextBox ID="dcolor" runat="server" Width="89px"></asp:TextBox>
                                          &nbsp; 
                                          <input type="button" name="Submit2" value="选择颜色" onClick="window.open('colorpicker.html', 'colorPicker', 'width=200, height=160, top=160, left=160');" />
                                          <span id="colorBox"><font style="font-size:14px"><b>效果展示</b></font></span></div></td>
                                    </tr>
                                    <tr bgcolor="#FFFFFF"> 
                                      <td colspan="2" align="right" ><div <%=IsT%>> 
                                          <table width="100%" cellpadding="5" cellspacing="5">
                                            <tr bgcolor="#FFFFFF"> 
                                              <td width="263" align="right" >连接地址：</td>
                                              <td width="1232" align="left" > 
                                                <asp:TextBox ID="ljdz" runat="server" Width="440px" Enabled="False"></asp:TextBox> 
                                                &nbsp;<br />
                                                (请输入包含域名的绝对地址，请不要忘记将制作好的专题页面及其他文件放置在一个文件夹内，然后上传到Topic文件夹内）</td>
                                            </tr>
                                          </table>
                                        </div></td>
                                    </tr>
                                       <tr bgcolor="#FFFFFF"> 
                                              <td align="right"   >活动简介：</td>
                                              <td align="left" > <asp:TextBox ID="Hdjj" runat="server" Height="45px" TextMode="MultiLine" Width="422px"></asp:TextBox> 
                                                &nbsp;</td>
                                            </tr>
                                    <tr bgcolor="#FFFFFF"> 
                                      <td colspan="2" align="center"> <div <%=IsTs%>> 
                                          <table width="100%" cellpadding="5" cellspacing="5">
                                            <tr bgcolor="#F3F3F3"> 
                                              <td width="263" align="right"  > 
                                                当前系统模板：</td>
                                              <td width="1232" align="left" >&nbsp; 
                                                <asp:Label ID="mb" runat="server"></asp:Label> 
                                                <span
                                          style="color: #ff0033"> </span> <a href="Template.aspx?Action=Manage"><span style="color: #ff0033"> 
                                                [重新选择模板]</span></a></td>
                                            </tr>
                                            <tr bgcolor="#FFFFFF"> 
                                              <td colspan="2" align="right" ><div align="center"> 
                                                  <div <%=yymbb%>> 
                                                    <table width="100%">
                                                      <tr bgcolor="#F3F3F3"> 
                                                        <td width="24%" align="right" style="width: 10%; height: 26px" > 
                                                          该专题活动应用模板：</td>
                                                        <td width="76%" align="left" style="height: 26px" > 
                                                          &nbsp;&nbsp; [ 
                                                          <asp:Label ID="yymb" runat="server"></asp:Label> 
                                                          &nbsp;] &nbsp; &nbsp;&nbsp; 
                                                          <asp:CheckBox
                                                                ID="Cbnew" runat="server" Text="我想应用新的系统模板修改该专题" /></td>
                                                      </tr>
                                                    </table>
                                                  </div>
                                                  <div <%=Issc%>> 
                                                    <table width="100%">
                                                      <tr bgcolor="#FFFFFF"> 
                                                        <td width="58%" align="right" style="width: 10%" > 专题活动宣传图片：</td>
                                                        <td width="50%" align="left" > 
                                                          <asp:FileUpload ID="hb" runat="server" Width="428px" /> 
                                                          (<span style="color: #ff0033">只有在默认模板的时候才上传该图片,图片长为<strong>837</strong>px,高度不限)</span> 
                                                          <br /> <asp:Label ID="tp" runat="server"></asp:Label> 
                                                          <br /> <asp:Label ID="sm" runat="server"></asp:Label></td>
                                                      </tr>
                                                    </table>
                                                  </div>
                                                </div></td>
                                            </tr>
                                            <tr bgcolor="#FFFFFF"> 
                                              <td align="right"  >活动起始日期：</td>
                                              <td align="left" > <asp:TextBox ID="qsrq" runat="server" Width="416px"></asp:TextBox>
                                                书写格式:2010-5-1 / 2010-6-1</td>
                                            </tr>
                                         
                                            <tr bgcolor="#FFFFFF"> 
                                              <td align="right"  >活动详细内容：</td>
                                              <td align="left" ><FCKeditorV2:FCKeditor id="ftbContent" runat ="server" ToolbarSet="Default" Height="300px" Width="98%"></FCKeditorV2:FCKeditor></td>
                                            </tr>
                                          </table>
                                        </div></td>
                                    </tr>
                                    <tr bgcolor="#FFFFFF"> 
                                      <td align="center"><div align="right">选择调用小图片：</div></td>
                                      <td align="center">
                                          <div align="left"> <asp:FileUpload ID="xtp" runat="server" Width="328px" />
                                       (说明:图片长为<strong>313 </strong>X<strong> 109 </strong><span
                                              style="color: #ff0033">px,高度不限!) 
                                          </span> <br />
                                          <asp:Label ID="sytpx" runat="server"></asp:Label>
                                        </div></td>
                                    </tr>
                                    <tr bgcolor="#FFFFFF" style="display:none;"> 
                                      <td align="center"><div align="right">&nbsp;是否为首页图片调用：</div></td>
                                      <td align="center"> <div align="left">
                                          <asp:DropDownList id="ddlShopStop" runat="server"> 
                                            <asp:ListItem Value="0">不</asp:ListItem>
                                            <asp:ListItem Value="1">是</asp:ListItem>
                                          </asp:DropDownList>
                                          <span style="color: #ff0033"> &nbsp; 
                                          &nbsp;&nbsp;</span><SPAN id="stopwords" style="DISPLAY: none"> 
                                          <span style="color: #ff0033"><span style="color: #000000"> 
                                          </span> </span> <br />
                                          <asp:Label ID="sysm" runat="server"></asp:Label>
                                          &nbsp;</SPAN> &nbsp;</div></td>
                                    </tr>
                                    <tr bgcolor="#FFFFFF" > 
                                      <td align="center"><div align="right"> 是否为首页文字调用：</div></td>
                                      <td align="center"><div align="left"> 
                                          <asp:CheckBox ID="issyWz" runat="server" Text="是" />
                                        </div></td>
                                    </tr>
                                    <tr bgcolor="#FFFFFF"> 
                                      <td colspan="2" align="center"> <asp:Button ID="Button1" runat="server" Text="　添加　" OnClick="Button1_Click" /> 
                                        <input id="Reset2" type="reset" value="　重置　" /> 
                                        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
                        ShowSummary="False" /> </td>
                                    </tr>
                                  </table>
					</td>
				</tr>
			</table>
		</td>
		<td class="mr1"></td>
	</tr>
</table>
                    </td>
  </tr>
</table>


<table width="100%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="bl"></td>
		<td class="bm">&nbsp;</td>
		<td class="br"></td>
	</tr>
</table>
</td>
    <td  class="mr"></td>
  </tr>
</table>
<table width="100%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="bl" style="height: 15px"></td>
		<td class="bm" style="height: 15px">&nbsp;</td>
		<td class="br" style="height: 15px"></td>
	</tr>
</table>
</div>
    </td>
  </tr>
</table>

		</form>
	</body>
</HTML>
