<%@ page language="C#" autoeventwireup="true" inherits="sysadmin_Booking, App_Web_booking.aspx.ddba9769" enableEventValidation="false" %>

<%@ Register Src="~/sadmin/NewHeader.ascx" TagPrefix="uc2" TagName="NewHeader" %>
<%@ Register Src="~/sadmin/NewFooter.ascx" TagPrefix="uc2" TagName="NewFooter" %>


<!DOCTYPE html >
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>网上预约系统</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="/lib/bootstrap/bootstrap.min.css" rel="stylesheet" />
    <!-- ionicons -->
    <link href="/lib/ionicons/ionicons.min.css" rel="stylesheet" />
    <!-- Animate -->
    <link href="/lib/animate/animate.min.css" rel="stylesheet" />
    <!-- base -->
    <link href="/css/base.css" rel="stylesheet" /> 
    <!--[if lt IE 9]>
      <script src="/js/html5shiv.min.js"></script>
      <script src="/js/respond.min.js"></script>
    <![endif]-->
</head>
<body>
    <div class="wrapper">
        <!-------------头部导航------------------>
        <uc2:NewHeader runat="server" ID="NewHeader" />
        <!--/头部导航-->

        <div class="main-container">
            <div class="padding-md">
                <div class="row">

                    <div class="col-lg-12">

                        <div class="row p-left-md p-right-md">
                            <div class="p-top-xs pull-left font-16">
                                预约申请
                            </div>
                            <div class="breadcrumb-wrapper pull-right">
                                <ol class="breadcrumb">
                                    <li><a href="/sadmin/Dashboard.aspx">主页</a></li>
                                    <li class="active">预约申请</li>
                                </ol>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-lg-2 col-md-3">
                     
                        <div class="list-group">
                            <a href="Booking.aspx" id="ball" class="list-group-item">全部</a>
                            <asp:Repeater ID="rptEquipment" runat="server">
                                <ItemTemplate>
                                    <a href="Booking.aspx?eid=<%#Eval("e_id") %>" id="<%#Eval("e_id") %>" class="list-group-item"><%#Eval("e_name") %></a>
                                </ItemTemplate>
                            </asp:Repeater>
                        </div>
                    </div>

                    <div class="col-lg-10 col-md-9">

                        <ul class="nav nav-tabs" role="tablist">
                            <li role="presentation" class="active"><a href="Booking.aspx" >全部预约</a></li>
                            <li role="presentation"><a href="BookingNotAudit.aspx" >未审核预约</a></li>
                        </ul>

                        <div class="panel panel-default">
                            <div class="panel-content">

                                <form class="form-inline" action="Booking.aspx" method="get">
                                    <div class="input-group ">
                                        <span class="input-group-addon">预约用户名</span>
                                        <input id="u_name" name="u_name" value="<%=Request["u_name"] %>" type="text" class="form-control" />
                                    </div>

                                    <div class="input-group ">
                                        <span class="input-group-addon">状态</span>
                                        <select id="sltState" name="state" class="form-control" val="<%=Request["state"] %>">
                                            <option value="">全部</option>
                                            <option value="-1">未审核</option>
                                            <option value="1">审核通过</option>
                                            <option value="0">审核未通过</option>
                                        </select>
                                    </div>
                                   
                                    <input id="eid" name="eid" value="<%=Request["eid"] %>" type="hidden" />
                                    <button type="submit" class="btn btn-primary"><i class="glyphicon glyphicon-search"></i></button>

                                </form>
                                <hr />
                                <div class="table-responsive">
                                    <asp:Repeater ID="rptData" runat="server">
                                        <HeaderTemplate>
                                            <table id="dataView" class="table table-hover table-striped ">
                                                <thead>
                                                    <tr class='table-heading'>
                                                        <th>编号</th>
                                                        <th>预约用户</th>
                                                        <th>预约设备</th>
                                                        <th>课题名称</th>
                                                        <th>分配方式</th>
                                                        <th>审核</th>
                                                        <th>创建日期</th>
                                                        <th></th>
                                                    </tr>
                                                </thead>
                                                <tbody>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <tr>
                                                <td>
                                                    <%#Eval("b_index") %>
                                                </td>
                                                <td>
                                                    <a href="/sadmin/User/UserDetails.aspx?id=<%#Eval("u_id") %>"><%#Eval("u_user") %>/<%#Eval("u_name") %> </a>
                                                </td>
                                                <td>
                                                    <a href="BookingDetails.aspx?id=<%#Eval("id") %>"><%#Eval("e_name")%></a>
                                                </td>
                                                <td><%#Eval("p_name")%></td>
                                                <td><%#GetName((int)Eval("b_stype"))%></td>

                                                <td>
                                                    <%#GetVerify((int)Eval("b_mVerify"))%>
                                                </td>
                                                <td>
                                                    <%#Eval("b_cdate")%>
                                                </td>
                                                <td>      
                                                    <a href="BookingDetails.aspx?id=<%#Eval("id") %>"  class="btn  btn-default btn-sm ">详细</a>
                                                    <a href="BookingAudit.aspx?id=<%#Eval("id") %>" <%#((int)Eval("b_mVerify")) != -1 ? "style='display:none'":String.Empty %> class="btn btn-success  btn-sm ">审核申请</a>
                                          
                                                </td>
                                            </tr>
                                        </ItemTemplate>
                                        <FooterTemplate>
                                            </tbody> 
                                                    </table>
                                                     <div class="alert alert-warning" style="display: <%#bool.Parse((rptData.Items.Count==0).ToString())?"block":"none"%>">
                                                         <strong>暂无信息</strong>
                                                     </div>
                                        </FooterTemplate>
                                    </asp:Repeater>
                                </div>


                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-12 text-right">
                                <asp:Literal ID="litPage" runat="server"></asp:Literal>
                            </div>
                        </div>
                    </div>
                </div>

            </div>

            <!-- ./padding-md -->
        </div>
        <!-- /main-container -->


        <uc2:NewFooter runat="server" ID="NewFooter" />


    </div>
    <!-- /wrapper -->

    <a href="#" class="scroll-to-top hidden-print"><i class="fa fa-chevron-up fa-lg"></i></a>

    <!----------------右下角置顶---------------->
    <a href="#" class="scroll-to-top hidden-print"><i class="ion-chevron-up"></i></a>


    <script src="/lib/jquery/jquery-3.1.1.min.js"></script>
    <script src="/lib/bootstrap/bootstrap.min.js"></script>
    <script src="/js/custom.js"></script>
    <script type="text/javascript">

        $(function () {
            var eid = $("#eid").val();
            if (eid != '') {
                $("#" + eid).addClass("active");
            } else {
                $("#ball").addClass("active");
            }
            SetState();
        });

        function SetState() {
            var val = $("#sltState").attr("val");
            if (val != "")
                $("#sltState").val(val);
        }
    </script>


</body>
</html>
