<%@ Page Language="c#" Codebehind="HarmGodzinySzczegoly.aspx.cs" AutoEventWireup="True" Inherits="KOLKaP_WEB.KOLKaP.HarmGodzinySzczegoly" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>HarmGodzinySzczegoly</title>
  
  <meta name="CODE_LANGUAGE" content="C#" />
  <meta name="vs_defaultClientScript" content="JavaScript" />
  
  <link rel="stylesheet" type="text/css" href="../Web.css?2" />
  <style type="text/css">
    .datyOdDo {	FONT-STYLE: normal; FONT-FAMILY: Verdana, Tahoma, Arial; FONT-SIZE: 10pt}
    .daty {	FONT-STYLE: normal; FONT-FAMILY: Verdana, Tahoma, Arial; COLOR: green; FONT-SIZE: 12pt}
    .duzy {	FONT-STYLE: normal; FONT-FAMILY: Verdana, Tahoma, Arial; FONT-SIZE: 12pt}
    .normalny {	FONT-STYLE: normal; FONT-FAMILY: Verdana, Tahoma, Arial; FONT-SIZE: 10pt}
    .ramkaBledu {	BORDER-BOTTOM: red 2px solid; BORDER-LEFT: red 2px solid; PADDING-BOTTOM: 10px; MARGIN-TOP: 10px; PADDING-LEFT: 10px; PADDING-RIGHT: 10px; BACKGROUND: #fff; BORDER-TOP: red 2px solid; BORDER-RIGHT: red 2px solid; PADDING-TOP: 10px}
    .ramkaKomunikatu {	BORDER-BOTTOM: green 2px solid; BORDER-LEFT: green 2px solid; PADDING-BOTTOM: 10px; MARGIN-TOP: 10px; PADDING-LEFT: 10px; PADDING-RIGHT: 10px; BACKGROUND: #fff; BORDER-TOP: green 2px solid; BORDER-RIGHT: green 2px solid; PADDING-TOP: 10px}
  </style>
  <script language="javascript" type="text/javascript">
    /* <![CDATA[ */

    function ZrobPostBack(eventTarget, eventArgument) 
    {
	    var theform;
	    if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) 
	    {
		    theform = document.Form1;
	    }
	    else 
	    {
		    theform = document.forms["Form1"];
	    }
	    theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
	    theform.__EVENTARGUMENT.value = eventArgument;
	    theform.submit();
    }

    function PokazSprawdz()
    {
      if (document.getElementById("btnDodaj") == null && document.getElementById("btnZapisz") == null)
      {
        ZrobPostBack('ddlGodzinaOd','');
      }
    }
    /* ]]> */
  </script>
</head>
<body class="body" style="margin-left: 0px; margin-right: 0px; margin-top: 0px">
  <form id="Form1" method="post" runat="server">
    <input type="hidden" name="__EVENTTARGET" />
    <input type="hidden" name="__EVENTARGUMENT" />
    <div>
      <asp:Label ID="lblError" runat="server" EnableViewState="False"></asp:Label>
    </div>
    <div style="text-align: center; margin: 0px auto; width: 540px">
      <!-- Formatka do dodawania godin -->
      <div style="z-index: 3; border-bottom: #ddd 2px solid; text-align: left; border-left: #ddd 2px solid;
        padding-bottom: 10px; margin-top: 100px; padding-left: 10px; width: 500px; padding-right: 10px;
        background: #fff; border-top: #ddd 2px solid; border-right: #ddd 2px solid; padding-top: 10px">
        <div style="padding-bottom: 10px; padding-left: 10px; padding-right: 10px; font-family: Verdana, Tahoma, Arial;
          font-size: 12pt; font-weight: bold; padding-top: 10px">
          Godziny
        </div>
        <div style="padding-bottom: 10px; padding-left: 10px; padding-right: 10px; padding-top: 10px">
          <asp:Label ID="lblPrzedzialy" runat="server"></asp:Label>
        </div>
        <div style="padding-bottom: 10px; padding-left: 10px; padding-right: 10px; padding-top: 10px">
          Zakres godzin dla wybranych przedziałow
        </div>
        <div style="padding-bottom: 10px; padding-left: 10px; padding-right: 10px; padding-top: 10px">
          Od
          <asp:DropDownList ID="ddlGodzinaOd" runat="server" Enabled="False" OnChange="PokazSprawdz();"
            OnSelectedIndexChanged="ddlGodzina_SelectedIndexChanged">
            <asp:ListItem Value="01">01</asp:ListItem>
            <asp:ListItem Value="02">02</asp:ListItem>
            <asp:ListItem Value="03">03</asp:ListItem>
            <asp:ListItem Value="04">04</asp:ListItem>
            <asp:ListItem Value="05">05</asp:ListItem>
            <asp:ListItem Value="06">06</asp:ListItem>
            <asp:ListItem Value="07">07</asp:ListItem>
            <asp:ListItem Value="08">08</asp:ListItem>
            <asp:ListItem Value="09">09</asp:ListItem>
            <asp:ListItem Value="10">10</asp:ListItem>
            <asp:ListItem Value="11">11</asp:ListItem>
            <asp:ListItem Value="12">12</asp:ListItem>
            <asp:ListItem Value="13">13</asp:ListItem>
            <asp:ListItem Value="14">14</asp:ListItem>
            <asp:ListItem Value="15">15</asp:ListItem>
            <asp:ListItem Value="16">16</asp:ListItem>
            <asp:ListItem Value="17">17</asp:ListItem>
            <asp:ListItem Value="18">18</asp:ListItem>
            <asp:ListItem Value="19">19</asp:ListItem>
            <asp:ListItem Value="20">20</asp:ListItem>
            <asp:ListItem Value="21">21</asp:ListItem>
            <asp:ListItem Value="22">22</asp:ListItem>
            <asp:ListItem Value="23">23</asp:ListItem>
            <asp:ListItem Value="00">00</asp:ListItem>
          </asp:DropDownList>:
          <asp:DropDownList ID="ddlMinutyOd" runat="server" Enabled="False" OnChange="PokazSprawdz();"
            OnSelectedIndexChanged="ddlGodzina_SelectedIndexChanged">
          </asp:DropDownList>&nbsp;do
          <asp:DropDownList ID="ddlGodzinyDo" runat="server" Enabled="False" OnChange="PokazSprawdz();"
            OnSelectedIndexChanged="ddlGodzina_SelectedIndexChanged">
            <asp:ListItem Value="01">01</asp:ListItem>
            <asp:ListItem Value="02">02</asp:ListItem>
            <asp:ListItem Value="03">03</asp:ListItem>
            <asp:ListItem Value="04">04</asp:ListItem>
            <asp:ListItem Value="05">05</asp:ListItem>
            <asp:ListItem Value="06">06</asp:ListItem>
            <asp:ListItem Value="07">07</asp:ListItem>
            <asp:ListItem Value="08">08</asp:ListItem>
            <asp:ListItem Value="09">09</asp:ListItem>
            <asp:ListItem Value="10">10</asp:ListItem>
            <asp:ListItem Value="11">11</asp:ListItem>
            <asp:ListItem Value="12">12</asp:ListItem>
            <asp:ListItem Value="13">13</asp:ListItem>
            <asp:ListItem Value="14">14</asp:ListItem>
            <asp:ListItem Value="15">15</asp:ListItem>
            <asp:ListItem Value="16">16</asp:ListItem>
            <asp:ListItem Value="17">17</asp:ListItem>
            <asp:ListItem Value="18">18</asp:ListItem>
            <asp:ListItem Value="19">19</asp:ListItem>
            <asp:ListItem Value="20">20</asp:ListItem>
            <asp:ListItem Value="21">21</asp:ListItem>
            <asp:ListItem Value="22">22</asp:ListItem>
            <asp:ListItem Value="23">23</asp:ListItem>
            <asp:ListItem Value="00">00</asp:ListItem>
          </asp:DropDownList>:
          <asp:DropDownList ID="ddlMinutyDo" runat="server" Enabled="False" OnChange="PokazSprawdz();"
            OnSelectedIndexChanged="ddlGodzina_SelectedIndexChanged">
          </asp:DropDownList>
        </div>
        <div style="padding-bottom: 10px; padding-left: 10px; padding-right: 10px; padding-top: 10px">
          <span>Rodzaj</span>
          <asp:DropDownList ID="ddlGodziny" runat="server" Enabled="False" Width="100%" DataSource="<%# dsHarmonogram %>"
            DataMember="S_GODZIN_LIST" DataValueField="ID_GODZINY" DataTextField="KOD_NAZWA"
            OnChange="PokazSprawdz();" OnSelectedIndexChanged="ddlGodzina_SelectedIndexChanged">
          </asp:DropDownList>
        </div>
        <div style="padding-bottom: 10px; padding-left: 10px; padding-right: 10px; padding-top: 10px">
          <div style="float: left">
            <asp:Button ID="btnPowrot" runat="server" Width="100px" Text="Powrót" CssClass="aspButtonNew"
              OnClick="btnPowrot_Click"></asp:Button>
          </div>
          <div style="float: right">
            <asp:Button ID="btnZapisz" runat="server" Width="100px" Text="Zapisz" CssClass="aspButtonNew"
              Visible="False" OnClick="btnZapisz_Click"></asp:Button><asp:Button ID="btnDodaj"
                runat="server" Width="100px" Text="Dodaj" CssClass="aspButtonNew" Visible="False"
                OnClick="btnDodaj_Click"></asp:Button><asp:Button ID="btnUsun" runat="server" Width="100px"
                  Text="Usuń" CssClass="aspButtonNew" Visible="False" OnClick="btnUsun_Click"></asp:Button><asp:Button
                    ID="btnDodajPomimo" runat="server" Width="200px" Text="Dodaj pomimo ostrzeżeń"
                    CssClass="aspButtonNew" Visible="False" OnClick="btnDodajPomimo_Click"></asp:Button><asp:Button
                      ID="btnZapiszPomimo" runat="server" Text="Zapisz pomimo ostrzeżeń" CssClass="aspButtonNew"
                      Width="200px" Visible="False" OnClick="btnZapiszPomimo_Click"></asp:Button>
          </div>
        </div>
        <div style="padding-bottom: 0px; padding-left: 10px; padding-right: 10px; clear: left; padding-top: 10px">
          <asp:Label ID="lblWynik" runat="server" EnableViewState="False"></asp:Label>
        </div>
      </div>
    </div>
  </form>
</body>
</html>
