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

<%@ Import Namespace="D.Common" %>
<!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 type="text/javascript" language="javascript" src="../../js/zh-cn/listbox.js"></script>

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

    <asp:Literal ID="LitJs" runat="server"></asp:Literal>
    <script type="text/javascript">
        function CheckUrl() {
            if (DianCMS_$("CheckIsOutUrl").checked) {
                DianCMS_$("OutUrl").style.display = "";
            }
            else {
                DianCMS_$("OutUrl").style.display = "none";
            }
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <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="SinglePageList.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 id="TabTitle2" class="title5" onclick="ShowTabs(2)">
                扩展字段
            </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:TextBox ID="txtTitle" runat="server" CssClass="in1" Columns="30"></asp:TextBox><asp:DropDownList
                        ID="SinglePageClass" runat="server">
                        <asp:ListItem Value="0">选择分类</asp:ListItem>
                    </asp:DropDownList>
                    <asp:TextBox ID="FilePicPath" runat="server" Style="display: none">info|0</asp:TextBox><font
                        color="#ff0066">*</font> 模板调用代码：{D_SinglePage_Title}
                </td>
            </tr>
            <tr>
                <td class="bqleft">
                    英文标题：
                </td>
                <td class="bqright">
                    <asp:TextBox ID="txtEnName" CssClass="in1" runat="server"></asp:TextBox> 模板调用代码：{D_SinglePage_EnName}
                </td>
            </tr>
            <tr>
                <td class="bqleft">
                    关键词（Keywords）：
                </td>
                <td class="bqright">
                    <asp:TextBox ID="txtKeywords" CssClass="in1" runat="server" Columns="40"></asp:TextBox> 模板调用代码：{D_SinglePage_Keywords}
                </td>
            </tr>
            <tr>
                <td class="bqleft">
                    描述（Description）：
                </td>
                <td class="bqright">
                    <asp:TextBox ID="txtDescription" runat="server" TextMode="MultiLine" Rows="4" Columns="40"></asp:TextBox> 模板调用代码：{D_SinglePage_Description}
                </td>
            </tr>
            <tr>
                <td class="bqleft">
                    单页模板：
                </td>
                <td class="bqright">
                    <asp:TextBox ID="txtTemplate" runat="server" Columns="40" CssClass="in1" Style="float: left"></asp:TextBox><input
                        id="Button1" type="button" value="选择模板" class="btn" onclick="WinOpenLhgDialog('选择模板','../template/SelectTemplate.aspx?ControlId=txtTemplate',650,450,'')"
                        style="float: left" />
                    <font color="#ff0066">*</font> 模板中使用{D_SinglePage_Content}可获得单页内容
                </td>
            </tr>
            <tr>
                <td class="bqleft">
                    单页内容：
                </td>
                <td class="bqright">
                    <asp:TextBox ID="txtContent" runat="server" TextMode="MultiLine"></asp:TextBox><asp:Literal ID="LitContent"
                        runat="server"></asp:Literal>
                </td>
            </tr>
            <tr>
                <td class="bqleft">
                    自动下载：
                </td>
                <td class="bqright">
                    <asp:CheckBox ID="ChImg" runat="server" Text="下载内容中图片" /><asp:CheckBox ID="Chswf"
                        runat="server" Text="下载内容中Flash" />
                </td>
            </tr>
            <tr>
                <td class="bqleft">
                    访问次数：
                </td>
                <td class="bqright">
                    <asp:TextBox ID="txtClick" CssClass="in1" runat="server" Text="0"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="bqleft">
                    排序值：
                </td>
                <td class="bqright">
                    <asp:TextBox ID="txtOrderId" runat="server" Columns="8" CssClass="in1">0</asp:TextBox>
                    值越小排列就越靠前
                </td>
            </tr>
        </tbody>
        <tbody id="Tabs1" style="display:none">
            <tr>
                <td class="bqleft">
                    外部链接：
                </td>
                <td class="bqright">
                    <asp:CheckBox ID="CheckIsOutUrl" runat="server" onclick="CheckUrl()" />
                </td>
            </tr>
            <tr runat="server" id="OutUrl" style="display: none">
                <td class="bqleft">
                    外部链接地址：
                </td>
                <td class="bqright">
                    <asp:TextBox ID="txtOutUrl" runat="server" Columns="50" CssClass="in1"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="bqleft">
                    单页模板（手机）：
                </td>
                <td class="bqright">
                    <asp:TextBox ID="txtMobileTemplate" runat="server" Columns="40" CssClass="in1" Style="float: left"></asp:TextBox><input
                        id="Button4" type="button" value="选择模板" class="btn" onclick="WinOpenLhgDialog('选择模板','../template/SelectTemplate.aspx?ControlId=txtMobileTemplate',650,450,'')"
                        style="float: left" /> 手机访问本页时使用此模板
                </td>
            </tr>
            <tr>
                <td class="bqleft">
                    生成文件路径：
                </td>
                <td class="bqright">
                    <asp:TextBox ID="txtFilePath" runat="server" CssClass="in1" Columns="40">/</asp:TextBox> 如：/upload/info/ 不包含虚拟目录的绝对根路径 生成到根目录直接使用"/"
                </td>
            </tr>
            <tr>
                <td class="bqleft">
                    生成文件名：
                </td>
                <td class="bqright">
                    <asp:TextBox ID="txtFileName" CssClass="in1" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="bqleft">
                    文件后缀名：
                </td>
                <td class="bqright">
                    <asp:RadioButtonList ID="ExpandName" runat="server" RepeatDirection="Horizontal">
                    </asp:RadioButtonList>
                </td>
            </tr>
        </tbody>
        <tbody id="Tabs2" style="display:none">
            <tr>
                <td class="bqleft">
                    单页图片：
                </td>
                <td class="bqright">
                    <asp:TextBox ID="txtImage" Columns="50" runat="server" CssClass="in1" Style="float: left"></asp:TextBox><input
                        type="button" value="上传图片" class="btn" onclick="WinOpenLhgDialog('上传图片','../common/uploadpic.aspx?ControlId=txtImage',620,280,'')"
                        style="float: left" /><input type="button" value="从服务器上选择" class="btn" onclick="SelectFile('../common/SelectUploadFile2.aspx?filetype=image&ControlId=txtImage','')" />
                    <br />上传图片默认保存到/<%=Function.GetUploadFolder()%>/info下面 模板调用代码：{D_SinglePage_Image}
                </td>
            </tr>
            <tr>
                <td class="bqleft">
                    单页简述：
                </td>
                <td class="bqright">
                    <asp:TextBox ID="txtMemo" Columns="50" runat="server" Rows="8" TextMode="MultiLine"></asp:TextBox><br />模板调用代码：{D_SinglePage_Memo}
                </td>
            </tr>
        </tbody>
        <tr>
            <td class="bqleft">
            </td>
            <td class="bqright" height="40">
                <asp:Button ID="Button2" runat="server" Text=" 确认 " CssClass="btn radius30 pad_0_30" OnClick="Button2_Click" /><asp:Button
                    ID="Button3" runat="server" Text="确认并生成" OnClick="Button2_Click" Style="margin-left: 20px;"
                    CssClass="btn radius30 pad_0_30" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
