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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
    <title>Aneks CP edycja</title>    
    <meta name="CODE_LANGUAGE" content="C#" />
    <meta name="vs_defaultClientScript" content="JavaScript" />
    
    <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>
  
</head>
<body class="TableLRT0">
    <form id="Form1" method="post" runat="server">
        <table cellspacing="0" cellpadding="0" width="100%" style="font-size:8pt;">
            <tr>
                <td align="left" style="height: 20px">
                    <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"
                        OnClick="btnPodglad_Click"></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="right" style="height: 20px">
                    <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" OnItemCreated="dgSekcje_ItemCreated" 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="619px" Text='<%# DataBinder.Eval(Container, "DataItem.TRESC") %>'
                                        ReadOnly='<%# DataBinder.Eval(Container, "DataItem.READONLY") %>' Height="100%"
                                        TextMode="MultiLine" Enabled='<%# DataBinder.Eval(Container, "DataItem.ENABLED") %>'
                                        Font-Names="Times New Roman" Font-Size="11pt" OnTextChanged="TextBox2_TextChanged">
                                    </asp:TextBox>
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server" Width="619px" Text='<%# DataBinder.Eval(Container, "DataItem.TRESC") %>'
                                        Font-Names="Times New Roman" Font-Size="11pt">
                                    </asp:TextBox>
                                </EditItemTemplate>
                            </asp:TemplateColumn>
                        </Columns>
                    </asp:DataGrid></td>
            </tr>
        </table>
    </form>
</body>
</html>
