<!-- Copyright (c) 2002, 2007, Oracle. All rights reserved.  -->

<!--
   DESCRIPTION
    schedule widget bean
    NOTE : THIS IS DEPRECATED NOW USE R2 SCHEDULE SEGMENT
   NOTES
    none

   MODIFIED    (MM/DD/YY)
    nqureshi    04/26/07 - Backport nqureshi_bug-5893559 from main
    nqureshi    04/26/07 - bug 5893559
    hmodawel    03/02/06 - fix jsp compilation 
    pratagar    07/26/05 - ADA Voilation Fix 
    rdabbott    01/08/04 - 3328590: consolidate functions 
    rdabbott    12/18/03 - Fix 3328590: allow timezone regions 
    rdabbott    12/23/03 - Fix 3335674: don't allow interval > 1 for monthly, 
    yaofeng     11/14/03 - accessibility 
    rpatti      11/03/03 - add shortdesc 
    hxlin       12/17/02 - Remove duration text
    hxlin       12/16/02 - Move duration
    nachen      12/10/02 - fix jsp compilation error
    ychan       12/11/02 - Add start and repeatUntil
    rdabbott    12/06/02 - layout repeat until to the right of repeat
    rdabbott    11/25/02 - add resource bundle
    nachen      11/22/02 - creation
 -->

<!--
   @version $Header: schedule.jspf 26-apr-2007.22:45:04 nqureshi Exp $
   @author  nachen
   @since   4.1
 -->

<uix:dataScope>
<uix:bundle name="ScheduleBundle"
          class="oracle.sysman.emSDK.eml.SDKUIMsg"/>
<uix:switcher childNameBinding="showTimeZone@scheduleBean@servletRequest">
  <uix:case name="true">
    <uix:switcher childNameBinding="showTimeZoneInStartDate@scheduleBean@servletRequest">
      <uix:case name="false">
        <%@ include file="timezone.jspf" %>
      </uix:case>
    </uix:switcher>
  </uix:case>
</uix:switcher>

<%-- This is a hack! For some reason, Start and Duration cannot line up without this --%>
<uix:rowLayout>
<uix:cellFormat>
<uix:header text=""/>
</uix:cellFormat>
</uix:rowLayout>

<uix:rowLayout>

<uix:cellFormat vAlign="top">

<%-- START HEADER --%>
<%@ include file="start.jspf" %>

</uix:cellFormat>

<uix:cellFormat rendered="false" vAlign="top">
<uix:header text="Expire">
</uix:header>

</uix:cellFormat>

<uix:cellFormat vAlign="top">

<%-- DURATION HEADER --%>
<uix:switcher childNameBinding="showDurationSB@scheduleBean@servletRequest">
<uix:case name="true">

<uix:header textBinding="DURATION@scheduleBundle@servletRequest"> 

<uix:tableLayout cellSpacing="5">

<uix:rowLayout>

<uix:cellFormat hAlign="left">
<uix:choice>

<uix:messagePrompt promptBinding="DURATION@scheduleBundle@servletRequest"/> 
<uix:spacer width="5"/>
<uix:textInput name="durationHourSB" 
               textBinding="durationHourSB@scheduleBean@servletRequest" 
               shortDescBinding="HOURS@scheduleBundle@servletRequest"
               columns="10"/>
<uix:styledText styleClass="OraInstructionText" 
                textBinding="HOURS@scheduleBundle@servletRequest"/>
<uix:textInput name="durationMinuteSB" 
               textBinding="durationMinuteSB@scheduleBean@servletRequest" 
               shortDescBinding="MINUTES@scheduleBundle@servletRequest"
               columns="10"/>
<uix:styledText styleClass="OraInstructionText" textBinding="MINUTES@scheduleBundle@servletRequest"/>
</uix:choice>
</uix:cellFormat>
</uix:rowLayout>

</uix:tableLayout>
</uix:header>
</uix:case>
</uix:switcher>
</uix:cellFormat>

