<%@ Page Title="" Language="C#" MasterPageFile="~/m/m.Master" AutoEventWireup="true" CodeBehind="Mybook.aspx.cs" Inherits="Book.m.Mybook" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    
    <style>
        .theaction{ margin:10px 0px 0px 0px }
        .end{background-color: #dd524d; color:#ffffff; padding:8px;}
        .yanchang{background-color:#4cd964; color:#ffffff;padding:8px;}
       .detail{background-color:#007aff; color:#ffffff;padding:8px;}
    </style>
    
     <header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">我的预定</h1>
         <a class="mui-icon mui-icon-bars mui-pull-right" href="default.aspx"></a>
 </header>

    
      <div class="mui-content">
        <div class="mui-page">
 
   	<div class="mui-card">

  <div class="mui-input-row mui-checkbox mui-left" style="position:relative; right:0px;top:0px;">
   <asp:CheckBox runat="server" ID="cb_hiddlepast" Text="隐藏过期申请"  AutoPostBack="true"     OnCheckedChanged="cb_hiddlepast_CheckedChanged" />
                 
</div>         
           
   </div>









            
 
   
<asp:ListView ID="lv_lists" runat="server" 
    ItemContainerID="layoutTableTemplate" 
     OnItemDataBound="lv_lists_ItemDataBound"
              DataKeyNames="id" OnPagePropertiesChanging="lv_lists_PagePropertiesChanging"   
    
                    
 >
 
   <LayoutTemplate>
                       
                     	<ul class="mui-table-view" id="itemPlaceholderContainer" runat="server">
                              <li id="itemPlaceholder" runat="server">
                                </li>
                         </ul>
                    </LayoutTemplate>

                <ItemTemplate>
                   
                    <li class="mui-table-view-cell prop">
                        <span  class="mui-navigate-right">
						
              <%# Eval("roomname")%>  /  <%# Eval("intro")%>        / <%# Eval("numbers")%>人 /
                            <%#DateTime.Parse(Eval("begintime").ToString()).ToString("MM月dd日 HH:mm")%> ~
                             <%#DateTime.Parse(Eval("endtime").ToString()).ToString("HH:mm")%> /     
                             <%# Eval("contactname")%> 
             </span>

            <div  class="theaction">

         
   <a   href='details.aspx?id=<%#Eval("id") %>'    class="detail">会议详细</a> 
                
               <div style="display:none">

              
 <asp:PlaceHolder runat="server" ID="ph_end">  
   <a href="###" data-bookid="<%#Eval("id") %>"  class="end">结束会议</a>
</asp:PlaceHolder>



    <asp:PlaceHolder runat="server" ID="ph_yanchang">
        <a href="###"  data-bookid="<%#Eval("id") %>"  class="yanchang">延长会议</a>
    </asp:PlaceHolder>
 </div> 

  </div>            

					 </li>
                    </ItemTemplate>
   
</asp:ListView>        


 
 

   	<div class="pg">
 <asp:DataPager ID="DataPager1"   class="pg mui-pagination"  
        PagedControlID="lv_lists" runat="server" PageSize="20">
 <Fields>
           
     
            <asp:NextPreviousPagerField 
                PreviousPageText="<" 
                FirstPageText="|<" 
                ShowPreviousPageButton="true"
                ShowFirstPageButton="true" 
                ShowNextPageButton="false" 
                ShowLastPageButton="false"
               
                RenderNonBreakingSpacesBetweenControls="false" 
                RenderDisabledButtonsAsLabels="false" />

            <asp:NumericPagerField 
                ButtonType="Link" 
                CurrentPageLabelCssClass="btn btn-primary disabled"  
                RenderNonBreakingSpacesBetweenControls="false"
                
                ButtonCount="10" 
                NextPageText="..." 
               />
            
           <asp:NextPreviousPagerField 
               NextPageText=">" 
               LastPageText=">|" 
               ShowNextPageButton="true"
               ShowLastPageButton="true" 
               ShowPreviousPageButton="false" 
               ShowFirstPageButton="false" 
               RenderNonBreakingSpacesBetweenControls="false" 
               RenderDisabledButtonsAsLabels="false"/>
      

  </Fields> 
</asp:DataPager>
</div>

 




















            </div>
          </div>
    


    
 







    <script>
        $(".end").click(
            function () {
                var that = this;
                var bookid = $(this).data("bookid");
                layer.confirm('确定结束会议吗？', {
                    btn: ['确定', '关闭']
                }, function () {

                    $.get("../book/ajax/end_or_extend.aspx?t=end&bookid=" + bookid, function (r) {
                        layer.msg('成功结束会议', { icon: 1 });
                        $(that).hide();
                    })


                } );


            }
            );




        $(".yanchang").click(
          function () {
              var that = this;
              var bookid = $(this).data("bookid");
              layer.confirm('系统将把会议延长30分钟？', {
                  btn: ['确定', '关闭']
              }, function () {

                  $.get("../book/ajax/end_or_extend.aspx?t=yanchang&bookid=" + bookid, function (r) {

                      layer.msg('成功结束会议', { icon: 1 });
                      $(that).hide();

                  })


              });


          }
            );


    </script>








</asp:Content>
