<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ScheduledEventView.ascx.cs"
    Inherits="Zap.BI.Portal.Controls.UserControls.ResourceControls.Events.ScheduledEvents.ScheduledEventView" %>

<div ID="TimeZoneWrapper" runat="server">
    <div  class="scheduled-event-label">
        <asp:Literal runat="server" Text="<%$ Resources: Controls.UserControls.UserControlText, Label_TimeZone %>"></asp:Literal>
    </div>
    <div class="ui-form-inline">
        <asp:DropDownList ID="TimeZone" OnSelectedIndexChanged="TimeZone_OnSelectedIndexChanged" CssClass="changeInputControl ui-input-box ui-form-control" EnableViewState="true" runat="server"/>
    </div> 
</div>

<div class="scheduled-event-label">
    <asp:Literal runat="server" Text="<%$ Resources: Controls.UserControls.UserControlText, Label_PublicationTime %>"></asp:Literal>
</div>
<div class="ui-form-inline">
    <zap:SpinEdit ID="Hours" CssClass="changeInputControl ui-input ui-form-control" runat="server" MinValue="1" MaxValue="12" Columns="2" Width="50" NumberType="Integer" InitialValue="9" ShowLeadingZeros="true" />
    <span class="ui-text ui-form-control">:</span>
    <zap:SpinEdit ID="Minutes" CssClass="changeInputControl ui-input ui-form-control" runat="server" MinValue="0" MaxValue="59" Increment="15" Width="50" Columns="2" NumberType="Integer" InitialValue="0" ShowLeadingZeros="true" />
    <asp:DropDownList ID="AmPm" CssClass="changeInputControl ui-input-box ui-form-control" EnableViewState="true" runat="server" />
</div>
<div class="scheduled-event-label">
    <asp:Literal runat="server" Text="<%$ Resources: Controls.UserControls.UserControlText, Label_StartDate %>"></asp:Literal>
</div>
<dxe:ASPxDateEdit ID="StartDate" CssClass="ui-input-box" Width="130px" runat="server" />


<div class="scheduled-event-label">
    <asp:Literal runat="server" Text="<%$ Resources: Controls.UserControls.UserControlText, Label_Frequency %>"></asp:Literal>
</div>

<asp:RadioButtonList ID="recurrenceType" CssClass="recurrenceType clickInputControl" runat="server">
    <asp:ListItem Value="daily" class="recurrenceTypeOption ui-radio ui-radio-label" Text="<%$ Resources: Controls.UserControls.ResourceControls.Events.ScheduledEvents.ScheduledEventText, Label_Daily %>" />
    <asp:ListItem Value="weekly" class="recurrenceTypeOption ui-radio ui-radio-label" Selected="True" Text="<%$ Resources: Controls.UserControls.ResourceControls.Events.ScheduledEvents.ScheduledEventText, Label_Weekly %>" />
    <asp:ListItem Value="monthly" class="recurrenceTypeOption ui-radio ui-radio-label" Text="<%$ Resources: Controls.UserControls.ResourceControls.Events.ScheduledEvents.ScheduledEventText, Label_Monthly %>" />
    <asp:ListItem Value="yearly" class="recurrenceTypeOption ui-radio ui-radio-label" Text="<%$ Resources: Controls.UserControls.ResourceControls.Events.ScheduledEvents.ScheduledEventText, Label_Yearly %>" />
</asp:RadioButtonList>

<div class="scheduled-event-label">
    <asp:Literal runat="server" Text="<%$ Resources: Controls.UserControls.UserControlText, Label_FrequencyOptions %>"></asp:Literal>

</div>

