<%@ Page Language="c#" Inherits="Web.User.manageStaticPage" CodeBehind="manageStaticPage.aspx.cs" %>

<!DOCTYPE html>
<!--[if lt IE 9]><html class="lte-ie8"><![endif]-->
<!--[if gt IE 8]><!-->
<html>
<!--<![endif]-->
<head>
    <title>静态页生成</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!--#include file="../Css/head.htm"-->
</head>
<body>
    <form id="form1" runat="server">
        <div class="main-content-inner">
            <div class="breadcrumbs" id="breadcrumbs">
                <ul class="breadcrumb">
                    <li>
                        <i class="ace-icon fa fa-home home-icon"></i>
                        <a href="#">Home</a>
                    </li>

                    <li class="active">
                        <a href="#">静态页</a>
                    </li>
                </ul>
                <!-- /.breadcrumb -->
            </div>
            <div class="page-content">
                <div class="function-hd">
                    <div class="page-header clearfix">
                        <div class="action-field">
                            <div class="function-hd">
                                <div class="search-box">
                                    <asp:Button ID="btnUpdate" runat="server" class="btn btn-sm btn-primary" Text="更新静态页" OnClick="btnUpdate_Click"></asp:Button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="function-bd" style="height: 580px; 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">
                        <Columns>
                            <asp:TemplateField HeaderStyle-CssClass="title text-center" ItemStyle-CssClass="text-center" ItemStyle-Width="36px" Visible="false">
                                <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>
                                <HeaderStyle CssClass="title text-center"></HeaderStyle>
                                <ItemStyle CssClass="text-center" Width="36px"></ItemStyle>
                            </asp:TemplateField>
                            <asp:BoundField DataField="bigclassId" HeaderText="ID号" Visible="false"></asp:BoundField>
                            <asp:BoundField DataField="name" HeaderText="栏目名称" HeaderStyle-CssClass="title"></asp:BoundField>
                            <asp:BoundField DataField="staticUrl" HeaderText="静态页面" HeaderStyle-CssClass="title"></asp:BoundField>
                            <asp:BoundField DataField="staticTime" HeaderText="更新时间" HeaderStyle-CssClass="title"></asp:BoundField>
                        </Columns>
                    </asp:GridView>
                    <!--[if lte IE 7]></div><![endif]-->
                </div>
                <!--#include file="../Css/foot.htm"-->
                  <script type="text/javascript">
                      jQuery(function ($) {
                          $("#btnUpdate").click(function () {

                              if (GridSelectCheck('GridView1', true)) {
                                  //加载load特效（防止在生成静态页阶段重复点击按钮） 不显示弹出层的关闭按钮，按ESC来关闭弹出层
                                  $.fancybox({
                                      'type': 'image',
                                      'width': 50,
                                      'height': 50,
                                      'hideOnOverlayClick': false,
                                      'padding': '0',
                                      'scrolling': 'no',
                                      'enableEscapeButton': 'true',
                                      'showCloseButton': false,
                                      'href': '../images/resfile/loading.gif'
                                  });
                                  return true;
                              }
                              else {
                                  return false;
                              }
                          });

                      })
    </script>
            </div>
        </div>
    </form>

</body>
</html>
