<%@ page language="C#" validaterequest="false" enableeventvalidation="false" masterpagefile="AdminIndexMaster.master" autoeventwireup="true" inherits="Admin_Admin_updateAd, mallz" title="增加修改广告" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <table class="nick">
        <tr><td colspan="2" class="tit">广告</td></tr>
        <tr align="left">
            <td valign="top" style="width:22%; background-color:#eef7fd">
                <table cellspacing="1" cellpadding="1" width="200px" border="0" >
                   <tr class="tdbg">
                      <td align="center" >
                           <b>所属版位</b>
                           <asp:ListBox ID="ZoneID" runat="server" Width="198px"  Height="500px"  SelectionMode="Multiple"/>
                      </td>
                   </tr>
                </table>
            </td>
            <td valign="top" style="width:78%;background-color:#eef7fd" >

                       <table width="100%" class="nick" cellpadding="1" cellspacing="1" border="0">
                            <tr >
                                <td class="ltd">
                                    <div style="width:90px;"><strong>广告名称：</strong></div>
                                </td>
                                <td class="rtd"><asp:TextBox ID="ADName" Width="400" runat="server" /> <font color="red">*</font>
                                 <asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" ErrorMessage="广告名称不能为空" ControlToValidate="ADName"/>
                                </td>                                
                            </tr>
                            <tr>
                                <td  class="ltd">广告类型：</td>
                                <td class="rtd">
                                    <asp:RadioButtonList id="ADType" runat="server" OnSelectedIndexChanged="RadLType_SelectedIndexChanged" Repeatdirection="Horizontal" AutoPostBack="true">
                                        <asp:ListItem Value="1" Selected="true">图片</asp:ListItem>
                                        <asp:ListItem Value="2">动画</asp:ListItem>
                                        <asp:ListItem Value="3">文本</asp:ListItem>
                                        <asp:ListItem Value="4">代码</asp:ListItem>
                                        <asp:ListItem Value="5">页面</asp:ListItem>
                                    </asp:RadioButtonList>
                               </td>
                            </tr>
                            <tr>
                               <td class="ltd"><strong>广告内容：</strong></td>
                               <td class="rtd">
                                   <table id="ADContent_2" cellspacing="1" cellpadding="1" width="100%" border="0">
                                       <tr align="left">
                                           <td align="left" colspan="2">
                                               <asp:Panel id="Panel1" runat="server" Width="100%">
                                                    <table id="ADContent_1" cellspacing="1" cellpadding="1" width="100%" align="left" border="0" bgcolor="#FFFFFF"><tbody>
                                                        <tr class="tdbg" align="left">
                                                            <td style="HEIGHT: 22px; background-color:#E0EEF5;" colspan="2" align="center"><b>广告内容设置--图片</b></td>
                                                        </tr>
                                                        <tr class="tdbg">
                                                            <td align="center"><div style="WIDTH: 70px">图片地址：</div></td>
                                                            <td align="left"><asp:TextBox ID="ImgUrl" Width="500" runat="server" />
                                                               <asp:Image ID="UploadImgUrl" Width="50" Height="50" runat="server" Visible="false" />
                                                            </td>
                                                        </tr>
                                                        <tr class="tdbg">
                                                            <td align="center">图片上传：</td>
                                                            <td align="left"><asp:FileUpload runat="server" ID="FileUpload2" /></td>
                                                        </tr>
                                                        <tr class="tdbg">
                                                            <td align="center">图片尺寸：</td>
                                                            <td>宽：<asp:TextBox ID="ImgWidth" Text="0" runat="server" />像素
                                                           &nbsp; 
                                                            高：<asp:TextBox ID="ImgHeight" Text="0" runat="server" />像素 <span style="color:Blue">(注:0表示按照原图尺寸显示)</span>
                                                            </td>
                                                        </tr>
                                                        <tr class="tdbg">
                                                            <td align="center">链接地址：</td><td><asp:TextBox ID="LinkUrl" Text="http://" runat="server" /> </td></tr>
                                                        <tr class="tdbg"><td align="center">链接提示：</td>
                                                            <td><asp:TextBox ID="LinkAlt" runat="server" /> </td>
                                                        </tr>
                                                        <tr class="tdbg"><td align="center">链接目标：</td><td>
                                                        <asp:RadioButtonList id="LinkTarget" runat="server" Repeatdirection="Horizontal">
                                                                <asp:ListItem Selected="true" Value="0">原窗口</asp:ListItem>
                                                                <asp:ListItem Value="1">新窗口</asp:ListItem>
                                                            </asp:RadioButtonList></td>
                                                        </tr>
                                                        <tr class="tdbg">
                                                            <td align="center">广告简介：</td>
                                                            <td><asp:TextBox ID="ADIntro" TextMode="MultiLine" Width="500" runat="server" /> </td>
                                                        </tr>
                                                       </table>
                                              </asp:Panel>

                                              <asp:Panel id="Panel2" runat="server" Width="100%">
                                                 <table id="table1" cellspacing="1" cellpadding="2" width="100%" border="0">
                                                     <tr>
                                                         <td style="HEIGHT: 22px; background-color:#E0EEF5;" colspan="2" align="center"><b>广告内容设置--动画</b></td>
                                                     </tr>
                                                     <tr>
                                                         <td align="center">动画地址：</td>
                                                         <td>
                                                              <asp:TextBox ID="FlashUrl" runat="server"  Width="500"/> </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="center">动画上传：</td>
                                                        <td>
                                                             <asp:FileUpload runat="server" ID="FileUpload1" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="center">动画尺寸：</td>
                                                        <td>宽：<asp:TextBox ID="FlashWidth" Text="120"  runat="server" /> 像素
                                                        <asp:RangeValidator ID="RangeValidator3" runat="server" ErrorMessage="整数" ControlToValidate="FlashWidth" Type="Integer" MinimumValue="0" MaximumValue="1500" Display="Dynamic"/> &nbsp; &nbsp;
                                                         高：<asp:TextBox ID="FlashHeight" Text="100" runat="server" /> 像素
                                                        <asp:RangeValidator ID="RangeValidator4" runat="server" ErrorMessage="整数" ControlToValidate="FlashHeight" Type="Integer" MinimumValue="0" MaximumValue="1500" Display="Dynamic"/> </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="center">背景透明：</td>
                                                        <td>
                                                            <asp:RadioButtonList id="FlasWmode" runat="server" Repeatdirection="Horizontal" RepeatLayout="Flow">
                                                                <asp:ListItem Value="0" Selected="true">透明</asp:ListItem>
                                                                <asp:ListItem Value="1">不透明</asp:ListItem>
                                                            </asp:RadioButtonList>
                                                        </td>
                                                    </tr>
                                                    </table>
                                               </asp:Panel>
                                               <asp:Panel id="Panel3" runat="server" Width="100%">
                                                   <table id="table2" border="0" cellpadding="1" cellspacing="1"
                                                          width="100%">
                                                        <tr align="left" class="tdbg2">
                                                            <td style="HEIGHT: 22px; background-color:#E0EEF5;" colspan="2" style="width: 448px">
                                                                <b>广告内容设置--文本 (不支持HTML)</b></td>
                                                        </tr>
                                                         <tr align="left" class="tdbg2">
                                                            <td align="center">文本内容：</td>
                                                            <td>
                                                               <asp:TextBox ID="ADText" runat="server" Width="500" Height="100" TextMode="MultiLine" />
                                                            </td>
                                                         </tr>      
                                                    </table>
                                                                
                                                </asp:Panel>
                                                <asp:Panel id="Panel4" runat="server" Width="100%">
                                                    <table id="ADContent_4"  border="0" cellpadding="2" cellspacing="1"
                                                          width="100%">
                                                        <tr align="left" class="tdbg2">
                                                            <td style="HEIGHT: 22px; background-color:#E0EEF5;" colspan="2">
                                                                <b>广告内容设置--代码 (支持HTML)</b></td>
                                                        </tr>
                                                        <tr class="tdbg">
                                                            <td align="center">代码内容：</td>
                                                            <td align="left" >
                                                                <asp:TextBox ID="ADCode" runat="server" Width="500" Height="100" TextMode="MultiLine" />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </asp:Panel>
                                                <asp:Panel id="Panel5" runat="server" Width="100%">
                                                    <table id="ADContent_5"  border="0" cellpadding="2" cellspacing="1"
                                                          width="100%">
                                                        <tr align="left" class="tdbg2">
                                                            <td style="HEIGHT: 22px; background-color:#E0EEF5;" align="left"  colspan="2">
                                                                <b>广告内容设置--页面</b></td>
                                                        </tr>
                                                        <tr class="tdbg">
                                                            <td align="left">
                                                                页面地址：</td>
                                                            <td>
                                                                <asp:TextBox ID="WebFileUrl" runat="server" Width="400" />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </asp:Panel>
                                           </td>
                                       </tr>
                                  </table>
                               </td>
                           </tr>
                           <tr>
                               <td  class="ltd"><strong>广告权重：</strong></td>
                               <td class="rtd">
                                   <asp:TextBox ID="Priority" Text="1" runat="server" /> <FONT color=red> * 此项为版位广告随机显示时的优先权，权重越大显示机会越大。若为 0 表示不显示</FONT>
                                   <asp:RequiredFieldValidator id="RequiredFieldValidator11" runat="server" ErrorMessage="广告权重不能空" ControlToValidate="Priority" Display="Dynamic"/><asp:RangeValidator id="RangeValidator7" runat="server" ErrorMessage="整数" ControlToValidate="Priority" Type="Integer" MinimumValue="0" MaximumValue="999999999"/> </td></tr>
                           <tr>
                               <td  class="ltd"><strong>广告统计：</strong></td>
                               <td class="rtd">
                                   <asp:CheckBox id="CountView" runat="server" Text="统计浏览数" Checked="true"/>&nbsp; 浏览数：<asp:TextBox ID="Views" Text="0" runat="server" /> &nbsp; &nbsp;
                                   <asp:RequiredFieldValidator id="RequiredFieldValidator12" runat="server" ErrorMessage="浏览数不能空" ControlToValidate="Views"/> &nbsp; 
                                   <asp:RangeValidator id="RangeValidator1" runat="server" ErrorMessage="必须为整数" ControlToValidate="Views" Type="Integer" MinimumValue="0" MaximumValue="999999999"/> &nbsp;&nbsp;
                                   <asp:CheckBox id="CountClick" runat="server" Text="统计点击数"/>&nbsp; 点击数：<asp:TextBox id="Clicks" runat="server" Width="50px">0</asp:TextBox> 
                                   <asp:RangeValidator id="RangeValidator2" runat="server" ErrorMessage="必须为整数" ControlToValidate="Clicks" Type="Integer" MinimumValue="0" MaximumValue="999999999" Display="Dynamic"/>
                                   <asp:RequiredFieldValidator id="RequiredFieldValidator13" runat="server" ErrorMessage="点击数不能空" ControlToValidate="Clicks" Display="Dynamic"/>
                               </td>
                          </tr>
                           <tr>
                               <td  class="ltd"><strong>结束时间：</strong></td>
                               <td class="rtd">
                                   <asp:TextBox id="TxtEndTime" runat="server"/>
                                   <asp:RequiredFieldValidator id="RequiredFieldValidator2" runat="server" ErrorMessage="结束时间不能空" ControlToValidate="TxtEndTime" Display="Dynamic"/>
                                   <asp:RegularExpressionValidator id="RegularExpressionValidator3" runat="server" ErrorMessage="2001-01-01" ControlToValidate="TxtEndTime" ValidationExpression="\d{4}-(\d){1,2}-(\d){1,2}"/></td></tr>
                           <tr>
                               <td  class="ltd"><strong>审核状态：</strong> </td>
                               <td class="rtd"><asp:CheckBox id="Passed" runat="server" Text="通过审核 " /> </td>
                           </tr>
                  </table>
            </td>
        </tr>
	    <tr>
            <td class="btm" colspan="2">
		    <asp:Button ID="ButAdd" runat="server" OnClick="ButAdd_Click" Text="添 加" />&nbsp; &nbsp;              
        	<asp:Button ID="ButUpdate" runat="server" OnClick="ButUpdate_Click" Text="更 改" />&nbsp;&nbsp; &nbsp;
        	<input type="button" value="返 回" onclick="history.back()" />
            </td>
        </tr>
        </table>
	<table class="adminlist"></table>

</asp:Content>

