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

 

 


  
 <asp:ListView ID="lv_lists" runat="server" 
    ItemContainerID="layoutTableTemplate"  
    DataKeyNames="id" 
 
    onitemdatabound="lv_lists_ItemDataBound" 
 >
 
 
    <LayoutTemplate>
 
   <table  cellpadding="2" cellspacing="3" style=" border:solid 1px #f0f0f0; border-collapse:collapse;  ">
 
        
    <asp:PlaceHolder runat="server" ID="itemPlaceholder"></asp:PlaceHolder>
         
    
	
 </table>
  </LayoutTemplate>
     
  
   
    <ItemTemplate>



	<tr>
	   		 <td height="15" colspan="6" style="background:url(images/hr.gif) repeat-x"></td>
	   		</tr>
	   			
    				<tr>
    				<td colspan=6 align="right"> 
    				
    				
                     


                            <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 ID="lbl_process" runat="server" Text=""></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>
	   		
	   		
	   		
    </ItemTemplate>


  

</asp:ListView>   
 <asp:DataPager ID="DataPager1"  PagedControlID="lv_lists" runat="server" PageSize=10>
 <Fields>
            <asp:numericpagerfield ButtonCount="10" NextPageText="..." 
                PreviousPageText="..." />
            <asp:nextpreviouspagerfield FirstPageText="First" LastPageText="Last" 
                NextPageText="Next" PreviousPageText="Previous" />
        </Fields>
</asp:DataPager>
