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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Testowanie kontrolki Panel</title>
    <link href="chapterStyles.css" type="text/css" rel="stylesheet" />
    <style type="text/css">
      dl { margin: 0.25em 0; }
      dt { float:left; clear:left; width: 6em; padding: 0.5em; text-align:right;}
      dd { text-align:left;padding: 0.5em; }
      
      dt#item { float:left; clear:left; width: 6em; padding: 0.5em 0.5em 0 0.5em; text-align:left;}
      dd#price { text-align:right;padding: 0.5em 0.5em 0 0.5em; }
            
      fieldset { border: #CCCCCC solid 1px; padding: 0.5em; }
      legend { font: 11pt Verdana, sans serif; font-weight: bold; 
               color: #666666; border: #CCCCCC solid 1px; 
               margin-top: 1em; margin-bottom: 1em; padding: 0.25em; }
      label { font-weght: bold; }
      div#left
      {
         float: left;
         width: 27em;
         margin: 1em 0em;
         padding-right: 1em;
      }
      
      div#right
      {
         margin-left: 27em;   
         padding: 1em 1em 1em 0;
      }      
    </style>
</head>
<body>
<form id="form1" runat="server">
<div id="left">
   <asp:Panel ID="panPizza" runat="server" Width="26em" GroupingText="Formularz zamówienia pizzy">
      <dl>
         <dt><asp:Label ID="labCustomer" runat="server" Text="Klient" AssociatedControlID="txtCustomer" AccessKey="K"/></dt><dd><asp:TextBox ID="txtCustomer" runat="server" /></dd><dt><asp:Label ID="labPhone" runat="server" Text="Telefon" AssociatedControlID="txtPhone"/></dt><dd><asp:TextBox ID="txtPhone" runat="server"  Columns="10"/></dd><dt><asp:Label ID="labDelivery" runat="server" Text="Dostawa" AssociatedControlID="chkDelivery"/></dt><dd><asp:CheckBox ID="chkDelivery" runat="server"  AutoPostBack="True"/></dd><dt><asp:Label ID="labAddress" runat="server" Text="Adres" AssociatedControlID="txtAddress"/></dt><dd><asp:TextBox ID="txtAddress" runat="server" Columns="30"/></dd><dt><asp:Label ID="labSize" runat="server" Text="Rozmiar" AssociatedControlID="drpSize"/></dt><dd><asp:DropDownList ID="drpSize" runat="server" AutoPostBack="True">
               <asp:ListItem Value="W">Wybierz rozmiar</asp:ListItem>
               <asp:ListItem Value="M">Mała</asp:ListItem>
               <asp:ListItem Value="S">Średnia</asp:ListItem>
               <asp:ListItem Value="D">Duża</asp:ListItem>
            </asp:DropDownList>
         </dd>

         <dt><asp:Label ID="labToppings" runat="server" Text="Dodatki" AssociatedControlID="clstToppings"/></dt><dd><asp:CheckBoxList ID="clstToppings" runat="server" AutoPostBack="True"  >
               <asp:ListItem Value="0">Szynka</asp:ListItem>
               <asp:ListItem Value="1">Pepperoni</asp:ListItem>
               <asp:ListItem Value="2">Dodatkowy ser</asp:ListItem>
               <asp:ListItem Value="3">Pieczarki</asp:ListItem>
               <asp:ListItem Value="4">Zielony pieprz</asp:ListItem>
            </asp:CheckBoxList>     
         </dd>
         
         <dt><asp:Label ID="labCrust" runat="server" Text="Ciasto" AssociatedControlID="rlstCrust"/></dt><dd><asp:RadioButtonList ID="rlstCrust" runat="server" AutoPostBack="True" >
               <asp:ListItem Selected="True">Normalne</asp:ListItem>
               <asp:ListItem>Cienkie</asp:ListItem>
               <asp:ListItem>Grube</asp:ListItem>
            </asp:RadioButtonList>   
         </dd>     
      </dl>
   </asp:Panel>
</div>   
<div id="right">
   <asp:Panel ID="panPricing" runat="server" Width="18em" GroupingText="Cena">
      <asp:Literal ID="litPricing" runat="server" />
      <p>
      <asp:Button ID="btnOrder" runat="server" Text="Zamów pizzę" OnClick="btnOrder_Click" />
      </p>
   </asp:Panel>
   <asp:Panel ID="panOrder" runat="server" GroupingText="Końcowe zamówienie" Width="18em">
    <asp:Label ID="labOrder" runat="server" />
   </asp:Panel>
</div>
</form>
</body>
</html>
