<%@ page language="C#" autoeventwireup="true" inherits="admin_Special_setSpecial, DianCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Import Namespace="D.Common" %>
<%@ Import Namespace="D.BLL" %>
<!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 runat="server">
    <title></title>
    <link id="CssName" rel="stylesheet" type="text/css" runat="server" />

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

    <script src="../../js/lhgdialog/lhgcore.lhgdialog.min.js?self=true&skin=<%=Function.GetCssNameColor()%>" type="text/javascript"></script>

    <script type="text/javascript" language="javascript" src="/js/<%=B_Lang.getLang() %>/listbox.js"></script>
    <asp:Literal ID="LitJs" runat="server"></asp:Literal>

    <script type="text/javascript">
        function PinYin() {
            var chs = DianCMS_$("txtCnName").value;
            D.BLL.B_CHS2PinYin.GetPinYin(chs, CallBack);
        }

        function CallBack(res) {
            DianCMS_$("txtEnName").value = res.value;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server" onkeydown="Save()">
    <table class="dh" cellpadding="0" cellspacing="0" border="0" align="center">
        <tr>
            <td>
                <asp:Image ID="P_Go" runat="server" ImageAlign="AbsMiddle" />
                您现在的位置：<a href="../info.aspx">后台管理</a> >> <a href="SpecialList.aspx">专题列表</a> >>
                设置专题
            </td>
        </tr>
    </table>
    <table class="tabs" cellpadding="0" cellspacing="0" border="0" align="center">
        <tr>
            <td id="TabTitle0" class="title6" onclick="ShowTabs(0)">
                基本信息
            </td>
            <td id="TabTitle1" class="title5" onclick="ShowTabs(1)">
                扩展字段
            </td>
            <td class="titleline">
                &nbsp;
            </td>
        </tr>
    </table>
    <table class="border" cellspacing="1" cellpadding="0" width="99%" border="0" align="center">
        <tbody id="Tabs0">
            <tr>
                <td class="bqleft">
                    所属父专题：
                </td>
                <td class="bqright">
                    <asp:DropDownList ID="dropParentId" runat="server">
                        <asp:ListItem Value="0">作为顶级专题</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="bqleft">
                    专题中文名称：
                </td>
                <td class="bqright">
                    <asp:TextBox ID="txtCnName" runat="server" Columns="30" CssClass="in1"></asp:TextBox><input
                        id="btnPinYin" type="button" value="自动设置栏目英文名（拼音）" onclick="PinYin()" class="btn"
                        runat="server" /><font color="#ff0066">*</font><asp:TextBox ID="FilePicPath" runat="server"
                            Style="display: none">user|0</asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="bqleft">
                    专题英文（拼音）：
                </td>
                <td class="bqright">
                    <asp:TextBox ID="txtEnName" Columns="30" runat="server" CssClass="in1"></asp:TextBox><font
                        color="#ff0066">*</font><span>由字母、数字、下划线组成</span>
                </td>
            </tr>
            <tr>
                <td class="bqleft">
                    专题图片：
                </td>
                <td class="bqright">
                    <asp:TextBox ID="txtImage" Columns="30" runat="server" CssClass="in1"></asp:TextBox><input
                        type="button" value="上传图片" class="btn" onclick="WinOpenLhgDialog('上传图片','../common/uploadpic.aspx?ControlId=txtImage',620,280,'')" /><input
                            type="button" value="从服务器上选择" class="btn" onclick="SelectFile('../common/SelectUploadFile2.aspx?filetype=image&ControlId=txtImage','')" />
                    上传图片默认保存到/<%=Function.GetUploadFolder()%>/user下面
                </td>
            </tr>
            <tr>
                <td class="bqleft">
                    专题提示：
                </td>
                <td class="bqright">
                    <asp:TextBox ID="txtTips" runat="server" Columns="50" CssClass="in1"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="bqleft">
                    专题说明：
                </td>
                <td class="bqright">
                    <asp:TextBox ID="txtMemo" runat="server" Columns="60" CssClass="in1"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="bqleft">
                    专题META关键词：
                </td>
                <td class="bqright">
                    <asp:TextBox ID="txtKeywords" runat="server" Rows="5" TextMode="MultiLine" Columns="50"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="bqleft">
                    专题META网页描述：
                </td>
                <td class="bqright">
                    <asp:TextBox ID="txtDescription" runat="server" Rows="7" TextMode="MultiLine" Columns="50"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="bqleft">
                    专题扩展名：
                </td>
                <td class="bqright">
                    <asp:RadioButtonList ID="ExpandName" runat="server" RepeatDirection="Horizontal">
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td class="bqleft">
                    专题存放结构：
                </td>
                <td class="bqright">
                    <asp:DropDownList ID="SaveDir" runat="server">
                        <asp:ListItem Value="1">专题目录/专题英文名.html</asp:ListItem>
                        <asp:ListItem Value="2">专题目录/专题英文名/index.html</asp:ListItem>
                        <asp:ListItem Value="3">专题目录/年份/专题英文名.html</asp:ListItem>
                        <asp:ListItem Value="4">专题目录/年份/专题英文名/index.html</asp:ListItem>
                        <asp:ListItem Value="5">专题目录/年份/月份/专题英文名.html</asp:ListItem>
                        <asp:ListItem Value="6">专题目录/年份/月份/专题英文名/index.html</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="bqleft">
                    专题页模板：
                </td>
                <td class="bqright">
                    <asp:TextBox ID="txtTemplate" runat="server" Columns="50" CssClass="in1"></asp:TextBox>
                    <input id="Button3" type="button" value="选择模板" class="btn" onclick="WinOpenLhgDialog('选择模板','../template/SelectTemplate.aspx?ControlId=txtTemplate',650,450,'')" /><font
                        color="#ff0066">*</font>
                </td>
            </tr>
            <tr>
                <td class="bqleft">
                    生成静态：
                </td>
                <td class="bqright">
                    <asp:RadioButtonList ID="CreatePage" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="True" Selected="True">生成</asp:ListItem>
                        <asp:ListItem Value="False">不生成</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td class="bqleft">
                    排序值：
                </td>
                <td class="bqright">
                    <asp:TextBox ID="txtOrderId" runat="server" Columns="8" CssClass="in1" Text="0"></asp:TextBox>
                    值越小排列就越靠前
                </td>
            </tr>
            <tr>
                <td class="bqleft">
                    访问次数：
                </td>
                <td class="bqright">
                    <asp:TextBox ID="txtClick" runat="server" Columns="15" CssClass="in1" Text="0"></asp:TextBox>
                </td>
            </tr>
        </tbody>
        <tbody id="Tabs1" style="display: none">
            <tr>
                <td class="bqleft">
                    扩展字段一：
                </td>
                <td class="bqright">
                    <asp:TextBox ID="txtExpandField1" runat="server" CssClass="in1" Text="0"></asp:TextBox> 数字型，默认为0
                </td>
            </tr>
            <tr>
                <td class="bqleft">
                    扩展字段二：
                </td>
                <td class="bqright">
                    <asp:TextBox ID="txtExpandField2" runat="server" CssClass="in1" Text="0"></asp:TextBox> 数字型，默认为0
                </td>
            </tr>
            <tr>
                <td class="bqleft">
                    扩展字段三：
                </td>
                <td class="bqright">
                    <asp:TextBox ID="txtExpandField3" runat="server" TextMode="MultiLine" Rows="8" Width="90%"></asp:TextBox> 
                </td>
            </tr>
            <tr>
                <td class="bqleft">
                    扩展字段四：
                </td>
                <td class="bqright">
                    <asp:TextBox ID="txtExpandField4" runat="server" TextMode="MultiLine" Rows="8" Width="90%"></asp:TextBox> 
                </td>
            </tr>
            <tr>
                <td class="bqleft">
                    扩展字段五：
                </td>
                <td class="bqright">
                    <asp:TextBox ID="txtExpandField5" runat="server" TextMode="MultiLine"></asp:TextBox><asp:Literal ID="LitContent"
                        runat="server"></asp:Literal>
                </td>
            </tr>
        </tbody>
        <tr>
            <td class="bqleft">
            </td>
            <td class="bqright" height="50">
                <asp:Button ID="DianCMS_Submit" runat="server" Text=" 提交(Ctrl+s) " CssClass="btn radius30 pad_0_30"
                    OnClick="Button2_Click" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
