<%@ Page Title="" Language="C#" MasterPageFile="~/VEtterem.Master" AutoEventWireup="true"
    CodeBehind="Cart.aspx.cs" Inherits="VEtterem.Cart" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CPHMain" runat="server">
    <div>
        <asp:Panel ID="PanelKosar" runat="server" CssClass="panel">
            <asp:GridView ID="KosarGridView" runat="server" AutoGenerateColumns="false" EmptyDataText="A kosár jelenleg üres."
                GridLines="None" ShowFooter="true" DataKeyNames="EID" OnRowCommand="KosarGridView_RowCommand"
                OnRowDataBound="KosarGridView_RowDataBound" ForeColor="White" 
                CssClass="gw">
                <RowStyle BackColor="#8BAF3A" HorizontalAlign="Center" />
                <Columns>
                    <asp:BoundField DataField="Nev" HeaderText="Fogás" />
                    <asp:TemplateField HeaderText="Mennyiség">
                        <ItemTemplate>
                            <asp:TextBox runat="server" ID="DbTextBox" Text='<%# Eval("Mennyiseg") %>' Width="15px"
                                MaxLength="2" AutoPostBack="False"></asp:TextBox>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="Ar" HeaderText="Ár" />
                    <asp:BoundField DataField="ReszOsszeg" HeaderText="Összesen" />
                    <asp:TemplateField HeaderText="">
                        <ItemTemplate>
                            <asp:ImageButton runat="server" ID="TorolImageButton" CommandName="Torol" CommandArgument='<%# Eval("EID") %>'
                                ToolTip="Fogás törlése a kosárból" ImageUrl="~/kep/kosar_x.JPG"></asp:ImageButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <FooterStyle Font-Bold="True" ForeColor="#485C18" />
                <HeaderStyle ForeColor="#485C18" />
                <AlternatingRowStyle BackColor="#485C18" />
            </asp:GridView>
            <asp:Label ID="NemVagyBJLabel" runat="server" ForeColor="Red" Visible="False"></asp:Label>
            <br />
            <asp:Button runat="server" ID="FrissitButton" Text="Frissít" OnClick="FrissitButton_Click" />
            <asp:Button ID="RendelesButton" runat="server" Text="Tovább a megrendeléshez-&gt;"
                OnClick="RendelesButton_Click" />
        </asp:Panel>
    </div>
</asp:Content>
