<%@ Page Language="c#" Codebehind="DaneLdap.aspx.cs" AutoEventWireup="True" Inherits="KOLKaP_WEB.KOLKaP.DaneLdap" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
  <title>DaneLdap</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" />
  <script type="text/javascript" language="javascript" src="../Skrypty.js"></script>
</head>
<body class="Body" 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 align="center" style="height:53; width:350;">
          <asp:Image ID="imgPNG" runat="server" ImageUrl="../img/ZarzadzanieAdresamiEmial_Naglowek.png" ImageAlign="Left">
          </asp:Image>
        </td>
        <td align="right" >
          <asp:Button ID="btnPowrot" runat="server" Width="90px" CssClass="aspButton" Text="Powrót"
            OnClick="btnPowrot_Click"></asp:Button>
        </td>
      </tr>
      <tr>
        <td colspan="2">
          <asp:Label ID="lblError" runat="server"></asp:Label>
        </td>
      </tr>
      <tr>
        <td style="height: 34px; width:50%">
          <small>Imię</small><br />
          <asp:Label ID="lblImie" runat="server" Font-Bold="True" Font-Size="Small"></asp:Label>
        </td>
        <td style="height: 34px; width:50%">
          <small>Stanowisko</small><br />
          <asp:Label ID="lblStanowisko" runat="server" Font-Bold="True" Font-Size="Small"></asp:Label>
        </td>
      </tr>
      <tr>
        <td style="height: 34px; width:50%">
          <small>Nazwisko</small><br />
          <asp:Label ID="lblNazwisko" runat="server" Font-Bold="True" Font-Size="Small"></asp:Label>
        </td>
        <td style="height: 34px; width:50%">
          <small>Jednostka</small><br />
          <asp:Label ID="lblJednostka" runat="server" Font-Bold="True" Font-Size="Small"></asp:Label>
        </td>
      </tr>
      <tr>
        <td colspan="2">&nbsp;</td>
      </tr>
      <tr>
        <td colspan="2">
          <asp:Label ID="lblIsntnejaceUmowyNag" runat="server" Font-Bold="True" Visible="False">Pracownik posiada aktywne umowy:</asp:Label>
        </td>
      </tr>
      <tr>
        <td colspan="2">
          <asp:Label ID="lblIstniejaceUmowy" runat="server" ForeColor="#ff3366" Font-Bold="True"
            Visible="False"></asp:Label>
        </td>
      </tr>
      <tr>
        <td colspan="2">&nbsp;</td>
      </tr>
      <tr>
        <td colspan="2" align="left" style="height:24px">
          <asp:Button ID="btnStatusKonta" runat="server" Text="Status konta" CssClass="aspButton"
            Width="105px" Height="22px" BorderStyle="None" BorderColor="Gainsboro" BackColor="Gainsboro"
            OnClick="btnStatusKonta_Click"></asp:Button>
          <asp:Button ID="btnAutoodpowiedz" runat="server" Text="Autoodpowiedź" CssClass="aspButton"
            Width="105px" Height="22px" BorderStyle="None" BorderColor="Gainsboro" BackColor="Gainsboro"
            OnClick="btnAutoodpowiedz_Click"></asp:Button>
          <asp:Button ID="btnPrzekierowania" runat="server" Text="Przekierowania" CssClass="aspButton"
            Width="105px" Height="22px" BorderStyle="None" BorderColor="Gainsboro" BackColor="Gainsboro"
            OnClick="btnPrzekierowania_Click"></asp:Button>
          <asp:Button ID="btnAliasy" runat="server" Text="Aliasy" CssClass="aspButton" Width="105px"
            Height="22px" BorderStyle="None" BorderColor="Gainsboro" BackColor="Gainsboro"
            OnClick="btnAliasy_Click"></asp:Button>
          <asp:Button ID="btnBlokada" runat="server" Text="Blokada" CssClass="aspButton" Width="105px"
            Height="22px" BorderStyle="None" BorderColor="Gainsboro" BackColor="Gainsboro"
            OnClick="btnBlokada_Click"></asp:Button>
        </td>
      </tr>
    </table>

    <script type="text/javascript" language="javascript">
		  var arVersion = navigator.appVersion.split("MSIE")
      var version = parseFloat(arVersion[1])

      function fixPNG(imgPNG) 
      {
        el = document.getElementById(imgPNG);
        if ((version >= 5.5) && (version < 7) && (document.body.filters)) 
        {
          var strNewHTML = "<div style= \" height:" + el.height + "; width:" + el.width +";"
                            + " filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'../img/ZarzadzanieAdresamiEmial_Naglowek.png\'); \"> "
                            +"</div>";
          el.outerHTML = strNewHTML;
        }
      }

	    document.getElementById('imgPNG').onload = function e()
	    {
		    fixPNG('imgPNG');
  	  }
    </script>

    <iframe frameborder="0" width="100%" height="90%" id="LDAPDaneFrame" scrolling="no"
      runat="server" src="LdapStatusKonta.aspx"></iframe>
  </form>
</body>
</html>
