<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation="false" CodeBehind="sortadd.aspx.cs"
    Inherits="FangPage.Admin.sortadd" %>

<%@ Register Assembly="FangPage.Control" Namespace="FangPage.Control" TagPrefix="cc1" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>新建栏目</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="styles/style.css" type="text/css" rel="stylesheet" />
    <style type="text/css">
        body
        {
            background-image: url(images/main_bg.gif);
            background-repeat: repeat-x;
            background-color: #CEE7FC;
        }
    </style>
    <meta content="MSHTML 6.00.3790.0" name="GENERATOR" />
</head>
<body leftmargin="5" topmargin="5" rightmargin="5" bottommargin="5" onload="document.Form1.sortname.focus();">
    <form id="Form1" runat="server">
    <div>
        <table class="TdBg" cellspacing="1" cellpadding="0" width="100%" height="100" border="0">
            <tbody>
                <tr valign="middle">
                    <td class="Tdimg" style="padding-left: 10px" height="28" colspan="2">
                        <img height="18" src="images/bbs_find.gif" width="18" align="absMiddle" border="0">
                        <strong>新建栏目</strong>
                    </td>
                </tr>
                <tr class="TdBgL">
                    <td style="padding-right: 10px; width: 120px;" height="22" align="right">
                        父级栏目：
                    </td>
                    <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                        <cc1:DropDownTreeList ID="parentid" runat="server" />
                    </td>
                </tr>
                <tr class="TdBgL">
                    <td style="padding-right: 10px; width: 120px;" height="22" align="right">
                        存储类型：
                    </td>
                    <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                        <cc1:DropDownList ID="sorttype" runat="server">
                        </cc1:DropDownList><font color="#FF0000">*</font>
                    </td>
                </tr>
                <tr class="TdBgL">
                    <td style="padding-right: 10px; width: 120px;" height="22" align="right">
                        栏目类型：
                    </td>
                    <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                        <cc1:RadioButtonList ID="properties" runat="server" RepeatColumns="3">
                            <asp:ListItem Value="2">站点</asp:ListItem>
                            <asp:ListItem Value="1">父栏目</asp:ListItem>
                            <asp:ListItem Value="0" Selected="True">栏目</asp:ListItem>
                        </cc1:RadioButtonList>
                    </td>
                </tr>
                <tr class="TdBgL">
                    <td style="padding-right: 10px; width: 120px;" height="22" align="right">
                        栏目名称：
                    </td>
                    <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                        <cc1:TextBox ID="sortname" runat="server" Width="300"></cc1:TextBox><font color="#FF0000">*</font>
                    </td>
                </tr>
                <tr class="TdBgL">
                    <td style="padding-right: 10px; width: 120px;" height="22" align="right">
                        栏目路径：
                    </td>
                    <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                        <cc1:TextBox ID="sortpath" runat="server" Width="300"></cc1:TextBox>
                    </td>
                </tr>
                <tr class="TdBgL">
                    <td style="padding-right: 10px; width: 120px;" height="22" align="right">
                        栏目描述：
                    </td>
                    <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                        <cc1:TextBox ID="description" runat="server" Width="300"></cc1:TextBox>
                    </td>
                </tr>
                 <tr class="TdBgL">
                    <td style="padding-right: 10px; width: 120px;" height="22" align="right">
                        栏目版主：
                    </td>
                    <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                        <cc1:TextBox ID="moderators" runat="server" Width="300"></cc1:TextBox>
                    </td>
                </tr>
                <tr class="TdBgL">
                    <td style="padding-right: 10px; width: 120px;" height="22" align="right">
                        栏目图片：
                    </td>
                    <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                        <cc1:TextBox ID="img" runat="server" Width="300"></cc1:TextBox>
                        <asp:CheckBox ID="allowupload" runat="server" Text="上传" />
                    </td>
                </tr>
                <tr class="TdBgL" id="showdivs" style="display: none">
                    <td style="padding-right: 10px; width: 120px;" height="22" align="right">
                        上传图片：
                    </td>
                    <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                        <asp:FileUpload ID="uploadfile" CssClass="k" runat="server" Width="300px" />
                    </td>
                </tr>
                <tr class="TdBgL">
                    <td style="padding-right: 10px; width: 120px;" height="22" align="right">
                        高级配置：
                    </td>
                    <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                        <asp:CheckBox ID="superior" runat="server" Text="使用高级配置" />
                    </td>
                </tr>
                <tr class="TdBgL" id="superior1">
                    <td style="padding-right: 10px; width: 120px;" height="22" align="right">
                        导航链接：
                    </td>
                    <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                        <cc1:TextBox ID="navurl" runat="server" Width="300"></cc1:TextBox>
                    </td>
                </tr>
                <tr class="TdBgL" id="superior2">
                    <td style="padding-right: 10px; width: 120px;" height="22" align="right">
                        外部链接：
                    </td>
                    <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                        <cc1:TextBox ID="otherurl" runat="server" Width="300"></cc1:TextBox>
                    </td>
                </tr>
                <tr class="TdBgL" id="superior3">
                    <td style="padding-right: 10px; width: 120px;" height="22" align="right">
                        页码尺寸：
                    </td>
                    <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                        <cc1:TextBox ID="m_pagesize" runat="server" ToolTip="设0则继承系统的默认设置" Width="300"></cc1:TextBox>
                    </td>
                </tr>
                <tr class="TdBgL" id="superior4">
                    <td style="padding-right: 10px; width: 120px;" height="22" align="right">
                        SEO关键词：
                    </td>
                    <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                        <cc1:TextBox ID="seokeywords" runat="server" Width="300"></cc1:TextBox>
                    </td>
                </tr>
                <tr class="TdBgL" id="superior5">
                    <td style="padding-right: 10px; width: 120px;" height="22" align="right">
                        SEO说明：
                    </td>
                    <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                        <cc1:TextBox ID="seodescription" runat="server" Width="300"></cc1:TextBox>
                    </td>
                </tr>
                <tr class="TdBgL" id="superior6">
                    <td style="padding-right: 10px; width: 120px;" height="22" align="right">
                        图片最大尺寸：
                    </td>
                    <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                        宽:<cc1:TextBox ID="imgmaxwidth" runat="server" ToolTip="设0则继承系统的默认设置" Width="125"></cc1:TextBox>&nbsp;&nbsp;&nbsp;&nbsp;高:<cc1:TextBox ID="imgmaxheight" ToolTip="设0则继承系统的默认设置" runat="server" Width="125"></cc1:TextBox>
                    </td>
                </tr>
                <tr class="TdBgL" id="superior7">
                    <td style="padding-right: 10px; width: 120px;" height="22" align="right">
                        使用页面名称：
                    </td>
                    <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                        <cc1:TextBox ID="usepagename" runat="server" Width="300"></cc1:TextBox>
                    </td>
                </tr>
                <tr class="TdBgL" id="superior8">
                    <td style="padding-right: 10px; width: 120px;" height="22" align="right">
                        IP访问白名单：
                    </td>
                    <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                        <textarea title="IP地址可以使用*表示该IP段任意，多个IP以回车分隔" id="ipaccess" name="ipaccess" runat="server" style="width: 300px;" rows="4"></textarea>
                    </td>
                </tr>
                <tr class="TdBgL" id="superior9">
                    <td style="padding-right: 10px; width: 120px;" height="22" align="right">
                        IP访问黑名单：
                    </td>
                    <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                        <textarea title="IP地址可以使用*表示该IP段任意，多个IP以回车分隔" id="ipdeny" name="ipdeny" runat="server" style="width: 300px;" rows="4"></textarea>
                    </td>
                </tr>
                <tr class="TdBgL" id="superior10">
                    <td style="padding-right: 10px; width: 120px;" height="22" align="right">
                        手机短信提醒：
                    </td>
                    <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                        <cc1:DropDownList ID="smstemplste" runat="server">
                        </cc1:DropDownList>
                        <font color="#FF0000">(需要安装网站手机短信服务器)</font>
                    </td>
                </tr>
                <tr class="TdBgL" id="superior11">
                    <td style="padding-right: 10px; width: 120px;" height="22" align="right">
                        发送邮件提醒：
                    </td>
                    <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                        <cc1:DropDownList ID="emailtemplate" runat="server">
                        </cc1:DropDownList>
                        <font color="#FF0000">(需要配置SMTP邮件发送服务器)</font>
                    </td>
                </tr>
                <tr class="TdBgL" id="superior12">
                    <td style="padding-right: 10px; width: 120px;" height="22" align="right">
                        使用文件类型：
                    </td>
                    <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                        <asp:CheckBox ID="useimg" runat="server" Checked="true" Text="图片文件" />&nbsp;&nbsp;
                        <asp:CheckBox ID="useflash" runat="server" Checked="true" Text="动画文件" />&nbsp;&nbsp;
                        <asp:CheckBox ID="usemedia" runat="server" Checked="true" Text="多媒体文件" />&nbsp;&nbsp;
                        <asp:CheckBox ID="usefile" runat="server" Checked="true" Text="附件文件" />
                    </td>
                </tr>
                <tr class="TdBgL" id="superior13">
                    <td style="padding-right: 10px; width: 120px;" height="22" align="right">
                        栏目属性：
                    </td>
                    <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                        <asp:CheckBox ID="decomposition" runat="server" Text="推荐" />&nbsp;&nbsp;<asp:CheckBox
                            ID="system" runat="server" Text="系统" />&nbsp;&nbsp;<asp:CheckBox
                            ID="Readonly" runat="server" Text="只读" />&nbsp;&nbsp;<asp:CheckBox ID="hidden" runat="server"
                                Text="隐藏" />&nbsp;&nbsp;<asp:CheckBox ID="disablewatermark" runat="server" Text="水印" />&nbsp;&nbsp;<asp:CheckBox
                                    ID="allowcomment" runat="server" Text="评论" />&nbsp;&nbsp;<asp:CheckBox ID="modnewposts"
                                        runat="server" Text="审核" />&nbsp;&nbsp;<asp:CheckBox ID="allowpostbytype" runat="server"
                                            Text="归类" />
                    </td>
                </tr>
                <tr class="TdBgL" id="superior14">
                    <td style="padding-right: 10px; width: 120px;" height="22" align="right">
                        栏目选项：
                    </td>
                    <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                        <asp:CheckBox ID="istop" runat="server" Text="置顶" />&nbsp;&nbsp;<asp:CheckBox ID="isindex"
                            runat="server" Text="首页显示" ToolTip="ID:1" />&nbsp;&nbsp;<asp:CheckBox ID="isrec"
                                runat="server" Text="推荐" ToolTip="ID:2" />&nbsp;&nbsp;<asp:CheckBox ID="isfocus"
                                    runat="server" Text="焦点" ToolTip="ID:3" />&nbsp;&nbsp;<asp:CheckBox ID="isnews" runat="server"
                                        Text="要闻" ToolTip="ID:4" />&nbsp;&nbsp;<asp:CheckBox ID="isimgnews" runat="server"
                                            Text="图片新闻" ToolTip="ID:5" />&nbsp;&nbsp;<asp:CheckBox ID="isopen" runat="server"
                                                Text="首弹" ToolTip="ID:6" />
                    </td>
                </tr>
                <tr class="TdBgL" id="superior15">
                    <td style="padding-right: 10px; width: 120px;" height="22" align="right" valign="middle">
                        浏览权限：
                    </td>
                    <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                        <cc1:SmartTreeView ID="TreeView1" runat="server" ShowLines="True" 
                            AllowCascadeCheckbox="True">
                        </cc1:SmartTreeView>
                    </td>
                </tr>
                <tr class="TdBgL">
                    <td height="35" style="width: 120px">
                        &nbsp;
                    </td>
                    <td style="padding-left: 10px">
                        <cc1:Button ID="Button1" runat="server" OnClick="Button1_Click" />&nbsp;&nbsp;
                        <button class="ManagerButton" type="button" onclick="javascript:window.location.href='sortmanage.aspx';">
                            <img src="images/arrow_undo.gif" />返 回</button>
                    </td>
                </tr>
            </tbody>
        </table>

        <script type="text/javascript">
         showdiv();
         showsuperior();
         function showdiv()
         {
            if(Form1.allowupload.checked==true)
            {
		        showdivs.style.display='block';
            }
            else
            {
                showdivs.style.display='none';
            }
         } 
         
         function showsuperior()
         {
            if(Form1.superior.checked==true)
            {
		        superior1.style.display='block';
		        superior2.style.display='block';
		        superior3.style.display='block';
		        superior4.style.display='block';
		        superior5.style.display='block';
		        superior6.style.display='block';
		        superior7.style.display='block';
		        superior8.style.display='block';
		        superior9.style.display='block';
		        superior10.style.display='block';
		        superior11.style.display='block';
		        superior12.style.display='block';
		        superior13.style.display='block';
		        superior14.style.display='block';
		        superior15.style.display='block';
            }
            else
            {
                superior1.style.display='none';
                superior2.style.display='none';
                superior3.style.display='none';
                superior4.style.display='none';
                superior5.style.display='none';
                superior6.style.display='none';
                superior7.style.display='none';
                superior8.style.display='none';
                superior9.style.display='none';
                superior10.style.display='none';
                superior11.style.display='none';
                superior12.style.display='none';
                superior13.style.display='none';
                superior14.style.display='none';
                superior15.style.display='none';
            }
         } 
        </script>
    </form>
</body>
</html>
