<%@ Page Title="" Language="C#" MasterPageFile="~/Book/Book.master" AutoEventWireup="true" CodeBehind="Search.aspx.cs" Inherits="Book.Book.Search" %>
<%@ Register src="../UserControls/area.ascx" tagname="area" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cont_form" runat="server">

  
     
 <style>
     .lrd {
      color:#a52b2b;
     }
   .areacss {
              display:none
             }
 </style>
 
     
		
	 <table class="table" >  
<tr>
<td width="140px">1. ID:
    </td>
    <td width="400">
    <asp:TextBox ID="txt_id" runat="server" CssClass="form-control"></asp:TextBox> 
 </td>
    <td width="140">
     <%=iseng?"Book Username":"预定人姓名"%>: 
        </td>
	         <td width="400">   
                 <asp:TextBox ID="username" runat="server" CssClass="form-control"></asp:TextBox>
                               
               </td> 

</tr>


<tr>

<td> 2.  <%=iseng?"Begin From":"会议时间 从"%>:  </td>
    <td>
 <input type="text" id="txt_startdate" runat="server"  class="form-control _dt"   />
        </td>
    <td>
  <%=iseng?"End":"到"%>:
        </td>
    <td>
 <input type="text" id="txt_enddate" runat="server"  class="form-control _dt"  />

 </td>

 </tr>
 
 <tr>
     <td><%=iseng?"Area":"会议区域"%> </td>
     <td>

<uc1:area ID="area1" runat="server" OnAreaChanged="area1_changed"/>

       <asp:CheckBox runat="server" ID="cb_repeat" Text="仅显示循环会议" />


     </td>
 </tr>
 <tr>
<td>
3.<%=iseng?"Room":"会议室"%></td>
     
     <td colspan="3">
       
   <asp:CheckBoxList ID="cbl_place" Width="100%" RepeatColumns="4" runat="server"    >
   </asp:CheckBoxList>


 </td>
 
</tr>
<tr>

<td colspan="4" style="text-align:center">
    <asp:Button ID="btn_search"  CssClass="btn btn-primary btn-flat"  runat="server" Text=" 搜 索 " 
        onclick="btn_search_Click" />

</td></tr>
 
</table>
		 
  
  
  
  
  
  
  
  
  




    <asp:ListView ID="ListView1" runat="server" 
          onpagepropertieschanging="lv_lists_PagePropertiesChanging"
        ItemContainerID="layoutTableTemplate" 
              DataKeyNames="id" onitemdatabound="ListView1_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>预订者:</b> <%# Eval("username")%> </td>
			  <td  width="33%" colspan="2"><b>状态(Status:)</b>  
			      <asp:Label ID="lbl_process" runat="server" Text=""></asp:Label>
			  </td>
	 </tr>
							
	  
         
       <tr  >
			 <td      colspan="2"><b>会议室：( Room)：</b><%# Eval("roomname")%></td>
			 <td   colspan="4"><b>会议主题：(Subject)：</b><div  style=" word-break:break-all; display:inline-block"><%# Eval("intro")%></div></td>
	 </tr>
	
	
	 
         
         
       <tr  align="left">
			 <td      colspan="3"><b>会议开始时间(Start)：</b><font color=#006699><%#DateTime.Parse(Eval("begintime").ToString()).ToString("yyyy-MM-dd HH:mm")%></font></td>
			 <td    colspan="3"><b>会议结束时间(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="Pager"   class="btn-group btn-group-sm" EnableViewState="true"
        PagedControlID="ListView1" 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>






</asp:Content>
