<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="Create.aspx.cs" Inherits="Aspx1.Admin.Create" Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    &nbsp;<table class="tableBorder" border="0" cellpadding="0" cellspacing="1">
        <tr>
            <th colspan="2" class="ym12_bti">
                网站静态页面生成
            </th>
        </tr>
        <tr style="text-align: center;">
            <td class="td2" style="padding-left: 10px;" colspan="2">
                生成操作比较消耗系统资源及费时，每次生成时，请尽量减少要生成的文件量。
            </td>
           
        </tr>
        <asp:Panel ID="Panel1" Visible="false" runat="server">
            <tr style="text-align: center;">
                <td colspan="2" class="td1" style="text-align: left; padding-left: 10px;">
                    <table cellspacing="0" cellpadding="0" width="500" border="0">
                        <tbody>
                            <tr>
                                <td height="40">
                                    生成最新<asp:TextBox ID="txtTopNew" runat="server" MaxLength="10" size="8" value="50"></asp:TextBox>
                                    篇源码信息<asp:Button ID="btnNew" runat="server" Text="开始生成" OnClick="txtTopNew_Click" />
                                </td>
                            </tr>
                            <tr>
                                <td height="40">
                                    生成更新时间为<asp:TextBox ID="txtBeginDate" runat="server" size="10"></asp:TextBox>
                                    到<asp:TextBox ID="txtEndDate" runat="server" MaxLength="20" size="10"></asp:TextBox>
                                    的源码信息<asp:Button ID="btnDate" runat="server" Text="开始生成" OnClick="btnDate_Click" />
                                </td>
                            </tr>
                            <tr>
                                <td height="40">
                                    生成ID号为<asp:TextBox ID="txtBeginID" runat="server" MaxLength="10" size="8" value="1"></asp:TextBox>
                                    到<asp:TextBox ID="txtEndID" runat="server" MaxLength="10" size="8" value="100"></asp:TextBox>
                                    的源码信息
                                    <asp:Button ID="btnID" runat="server" Text="开始生成" OnClick="btnID_Click" />
                                </td>
                            </tr>
                            <tr>
                                <td height="40">
                                    生成指定栏目的源码信息：
                                    <asp:DropDownList ID="ddlCategory" runat="server" DataSourceID="ObjectDataSource1"
                                        DataTextField="CategoryName" DataValueField="CategoryID">
                                    </asp:DropDownList>
                                    <asp:Button ID="btnCategory" runat="server" Text="开始生成" OnClick="btnCategory_Click" />
                                </td>
                            </tr>
                            <tr>
                                <td height="40">
                                    生成所有源码信息
                                    <asp:Button ID="btnAll" runat="server" Text="开始生成" OnClientClick="return confirm('此操作相当耗费系统资源，您是否确定要生成所有详情页面？');"
                                        OnClick="btnAll_Click" />
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
        </asp:Panel>
        <asp:Panel ID="Panel2" Visible="false" runat="server">
            <tr style="text-align: center;">
                <td colspan="2" class="td1" style="text-align: left; padding-left: 10px;">
                    <table width="500" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="300">
                                <asp:ListBox ID="lbCate" runat="server" DataSourceID="ObjectDataSource1" SelectionMode="Multiple"
                                    DataTextField="CategoryName" DataValueField="CategoryID" Width="300px" Height="300px">
                                </asp:ListBox>
                            </td>
                            <td>
                                <asp:Button ID="btnCate" runat="server" Text="生成选定栏目的列表页" Style="cursor: pointer;"
                                    OnClick="btnCate_Click" />
                                <br />
                                <br />
                                <asp:Button ID="btnCateAll" runat="server" Text="生成所有栏目的列表页" Style="cursor: pointer;"
                                    OnClick="btnCateAll_Click" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </asp:Panel>
    </table>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetAllList"
        TypeName="Aspx1.BLL.ProductCategory"></asp:ObjectDataSource>
</asp:Content>
