<%@ Page Language="c#" Codebehind="AdmWspFiltry.aspx.cs" AutoEventWireup="True" Inherits="KOLKaP_WEB.KOLKaP.AdmWspFiltry" Culture="pl-PL" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
    <title>AdmWspFiltry</title>
    
    <meta name="CODE_LANGUAGE" content="C#" />
    <meta name="vs_defaultClientScript" content="JavaScript" />
    <meta http-equiv="X-UA-Compatible" content="IE=5" />
    
    <link href="../Web.css?2" type="text/css" rel="stylesheet" />
  <link rel="stylesheet" href="../jquery/themes/ui-lightness/jquery-ui-1.9.2.custom.min.css" />

  <script src="../jquery/jquery-1.8.3.min.js" type="text/javascript"></script>

  <script src="../jquery/ui/jquery-ui-1.9.2.custom.min.js" type="text/javascript"></script>

  <script type="text/javascript" src="../jquery/ui/i18n/jquery.ui.datepicker-pl.js"></script>

  <script type="text/javascript" language="javascript">
    $(function(){
      $('#tbDataOd').datepicker({dateFormat: 'yy-mm-dd', changeMonth: true,	changeYear: true, showAnim: '', yearRange: '1970:2060', showOn: 'button', buttonImage: '../img/calendar.gif', buttonImageOnly: true});
      $('#tbDataDo').datepicker({dateFormat: 'yy-mm-dd', changeMonth: true,	changeYear: true, showAnim: '', yearRange: '1970:2060', showOn: 'button', buttonImage: '../img/calendar.gif', buttonImageOnly: true});
      
      $( "#tbDataOd" ).datepicker( "option", "dateFormat", 'yy-mm-dd' );
      $("#tbDataDo").datepicker("option", "dateFormat", 'yy-mm-dd');

      $("#btnOdswiez").button({ icons: { primary: 'ui-icon-refresh' } });
    });
  </script>
  <style type="text/css">
    .ui-datepicker SELECT.ui-datepicker-month-year { WIDTH: 100% }
    .ui-datepicker SELECT.ui-datepicker-month { WIDTH: 35% }
    .ui-datepicker SELECT.ui-datepicker-year { WIDTH: 35% }
  </style>