<div class="dailyRecurrenceArea recurrenceTypeArea">
    <div class="ui-form-inline">
        <asp:RadioButton ID="EveryNDays" CssClass="clickInputControl ui-form-control ui-radio ui-radio-label" Checked="true" GroupName="DailyRecurrenceOption"
            runat="server" Text="<%$ Resources: Controls.UserControls.ResourceControls.Events.ScheduledEvents.ScheduledEventText, Label_Every %>" />

        <zap:SpinEdit ID="NDays" runat="server" MinValue="1" MaxValue="999" Columns="3" NumberType="Integer" InitialValue="1" CssClass="ui-form-control" />
        <asp:Label runat="server" CssClass="ui-form-control ui-radio-label" Text="<%$ Resources: Controls.UserControls.ResourceControls.Events.ScheduledEvents.ScheduledEventText, Label_Days %>" />
    </div>
    <div>
        <asp:RadioButton ID="EveryWeekday" CssClass="clickInputControl ui-form-control ui-radio ui-radio-label" Checked="false" GroupName="DailyRecurrenceOption" Text="<%$ Resources: Controls.UserControls.ResourceControls.Events.ScheduledEvents.ScheduledEventText, Label_EveryWeekday %>"
            runat="server" />
    </div>
</div>

<div class="weeklyRecurrenceArea recurrenceTypeArea">
    <div class="ui-form-inline">
        <asp:Label CssClass="ui-form-control ui-radio-label" runat="server" Text="<%$ Resources: Controls.UserControls.ResourceControls.Events.ScheduledEvents.ScheduledEventText, Label_RecurEvery %>" />
        <zap:SpinEdit ID="NWeeks" runat="server" MinValue="1" MaxValue="999" Columns="3" NumberType="Integer" InitialValue="1" CssClass="changeInputControl ui-form-control ui-input" />
        <asp:Label CssClass="ui-form-control ui-radio-label" runat="server" Text="<%$ Resources: Controls.UserControls.ResourceControls.Events.ScheduledEvents.ScheduledEventText, Label_WeeksOn %>" />
    </div>
    <asp:CheckBoxList ID="DaysOfWeek" runat="server" CssClass="unsavedChangesOnChildClick ui-input" RepeatColumns="4" RepeatDirection="Horizontal" />
</div>

<div class="monthlyRecurrenceArea recurrenceTypeArea">
    <div class="ui-form-inline">
        <asp:RadioButton ID="NDayNMonths" CssClass="clickInputControl ui-form-control ui-radio ui-radio-label" Checked="true" GroupName="MonthlyRecurrenceOption"
            runat="server" Text="<%$ Resources: Controls.UserControls.ResourceControls.Events.ScheduledEvents.ScheduledEventText, Label_Day %>" />
        <zap:SpinEdit ID="Day" CssClass="ui-form-control ui-input" runat="server" MinValue="1" MaxValue="31" Columns="2" NumberType="Integer" InitialValue="1" />
        <asp:Label CssClass="ui-form-control ui-radio-label" runat="server" Text="<%$ Resources: Controls.UserControls.ResourceControls.Events.ScheduledEvents.ScheduledEventText, Label_OfEvery %>" />
        <zap:SpinEdit ID="DayOfNMonths" CssClass="changeInputControl ui-form-control ui-input" runat="server" MinValue="1" MaxValue="999" Columns="3" NumberType="Integer" InitialValue="1" />
        <asp:Label CssClass="ui-form-control ui-radio-label" runat="server" Text="<%$ Resources: Controls.UserControls.ResourceControls.Events.ScheduledEvents.ScheduledEventText, Label_Months %>" />
    </div>

    <div class="ui-form-inline">
        <asp:RadioButton ID="WeeklyMonthly" CssClass="clickInputControl ui-form-control ui-radio ui-radio-label" Checked="false" GroupName="MonthlyRecurrenceOption"
            runat="server" Text="<%$ Resources: Controls.UserControls.ResourceControls.Events.ScheduledEvents.ScheduledEventText, Label_Day %>" />
        <asp:DropDownList ID="MonthlyOnWeek" CssClass="changeInputControl ui-form-control ui-input-box" runat="server" />
        <asp:DropDownList ID="MonthlyWeekdays" CssClass="changeInputControl ui-form-control ui-input-box" runat="server" />
        <asp:Label CssClass="ui-form-control ui-radio-label" runat="server" Text="<%$ Resources: Controls.UserControls.ResourceControls.Events.ScheduledEvents.ScheduledEventText, Label_OfEvery %>" />
        <zap:SpinEdit ID="NMonths" CssClass="changeInputControl ui-form-control ui-input" runat="server" MinValue="1" MaxValue="999" Columns="3" NumberType="Integer" InitialValue="1" />
        <asp:Label CssClass="ui-form-control ui-radio-label" runat="server" Text="<%$ Resources: Controls.UserControls.ResourceControls.Events.ScheduledEvents.ScheduledEventText, Label_Months %>" />
    </div>
