<%@ page language="C#" autoeventwireup="true" inherits="ECMe_Template_EditAD, ECMe_Deploy" %>

<!-- Put IE into quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>广告编辑</title>
    <link href="../CSS/Admin/CSS/ECMe.css" rel="stylesheet" type="text/css" />
    <link href="../CSS/Admin/CSS/body63.css" rel="stylesheet" type="text/css" />
    <link href="../CSS/Admin/CSS/AdminIndex.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../JS/jquery.js"></script>
    <script type="text/javascript" src="../JS/Common.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:RequiredFieldValidator ID="RFV_TADName" runat="server" ErrorMessage="广告名称不能为空"
        ControlToValidate="TADName" Display="None"></asp:RequiredFieldValidator>
    <div class="header">
        <h2>
            网站设置 &gt; <a href="#" class="admin_blue">广告编辑</a></h2>
    </div>
    <div class="container">
        <asp:ValidationSummary ID="MainValidationSummary" DisplayMode="List" CssClass="error"
            runat="server" />
        <div class="all_1">
            <table border="0" cellspacing="0" cellpadding="0" style="width: 100%">
                <tr>
                    <td valign="top">
                        <div class="dialog">
                            <p style="color: #025BAA; font-weight: bold">
                                当前广告内容：</p>
                            <p>
                                <asp:Literal ID="LBody" runat="server"></asp:Literal>
                            </p>
                        </div>
                    </td>
                </tr>
            </table>
            <table border="0" cellspacing="0" cellpadding="0" style="width: 100%">
                <tr>
                    <td valign="top">
                        <div class="right">
                            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="ADDGood_table_1">
                                <tr>
                                    <th style="width: 70px">
                                        广告类型：
                                    </th>
                                    <td style="color: #333333">
                                        <asp:RadioButtonList ID="RADType" runat="server" BorderStyle="None" RepeatDirection="Horizontal">
                                            <asp:ListItem Selected="True" Value="img">图片</asp:ListItem>
                                            <asp:ListItem Value="flash">Flash</asp:ListItem>
                                            <asp:ListItem Value="body">内容</asp:ListItem>
                                            <asp:ListItem Value="link">文字链接</asp:ListItem>
                                        </asp:RadioButtonList>
                                    </td>
                                </tr>
                                <tr>
                                    <th style="width: 70px">
                                        广告名称：
                                    </th>
                                    <td>
                                        <asp:TextBox ID="TADName" CssClass="input_1" Width="200px" runat="server"></asp:TextBox>
                                        <img src="../CSS/Admin/images/help.png" alt=" " width="10" height="10" />
                                        填写广告名称，便于管理。
                                    </td>
                                </tr>
                            </table>
                            <table style="display: block" id="Word" width="100%" border="0" cellpadding="0" cellspacing="0"
                                class="ADDGood_table_1">
                                <tr>
                                    <th style="width: 70px">
                                        广告标题：
                                    </th>
                                    <td>
                                        <asp:TextBox ID="TTitle" CssClass="input_1" Width="200px" runat="server"></asp:TextBox>
                                        <img src="../CSS/Admin/images/help.png" alt=" " width="10" height="10" />
                                        点击当前广告所展示的文字。
                                    </td>
                                </tr>
                                <tr>
                                    <th style="width: 70px">
                                        广告链接：
                                    </th>
                                    <td>
                                        <asp:TextBox ID="TUrl" CssClass="input_1" Width="200px" runat="server"></asp:TextBox>
                                    </td>
                                </tr>
                            </table>
                            <table style="display: block" id="UploadAdFile" width="100%" border="0" cellpadding="0"
                                cellspacing="0" class="ADDGood_table_1">
                                <tr>
                                    <th style="width: 70px">
                                        上传广告：
                                    </th>
                                    <td>
                                        <asp:FileUpload ID="FAD" runat="server" Width="200px" />
                                    </td>
                                </tr>
                                <tr>
                                    <th>
                                        广告宽度：
                                    </th>
                                    <td>
                                        <asp:TextBox ID="TWidth" Text="0" CssClass="input_1" Width="200px" runat="server"></asp:TextBox>
                                        <img src="../CSS/Admin/images/help.png" alt=" " width="10" height="10" />
                                        广告宽度，不填写则会按广告宽度显示。建议flash广告必须填写。
                                    </td>
                                </tr>
                                <tr>
                                    <th>
                                        广告高度：
                                    </th>
                                    <td>
                                        <asp:TextBox ID="THeight" Text="0" CssClass="input_1" Width="200px" runat="server"></asp:TextBox>
                                        <img src="../CSS/Admin/images/help.png" alt=" " width="10" height="10" />
                                        广告高度，不填写则会按广告高度显示。建议flash广告必须填写。
                                    </td>
                                </tr>
                            </table>
                            <table id="AdContent" style="display: none" width="100%" border="0" cellpadding="0"
                                cellspacing="0" class="ADDGood_table_1">
                                <tr>
                                    <th style="width: 70px">
                                        文本内容：
                                    </th>
                                    <td>
                                        <asp:TextBox ID="TWordBody" CssClass="input_1" Width="200px" TextMode="MultiLine"
                                            Height="150px" runat="server"></asp:TextBox>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div class="footer">
        <div class="footer_button">
            <asp:Button ID="BSubmit" runat="server" Text="保存当前操作" CssClass="footer_but" OnClick="BSubmit_Click" />
        </div>
    </div>
    </form>
</body>
</html>
