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

<!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>Kontrolka Calendar</title>
</head>
<body>
   <form id="form1" runat="server">
   <div>
      <h1>Kontrolka Calendar</h1>
      <h2>Wicej moliwoci zaznacze</h2>
      <asp:Calendar ID="Calendar1" runat="server"
         OnSelectionChanged="Calendar1_SelectionChanged">
      </asp:Calendar>

      <br/>
      <asp:Label id="lblCount" runat="server" />
      <br/>
      <asp:Label id="lblTodaysDate" runat="server" />
      <br/>
      <asp:Label id="lblSelected" runat="server" />
      <br/>
      <table>
         <tr>
            <td>
               Wybierz miesic:
            </td>
            <td>
               <asp:DropDownList id= "ddl" runat="server"
                  AutoPostBack="true"
                  onSelectedIndexChanged = "ddl_SelectedIndexChanged">
                  <asp:ListItem text="Stycze" value="1" />
                  <asp:ListItem text="Luty" value="2" />
                  <asp:ListItem text="Marzec" value="3" />
                  <asp:ListItem text="Kwiecie" value="4" />
                  <asp:ListItem text="Maj" value="5" />
                  <asp:ListItem text="Czerwiec" value="6" />
                  <asp:ListItem text="Lipiec" value="7" />
                  <asp:ListItem text="Sierpie" value="8" />
                  <asp:ListItem text="Wrzesie" value="9" />
                  <asp:ListItem text="Padziernik" value="10" />
                  <asp:ListItem text="Listopad" value="11" />
                  <asp:ListItem text="Grudzie" value="12" />
               </asp:DropDownList>
            </td>
            <td>
               <asp:Button id="btnTgif" runat="server"
                  text="TGIF"
                  onClick="btnTgif_Click" />
            </td>
         </tr>
         <tr>
            <td colspan="2">&nbsp;</td>
         </tr>
         <tr>
            <td colspan="2"><b>Zakres dni</b></td>
         </tr>
         <tr>
            <td>Dzie pocztkowy</td>
            <td>Dzie kocowy</td>
         </tr>
         <tr>
            <td>
               <asp:TextBox id= "txtStart"  runat="server"
                  Width="25"
                  MaxLength="2" />
            </td>
            <td>
               <asp:TextBox id= "txtEnd" runat="server"
                  Width="25"
                  MaxLength="2" />
            </td>
            <td>
               <asp:Button id="btnRange" runat="server"
                  text="Zastosuj"
                  onClick="btnRange_Click" />
            </td>
         </tr>
      </table>
    </div>
    </form>
</body>
</html>
