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

<%@ Register Assembly="Focus.Control" Namespace="Focus.Control" TagPrefix="cc1" %>
<%@ Register Assembly="YYControls" Namespace="YYControls" TagPrefix="yyc" %>
<!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 id="Head1" 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">
    <meta content="MSHTML 6.00.3790.0" name="GENERATOR">
</head>
<body leftmargin="5" topmargin="5" rightmargin="5" bottommargin="5" background="images/main_bg.gif"
    onload="document.Form1.sortname.focus();">
    <form id="Form1" runat="server">
    <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: 100px;" 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: 100px;" 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>
                </td>
            </tr>
            <tr class="TdBgL">
                <td style="padding-right: 10px; width: 100px;" 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>
                </td>
            </tr>
            <tr class="TdBgL">
                <td style="padding-right: 10px; width: 100px;" 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: 100px;" 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">
                <td style="padding-right: 10px; width: 100px;" 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">
                <td style="padding-right: 10px; width: 100px;" 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" Width="300"></cc1:TextBox>
                </td>
            </tr>
            <tr class="TdBgL">
                <td style="padding-right: 10px; width: 100px;" 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>
        </tbody>
    </table>
    <div id="showdivs" style="width: 100%; display: none">
        <table class="TdBg" cellspacing="1" cellpadding="0" width="100%" border="0">
            <tbody>
                <tr class="TdBgL">
                    <td style="padding-right: 10px; width: 100px;" 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" />
                        <input type="hidden" id="attachments" name="attachments" runat="server" />
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    <table class="TdBg" cellspacing="1" cellpadding="0" width="100%" border="0">
        <tbody>
            <tr class="TdBgL">
                <td style="padding-right: 10px; width: 100px;" 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="hidden" runat="server"
                            Text="隐藏" />&nbsp;&nbsp;<asp:CheckBox ID="disablewatermark" runat="server" Text="水印" />&nbsp;&nbsp;<asp:CheckBox
                                ID="allowcomment" runat="server" Text="评论" />
                </td>
            </tr>
            <tr class="TdBgL">
                <td style="padding-right: 10px; width: 100px;" height="22" align="right" valign="middle">
                    访问权限：
                </td>
                <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                    <yyc:SmartTreeView ID="TreeView1" runat="server" AllowCascadeCheckbox="True" ShowLines="True">
                    </yyc:SmartTreeView>
                    &nbsp;
                </td>
            </tr>
            <tr class="TdBgL">
                <td height="35" style="width: 110px">
                    &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();
         function showdiv()
         {
            if(Form1.allowupload.checked==true)
            {
		        showdivs.style.display='block';
            }
            else
            {
                showdivs.style.display='none';
            }
         } 
    </script>

    </form>
</body>
</html>