</uix:rowLayout>


<uix:rowLayout>
<uix:cellFormat vAlign="top">




<%-- REPEAT HEADER --%>
<uix:header textBinding="REPEAT_HEADER@ScheduleBundle">
<uix:tableLayout cellSpacing="5">

<uix:rowLayout>
<%-- ONE TIME ONLY RADIO BUTTON --%>
<uix:cellFormat>
<uix:switcher childNameBinding="showOneTimeOnlyRepeatTypeSB@scheduleBean@servletRequest">
<uix:case name="true">
<oem:radioButton 
     name="repeatTypeSB" 
     value="oneTimeOnly"
     selectedValueBinding="repeatTypeSB@scheduleBean@servletRequest"
     textBinding="ONE_TIME_ONLY@ScheduleBundle"
     shortDescBinding="ONE_TIME_ONLY@ScheduleBundle"
     styleClass="OraInstructionText"
/>
</uix:case>
</uix:switcher>
</uix:cellFormat>
</uix:rowLayout>

<%-- INTERVAL RADIO BUTTON --%>
<uix:switcher childNameBinding="showOneTimeOnlyRepeatTypeSB@scheduleBean@servletRequest">
<uix:case name="true">
<uix:rowLayout>
<uix:cellFormat>
<oem:radioButton 
     name="repeatTypeSB" 
     value="interval"
     selectedValueBinding="repeatTypeSB@scheduleBean@servletRequest"
     textBinding="INTERVAL@ScheduleBundle"
     shortDescBinding="INTERVAL@ScheduleBundle"
     styleClass="OraInstructionText"
/>	
</uix:cellFormat>
</uix:rowLayout>
</uix:case>
</uix:switcher>


<uix:rowLayout>
<uix:cellFormat hAlign="right">
<%-- FREQUENCY --%>
<uix:messagePrompt 
     promptBinding="FREQUENCY@ScheduleBundle"
/>
</uix:cellFormat>

<uix:cellFormat hAlign="left">
<uix:rowLayout>
<uix:textInput
     id="repeatCountSBID"
     name="repeatCountSB"
     textBinding="repeatCountSB@scheduleBean@servletRequest"
     shortDescBinding="FREQUENCY@ScheduleBundle"
     columns="10"
/>
<uix:spacer width="5"
/>
<oem:choice 
     name="repeatIntervalSB"
     id="repeatCountSBIDINT"
     optionsBinding="intervalsSB@scheduleBean@servletRequest"
     shortDescBinding="INTERVAL@ScheduleBundle"
     selectedValueBinding="repeatIntervalSB@scheduleBean@servletRequest"
/>
</uix:rowLayout>
</uix:cellFormat>
</uix:rowLayout>

<uix:rowLayout>
<uix:cellFormat>
<oem:radioButton 
     name="repeatTypeSB" 
     value="byMonth"
     selectedValueBinding="repeatTypeSB@scheduleBean@servletRequest"
     textBinding="MONTHLY@ScheduleBundle"
     shortDescBinding="MONTHLY@ScheduleBundle"
     styleClass="OraInstructionText"
/>	
</uix:cellFormat>
</uix:rowLayout>

<uix:rowLayout>
<uix:cellFormat>
<oem:radioButton 
     name="repeatTypeSB" 
     value="byYear"
     selectedValueBinding="repeatTypeSB@scheduleBean@servletRequest"
     textBinding="YEARLY@ScheduleBundle"
     shortDescBinding="YEARLY@ScheduleBundle"
     styleClass="OraInstructionText"
/>	
</uix:cellFormat>
</uix:rowLayout>
</uix:tableLayout>
</uix:header>

</uix:cellFormat vAlign="top">
<uix:cellFormat vAlign="top">

<%-- REPEAT UNTIL HEADER --%>
<%@ include file="repeatUntil.jspf" %>

</uix:cellFormat vAlign="top">
</uix:rowLayout>


</uix:dataScope>
