<%@ page language="C#" autoeventwireup="true" inherits="Admin_Template_EditAD, ShopWe" %>

<!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/my.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="../css/jquery.js"></script>

    <script type="text/javascript" src="../css/admin.js"></script>

</head>
<body>
    <form id="form1" runat="server">
        <div class="all">
            <div class="come_title">
                <h2>
                    请上传你要换的图片</h2>
                <div class="title_help">
                    <a href="http://www.shopwe.cn/bbs/" target="_blank">
                        <img src="../Themes/Default/Images/help_1.jpg" alt="shopwe论坛" width="50" height="20" /></a>
                    <a href="http://help.shopwe.cn/help/Show.asp?id=31" target="_blank">
                        <img src="../Themes/Default/Images/help.jpg" alt="shopwe帮助中心" width="50" height="20" /></a></div>
            </div>
            <div class="k_all6">
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tbody>
                        <tr>
                            <td class="bg_1" style="text-align: right; width: 90px;">
                                广告内容：
                            </td>
                            <td>
                                <div class="Payment">
                                    <asp:Literal ID="LiteralBody" runat="server"></asp:Literal>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="bg_1" style="text-align: right;">
                                广告类型：
                            </td>
                            <td>
                                <asp:RadioButtonList ID="RadioButtonListADType" runat="server" BorderStyle="None"
                                    RepeatDirection="Horizontal">
                                    <asp:ListItem Selected="True" Value="img" onclick="ShowDiv('Word');ShowDiv('UploadAdFile');HideDiv('AdContent');">图片</asp:ListItem>
                                    <asp:ListItem Value="flash" onclick="HideDiv('Word');ShowDiv('UploadAdFile');HideDiv('AdContent');">Flash</asp:ListItem>
                                    <asp:ListItem Value="body" onclick="HideDiv('Word');HideDiv('UploadAdFile');ShowDiv('AdContent');">内容</asp:ListItem>
                                    <asp:ListItem Value="link" onclick="ShowDiv('Word');HideDiv('UploadAdFile');HideDiv('AdContent');">文字链接</asp:ListItem>
                                </asp:RadioButtonList></td>
                        </tr>
                        <tr>
                            <td class="bg_1" style="text-align: right;">
                                广告名称：
                            </td>
                            <td>
                                <asp:TextBox ID="TextBoxAdName" runat="server" CssClass="input" Width="220px"></asp:TextBox>
                                <h4>
                                    <img src="../css/images/help.png" />
                                    <span style="color: #999999">填写广告名称，便于管理。</span></h4>
                            </td>
                        </tr>
                    </tbody>
                    <tbody id="Word">
                        <tr>
                            <td class="bg_1" style="text-align: right;">
                                广告标题：
                            </td>
                            <td>
                                <asp:TextBox ID="TextBoxTitle" runat="server" Width="220px" CssClass="input"></asp:TextBox>
                                <h4>
                                    <img src="../css/images/help.png" alt="帮助" />
                                    <span style="color: #999999">点击当前广告所展示的文字。</span></h4>
                            </td>
                        </tr>
                        <tr>
                            <td class="bg_1" style="text-align: right;">
                                广告链接：
                            </td>
                            <td>
                                <asp:TextBox ID="TextBoxUrl" runat="server" Width="218px" CssClass="input"></asp:TextBox>
                            </td>
                        </tr>
                    </tbody>
                    <tbody id="UploadAdFile">
                        <tr>
                            <td class="bg_1" style="text-align: right;">
                                上传广告：
                            </td>
                            <td>
                                <asp:FileUpload ID="FileUploadImg" runat="server" Width="300px" />
                            </td>
                        </tr>
                        <tr>
                            <td class="bg_1" style="text-align: right;">
                                广告宽度：
                            </td>
                            <td>
                                <asp:TextBox ID="TextBoxWidth" runat="server" Width="220px" CssClass="input"></asp:TextBox>
                                <h4>
                                    <img src="../css/images/help.png" />
                                    <span style="color: #999999">广告宽度，不填写则会按广告宽度显示。建议flash广告必须填写。</span></h4>
                            </td>
                        </tr>
                        <tr>
                            <td class="bg_1" style="text-align: right;">
                                广告高度：
                            </td>
                            <td>
                                <asp:TextBox ID="TextBoxHeight" runat="server" Width="220px" CssClass="input"></asp:TextBox>
                                <h4>
                                    <img src="../css/images/help.png" />
                                    <span style="color: #999999">广告高度，不填写则会按广告高度显示。建议flash广告必须填写。</span></h4>
                            </td>
                        </tr>
                    </tbody>
                    <tbody id="AdContent" style="display: none">
                        <tr>
                            <td class="bg_1" style="text-align: right;">
                                文本内容：
                            </td>
                            <td>
                                <asp:TextBox ID="TextBoxWordBody" runat="server" Height="125px" TextMode="MultiLine"
                                    Width="400px"></asp:TextBox>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <div class="sub">
                <asp:Button ID="Submit" runat="server" Text="提交" OnClick="Submit_Click" CssClass="but_add" />
            </div>
        </div>
    </form>
</body>
</html>
