<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="manageStaticNewsPage.aspx.cs" Inherits="Web.Wpdcc.manageStaticNewsPage" %>

<!DOCTYPE html>
<!--[if lt IE 9]><html class="lte-ie8"><![endif]-->
<!--[if gt IE 8]><!-->
<html>
<!--<![endif]-->
<head>
    <title>批量静态化栏目内的文章</title>
    <!--#include file = "../Css/head.htm" -->
    <style>
        body {
            overflow: hidden;
        }
        /*去除弹出框滚动条*/
    </style>

</head>
<body>
    <div class="list-func-box func-box">
        <div class="hd b">
            将栏目内的文章进行静态化
        </div>
        <form id="form1" runat="server">
            <div class="space-4"></div>
            <div class="container">
                <div class="function-hd">
                    <div class="action-field">
                        <asp:Button runat="server" ID="btnCreateNews" Text="生成" CssClass="btn btn-sm btn-primary" OnClick="Btn_Click" />
                        <span>用于栏目内的文章进行批量静态化。</span>
                    </div>
                </div>
                <div class="function-bd" style="height: 440px; overflow: auto;">
                    <!--[if lte IE 7]><div style="zoom:1"><![endif]-->
                    <asp:HiddenField ID="hfidstr" runat="server" />
                    <asp:HiddenField ID="hftitlestr" runat="server" />
                    <asp:GridView ID="GridView1" runat="server" class="table table-striped table-bordered table-hover" AutoGenerateColumns="False" DataKeyNames="pkId">
                        <Columns>
                            <asp:TemplateField HeaderStyle-CssClass="title text-center" ItemStyle-CssClass="text-center" ItemStyle-Width="36px">
                                <HeaderTemplate>
                                    <asp:CheckBox ID="cbAll" Text=" " runat="server" onclick="GridSelectAll('GridView1',this.checked)" />
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="cbthis" runat="server" Text=" "></asp:CheckBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="bigClassId" HeaderText="ID号" HeaderStyle-CssClass="hidden" ItemStyle-CssClass="hidden"
                                FooterStyle-CssClass="hidden"></asp:BoundField>
                            <asp:BoundField DataField="name" HeaderText="栏目名" HeaderStyle-CssClass="title">
                                <HeaderStyle CssClass="title"></HeaderStyle>
                            </asp:BoundField>
                            <asp:BoundField DataField="pkId" HeaderText="ID号" HeaderStyle-CssClass="hidden" ItemStyle-CssClass="hidden"
                                FooterStyle-CssClass="hidden"></asp:BoundField>
                            <asp:TemplateField HeaderStyle-CssClass="title">
                                <HeaderTemplate>
                                    栏目静态化
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <span><%# Eval("isStatic").ToString() == "1" ? "是" : "否" %></span>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="staticTime" HeaderText="更新时间" HeaderStyle-CssClass="title">
                                <HeaderStyle CssClass="title"></HeaderStyle>
                            </asp:BoundField>
                        </Columns>
                    </asp:GridView>
                    <!--[if lte IE 7]></div><![endif]-->
                </div>
            </div>
            <div class="ft">
                <div class="action-field text-center">
                </div>
            </div>
        </form>
    </div>
    <!--#include file = "../Css/foot.htm" -->
    <script language="javascript" type="text/javascript" src="../Js/wpcms.js"></script>
    <script type="text/javascript">
        jQuery(function ($) {
            $("input[type='checkbox']").addClass("ace").css('top', '0px').parent().css('position', 'relative;');
            $("input[type='checkbox']").next().addClass("lbl");
        })

        $(document).ready(function () {

            $("#btnCreateNews").click(function () {

                return GridSelectCheck('GridView1', true);
            });

        })


    </script>
</body>
</html>
