<%@ page language="C#" masterpagefile="~/SiteServer/MasterPage/PageTemplate.Master" autoeventwireup="true" inherits="SiteServer_Channel_ChannelEdit, v5star.Web" title="Untitled Page" theme="Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageBody" runat="server">
    <aspx:HeadMenuWebControls ID="HeadMenuWebControls1" runat="server" HeadOPTxt="更新"
        HeadTitleTxt="栏目管理">
        <aspx:HeadMenuButtonItem ButtonIcon="back.gif" ButtonName="返回" ButtonPopedom="List"
            ButtonUrl="history.go(-1)" ButtonUrlType="JavaScript" ButtonVisible="True" />
    </aspx:HeadMenuWebControls>
    <aspx:TabOptionWebControls ID="TabOptionWebControls1" runat="server" TabImagesPath="../../images/Menu/">
        <aspx:TabOptionItem ID="TabOptionItem1" runat="server" Tab_Name="栏目信息">
            <table width="100%" border="0" cellspacing="1" cellpadding="3" align="center">
                <tr>
                    <td class="table_title" colspan="2">
                        详细信息
                    </td>
                </tr>
                <tr>
                    <td class="table_body" align="right">
                        栏目名称：</td>
                    <td class="table_none">
                        <asp:TextBox ID="txtChannel_Title" runat="server" title="请输入栏目名称~256:!" Width="65%"></asp:TextBox></td>
                </tr>
                <tr>
                    <td align="right" class="table_body">
                        栏目类型：</td>
                    <td class="table_none">
                        <aspx:FieldWebControls ID="FieldWebControls1" runat="server" F_Key="ChannelType"
                            Field_Name="ctl00$PageBody$txtChannel_Type" UseCodeValue="True" F_Title="请选择一个选项~!" />
                    </td>
                </tr>
                <tr>
                    <td class="table_body" align="right">
                        打开方式：</td>
                    <td class="table_none">
                        <asp:DropDownList ID="txtChannel_Target" runat="server">
                            <asp:ListItem Selected="True" Value="">默认</asp:ListItem>
                            <asp:ListItem>_blank</asp:ListItem>
                            <asp:ListItem>_parent</asp:ListItem>
                            <asp:ListItem>_self</asp:ListItem>
                            <asp:ListItem>_top</asp:ListItem>
                        </asp:DropDownList></td>
                </tr>
                <tr>
                    <td align="right" class="table_body">
                        栏目排序：</td>
                    <td class="table_none">
                        <asp:TextBox ID="txtChannel_Orderby" runat="server" Width="61px" Enabled="False">0</asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" class="table_body">
                        显示/隐藏：</td>
                    <td class="table_none">
                        <asp:RadioButtonList ID="txtChannel_Display" runat="server" RepeatDirection="Horizontal"
                            RepeatLayout="Flow">
                            <asp:ListItem Selected="True" Value="True">显示</asp:ListItem>
                            <asp:ListItem Value="False">隐藏</asp:ListItem>
                        </asp:RadioButtonList></td>
                </tr>
               
                <tr>
                    <td align="right" class="table_body">
                        列表页模板文件：</td>
                    <td class="table_none">
                        <asp:TextBox ID="txtChannel_ListTemplate" title="请选择列表页模板文件~256:!" runat="server"
                            ReadOnly="True" Width="65%"></asp:TextBox>
                        <input id="button3" class="cbutton" name="buttonselect" onclick="javascript:ShowTempID(2)"
                            type="button" value="选择模板" />
                        <input class="cbutton" onclick="javascript:ClearTempVal(2);" type="button" value="清除" />
                    </td>
                </tr>
                <tr>
                    <td align="right" class="table_body">
                        内容页模板文件：</td>
                    <td class="table_none">
                        <asp:TextBox ID="txtChannel_ContentTemplate" title="请选择内容页模板文件~256:!" runat="server"
                            ReadOnly="True" Width="65%"></asp:TextBox>
                        <input id="button4" class="cbutton" name="buttonselect" onclick="javascript:ShowTempID(3)"
                            type="button" value="选择模板" />
                        <input class="cbutton" onclick="javascript:ClearTempVal(3);" type="button" value="清除" />
                    </td>
                </tr>
                <tr>
                    <td align="right" class="table_body">
                        列表页的分页大小：</td>
                    <td class="table_none">
                        <asp:TextBox ID="txtChannel_PageSize" runat="server" Width="60px">10</asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" class="table_body">
                        MetaKeyWords：</td>
                    <td class="table_none">
                        <asp:TextBox ID="txtChannel_MetaKeywords" runat="server" Rows="3" TextMode="MultiLine"
                            Width="300px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" class="table_body">
                        MetaDescription：</td>
                    <td class="table_none">
                        <asp:TextBox ID="txtChannel_MetaDescription" runat="server" Rows="3" TextMode="MultiLine"
                            Width="300px"></asp:TextBox>seo优化会用到。</td>
                </tr>
                <tr>
                    <td colspan="2">
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="right">
                        <asp:Button ID="Button1" runat="server" CssClass="button_bak" Text="确定" OnClick="Button1_Click" />
                        <input id="Reset1" class="button_bak" type="reset" value="重填" />&nbsp;
                    </td>
                </tr>
            </table>
        </aspx:TabOptionItem>
    </aspx:TabOptionWebControls>
     <script type="text/javascript">
        function openWin(u, w, h) {
            var l = (screen.width - w) / 2;
            var t = (screen.height - h) / 2;
            var s = 'width=' + w + ', height=' + h + ', top=' + t + ', left=' + l;
            s += ', toolbar=no, scrollbars=yes, menubar=no, location=no, resizable=no';
            window.open(u, 'oWin', s);
        }
         function ShowTempID(cc) {          
            openWin("ShowTemplate.aspx?ctrl=" + cc, 400, 300);
        }
        function ClearTempVal(cc) {
      
        if(cc==2)
            $("#<%=this.txtChannel_ListTemplate.ClientID %>").val("");
        if(cc==3)
            $("#<%=this.txtChannel_ContentTemplate.ClientID %>").val("");
        }
    </script>
</asp:Content>
