<%@ Page Title="" Language="C#" MasterPageFile="~/MasterDesign.Master" AutoEventWireup="true"
    CodeBehind="ManageArtists.aspx.cs" Inherits="AUDIOTEKA.ManageArtists" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainPlaceHolder" runat="server">
    <h2>
        Správa Autorov
    </h2>
    Pridať <a href="NewArtist.aspx" title="Pridanie nového autora.">nového autora</a>.
    <br />
    <br />
    <asp:PlaceHolder ID="EditPlaceHolder" runat="server">
        <h3 id="EditNadpis" runat="server">
        </h3>
        <table>
            <tr>
                <td>
                    <asp:Label AssociatedControlID="EditFirstNameBox" ID="EditFirstNameLabel" runat="server"
                        Text="Label">(Meno): </asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="EditFirstNameBox" runat="server" MaxLength="256">
                    </asp:TextBox><br />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label AssociatedControlID="EditLastNameBox" ID="EditLastNameLabel" runat="server"
                        Text="Label">Skupina (Priezvisko): </asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="EditLastNameBox" runat="server" MaxLength="256">
                    </asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label AssociatedControlID="EditHomepageBox" ID="EditHomepageLabel" runat="server"
                        Text="Label">Homepage: </asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="EditHomepageBox" runat="server" MaxLength="256">
                    </asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label AssociatedControlID="EditInfoBox" ID="EditInfoLabel" runat="server" Text="Label">Info: </asp:Label>
                </td>
                <td>
                    <asp:TextBox TextMode="MultiLine" Rows="3" ID="EditInfoBox" runat="server">
                    </asp:TextBox>
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <asp:Button ID="EditArtistButton" runat="server" Text="Uložiť zmeny" OnClick="EditArtistButton_Click" />
                    <br />
                    <asp:Label ID="EditArtistExistsLabel" runat="server" ForeColor="Red" Text="Autor s daným menom už existuje!" />
                    <asp:Label ID="LabelRequired" runat="server" ForeColor="Red" Text="Je nutné vyplniť aspoň Meno alebo Priezvisko" />
                    <asp:HiddenField ID="EditHiddenField" runat="server" />
                </td>
            </tr>
        </table>
        <br />
    </asp:PlaceHolder>
    <asp:GridView AllowPaging="true" PageSize="10" ID="ArtistGridView" DataKeyNames="ArtistId"
        runat="server" AutoGenerateColumns="false" OnPageIndexChanging="ArtistGridView_PageChanged"
        OnRowEditing="ArtistGridView_RowEdit" OnRowDeleting="ArtistGridView_RowDelete">
        <RowStyle CssClass="rowA" />
        <AlternatingRowStyle CssClass="rowB" />
        <HeaderStyle CssClass="rowH" BorderColor="Black" ForeColor="White" Font-Underline="false" />
        <Columns>
            <asp:BoundField ItemStyle-BorderColor="black" DataField="FirstName" HeaderText="Meno" />
            <asp:BoundField ItemStyle-BorderColor="black" DataField="LastName" HeaderText="Skupina(priezvisko)" />
            <asp:BoundField ItemStyle-BorderColor="black" DataField="info" HeaderText="info" />
            <asp:BoundField ItemStyle-BorderColor="black" DataField="Homepage" HeaderText="Homepage" />
            <asp:CommandField HeaderText="Akcia" ItemStyle-BorderColor="Black" ShowEditButton="true"
                ShowDeleteButton="true" DeleteText="Zmazať" EditText="Upraviť" />
        </Columns>
        <PagerStyle BorderStyle="Solid" BorderWidth="1px" BorderColor="white" />
    </asp:GridView>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="LeftPlaceHolder" runat="server">
</asp:Content>
