<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    &nbsp;
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        SelectCommand="SELECT [tytul], [Expr1], [ISBN], [liczbaStron], [promocja], [cena], [opis] FROM [View1]">
    </asp:SqlDataSource>
    &nbsp;
    <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" CellPadding="4"
        DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None" Height="50px"
        Visible="False" Width="1002px" Font-Size="10pt">
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <CommandRowStyle BackColor="#E2DED6" Font-Bold="True" />
        <EditRowStyle BackColor="#999999" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <Fields>
            <asp:BoundField DataField="tytul" HeaderText="tytuł" SortExpression="tytul" />
            <asp:BoundField DataField="Expr1" HeaderText="autorzy" SortExpression="Expr1" />
            <asp:BoundField DataField="ISBN" HeaderText="ISBN" SortExpression="ISBN" />
            <asp:BoundField DataField="liczbaStron" HeaderText="liczba stron" SortExpression="liczbaStron" />
            <asp:BoundField DataField="promocja" HeaderText="promocja" SortExpression="promocja" />
            <asp:BoundField DataField="cena" HeaderText="cena" SortExpression="cena" />
            <asp:BoundField DataField="opis" HeaderText="opis" SortExpression="opis" />
        </Fields>
        <FieldHeaderStyle BackColor="#E9ECF1" Font-Bold="True" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
    </asp:DetailsView>
    &nbsp;&nbsp;
    <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Zamknij" Visible="False" />
    &nbsp;<asp:Button ID="Button2" runat="server" Text="Dodaj do koszyka" Visible="False" OnClick="Button2_Click" />
    &nbsp;&nbsp;
    <br />
    <br />
    <strong><span style="font-size: 10pt">
    Lista tytułów dostępnych obecnie w naszym sklepie internetowym:</span></strong><br />
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
        CellPadding="4" DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="Horizontal" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" Font-Size="10pt" Width="1002px" OnPageIndexChanged="GridView1_PageIndexChanged" OnPageIndexChanging="GridView1_PageIndexChanging">
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <Columns>
            <asp:CommandField SelectText="wybierz" ShowSelectButton="True" />
            <asp:BoundField DataField="tytul" HeaderText="tytuł" SortExpression="tytul" />
            <asp:BoundField DataField="Expr1" HeaderText="autorzy" SortExpression="Expr1" />
            <asp:BoundField DataField="liczbaStron" HeaderText="strony" SortExpression="liczbaStron" />
            <asp:BoundField DataField="promocja" HeaderText="promocja" SortExpression="promocja" />
            <asp:BoundField DataField="cena" HeaderText="cena" SortExpression="cena" />
        </Columns>
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <EditRowStyle BackColor="#999999" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
    </asp:GridView>
    <span style="font-size: 10pt">
    Liczba wyświetlanych wyników na stronę:</span>
    <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
        <asp:ListItem>2</asp:ListItem>
        <asp:ListItem>3</asp:ListItem>
        <asp:ListItem>5</asp:ListItem>
        <asp:ListItem Selected="True">10</asp:ListItem>
        <asp:ListItem>15</asp:ListItem>
        <asp:ListItem>20</asp:ListItem>
        <asp:ListItem>25</asp:ListItem>
    </asp:DropDownList>
    &nbsp;&nbsp;&nbsp;<br />
    <br />
    <span style="font-size: 10pt">Jeżeli nie posiadasz konta w naszym serwisie zarejestruj
        się
        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Rejestracja.aspx">tutaj</asp:HyperLink>.</span>&nbsp;<br />
</asp:Content>

