<%@ Page Language="c#" Codebehind="AdmZatrudnienieWydrukEdycja.aspx.cs" AutoEventWireup="True" Inherits="KOLKaP_WEB.KOLKaP.AdmZatrudnienieWydrukEdycja" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
  <title>AdmZatrudnienieWydrukEdycja</title>
  
  <meta content="C#" name="CODE_LANGUAGE" />
  <meta content="JavaScript" name="vs_defaultClientScript" />
  
  <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 src="../jquery/jquery.bgiframe-2.1.2.js" type="text/javascript"></script>  
    <script src="../jquery/jquery.blockUI.js" type="text/javascript"></script>
    <script type="text/javascript">
      $(function () {

        $("#btnZapisz").button({ icons: { primary: 'ui-icon-disk' } });
        $("#btnPowrot").button({ icons: { primary: 'ui-icon-arrowreturnthick-1-w' } });
        $("#btnPowrot2").button({ icons: { primary: 'ui-icon-arrowreturnthick-1-w' } });
        $("#btnGeneruj").button({ icons: { primary: 'ui-icon-gear' } });
        $("#btnPodglad").button({ icons: { primary: 'ui-icon-document' } });

        if (!$("#btnPowrot").attr('href')) {
          $("#btnPowrot").addClass("ui-state-disabled");
          $("#btnPowrot").prop("onclick", null);
        }
        if (!$("#btnPowrot2").attr('href')) {
          $("#btnPowrot2").addClass("ui-state-disabled");
          $("#btnPowrot2").prop("onclick", null);
        }
        if (!$("#btnZapisz").attr('href')) {
          $("#btnZapisz").addClass("ui-state-disabled");
          $("#btnZapisz").prop("onclick", null);
        }
        if (!$("#btnGeneruj").attr('href')) {
          $("#btnGeneruj").addClass("ui-state-disabled");
          $("#btnGeneruj").prop("onclick", null);
        }
        if (!$("#btnPodglad").attr('href')) {
          $("#btnPodglad").addClass("ui-state-disabled");
          $("#btnPodglad").prop("onclick", null);
        }

      });


    </script>
  <script type="text/javascript" language="javascript">
    //
    var ie  = document.all
    var ns6 = document.getElementById&&!document.all
    var isMenu  = false ;
    var menuSelObj = null ;
    var overpopupmenu = false;
    function mouseSelect(e)
    {
      var obj = ns6 ? e.target.parentNode : event.srcElement.parentElement;
      if( isMenu )
      {
        if( overpopupmenu == false )
        {
          isMenu = false ;
          overpopupmenu = false;
          document.getElementById('menukonsulting').style.display = "none" ;
          return true ;
        }
        return true ;
      }
     // return false;
      return true;
    }
    // POP UP MENU
    function  ItemSelMenu(menu)//e)
    {
      //var obj = ns6 ? e.target.parentNode : event.srcElement.parentElement; 
      //    menuSelObj = obj ;
      //if (ns6)
      //{
      //  document.getElementById('menudiv').style.left = e.clientX+document.body.scrollLeft;
      //  document.getElementById('menudiv').style.top = e.clientY+document.body.scrollTop;
      //} else
      //{
      //  document.getElementById('menudiv').style.pixelLeft = event.clientX+document.body.scrollLeft;
      //  document.getElementById('menudiv').style.pixelTop = event.clientY+document.body.scrollTop;
      //}
      document.getElementById(menu).style.left = document.getElementById('btnPodglad').style.left+120;
      document.getElementById(menu).style.top = document.getElementById('btnPodglad').style.top+20;
      document.getElementById(menu).style.display = "";
      //document.getElementById('item1').style.backgroundColor='#FFFFFF';
      //document.getElementById('item2').style.backgroundColor='#FFFFFF';
      //document.getElementById('item3').style.backgroundColor='#FFFFFF';
      //document.getElementById('item4').style.backgroundColor='#FFFFFF';
      isMenu = true;
      return false ;
      //return true;
    }
    document.onmousedown  = mouseSelect;

    //document.oncontextmenu  = ItemSelMenu;
    //document.getElementById("btnDrukuj").oncontextmenu = ItemSelMenu;
    //
  </script>