</div>

<div class="yearlyRecurrenceArea recurrenceTypeArea">
    <div class="ui-form-inline">
        <asp:RadioButton ID="YearlyOnDate" CssClass="clickInputControl ui-form-control ui-radio ui-radio-label" Checked="true" GroupName="YearlyRecurrenceOption"
            runat="server" Text="<%$ Resources: Controls.UserControls.ResourceControls.Events.ScheduledEvents.ScheduledEventText, Label_On %>" />
        <asp:DropDownList ID="YearlyOnMonth" CssClass="changeInputControl ui-form-control ui-input" runat="server" />
        <zap:SpinEdit ID="DayOfMonth" CssClass="changeInputControl ui-form-control ui-input" runat="server" MinValue="1" MaxValue="31" Columns="2" NumberType="Integer" InitialValue="1" />
    </div>

    <div class="ui-form-inline">
        <asp:RadioButton ID="YearlyOnThe" CssClass="clickInputControl ui-form-control ui-radio ui-radio-label" Checked="false" GroupName="YearlyRecurrenceOption"
            runat="server" Text="<%$ Resources: Controls.UserControls.ResourceControls.Events.ScheduledEvents.ScheduledEventText, Label_OnThe %>" />
        <asp:DropDownList ID="YearlyOnWeek" CssClass="changeInputControl ui-form-control ui-input-box" runat="server" />
        <asp:DropDownList ID="YearlyWeekdays" CssClass="changeInputControl ui-form-control ui-input-box" runat="server" />
        <asp:Label CssClass="ui-form-control ui-radio-label" runat="server" Text="<%$ Resources: Controls.UserControls.ResourceControls.Events.ScheduledEvents.ScheduledEventText, Label_Of %>" />
        <asp:DropDownList ID="YearlyOnTheMonth" CssClass="changeInputControl ui-form-control ui-input-box" runat="server" />
    </div>
</div>

<div class="scheduled-event-label">
    <asp:Literal runat="server" Text="<%$ Resources: Controls.UserControls.UserControlText, Label_EndDate %>"></asp:Literal>
</div>

<div>
    <asp:RadioButton ID="NoEndDate" CssClass="clickInputControl ui-radio ui-radio-label" Value="NoEndDate" GroupName="RecurrenceRange" Text="<%$ Resources: Controls.UserControls.ResourceControls.Events.ScheduledEvents.ScheduledEventText, Label_NoEndDate %>"
        runat="server" />
</div>

<div class="ui-form-inline">
    <asp:RadioButton ID="OccurrenceCount" CssClass="clickInputControl ui-form-control ui-radio ui-radio-label" Value="Occurrences" GroupName="RecurrenceRange"
        Text="<%$ Resources: Controls.UserControls.ResourceControls.Events.ScheduledEvents.ScheduledEventText, Label_EndAfter %>"
        runat="server" />
    <zap:SpinEdit ID="Occurrences" CssClass="changeInputControl ui-form-control ui-input" runat="server" MinValue="1" MaxValue="999" Columns="3" NumberType="Integer" InitialValue="1" />
    <asp:Label CssClass="ui-form-control ui-radio-label" runat="server" Text="<%$ Resources: Controls.UserControls.ResourceControls.Events.ScheduledEvents.ScheduledEventText, Label_Occurrences %>" />
</div>

<div class="ui-form-inline">
    <asp:RadioButton ID="EndByDate" Value="EndByDate" CssClass="clickInputControl ui-form-control ui-radio ui-radio-label" GroupName="RecurrenceRange" Text="<%$ Resources: Controls.UserControls.ResourceControls.Events.ScheduledEvents.ScheduledEventText, Label_EndBy %>"
        runat="server" />
    <dxe:ASPxDateEdit ID="EndDate" runat="server" CssClass="ui-form-control ui-input-box" />
</div>
