<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ExportAnmeldung.aspx.cs" Inherits="QW2021C.Administration.ExportAnmeldung" %>

<%@ Register Assembly="Syncfusion.EJ.Web, Version=18.3460.0.35, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" Namespace="Syncfusion.JavaScript.Web" TagPrefix="ej" %>
<%@ Register Assembly="Syncfusion.EJ, Version=18.3460.0.35, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" Namespace="Syncfusion.JavaScript.Models" TagPrefix="ej" %>

<asp:Content ID="MainContent" ContentPlaceHolderID="MainContent" runat="Server">

    <asp:Label runat="server"><h4>Export Anmeldungen</h4></asp:Label>
    <br />
    <hr />
    <ej:Button ID="Button1" runat="server" Text="Alle Daten exportieren" Type="Button" OnClick="Button1_Click">
    </ej:Button>
    <asp:HyperLink ID="HyperLink2" runat="server" Target="_blank" Visible="False">HyperLink</asp:HyperLink>
    
    <br />
    <p>&nbsp;</p>
    <table>
        <tr>
            <td style="width: 80px">Verein
            </td>
            <td>
                <ej:DropDownList ID="DropDownList1" runat="server" DataSourceCachingMode="None" DataSourceID="SqlDataSource1" DataTextField="account_name" DataValueField="account_code" DisableItemsByIndex="" EnableItemsByIndex="" FilterType="Contains" Locale="de-CH" MaxPopupHeight="" MaxPopupWidth="" MultiSelectMode="None" PopupHeight="152px" SortOrder="Ascending" Text="" Value="" VirtualScrollMode="Normal">
                </ej:DropDownList>

            </td>
        </tr>
        <tr>
            <td style="width: 80px">Alle Vereine
            </td>
            <td>
                <ej:CheckBox ID="chkallevereine" runat="server" Checked="true"></ej:CheckBox>

            </td>
        </tr>
    </table>
    <p>&nbsp;</p>
    <table>
        <tr>
            <td style="width:300px">
                Wettkampf 1: <asp:Label ID="lblwettkampf1" runat="server"></asp:Label>
            </td>
            <td>
                <ej:CheckBox ID="chkwettkampf1" runat="server" Checked="false"></ej:CheckBox>

            </td>
        </tr>
        <tr>
            <td style="width:300px">
                Wettkampf 2: <asp:Label ID="lblwettkampf2" runat="server"></asp:Label>
            </td>
            <td>
                <ej:CheckBox ID="chkwettkampf2" runat="server" Checked="false"></ej:CheckBox>

            </td>
        </tr>
        <tr>
            <td style="width:300px">
                Wettkampf 3: <asp:Label ID="lblwettkampf3" runat="server"></asp:Label>
            </td>
            <td>
                <ej:CheckBox ID="chkwettkampf3" runat="server" Checked="false"></ej:CheckBox>

            </td>
        </tr>
        <tr>
            <td style="width:300px">
                Wettkampf 4: <asp:Label ID="lblwettkampf4" runat="server"></asp:Label>
            </td>
            <td>
                <ej:CheckBox ID="chkwettkampf4" runat="server" Checked="false"></ej:CheckBox>

            </td>
        </tr>

    </table>
    <div>
    <ej:Button ID="btnexport" runat="server" Text="Daten aufbereiten" Type="Button" OnClick="btnexport_Click">
    </ej:Button><asp:HyperLink ID="HyperLink1" runat="server"  Target="_blank" Visible="False">HyperLink</asp:HyperLink>
    
    </div>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:QWToolConnectionstring %>" 
        SelectCommand="SELECT [account_code], [account_name] FROM [base_account] where account_code in (select vereinnr from anmeldung where aktiv=1) order by account_name"> </asp:SqlDataSource>
    <asp:HiddenField ID="HiddenField1" runat="server" />
    


    <ej:Dialog ID="dialog" Title="Anmeldung" runat="server" ShowOnInit="False">

   
</ej:Dialog>

</asp:Content>
