<%@ Page Language="C#" AutoEventWireup="true" Inherits="System_Info_SinglePage, QianboCMS" EnableEventValidation="false" %>
<!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 href="../Css/layout.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../../Js/jquery.js"></script>
    <script type="text/javascript" src="../../Js/lhgdialog/lhgdialog.min.js?self=true"></script>
    <script src="../../Js/Common.js" type="text/javascript"></script>
    <script type="text/javascript">
        var jq = jQuery.noConflict();
        jQuery(function () {
            jQuery('#SelectTemplatePath').click(function () {
                jQuery.dialog({
                    id: 'txtSelectTemplatePath',
                    lock: true,
                    title: '选择模板',
                    content: "url:../Common/SelectFile.aspx?ControlId=" + escape('txtTemplatePath') + "&StartPath=" + escape('/Template') + "",
                    width: 800,
                    height: 500
                });
            });
        });
    </script>
</head>

<body>
    <table cellspacing="1" cellpadding="0" class="wzdh" align="center">
        <tr>
            <td style="padding-left: 10px;">
                <img src="../Images/Skin/Default/you.gif" align="absmiddle" />
                您现在的位置：<a href="../SystemInfo.aspx">后台管理</a> &gt;&gt; <a href="ChannelList.aspx">内容管理</a> &gt;&gt; <a href="SinglePageList.aspx">单页管理</a> &gt;&gt; 新增单页
			</td>
        </tr>
    </table>
    <form id="form1" runat="server">
        <table class="border" cellspacing="1" cellpadding="0" border="0" align="center" runat="server" id="Table1">
            <tr class="tdbg">
                <td class="bqleft">单页名称：</td>
                <td class="bqright">
                    <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
                    <span style="color: red;">*</span>
				</td>
            </tr>
            <tr class="tdbg">
                <td class="bqleft">生成文件目录：</td>
                <td class="bqright">
                    <asp:Literal ID="ParPath" runat="server"></asp:Literal>
                    /<asp:TextBox ID="txtFolderPath" MaxLength="50" runat="server" Columns="40"></asp:TextBox>
                    （如有下级目录，请使用“/”分隔。如：Upload/News/）
				</td>
            </tr>
            <tr class="tdbg">
                <td class="bqleft">生成文件名、后缀名：</td>
                <td class="bqright">
                    <asp:TextBox ID="txtFileName" runat="server" Rows="6"></asp:TextBox>
                    <asp:DropDownList ID="txtFileExtend" runat="server">
                        <asp:ListItem>.html</asp:ListItem>
                        <asp:ListItem>.htm</asp:ListItem>
                        <asp:ListItem>.shtml</asp:ListItem>
                        <asp:ListItem>.shtm</asp:ListItem>
                        <asp:ListItem>.aspx</asp:ListItem>
                    </asp:DropDownList>
				</td>
            </tr>
            <tr class="tdbg">
                <td class="bqleft">单页模板：</td>
                <td class="bqright">
                    <asp:TextBox ID="txtTemplatePath" MaxLength="50" runat="server" Columns="50"></asp:TextBox>
                    <input type="button" value="选择模板" id="SelectTemplatePath" class="btn" />
				</td>
            </tr>
            <tr class="tdbg">
                <td class="bqleft">单页描述：</td>
                <td class="bqright">
                    <asp:TextBox ID="txtContent" runat="server" Columns="55" Rows="8" TextMode="MultiLine"></asp:TextBox>
				</td>
            </tr>
            <tr class="tdbg">
                <td class="bqleft"></td>
                <td class="bqright">
                    <asp:Button ID="Button1" runat="server" Text="保存" CssClass="btn" OnClick="Button1_Click" />
                    <asp:Button ID="Button2" runat="server" Text="保存并生成" CssClass="btn" OnClick="Button2_Click" />
                    <input id="Button3" type="button" value="取消" class="btn" onclick="window.location.href='SinglePageList.aspx';" />
				</td>
            </tr>
        </table>
    </form>
</body>
</html>