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

<!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 type="text/javascript" src="../../js/date/date.js"></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> >> 生成发布 >> 按模型方式生成内容页
            </td>
        </tr>
    </table>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table class="border" cellspacing="1" cellpadding="0" width="99%" border="0" align="center">
                <tr>
                    <td class="bqleft">
                        生成方式：
                    </td>
                    <td class="bqright">
                        <asp:RadioButtonList ID="radCreateType" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Value="0" Selected="True">生成PC端</asp:ListItem>
                            <asp:ListItem Value="1">生成手机端</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td class="bqleft">
                        指定模型：
                    </td>
                    <td class="bqright">
                        <asp:RadioButtonList ID="RadioModel" runat="server" RepeatDirection="Horizontal"
                            RepeatColumns="6" AutoPostBack="True" OnSelectedIndexChanged="RadioModel_SelectedIndexChanged">
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td class="bqleft">
                    </td>
                    <td class="bqright" height="40">
                        <asp:Button ID="Button1" runat="server" Text=" 生成指定模型下所有内容页 " CssClass="btn" OnClick="Button1_Click" />
                        <br />
                    </td>
                </tr>
                <tr>
                    <td class="bqleft">
                        按选择栏目生成：
                    </td>
                    <td class="bqright" height="50">
                        <table cellpadding="0" cellspacing="0" border="0">
                            <tr>
                                <td valign="top" width="150" runat="server" id="tdFieldName">
                                    <asp:ListBox ID="ListFieldName" runat="server" SelectionMode="Single" Width="150px"
                                        Rows="15" AutoPostBack="True" OnSelectedIndexChanged="ListFieldName_SelectedIndexChanged">
                                    </asp:ListBox>
                                </td>
                                <td style="padding-left: 5px">
                                    <asp:ListBox ID="ColumnList" runat="server" Rows="15" SelectionMode="Multiple" Width="355px"
                                        title="按住“Ctrl”或“Shift”键可以多选，按住“Ctrl”可取消选择"></asp:ListBox>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" height="50">
                                    <asp:Button ID="Button2" runat="server" Text=" 按指定栏目生成内容页 " CssClass="btn" OnClick="Button2_Click"
                                        Width="260px" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td class="bqleft">
                        按照ID发布：
                    </td>
                    <td class="bqright" height="30">
                        开始ID
                        <asp:TextBox ID="txtStartID" runat="server" CssClass="in1"></asp:TextBox>
                        结束ID
                        <asp:TextBox ID="txtEndID" runat="server" CssClass="in1"></asp:TextBox>
                        <asp:Button ID="Button4" runat="server" Text=" 开始发布 " CssClass="btn" OnClick="Button4_Click" />
                    </td>
                </tr>
                <tr>
                    <td class="bqleft">
                        发布最新：
                    </td>
                    <td class="bqright" height="30">
                        <asp:TextBox ID="txtTopNum" runat="server" CssClass="in1"></asp:TextBox>条
                        <asp:Button ID="Button3" runat="server" Text=" 开始发布 " CssClass="btn" OnClick="Button3_Click" />
                    </td>
                </tr>
                <tr>
                    <td class="bqleft">
                        按照日期发布：
                    </td>
                    <td class="bqright" height="30">
                        <asp:DropDownList ID="DropTime" runat="server">
                            <asp:ListItem Value="AddTime">按添加日期</asp:ListItem>
                            <asp:ListItem Value="UpdateTime">按修改日期</asp:ListItem>
                        </asp:DropDownList>
                        开始日期
                        <asp:TextBox ID="txtStartTime" runat="server" CssClass="in1" onClick="date({dateFmt:'yyyy-MM-dd',readOnly:true})"
                            Columns="12"></asp:TextBox>
                        结束日期
                        <asp:TextBox ID="txtEndTime" runat="server" CssClass="in1" onClick="date({dateFmt:'yyyy-MM-dd',readOnly:true})"
                            Columns="12"></asp:TextBox>
                        <asp:Button ID="Button5" runat="server" Text=" 开始发布 " CssClass="btn" OnClick="Button5_Click" />
                    </td>
                </tr>
            </table>
        </ContentTemplate>
        <Triggers>
            <asp:PostBackTrigger ControlID="Button2" />
            <asp:PostBackTrigger ControlID="Button1" />
            <asp:PostBackTrigger ControlID="Button3" />
            <asp:PostBackTrigger ControlID="Button4" />
            <asp:PostBackTrigger ControlID="Button5" />
        </Triggers>
    </asp:UpdatePanel>
    </form>
</body>
</html>
