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

<%@ Register Assembly="FangPage.Control" Namespace="FangPage.Control" TagPrefix="cc1" %>
<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" />
    <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.typename.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>当前位置：<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>新建栏目类别</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:TextBox ID="typename" 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="displayorder" runat="server" Width="300"></cc1:TextBox>
                </td>
            </tr>
            <tr class="TdBgL">
                <td style="padding-right: 3px; padding-left: 40px; padding-bottom: 3px; padding-top: 3px"
                    height="26" align="left" colspan="2">
                    类别简介：
                </td>
            </tr>
            <tr class="TdBgL">
                <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px;
                    height: 355px;" colspan="2">
                    <input type="hidden" id="attachments" name="attachments" runat="server" />
                    <textarea id="Content" name="Content" style="display: none" runat="server"></textarea>
                    <iframe id="WebEditor" src="../editor/ewebeditor.aspx?id=Content&style=coolblue&sortid=0&attachmentsid=attachments"
                        frameborder="0" scrolling="no" width="100%" height="350"></iframe>
                </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">
                    <textarea id="desc" name="desc" runat="server" style="width: 99%;" rows="4"></textarea>
                </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>
            <tr class="TdBgL" id="showdivs" style="display: none">
                <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" />
                </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">
                    <cc1:SmartTreeView ID="TreeView1" runat="server" ShowLines="True" AllowCascadeCheckbox="True">
                    </cc1:SmartTreeView>
                </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='<%=returnurl%>?sortid=<%=sortid %>';">
                        <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>