</head>
<body class="Table" style="margin-left:0; margin-right:0; margin-top:0">
  <form id="Form1" method="post" runat="server">
    <table cellspacing="0" cellpadding="0" width="100%">
      <tr>
        <td align="left" style="font-size:8pt;">
          <asp:LinkButton ID="btnGeneruj" runat="server" Text="Pobierz wzorzec" CssClass="aspButton" Width="130px" OnClick="btnGeneruj_Click"></asp:LinkButton>
          <asp:LinkButton ID="btnPodglad" runat="server" Text="Podgląd" CssClass="aspButton" Width="90px"></asp:LinkButton>
          <asp:LinkButton ID="btnZapisz" runat="server" Text="Zapisz" CssClass="aspButton" Width="90px" OnClick="btnZapisz_Click"></asp:LinkButton>
          <asp:LinkButton ID="btnPowrot2" runat="server" Width="90px" CssClass="aspButton" Text="Powrót" OnClick="btnPowrot_Click"></asp:LinkButton>
        </td>
        <td align="left" style="font-size:8pt;">
          <asp:LinkButton ID="btnPowrot" runat="server" Width="90px" CssClass="aspButton" Text="Powrót"
            Visible="False" OnClick="btnPowrot_Click"></asp:LinkButton>
        </td>
      </tr>
      <tr>
        <td colspan="2"><asp:Label ID="lblError" runat="server"></asp:Label></td>
      </tr>
      <tr>
        <td colspan="2">
          <asp:DataGrid ID="dgSekcje" runat="server" Width="95%" AutoGenerateColumns="False" DataKeyField="ID_SEKCJI" OnItemDataBound="dgSekcje_ItemDataBound">
            <Columns>
              <asp:BoundColumn Visible="False" DataField="ID_SEKCJI" SortExpression="ID_SEKCJI"
                HeaderText="ID_SEKCJI"></asp:BoundColumn>
              <asp:BoundColumn Visible="False" DataField="EDYCJA" SortExpression="EDYCJA" HeaderText="EDYCJA">
              </asp:BoundColumn>
              <asp:BoundColumn DataField="NAZWA">
                <HeaderStyle Width="20%"></HeaderStyle>
              </asp:BoundColumn>
              <asp:TemplateColumn>
                <ItemTemplate>
                  <asp:TextBox ID="TextBox2" runat="server" Width="586px" Text='<%# DataBinder.Eval(Container, "DataItem.TRESC") %>'
                    Font-Size="12pt" Font-Names="Times New Roman" Enabled='<%# DataBinder.Eval(Container, "DataItem.ENABLED") %>'
                    TextMode="MultiLine" Height="100%" ReadOnly='<%# DataBinder.Eval(Container, "DataItem.READONLY") %>'>
                  </asp:TextBox>
                </ItemTemplate>
                <EditItemTemplate>
                  <asp:TextBox ID="TextBox1" runat="server" Width="586px" Text='<%# DataBinder.Eval(Container, "DataItem.TRESC") %>'
                    Font-Size="12pt" Font-Names="Times New Roman">
                  </asp:TextBox>
                </EditItemTemplate>
              </asp:TemplateColumn>
            </Columns>
          </asp:DataGrid>
        </td>
      </tr>
    </table>
  </form>
  <div style="z-index: 1000; position: absolute; display: none; top: 0px; left: 100px"
    id="menukonsulting" onmouseover="javascript:overpopupmenu=true;" onmouseout="javascript:overpopupmenu=false;">
    <table style="border-bottom: gray thin solid; border-left: gray thin solid; border-top: gray thin solid;
      border-right: gray thin solid; background-color:#ffffff" cellspacing="1" cellpadding="0">
      <tr>
        <td>
          <table cellspacing="0" cellpadding="0">
            <tr>
              <td id="menukonsulting1" onmouseover="this.style.backgroundColor='#EFEFEF'" onmouseout="this.style.backgroundColor='#FFFFFF'"
                style="background-color:#ffffff; height:16; width:100%">
                <small>
                  <a href="javascript:drukuj = false;window.open('AdmZatrudnienieUmowaCPPodglad2.aspx',null,'toolbar=1,scrollbars=1,location=0,statusbar=1,menubar=1,resizable=1,width=700,height=600,left=0,top=0');void(0);">Umowy</a>
                </small>
              </td>
            </tr>
            <tr>
              <td id="menukonsulting_v2" onmouseover="this.style.backgroundColor='#EFEFEF'" onmouseout="this.style.backgroundColor='#FFFFFF'"
                style="background-color:#ffffff; height:16; width:100%">
                <small>
                  <a href="javascript:window.open('AdmWydrukiZalecenia.aspx',null,'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=500,height=320,left=200,top=200');void(0);">Zalecane ustawienia przeglądarki</a>
                </small>
              </td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
  </div>
</body>
</html>