</head>
<body class="Body" oncontextmenu="return false" style="margin:0px; padding:0px">
    <form id="Form1" method="post" runat="server" style="margin:0px; padding:0px">
        <table class="Body" cellspacing="0" cellpadding="0" width="100%" border="0">
            <tr>
                <td colspan="6">
                  <div runat="server" id="divNaglowek"></div>  
                </td>
            </tr>
            <tr>
                <td colspan="6">
                    <asp:Label ID="lblOpis" runat="server" Font-Size="Medium" Font-Bold="True" Visible="false"></asp:Label></td>
            </tr>
            <tr>
                <td colspan="6">
                    <asp:Label ID="lblError" runat="server"></asp:Label></td>
            </tr>
            <tr>
                <td style="width:17%" valign="bottom">
                    <small>Nazwisko</small><asp:TextBox ID="tbNazwisko" Width="100%" runat="server"></asp:TextBox></td>
                <td style="width:17%" valign="bottom">
                    <small>Imię</small>
                    <asp:TextBox ID="tbImie" Width="100%" runat="server"></asp:TextBox></td>
                <td style="width:17%" valign="bottom">
                    <small>Pesel</small><asp:TextBox ID="tbPesel" Width="100%" runat="server"></asp:TextBox></td>
                <td style="width:17%" valign="bottom">
                    <small><asp:Label ID="lblDataOd" runat="server">Od (rrrr-mm-dd)</asp:Label></small><br />
                    <asp:TextBox ID="tbDataOd" Width="80%" runat="server"></asp:TextBox></td>
                <td style="width:17%" valign="bottom">
                    <small><asp:Label ID="lblDataDo" runat="server">Do (rrrr-mm-dd)</asp:Label></small><br />
                    <asp:TextBox ID="tbDataDo" Width="80%" runat="server"></asp:TextBox></td>
                <td style="width:15%" valign="bottom">
                    <asp:CheckBox ID="cbAktualneUmowy" runat="server" Text="Aktualne umowy" Checked="True">
                    </asp:CheckBox>
                </td>
            </tr>
            <tr>
                <td colspan="3" valign="bottom">
                    <asp:Label ID="lblJednostka" runat="server">
              <small>Jednostka</small></asp:Label>
                    <asp:DropDownList ID="ddlJednostka" runat="server" Width="100%">
                    </asp:DropDownList></td>
                <td valign="bottom" colspan="2">
                    <small>Status</small><br />
                    <asp:DropDownList ID="ddlStatus" runat="server" Width="100%">
                    </asp:DropDownList></td>
                <td align="right" valign="bottom">
                    <asp:LinkButton ID="btnOdswiez" runat="server" Width="90px" Text="Odśwież" CssClass="Button"
                        OnClick="btnOdswiez_Click"></asp:LinkButton></td>
            </tr>
        </table>
        <script type="text/javascript" language="javascript">
		      var arVersion = navigator.appVersion.split("MSIE")
          var version = parseFloat(arVersion[1])

          function fixPNG(imgPNG) 
          {
            if ((version >= 5.5) && (version < 7) && (document.body.filters)) 
            {
              el = document.getElementById('imgPNG');
              if (document.getElementById('imgPNG').name == "zmiana")
              {
                el.outerHTML = "<div style= \" height:53; width:400;"
                            + " filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'../img/WnioskiOZmianęWarunkowZatrudnienia.png\'); \"> "
                            +"</div>";
              }
              else if (document.getElementById('imgPNG').name == "kara")
              {
                el.outerHTML = "<div style= \" height:53; width:200;"
                            + " filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'../img/WnioskiONagrode.png\'); \"> "
                            +"</div>";
              }
              else if (document.getElementById('imgPNG').name == "wypowiedzenie")
              {
                el.outerHTML = "<div style= \" height:53; width:550;"
                            + " filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'../img/WnioskiOWypowiedzenieRozwiązanieUmowyOPrace.png\'); \"> "
                            +"</div>";
              }
              else if (document.getElementById('imgPNG').name == "przedluzenie")
              {
                el.outerHTML = "<div style= \" height:53; width:400;"
                            + " filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'../img/WnioskiOPrzedłuzenieUmowOPrace.png\'); \"> "
                            +"</div>";
              }
              else if (document.getElementById('imgPNG').name == "zmiana_cp")
              {
                el.outerHTML = "<div style= \" height:53; width:550;"
                            + " filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'../img/WnioskiOZmianeWarunkowZatrudnieniaDlaUmowCP.png\'); \"> "
                            +"</div>";
              }
              else if (document.getElementById('imgPNG').name == "rozwiazanie_cp")
              {
                el.outerHTML = "<div style= \" height:53; width:500;"
                            + " filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'../img/WnioskiOWypowiedzenieRozwiązanieUmowyCP.png\'); \"> "
                            +"</div>";
              }
              else if (document.getElementById('imgPNG').name == "rozwiazanie_zl")
              {
                el.outerHTML = "<div style= \" height:53; width:550;"
                            + " filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'../img/WnioskiOWypowiedzenieRozwiązanieUmowyZlecenie.png\'); \"> "
                            +"</div>";
              }
              else if (document.getElementById('imgPNG').name == "zmiana_limitow")
              {
                el.outerHTML = "<div style= \" height:53; width:300;"
                            + " filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'../img/WnioskiOZmianeLimitow.png\'); \"> "
                            +"</div>";
              }
            }
          }

          document.getElementById('imgPNG').onload = function e()
	        {
    		    fixPNG('imgPNG');
  	      }

        </script>
    
        <iframe id="Panel" name="Panel" src="AdmWspLista.aspx" frameborder="0" width="100%"
            height="80%" runat="server"></iframe>
    </form>
</body>
</html>
