<%@ Control Language="C#" AutoEventWireup="true"  CodeBehind="BookList.ascx.cs" Inherits="Book.UserControls.BookList" %>

 
 <style>
     .lrd {
      color:#a52b2b;
     }
 </style>
 
 
 
 <div class="well">
 <asp:CheckBox runat="server" ID="cb_showrepeatonly" Text="仅显示循环会议" 
    AutoPostBack="True" oncheckedchanged="cb_showrepeatonly_CheckedChanged" />

       &nbsp;&nbsp;&nbsp;&nbsp;
      <asp:CheckBox runat="server" ID="cb_autohide" Text="隐藏已过期记录" 
    AutoPostBack="True" oncheckedchanged="cb_autohide_CheckedChanged" />

     &nbsp;&nbsp;| &nbsp;&nbsp;
      <%=LngHelper.IsEn?"If repeat meeting not used,please delete ":" 对于不再使用的循环会议请及时取消。" %>
    

 </div>



  
 <asp:ListView ID="lv_lists" runat="server"     ItemContainerID="layoutTableTemplate"  
    DataKeyNames="id"   onitemdatabound="lv_lists_ItemDataBound" 
 >
 
 
    <LayoutTemplate>
 
   <table  class="table">
      <asp:PlaceHolder runat="server" ID="itemPlaceholder"></asp:PlaceHolder>
    </table>
  </LayoutTemplate>
     
  
   
    <ItemTemplate>
     
 
	   			
    <tr style="background-color:#f2f2f2">
    	 <td colspan=6 align="right"> 
    		 <a target="_blank" href='details.aspx?id=<%# Eval("id")%>' class="btn btn-flat btn-primary btn-sm"><%=iseng?"View":"查看"%></a>  
     		 <a href='editbook.aspx?id=<%# Eval("id")%>'   class="btn btn-flat  btn-success btn-sm"><%=iseng?"Update":"更新"%></a> 
             <a href='delete.aspx?id=<%# Eval("id")%>'   class="btn btn-flat btn-danger btn-sm"><%=iseng?"Cancel":"取消"%></a> 
       			
    	 </td> 	
     </tr>
    
        
    
    
     <tr  align="left">
			 <td  width="33%"   colspan="2"><b> 
                 
                 ID:</b> <%# Eval("id")%>
             (<span style=" font-size:10px">Create Date <%# DateTime.Parse(Eval("createdate").ToString()).ToString("yyyy-MM-dd HH:mm")%></span>)
                    <%# Eval("rec").ToString()==""?"":"<span class='glyphicon glyphicon-repeat lrd'></span>"%>

			  </td>
			 <td  width="33%" colspan="2"><b><%=iseng?"Book Username":"预订者"%> :</b> <%# Eval("username")%> </td>
			  <td  width="33%" colspan="2"><b><%=iseng?"Status":"状态"%> ：</b>  
			      <asp:Label ID="lbl_process" runat="server" Text=""></asp:Label>
			  </td>
	 </tr>
							
	  
         
       <tr  >
			 <td      colspan="2"><b><%=iseng?"Room":"会议室"%> ：</b><%# Eval("roomname")%></td>
			 <td   colspan="4"><b><%=iseng?"Subject":"会议主题"%>：</b><div  style=" word-break:break-all; display:inline-block"><%# Eval("intro")%></div></td>
	 </tr>
	
	
	 
         
         
       <tr  align="left">
			 <td      colspan="3"><b><%=iseng?"Start":"开始时间"%>：</b><font color=#006699><%#DateTime.Parse(Eval("begintime").ToString()).ToString("yyyy-MM-dd HH:mm")%></font></td>
			 <td    colspan="3"><b><%=iseng?"End":"结束时间"%>：</b><font color=#006699><%#DateTime.Parse(Eval("endtime").ToString()).ToString("yyyy-MM-dd HH:mm")%></font></td>
	 	</tr>
	   		
	   		
	   		 
          
	   		
	   		
    </ItemTemplate>


  

</asp:ListView>   




<div>
 <asp:DataPager ID="DataPager1"   class="btn-group btn-group-sm"  
     PagedControlID="lv_lists" runat="server" PageSize=10>
 <Fields>
           
     
            <asp:NextPreviousPagerField 
                PreviousPageText="<" 
                FirstPageText="|<" 
                ShowPreviousPageButton="true"
                ShowFirstPageButton="true" 
                ShowNextPageButton="false" 
                ShowLastPageButton="false"
                ButtonCssClass="btn btn-default" 
                RenderNonBreakingSpacesBetweenControls="false" 
                RenderDisabledButtonsAsLabels="false" />

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

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