<%@ page language="C#" autoeventwireup="true" inherits="e_gg_do, ZKCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register TagName="meta" TagPrefix="UC" Src="~/e/meta.ascx" %>
<%@ Register TagName="head" TagPrefix="UC" Src="~/e/head.ascx" %>
<%@ Register TagName="foot" TagPrefix="UC" Src="~/e/foot.ascx" %>
<!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">
    <UC:meta ID="meta1" runat="server" />
</head>
<body>
    <form id="form1" runat="server" autocomplete="off">
    <asp:Label ID="pathcode" runat="server" Style="display: none">
    &nbsp;&raquo;&nbsp;系统设置&nbsp;&raquo;&nbsp;<a href="gg.aspx">广告管理</a>&nbsp;&raquo;&nbsp;添加/修改广告
    </asp:Label>
    <UC:head ID="head1" runat="server" />
    <%--main start--%>
    <div class="c1">
        <div class="b1">
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td class="b1_l">
                    </td>
                    <td>
                        <div class="con1">
                            <ul>
                                <li class="on"><a href="gg.aspx">广告管理</a></li>
                            </ul>
                            <div class="clear">
                            </div>
                        </div>
                    </td>
                    <td align="right">
                        <div class="con2">
                        </div>
                    </td>
                    <td class="b1_r">
                    </td>
                </tr>
            </table>
        </div>
        <div class="v1">
            <div class="do1">

                <script type="text/javascript">
                function check(){
                if(document.getElementById("parentid").value==""){alert("请选择组别！");return false;}
                document.getElementById("n").value=document.getElementById("n").value.replace(/\"/g,"").replace(/\'/g,"");
                if(document.getElementById("n").value.length<4){alert("请输入调用名称！");return false;}
                if(document.getElementById("note").value==""){alert("请输入备注！");return false;}
                }
                </script>

                <style type="text/css">
                    .do1 .table1 .tt
                    {
                        text-align: left;
                        padding-left: 0;
                    }
                </style>
                <table border="0" cellpadding="0" cellspacing="0" class="table1">
                    <tr>
                        <td class="tt">
                            <b>组别：</b>
                        </td>
                        <td>
                            <asp:DropDownList ID="parentid" runat="server" Width="206">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="tt">
                            <b>调用名称：</b>
                        </td>
                        <td>
                            <asp:TextBox ID="n" runat="server" MaxLength="50" CssClass="inp1" Width="200" Text="AD_" autocomplete="off"></asp:TextBox><span style="padding-left:10px"><span class="msgon">调用名称只能是唯一的，请勿随便修改！</span></span>
                        </td>
                    </tr>
                    <tr>
                        <td class="tt">
                            <b>备注：</b>
                        </td>
                        <td>
                            <asp:TextBox ID="note" runat="server" MaxLength="500" CssClass="inp1" Width="500" autocomplete="off"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <FCKeditorV2:FCKeditor ID="code" runat="server" BasePath="~/s/tool/fck/" Height="600"
                                Width="968" ToolbarSet="Edit5" FormatOutput="false" FormatSource="false" EnableSourceXHTML="false"
                                EnableXHTML="false" EditorAreaCSS="/s/tool/fck/4.css">
                            </FCKeditorV2:FCKeditor>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:Button ID="ButtonSubmit" runat="server" CssClass="but1" Text="添加广告" OnClick="ButtonSubmit_Click"
                                OnClientClick="return check()" /><input class="but1" style="margin-left: 10px" type="button"
                                    value="返回" onclick="window.location='<%=WMencrypt.Base64DecodeJS(WM.RQ("ReturnUrl")) %>'" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    <%--main end--%>
    <UC:foot ID="foot1" runat="server" />
    </form>
</body>
</html>
