<%@ Page Language="C#" AutoEventWireup="true" CodeFile="WebPartTester.aspx.cs" Inherits="WebPartTester" Theme="WebPartDemo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
   <title>Proste testowanie składników Web Part</title>
   <link href="chapterStyles.css" type="text/css" rel="stylesheet"  />
</head>
<body id="body1" runat="server" >
   <form id="form1" runat="server">
      <asp:WebPartManager ID="partManager" runat="server" />
      <div id="container">
         <div id="header">
            <div id="logo">
               <asp:Image runat="server" ID="imgLogo" SkinID="logo" />
            </div>
         </div>
         <div id="sideArea">
            <asp:WebPartZone ID="zoneSide" runat="server" 
            ShowTitleIcons="true" HeaderText="Strefa 1" BorderColor="#CCCCCC" Font-Names="Verdana" Padding="6" PartChromeType="TitleAndBorder" TitleBarVerbButtonType="Link" >

            <ZoneTemplate>
               
               <asp:BulletedList ID="blstSample" runat="server" title="Menu główne" >
                  <asp:ListItem Value="BookHome.aspx">Home</asp:ListItem>
                  <asp:ListItem Value="Products.aspx">Products</asp:ListItem>
                  <asp:ListItem Value="About.aspx">About</asp:ListItem>
                  <asp:ListItem Value="ViewWishList.aspx">View WishList</asp:ListItem>
               </asp:BulletedList>
               
                  <asp:LoginView ID="logView" runat="server">
                     <AnonymousTemplate>
                        <asp:Login ID="logSignin" runat="server" DisplayRememberMe="False" BackColor="#E3EAEB" 
                           BorderColor="#E6E2D8" BorderPadding="4" BorderStyle="Solid" BorderWidth="1px"
                           Font-Names="Verdana"  ForeColor="#333333" TextLayout="TextOnTop">
                           <TitleTextStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                           <InstructionTextStyle Font-Italic="True" ForeColor="Black" />
                           <TextBoxStyle  />
                           <LoginButtonStyle BackColor="White" BorderColor="#C5BBAF" BorderStyle="Solid" BorderWidth="1px"
                              Font-Names="Verdana"  ForeColor="#1C5E55" />
                        </asp:Login>
                     </AnonymousTemplate>
                     <LoggedInTemplate>
                        <asp:LoginName ID="logName" runat="server" FormatString="Witaj {0}" /><br/>
                        <asp:LoginStatus ID="logStatus" runat="server" />
                     </LoggedInTemplate>
                  </asp:LoginView>                
            </ZoneTemplate>
               <PartChromeStyle BackColor="#E3EAEB" BorderColor="#C5BBAF" Font-Names="Verdana" ForeColor="#333333" />
               <MenuLabelHoverStyle ForeColor="Yellow" />
               <EmptyZoneTextStyle Font-Size="0.8em" />
               <MenuLabelStyle ForeColor="#333333" />
               <MenuVerbHoverStyle BackColor="#E3EAEB" BorderColor="#CCCCCC" BorderStyle="Solid"
                  BorderWidth="1px" ForeColor="#333333" />
               <HeaderStyle Font-Size="0.7em" ForeColor="#CCCCCC" HorizontalAlign="Center" />
               <MenuVerbStyle BorderColor="#1C5E55" BorderStyle="Solid" BorderWidth="1px" ForeColor="White" />
               <PartStyle Font-Size="0.8em" ForeColor="#333333" />
               <TitleBarVerbStyle Font-Size="0.6em" Font-Underline="False" ForeColor="White" />
               <MenuPopupStyle BackColor="#1C5E55" BorderColor="#CCCCCC" BorderWidth="1px" Font-Names="Verdana"
                  Font-Size="0.6em" />
               <PartTitleStyle BackColor="#1C5E55" Font-Bold="True" Font-Size="0.8em" ForeColor="White" />
            

            </asp:WebPartZone>            
         </div>
         <div id="mainArea">
            <asp:WebPartZone ID="zoneMain" runat="server" BorderColor="#CCCCCC" Font-Names="Verdana" Padding="6">
               <ZoneTemplate>
   <asp:GridView ID="grdSample" runat="server" DataSourceID="dsBooks" title="Najnowsze książki"
      AutoGenerateColumns="False"
      AllowPaging="True" PageSize="4" 
      EnableSortingAndPagingCallbacks="True" 
      ShowHeader="False">
      <Columns>
         <asp:ImageField DataImageUrlField="Isbn" DataImageUrlFormatString="images/{0}.gif"
            DataAlternateTextField="Title" DataAlternateTextFormatString="Okładka {0}"
            ReadOnly="True" />
         <asp:HyperLinkField HeaderText="Tytuł" DataTextField="Title" DataNavigateUrlFormatString="BookDetails.aspx?id={0}"
            DataNavigateUrlFields="Isbn" />
      </Columns>
     
   </asp:GridView>
               </ZoneTemplate>
               <PartChromeStyle BackColor="#E3EAEB" BorderColor="#C5BBAF" Font-Names="Verdana" ForeColor="#333333" />
               <MenuLabelHoverStyle ForeColor="Yellow" />
               <EmptyZoneTextStyle Font-Size="0.8em" />
               <MenuLabelStyle ForeColor="#333333" />
               <MenuVerbHoverStyle BackColor="#E3EAEB" BorderColor="#CCCCCC" BorderStyle="Solid"
                  BorderWidth="1px" ForeColor="#333333" />
               <HeaderStyle Font-Size="0.7em" ForeColor="#CCCCCC" HorizontalAlign="Center" />
               <MenuVerbStyle BorderColor="#1C5E55" BorderStyle="Solid" BorderWidth="1px" ForeColor="White" />
               <PartStyle Font-Size="0.8em" ForeColor="#333333" />
               <TitleBarVerbStyle Font-Size="0.6em" Font-Underline="False" ForeColor="White" />
               <MenuPopupStyle BackColor="#1C5E55" BorderColor="#CCCCCC" BorderWidth="1px" Font-Names="Verdana"
                  Font-Size="0.6em" />
               <PartTitleStyle BackColor="#1C5E55" Font-Bold="True" Font-Size="0.8em" ForeColor="White" />
            </asp:WebPartZone>

         </div>
         <div id="footer">
            <p>
               Ta strona nie jest prawdziwa. Jest jedynie przykładem z książki o ASP.NET wydawnictwa Helion.</p>
         </div>
      </div>
   <asp:SqlDataSource ID="dsBooks" runat="server" ProviderName="System.Data.SqlClient"
      ConnectionString="<%$ ConnectionStrings:BookCatalog %>" SelectCommand="SELECT TOP 3 ISBN,Title,PublisherName,YearPublished FROM Books INNER JOIN Publishers ON Books.PublisherId=Publishers.PublisherId" />
      
   </form>
</body>
</html>
