<%@ Page Title="导出信息" Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true"
    CodeBehind="ContentExport.aspx.cs" Inherits="PowerEasy.Module.General.WebSite.Admin.Contents.ContentExport" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CphNavigation" runat="server">
    <pe:ExtendedSiteMapPath ID="SmpNavigator" runat="server" SiteMapProvider="AdminMapProvider">
    </pe:ExtendedSiteMapPath>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CphContent" runat="server">

    <script language="javascript">
        $(document).ready(function() { $("select[id$='DropDownList1'] > OPTION[value='1']").css("background-color", "red"); });
    </script>

    <div style="padding-top: 5px;">
        <asp:Wizard ID="WzdProductImport" Font-Names="Verdana" Font-Size="0.8em" runat="server"
            DisplaySideBar="False" Width="100%" ActiveStepIndex="0" OnFinishButtonClick="WzdContentImport_FinishButtonClick"
            OnNextButtonClick="WzdContentImport_NextButtonClick" FinishCompleteButtonText=" 完 成 "
            CancelButtonText=" 取 消 ">
            <WizardSteps>
                <asp:WizardStep ID="WizardStep1" runat="server" Title="Step 1">
                    <table width="100%" border="0" cellspacing="1" cellpadding="2" class="border">
                        <tr align="center">
                            <td colspan="2" class="title" style="height: 19px">
                                <b>信息批量导出</b>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td align="right" class="tdbgleft" style="width: 20%">
                                <strong>所属节点&nbsp;：&nbsp;</strong>
                            </td>
                            <td>
                                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                    <ContentTemplate>
                                        <asp:DropDownList ID="DropContentNodeList" runat="server" DataTextField="NodeName"
                                            DataValueField="NodeId" AutoPostBack="True" OnSelectedIndexChanged="DropContentNodeList_SelectedIndexChanged">
                                        </asp:DropDownList>
                                        &nbsp;<strong> 所属模型&nbsp;：&nbsp;</strong><asp:DropDownList ID="DropModelList" runat="server"
                                            DataTextField="ModelName" DataValueField="ModelId">
                                        </asp:DropDownList>
                                        <pe:RequiredFieldValidator ID="ValrNodeList" ControlToValidate="DropContentNodeList"
                                            runat="server" ErrorMessage="所属栏目不能为空" RequiredText="" Display="Dynamic"></pe:RequiredFieldValidator>
                                        <pe:RequiredFieldValidator ID="ValrModelName" ControlToValidate="DropModelList" runat="server"
                                            ErrorMessage="所属模型不能为空" RequiredText="" Display="Dynamic"></pe:RequiredFieldValidator>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td align="right" class="tdbgleft" style="width: 20%">
                                <strong>导出设置&nbsp;：&nbsp;</strong>
                            </td>
                            <td>
                                <table width="100%">
                                    <tr>
                                        <td>
                                            <asp:RadioButtonList ID="RadioSetType" runat="server" AutoPostBack="true" OnSelectedIndexChanged="RadioSetType_SelectedIndexChanged">
                                                <asp:ListItem Value="0" Text="按 ID" Selected="True"></asp:ListItem>
                                                <asp:ListItem Value="1" Text="按录入日期"></asp:ListItem>
                                            </asp:RadioButtonList>
                                        </td>
                                        <td>
                                            起始 ID：<asp:TextBox ID="StartID" runat="server"></asp:TextBox>
                                            <pe:RequiredFieldValidator ID="ReqStartID" runat="server" SetFocusOnError="true"
                                                ControlToValidate="StartID" Display="Dynamic" ErrorMessage="起始ID不能为空"></pe:RequiredFieldValidator>
                                            <pe:RegexValidator ValidateType="Number" ID="RegexStartID" ControlToValidate="StartID"
                                                SetFocusOnError="true" Display="dynamic" ErrorMessage="起始ID只能为数字" runat="server"></pe:RegexValidator>
                                            结束 ID：<asp:TextBox ID="EndID" runat="server"></asp:TextBox>
                                            <pe:RequiredFieldValidator ID="ReqEndID" runat="server" SetFocusOnError="true" ControlToValidate="EndID"
                                                Display="Dynamic" ErrorMessage="结束ID不能为空"></pe:RequiredFieldValidator>
                                            <pe:RegexValidator ValidateType="Number" ID="RegexEndID" ControlToValidate="EndID"
                                                SetFocusOnError="true" Display="dynamic" ErrorMessage="结束ID只能为数字" runat="server"></pe:RegexValidator>
                                            <br />
                                            起始日期：<pe:DatePicker ID="StartDate" IsLongDate="true" runat="server"></pe:DatePicker>
                                            <pe:RequiredFieldValidator ID="ReqStartDate" runat="server" SetFocusOnError="true"
                                                ControlToValidate="StartDate" Display="Dynamic" ErrorMessage="起始日期不能为空" Enabled="false"></pe:RequiredFieldValidator>
                                            <pe:RegexValidator ValidateType="Date" ID="RegexStartDate" ControlToValidate="StartDate"
                                                SetFocusOnError="true" Display="dynamic" ErrorMessage="起始日期格式不正确" runat="server"
                                                Enabled="false"></pe:RegexValidator>
                                            结束日期：<pe:DatePicker ID="EndDate" IsLongDate="true" runat="server"></pe:DatePicker>
                                            <pe:RequiredFieldValidator ID="ReqEndDate" runat="server" SetFocusOnError="true"
                                                ControlToValidate="EndDate" Display="Dynamic" ErrorMessage="结束日期不能为空" Enabled="false"></pe:RequiredFieldValidator>
                                            <pe:RegexValidator ValidateType="Date" ID="RegexEndDate" ControlToValidate="EndDate"
                                                SetFocusOnError="true" Display="dynamic" ErrorMessage="结束日期格式不正确" runat="server"
                                                Enabled="false"></pe:RegexValidator>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </asp:WizardStep>
                <asp:WizardStep ID="WizardStep2" runat="server" Title="Step 2">
                    <table width="100%" border="0" cellspacing="1" cellpadding="2" class="border">
                        <tr align="center">
                            <td colspan="2" class="title">
                                <b>信息批量导出（选择导出项）</b>
                            </td>
                        </tr>
                        <asp:Repeater ID="RepeaterExcelFields" runat="server" OnItemDataBound="RepeaterExcelFields_ItemDataBound">
                            <ItemTemplate>
                                <tr id="Tr1" class="tdbg" runat="server">
                                    <td align="right" style="width: 50%;" class="tdbgleft">
                                        <pe:ExtendedLiteral HtmlEncode="false" ID="LiteralTableField" runat="server"></pe:ExtendedLiteral>
                                        <pe:ExtendedLiteral HtmlEncode="false" ID="LiteralShowNotes" runat="server"></pe:ExtendedLiteral>
                                        <asp:HiddenField ID="HdnFieldName" runat="server" />
                                        <asp:HiddenField ID="HdnFieldType" runat="server" />
                                        <asp:HiddenField ID="HdnFieldLevel" runat="server" />
                                        <asp:HiddenField ID="HdnEnableNull" runat="server" />
                                        <asp:HiddenField ID="HdnFieldTemp" runat="server" />
                                        &nbsp;&nbsp;==>&nbsp;&nbsp;
                                    </td>
                                    <td>
                                        &nbsp;&nbsp;&nbsp;
                                        <asp:DropDownList ID="DropDownList1" runat="server">
                                            <asp:ListItem Value="1" Text="导出此项"></asp:ListItem>
                                            <asp:ListItem Value="0" Text="不导出此项" Selected="True"></asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </table>
                </asp:WizardStep>
            </WizardSteps>
            <StartNavigationTemplate>
                <center>
                    <br />
                    <asp:Button ID="StartNextButton" runat="server" CommandName="MoveNext" Text="下一步" /></center>
            </StartNavigationTemplate>
            <FinishNavigationTemplate>
                <center>
                    <br />
                    <asp:Button ID="StartPreButton" runat="server" CommandName="MovePrevious" Text="上一步" />
                    <asp:Button ID="FinishButton" runat="server" CommandName="MoveComplete" Text="导  出" /></center>
            </FinishNavigationTemplate>
        </asp:Wizard>
        <div id="prompt-note">
            <dl>
                <dt class="prompt-note-tit"><span>温馨提醒</span> </dt>
                <dd class="prompt-note-con">
                    <li>由于批量导出操作比较占用资源，请不要一次性导出过多信息，建议在服务器访问人数少时进行！</li>
                </dd>
            </dl>
        </div>
    </div>
</asp:Content>
