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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="MenuContent" ContentPlaceHolderID="CPHMain" runat="server">
    
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    <asp:Panel ID="PanelItemDetails" runat="server" CssClass="panel">    
    <asp:DetailsView ID="DetailsView1" runat="server" Height="50px" Width="500px" 
        AutoGenerateRows="False" DataSourceID="ItemSqlDataSource" CssClass="gw">        
        <FooterStyle CssClass="gwFooter" />
        <RowStyle CssClass="gwRStyle" />
        <FooterTemplate>
            <table class="style3">
                <tr>
                    <td class="style4">
                        <asp:SliderExtender ID="SliderExtender1" runat="server" BoundControlID="DbLabel" EnableHandleAnimation="True" Length="40" Minimum="1" Maximum="20" TargetControlID="TextBox1">
                        </asp:SliderExtender>
                        <asp:TextBox ID="TextBox1" runat="server" Width="16px" Font-Size="Medium"></asp:TextBox>
                        <asp:Label ID="DbLabel" runat="server" Font-Size="Medium"></asp:Label>
                        &nbsp;</td>
                    <td align="left" class="style5">
                        <asp:ImageButton ID="ImageButtonKosarba" runat="server" 
                            ImageUrl="~/kep/kosar.JPG" ToolTip="Kosárba!" 
                            onclick="NoteszbeImageButton_Click" />
                    </td>
                    <td align="right">
                        <asp:HyperLink ID="VisszaHyperLink" runat="server" NavigateUrl="~/Menu.aspx" Text="Vissza" Font-Size="Medium"></asp:HyperLink>
                    </td>
                </tr>
            </table>
        </FooterTemplate>        
        <Fields>
            <asp:BoundField DataField="ETLAPID" HeaderText="ETLAPID" ReadOnly="True" 
                SortExpression="ETLAPID" Visible="False" />
            <asp:BoundField DataField="ENEV" HeaderText="A kiválasztott fogás neve:" 
                ReadOnly="True" SortExpression="ENEV" />
            <asp:BoundField DataField="LEIRAS" HeaderText="Részletek az fogásról:" 
                ReadOnly="True" SortExpression="LEIRAS" />
            <asp:BoundField DataField="AR" HeaderText="Ár:" ReadOnly="True" 
                SortExpression="AR" />
            <asp:BoundField DataField="VTIPUSNEV" HeaderText="Vegetáriánustípus:" 
                ReadOnly="True" SortExpression="VTIPUSNEV" />
            <asp:BoundField DataField="ETNEV" HeaderText="ETNEV" ReadOnly="True" 
                SortExpression="ETNEV" Visible="False" />
        </Fields>
        <HeaderStyle CssClass="gwHeader" />
    </asp:DetailsView>   
    </asp:Panel> 
    <asp:SqlDataSource ID="ItemSqlDataSource" runat="server" 
        ConnectionString="<%$ ConnectionStrings:VCS %>" 
        ProviderName="<%$ ConnectionStrings:VCS.ProviderName %>"         
        SelectCommand="SELECT ETLAP.ETLAPID, ETLAP.ENEV, ETLAP.LEIRAS, ETLAP.AR, VEGA_TIPUS.VTIPUSNEV, ETEL_TIPUS.ETNEV FROM ETLAP INNER JOIN ETEL_TIPUS ON ETLAP.ETIPUS = ETEL_TIPUS.ETID INNER JOIN VEGA_TIPUS ON ETLAP.VTIPUS = VEGA_TIPUS.VTID WHERE (ETLAP.ETLAPID = :EtlapID)">
        <SelectParameters>
        <asp:QueryStringParameter Name="ETLAPID" QueryStringField="EtlapID"/>
        </SelectParameters>
    </asp:SqlDataSource>

</asp:Content>
<asp:Content ID="Content1" runat="server" contentplaceholderid="head">

    <style type="text/css">
        .style3
        {
            width: 400px;
        }
        .style4
        {
            width: 90px;
            font-size:medium;
        }
        .style5
        {
            width: 11px;
        }
    </style>

    </asp:Content>
