<%@ Page Language="c#" CodeBehind="AdmZatrudnienieFiltry.aspx.cs" AutoEventWireup="True" Inherits="KOLKaP_WEB.KOLKaP.AdmZatrudnienieFiltry" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
    <title>AdmZatrudnienieFiltry</title>
    <meta content="C#" name="CODE_LANGUAGE" />
    <meta content="JavaScript" name="vs_defaultClientScript" />
    <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>
    <script type="text/javascript" language="JavaScript">
        function resize_iframe() {
            var height = window.innerWidth;//Firefox
            if (document.body.clientHeight) {
                height = document.body.clientHeight;//IE
            }
            document.getElementById("Panel").style.height = parseInt(height - document.getElementById("Panel").offsetTop - 8) + "px";
        }
    </script>
</head>
<body class="Body" onload="resize_iframe()" onresize="resize_iframe()" oncontextmenu="return false" style="margin: 0px; padding: 0px">
    <form id="Form1" method="post" runat="server" style="margin: 0px; padding: 0px">
        <table class="bodyLRT0" cellspacing="0" cellpadding="0" width="100%" border="0">
            <tr>
                <td colspan="5" align="left">
                    <div runat="server" id="divNaglowek">
                    </div>
                </td>
            </tr>
            <!-- <tr>
        <td colspan="5">
          <asp:Label ID="lblOpis" runat="server" Font-Size="Medium" Font-Bold="True" style="visibility:hidden"></asp:Label>
        </td>
      </tr>-->
            <tr>
                <td colspan="5">
                    <asp:Label ID="lblError" runat="server"></asp:Label></td>
            </tr>
            <tr>
                <td style="width: 25%" valign="bottom">
                    <small>
                        <asp:Label ID="lblNazwisko" runat="server">Nazwisko</asp:Label></small>
                    <asp:TextBox ID="tbNazwisko" Width="100%" runat="server"></asp:TextBox>
                </td>
                <td colspan="2" style="width: 30%" valign="bottom">
                    <small>
                        <asp:Label ID="lblImie" runat="server">Imię</asp:Label></small>
                    <asp:TextBox ID="tbImie" Width="100%" runat="server"></asp:TextBox>
                </td>
                <td colspan="1"></td>
            </tr>
            <tr>
                <td style="width: 25%" valign="bottom">
                    <small>Jednostka</small><br />
                    <asp:DropDownList ID="ddlJednostka" runat="server" Width="100%"></asp:DropDownList>
                </td>
                <td style="width: 15%" valign="bottom">
                    <small>od (rrrr-mm-dd)</small>
                    <asp:TextBox ID="tbDataOd" Width="80%" runat="server"></asp:TextBox>
                </td>
                <td style="width: 15%" valign="bottom">
                    <small>do (rrrr-mm-dd)</small>
                    <asp:TextBox ID="tbDataDo" Width="80%" runat="server"></asp:TextBox>
                </td>
                <td style="width: 30%" valign="bottom">
                    <small>Status</small>
                    <asp:DropDownList ID="ddlStatus" Width="100%" runat="server">
                        <asp:ListItem Value="0" Selected="True">-Wybierz status-</asp:ListItem>
                        <asp:ListItem Value="WPR">Wprowadzony</asp:ListItem>
                        <asp:ListItem Value="ZAT">Zatrudniony</asp:ListItem>
                        <asp:ListItem Value="AKC">Zaakceptowane</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td style="width: 15%; text-align: right" valign="bottom">
                    <small></small>
                    <br />
                    <asp:LinkButton ID="btnOdswiez" runat="server" Text="Odśwież" Width="90px" CssClass="aspButton"
                        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 == "zatrudnienie") {
                        el.outerHTML = "<div style= \" height:53; width:350;"
                                        + " filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'../img/WnioskiOZatrudnienie.png\'); \"> "
                                        + "</div>";
                    }
                    else {
                        el.outerHTML = "<div style= \" height:53; width:400;"
                                        + " filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'../img/WnioskiOUtworzenieNowegoStanowiska.png\'); \"> "
                                        + "</div>";;
                    }
                }
            }

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

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