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


  
  
  

<div class="ManagerForm">
		<fieldset>
		<legend style="background: 6px 50%;">Search</legend>
		
	 <table class="table1" cellspacing="0" cellpadding="8" width="100%" align="center" >  
<tr>
<td>1. 会议编号：<asp:TextBox ID="txt_id" runat="server"></asp:TextBox> 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;预定人姓名:

	            
                 <asp:TextBox ID="username" runat="server"  maxlength="50"></asp:TextBox>
                                  (支持模糊查找)
               
 </td>
 

</tr>


<tr>

<td> 2.会议时间从: 

 <input type="text" id="txt_startdate" runat="server" style="font-family:verdana; font-size:12px" onClick="javascript:ShowCalendar(this)"/>
  到:

 <input type="text" id="txt_enddate" runat="server" style="font-family:verdana; font-size:12px" onClick="javascript:ShowCalendar(this)"/>

 </td>

 </tr>
 
 
 <tr>
<td>
3.会议室（不选表示所有会议室）
   <asp:CheckBoxList ID="cbl_place" Width="100%" RepeatColumns="4" runat="server"    >
   </asp:CheckBoxList>

</td>
 
</tr>
<tr>

<td>
    <asp:Button ID="Button3" style="border:solid 1px #888888;" Width=120 runat="server" Text="搜索" 
        onclick="Button3_Click" />

</td></tr>
 
</table>
		</fieldset>
</div>

  
  
  
  
  
  
  
  
  




    <asp:ListView ID="ListView1" runat="server" ItemContainerID="layoutTableTemplate" 
              DataKeyNames="id" onitemdatabound="ListView1_ItemDataBound"       >




    <LayoutTemplate>
         <asp:PlaceHolder runat="server" ID="itemPlaceholder"></asp:PlaceHolder>
     </LayoutTemplate>

   
    
    <ItemTemplate>
    
    
       
   <table border="0"  cellspacing="0" width="800px"   cellpadding="4" align="left">
    				<tr>
	   		 <td height="15" colspan="6" style="background:url(images/hr.gif) repeat-x"></td>
	   		</tr>
	   			
    				<tr>
    				<td colspan=6 align="right"> 
    				
    				
    					<asp:HiddenField runat="server" ID="process" Value=<%#Eval("process") %> />
    				 
    			 
  


                            <input type="button"       onclick=window.open('details.aspx?id=<%# Eval("id")%>')   class="submitBtn" style="CURSOR:hand"  value="查看 View" />
    				
    				 <input type="button"       onclick=window.open('editbook.aspx?id=<%# Eval("id")%>')   class="submitBtn" style="CURSOR:hand" value="更新 Update" />
    				
                          <input type="button"       onclick=window.open('delete.aspx?id=<%# Eval("id")%>')   class="submitBtn" style="CURSOR:hand"  value="取消 Cancel" />
    				
    				</td>
    				
    				</tr>
     <tr  align="left">
			 <td  width="30%"   colspan="2"><b>会议ID:</b> <%# Eval("id")%>
			 
			
		 	
			 
			 </td>
			 <td  width="40%" colspan="2"><b>预订者：(Booked By):</b> <%# Eval("username")%></td>
			  <td  width="*" colspan="2"><b>状态(Status:)</b> <asp:Label runat=server ID="lbl_process"></asp:Label></td>
			  
	</tr>
							
	   <tr>
	        <td height="1" colspan="6" style="background:url(images/search_08.gif) repeat-x"></td>
        </tr>
         
         
       <tr  align="left">
			 <td      colspan="3"><b>会议室( Room)：</b><%# Eval("roomname")%></td>
			 <td   colspan="3"><b>笔记本/投影仪：</b><%# Eval("pcname")%>/<%# Eval("projectorname")%></td>
			  
	</tr>
	
	
	
	  <tr>
	        <td height="1" colspan="6" style="background:url(images/search_08.gif) repeat-x"></td>
        </tr>
         
         
       <tr  align="left">
			 <td      colspan="3"><b>会议开始时间(Start)：</b><%# Eval("begintime")%></td>
			 <td    colspan="3"><b>会议结束时间(End)：</b><%# Eval("endtime")%></td>
			  
	</tr>
	   		
	   		
	   		
	   		
	   			  <tr>
	        <td height="1" colspan="6" style="background:url(images/search_08.gif) repeat-x"></td>
        </tr>
         
         
       <tr>
	        <td height="10" colspan="6" >&nbsp;</td>
        </tr>
	   		
	   		
 </table>
	
      
    </ItemTemplate>
    
    </asp:ListView>





<div class="blockheader" style="padding:10px;text-align: right;">
    <asp:DataPager ID="Pager" runat="server"  
                   PagedControlID="ListView1"  PageSize="20" >                       
        <Fields>
            <asp:numericpagerfield ButtonCount="10" NextPageText="..." 
                PreviousPageText="..." />
            <asp:nextpreviouspagerfield FirstPageText="First" LastPageText="Last" 
                NextPageText="Next" PreviousPageText="Previous" />
        </Fields>
    </asp:DataPager>
</div>





</asp:Content>
