<%@ Page Language="C#" AutoEventWireup="true" Codebehind="index.aspx.cs" Inherits="JuSNS.Web.system.ads.index" %>

<!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>
    <title id="ptitle" runat="server">广告管理</title>
    <link href="../images/css/style.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript" src="../../js/ajax.js"></script>

    <script language="javascript" type="text/javascript" src="../../js/public.js"></script>

</head>
<body>
    <table width="99%" border="0" align="center" cellpadding="5" cellspacing="1">
        <tr>
            <td width="120" align="center" valign="top">
                <div class="menu">
                    <ul>
                        <%=this.GetSystemMenu(sort)%>
                    </ul>
                </div>
            </td>
            <td valign="top">
                <div style="padding: 6px 8px 0px 8px;">
                    <form id="form1" runat="server">
                        <table width="100%" border="0" cellpadding="3" cellspacing="1" class="maintable">
                            <tr class="maintablelist">
                                <td align="right" style="width: 100px;">
                                    菜单栏顶部</td>
                                <td align="left">
                                    <asp:TextBox ID="menu_top" Width="60%" CssClass="inputcontent" TextMode="MultiLine" Height="40" runat="server"></asp:TextBox>
                                    JS路径：/js/ads/menu_top.js
                                </td>
                            </tr>
                            <tr class="maintablelist">
                                <td align="right" style="width: 100px;">
                                    菜单栏下部</td>
                                <td align="left">
                                <asp:TextBox ID="menu" runat="server" Width="60%" TextMode="MultiLine" Height="40" CssClass="inputcontent"></asp:TextBox>
                                JS路径：/js/ads/menu.js
                                </td>
                            </tr>
                            <tr class="maintablelist">
                                <td align="right" style="width: 100px;">
                                    右栏顶部</td>
                                <td align="left">
                                <asp:TextBox ID="body_top" runat="server" Width="60%" TextMode="MultiLine" Height="40" CssClass="inputcontent"></asp:TextBox>
                                JS路径：/js/ads/body_top.js
                                </td>
                            </tr>
                            <tr class="maintablelist">
                                <td align="right" style="width: 100px;">
                                    右栏底部</td>
                                <td align="left">
                                <asp:TextBox ID="body" runat="server" Width="60%" TextMode="MultiLine" Height="40" CssClass="inputcontent"></asp:TextBox>
                                JS路径：/js/ads/body.js
                                </td>
                            </tr>
                            <tr class="maintablelist">
                                <td align="right" style="width: 100px;">
                                    通栏顶部</td>
                                <td align="left">
                                <asp:TextBox ID="top" runat="server" Width="60%" TextMode="MultiLine" Height="40" CssClass="inputcontent"></asp:TextBox>
                                JS路径：/js/ads/top.js
                                </td>
                            </tr>
                            <tr class="maintablelist">
                                <td align="right" style="width: 100px;">
                                    版权所有上部</td>
                                <td align="left">
                                <asp:TextBox ID="bottom" runat="server" Width="60%" TextMode="MultiLine" Height="40" CssClass="inputcontent"></asp:TextBox>
                                JS路径：/js/ads/bottom.js
                                </td>
                            </tr>
                            <tr class="maintablelist">
                                <td align="right" style="width: 100px">
                                </td>
                                <td align="left" colspan="2">
                                    <asp:Button ID="Button1" runat="server" Text=" 保 存 " OnClick="Button1_Click" />
                                    <asp:HiddenField ID="helpID" Value="0" runat="server" />
                                </td>
                            </tr>
                        </table>
                        
                    </form>
                    <br />
                    <table style="width:100%;" border="0" cellpadding="3" cellspacing="1" class="maintable">
                            <tr class="maintablelist">
                                <td >
                                    请将html源代码或待添加的广告代码拷贝到下面表单中:
                                    <br>
                                    <textarea style="width: 100%;" cols="100" Class="inputcontent" rows="3" id="oSource" onpropertychange="change()"></textarea>
                                    <br>
                                    下面表单中是相应转换好的JS代码，直接复制到最上面的表单中即可(双击下面表单复制):
                                    <br />
                                    <textarea style="width: 100%;" cols="100" Class="inputcontent" rows="3" id="oResult" title="双击复制" ondblclick='this.select();oResult.createTextRange().execCommand("Copy")'></textarea>
                                    <br>

                                    <script type="text/javascript">
                                        function change()
                                        {
                                        oResult.value="document.writeln(\""+oSource.value.replace(/\\/g,"\\\\").replace(/\//g,"\\/").replace(/\'/g,"\\\'").replace(/\"/g,"\\\"").split('\r\n').join("\");\ndocument.writeln(\"")+"\")"
                                        } 
                                        </script>

                                </td>
                            </tr>
                        </table>
                </div>
            </td>
        </tr>
    </table>
</body>
</html>
