<%@ page language="C#" autoeventwireup="true" inherits="weixin_BookingDetails, App_Web_bookingdetails.aspx.ccd28591" enableEventValidation="false" %>

<%@ Register Src="~/weixin/MyHeader.ascx" TagPrefix="uc1" TagName="MyHeader" %>
<!DOCTYPE html >
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>网上预约系统</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <link href="/control/plugin/bootstrap3/css/bootstrap.min.css" rel="stylesheet" />
    <script src="/control/js/jquery.js"></script>
    <script src="/control/plugin/bootstrap3/js/bootstrap.min.js"></script>
    <link href="/weixin/css/user.css" rel="stylesheet" />
    <!--[if lt IE 9]>
      <script src="/js/html5shiv.min.js"></script>
      <script src="/js/respond.min.js"></script>
    <![endif]-->
</head>
<body>
    <uc1:MyHeader runat="server" ID="MyHeader" />
    <div class="container">
        <div class="row">
            <div class="col-lg-12">
                <div class="well well-sm  ">
                        <label >分配时间：</label>
                        <div class="list-group">
                            <asp:Repeater ID="rptBU" runat="server">
                                <ItemTemplate>
                                    <div class="list-group-item">
                                        <%#((DateTime)Eval("eu_start")).ToString("yyyy-MM-dd HH:mm") %> 至
                                    
                                        <%#((DateTime)Eval("eu_end")).ToString("yyyy-MM-dd HH:mm") %>
                                    </div>
                                </ItemTemplate>
                                <FooterTemplate>
                                    <div class="alert alert-warning" style="display: <%#bool.Parse((rptBU.Items.Count==0).ToString())?"block":"none"%>">
                                        <strong>预约申请还未审核通过</strong>
                                    </div>
                                </FooterTemplate>
                            </asp:Repeater>
                        </div>
                  
                </div>

                <div class="panel panel-default">
                    <div class="panel-body">
                        <!-- Add.aspx -->
                        <div class="form-group">
                            <label class=" control-label">
                                预约设备：</label>
                            <div>
                                <asp:Label ID="ddlb_eid" runat="server" Font-Size="15px"></asp:Label>
                            </div>
                             <div>
                                <asp:Label ID="txt_info" runat="server" Font-Size="15px"></asp:Label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class=" control-label">
                                设备管理员：</label>
                            <div>
                                <asp:Label ID="txt_admin" runat="server" Font-Size="15px"></asp:Label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class=" control-label">
                                时间分配方式：</label>
                            <div>
                                <asp:Label ID="txtb_stype" runat="server"  Font-Size="15px"></asp:Label>
                            </div>
                        </div>

                        <asp:Panel runat="server" ID="Panel_Time" class="form-group">
                            <label class=" control-label">
                                预约使用时间：</label>
                          
                                <div >
                                    <asp:Label ID="txtb_start" runat="server" ></asp:Label>至
                                    <asp:Label ID="txtb_end" runat="server" ></asp:Label>
                                </div>
                           <asp:Repeater ID="rpt_btime" runat="server">
                               <ItemTemplate>
                                   <div>
                                       <%#Eval("bt_start","{0:yyyy-MM-dd HH:mm}")%>至
                                       <%#Eval("bt_end","{0:yyyy-MM-dd HH:mm}")%>
                                   </div>
                               </ItemTemplate>
                           </asp:Repeater>
                        </asp:Panel>

                        <div class="form-group">
                            <label class=" control-label">
                                课题名称<span class='rd'>*</span>：</label>
                            <div>
                            <asp:Label ID="txt_pname" runat="server"  MaxLength="4"></asp:Label>
                                </div>
                        </div>
                        <div class="form-group">
                            <label class=" control-label">
                                实验内容<span class='rd'>*</span>：</label>
                            <div>
                            <asp:Label ID="txt_pcontent" runat="server"  MaxLength="4"></asp:Label>
                                </div>
                        </div>
                        <div class="form-group">
                            <label class=" control-label">
                                预约时长(分钟)<span class='rd'>*</span>：</label>
                            <div>
                            <asp:Label ID="txtb_btime" runat="server"  MaxLength="4"></asp:Label> 分钟
                                </div>
                        </div>

              <%--          <div class="form-group">
                            <label class=" control-label">
                                导师审核：</label>
                            <div>
                                <asp:Literal ID="txtb_tVerify" runat="server"></asp:Literal>
                            </div>
                        </div>

                        <asp:Panel ID="PaneltVerifyNot" runat="server" CssClass="form-group">
                            <label class=" control-label">
                                导师审核未通过信息：</label>
                            <div>
                                <asp:Label ID="txtb_tVerifyNote" runat="server" MaxLength="255" CssClass="form-control"></asp:Label>
                            </div>
                        </asp:Panel>--%>

                        <div class="form-group">
                            <label class=" control-label">
                                管理员审核：</label>
                            <div>
                                <asp:Literal ID="txtb_mVerify" runat="server"></asp:Literal>
                            </div>
                        </div>

                        <asp:Panel ID="PanelmVerify" runat="server" CssClass="form-group">
                            <label class=" control-label">
                                失败信息：</label>
                            <div>
                                <asp:Label ID="txtb_mVerifyNote" runat="server" MaxLength="255" CssClass="form-control"></asp:Label>
                            </div>
                        </asp:Panel>

                        <div class="form-group">
                            <label class=" control-label">
                                预约说明：</label>
                            <div>
                                <asp:Label ID="txtb_note" runat="server" ></asp:Label>

                            </div>
                        </div>
                    </div>
                </div>


                    <div class="well well-sm  ">
                    <form class="form-inline" runat="server" >
                     

                            <!-- Button trigger modal -->
                            <button type="button" class="btn btn-danger btn-block" data-toggle="modal" data-target="#myModal">
                                <i class="glyphicon glyphicon-remove"></i> 取消预约
                            </button>

                            <!-- Modal -->
                            <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                                <div class="modal-dialog">
                                    <div class="modal-content">
                                        <div class="modal-header">
                                            <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                                            <h4 class="modal-title" id="myModalLabel">取消预约</h4>
                                        </div>
                                        <div class="modal-body">
                                            <span style="font-size: 18px;">确定要取消该预约吗？</span>
                                        </div>
                                        <div class="modal-footer">
                                            <button type="button" class="btn btn-default " data-dismiss="modal">取消</button>
                                            <asp:LinkButton ID="lbDelete" runat="server"
                                                CssClass="btn btn-danger" OnClick="lbDelete_Click">
                                 <i class="glyphicon glyphicon-remove"></i>确定取消
                                            </asp:LinkButton>
                                        </div>
                                    </div>
                                </div>
                            </div>

                     
                    </form>
                </div>
            </div>
        </div>

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