<%@ Page Language="c#" Inherits="WebApp.AuditList" CodeBehind="AuditList.aspx.cs" %>

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>子站开通审核列表</title>
    <meta name="description" content="overview &amp; stats" />
    <!--#include file = "../assets/head.htm" -->
    <style type="text/css">
        .hidden {
            display: none;
        }
    </style>

</head>
<body class="no-skin">
    <div class="main-content-inner">
        <!-- #section:basics/content.breadcrumbs -->
        <div class="breadcrumbs" id="breadcrumbs">
            <script type="text/javascript">
                try { ace.settings.check('breadcrumbs', 'fixed') } catch (e) { }
            </script>

            <ul class="breadcrumb">
                <li>
                    <i class="ace-icon fa fa-home home-icon"></i>
                    主页
                </li>
                <li>站点管理</li>
                <li class="active">站点开通审核</li>
            </ul>
            <!-- /.breadcrumb -->

            <!-- /section:basics/content.searchbox -->
        </div>
        <!-- /section:basics/content.breadcrumbs -->

        <div class="page-content">
            <!-- PAGE CONTENT BEGINS -->

            <form id="frmAuditing" method="post" runat="server">
                <div class="row">
                    <div class="col-xs-12">
                        <asp:DataGrid ID="schoolList" CssClass="table table-striped table-bordered" DataKeyField="pkID" AutoGenerateColumns="False"
                            runat="server" OnItemCommand="schoolList_ItemCommand">
                            <Columns>
                                <asp:BoundColumn DataField="pkID" HeaderText="ID" HeaderStyle-CssClass="title"></asp:BoundColumn>
                                <asp:BoundColumn DataField="SchoolName" HeaderText="站点名称" HeaderStyle-CssClass="title"></asp:BoundColumn>
                                <asp:BoundColumn DataField="serialNO" HeaderText="序列号" HeaderStyle-CssClass="title hidden" ItemStyle-CssClass="hidden"></asp:BoundColumn>
                                <asp:BoundColumn DataField="domainName" HeaderText="域名" HeaderStyle-CssClass="title"></asp:BoundColumn>
                                <asp:TemplateColumn HeaderText="审核状态" HeaderStyle-CssClass="title">
                                    <ItemTemplate>
                                        <asp:Label ID="lblState" runat="server" Text='<%# GetApplyState(DataBinder.Eval(Container, "DataItem.applyState").ToString()) %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateColumn>
                                <asp:BoundColumn DataField="applyTime" HeaderText="申请时间" DataFormatString="{0:yyyy-MM-dd}" HeaderStyle-CssClass="title"></asp:BoundColumn>
                                <asp:TemplateColumn HeaderText="执行" HeaderStyle-CssClass="title">
                                    <ItemTemplate>
                                        <div class="action-buttons">
                                        <asp:LinkButton ID="btnAuditing" runat="server" CommandName="Auditing" CssClass="FBox1" href='<%# Eval("pkId","auditing.aspx?applyID={0}")%>'><i class="ace-icon fa fa-check bigger-120 green" title="审核" ></i></asp:LinkButton>
                                        &nbsp;
                                        <asp:LinkButton ID="btnView" runat="server" CommandName="View" CssClass="FBox" href='<%# Eval("pkId","viewaudit.aspx?ID={0}")%>'><i class="ace-icon fa fa-search-plus bigger-130" title="查看信息" ></i></asp:LinkButton>
                                        &nbsp;
                                        <asp:LinkButton ID="btnDelete" runat="server" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.schoolName") %>' CausesValidation="False" CommandName="Delete"><i class="ace-icon fa fa-trash-o bigger-130 red" title="删除"></i></asp:LinkButton>
                                    </div>
                                            </ItemTemplate>
                                </asp:TemplateColumn>
                            </Columns>
                        </asp:DataGrid>

                        <div class="clearfix">
                            <div class="col-xs-12">
                                <asp:Label ID="lblPage" runat="server"></asp:Label>

                            </div>
                        </div>
                    </div>
                </div>
            </form>
            <!--#include file = "../assets/foot.htm" -->
            <script type="text/javascript">
                jQuery(function ($) {

                    //编辑：打开弹出层
                    $(".FBox").click().fancybox({
                        autoSize:false,
                        'width': 600,
                        'height': 590,
                        'hideOnOverlayClick': false,
                        'type': 'iframe',
                        'padding': '0'
                    });
                    
                    //编辑：打开弹出层
                    $(".FBox1").click().fancybox({
                        autoSize:false,
                        'width': 1000,
                        'height': 630,
                        'hideOnOverlayClick': false,
                        'type': 'iframe',
                        'padding': '0'
                    });
                    

                });

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