<page xmlns="http://bali.us.oracle.com/cabo/baja" 
      xmlns:baja="http://bali.us.oracle.com/cabo/baja"
      xmlns:marlin="http://bali.us.oracle.com/cabo/marlin" 
      xmlns:html="http://www.w3.org/TR/REC-html40"
      xmlns:data="http://bali.us.oracle.com/cabo/marlin">

  <baja:content xmlns="http://bali.us.oracle.com/cabo/marlin">

    <dataScope>
      <contents>

        <html:title>
          <text data:text="pageTitle@scheduleInfo" />
        </html:title>
        <html:noScript>
          "This page uses JavaScript to perform the list of values lookup. Your browser either does not support JavaScript, or it is disabled.  Please enable JavaScript, or upgrade your browser."
        </html:noScript>

        <form name="scheduleInfo" method="GET" id="scheduleInfo">
          <contents>

            <pageLayout> 
              <mediumAdvertisement>
                <include baja:node="../oemBanner" />
              </mediumAdvertisement>

              <globalButtons>
                <include baja:node="../globalButtonBar" />
              </globalButtons>

              <tabs>
                <include baja:node ="../globalTabs" />
              </tabs>

              <pageHeader>
                <include baja:node="header"/>
              </pageHeader>
       
              <contentFooter>
                <pageButtonBar>     
                  <contents>
                    <submitButton data:text="CANCEL@commonResourceBundle"
                                  name="event"
                                  value="cancel" />
                    <submitButton data:text="CONTINUE@commonResourceBundle" 
                                  name="event" 
                                  value="continue" />
                  </contents>
                </pageButtonBar>
              </contentFooter>

              <data:location>
                <include baja:node="../breadCrumbs"/>
              </data:location>

              <copyright>
                <include baja:node="../copyright" />
              </copyright>

              <contents>
            
                <formValue name="notDefined" data:value="notDefined@scheduleInfo"/>
                <formValue name="userShown" data:value="userShown@scheduleInfo"/>

                <stackLayout rendered="false"
                             data:rendered="cacheLossOccurred@scheduleInfo">
                  <contents>
                    <messageBox data:message="errMsg@scheduleInfo"
                                messageType="error"
                                data:text="errHeader@scheduleInfo"/>
                    <spacer height="10"/>
                    <styledText data:text="continueMsg@scheduleInfo"
                                data:destination="restartDest@scheduleInfo"/>
                  </contents>
                </stackLayout>

                <stackLayout rendered="false"
                             data:rendered="startDateEmpty@scheduleInfo">
                  <contents>
                    <messageBox data:message="EMPTY_START_DATE_MSG@notifResourceBundle"
                                messageType="error"
                                data:text="EMPTY_START_DATE@notifResourceBundle"/>
                  </contents>
                </stackLayout>

                <header rendered="true"
                        data:rendered="showContents@scheduleInfo"
                        data:text="header@scheduleInfo" >
                  <contents>

                    <tableLayout width="100%">
                      <contents>
                        <rowLayout>
                          <contents>
                            <cellFormat vAlign="top">
                              <contents>
                                <styledText data:text="SCHEDULE_INFO_TEXT@notifResourceBundle"
                                            styleClass="OraInstructionText"/>
                              </contents>
                            </cellFormat>

                            <spacer width="8"/>

                            <cellFormat vAlign="top" hAlign="right">
                              <contents>
                                <submitButton data:text="CANCEL@commonResourceBundle"
                                              name="event"
                                              value="cancel" />
                                <spacer width="10"/>
                                <submitButton data:text="CONTINUE@commonResourceBundle"
                                              name="event"
                                              value="continue" />
                                <spacer width="10"/>
                              </contents>
                            </cellFormat>
                          </contents>
                        </rowLayout>
                        <rowLayout>
                          <contents>
                            <spacer height="10"/>
                          </contents>
                        </rowLayout>

                      </contents>
                    </tableLayout>


                    <tableLayout width="100%">
                      <contents>
                        <rowLayout>
                          <contents>

                    <stackLayout rendered="false"
                                 data:rendered="showSimplePage@scheduleInfo">
                      <contents>

                        <labeledFieldLayout labelWidth="20%" fieldWidth="80%" >
                          <contents>

                            <spacer height="10"/>
                            <inlineMessage data:prompt="DURATION@notifResourceBundle"
                                           labeledNodeId="duration"
                                           required="yes" >
                              <contents>
                                <choice name="duration" id="duration" columns="30"
                                        data:shortDesc="DURATION@notifResourceBundle">
                                  <contents data:childData="durationData@scheduleInfo" >
                                    <option data:text="label"
                                            data:value="value"
                                            data:selected="selected" />
                                  </contents>
                                </choice>
                              </contents>
                            </inlineMessage>

                            <spacer height="10"/>
                            <messageDateField data:prompt="SCHEDULE_START_DATE@notifResourceBundle"
                                              data:shortDesc="SCHEDULE_START_DATE@notifResourceBundle"
                                              name="startDateField"
                                              data:message="sample@sampleDate"
                                              required="yes"
                                              data:value="startDate@scheduleInfo" >
                              <onSubmitValidater>
                                <date dateStyle="medium" />
                              </onSubmitValidater>
                            </messageDateField>

                            <spacer height="10"/>
                            <messageChoice name="timezone"
                                           data:prompt="TIMEZONE@commonResourceBundle" 
                                           data:shortDesc="TIMEZONE@commonResourceBundle" 
                                           required="yes" 
                                           data:selectedValue="selectedTimezone@scheduleInfo" >
                              <contents data:childData="timezoneData@scheduleInfo" >
                                <option data:text="label"
                                        data:value="value"
                                        data:selected="selected" />
                              </contents>
                            </messageChoice>

                          </contents>
                        </labeledFieldLayout>

                        <spacer width="10"/>

                      </contents>
                    </stackLayout>

                    <stackLayout rendered="false"
                                 data:rendered="hasOldSchedule@scheduleInfo">
                      <contents>

                        <spacer height="10"/>
                        <inlineMessage data:prompt="DURATION@notifResourceBundle"
                                       labeledNodeId="duration"
                                       required="yes" >
                          <contents>
                            <choice name="duration" id="duration" columns="30">
                              <contents data:childData="durationData@scheduleInfo" >
                                <option data:text="label"
                                        data:value="value"
                                        data:selected="selected" />
                              </contents>
                            </choice>
                          </contents>
                        </inlineMessage>

                        <spacer height="15"/>

                        <radioButton data:text="EDIT_EXISTING_SCHEDULE@notifResourceBundle"
                                     data:shortDesc="EDIT_EXISTING_SCHEDULE@notifResourceBundle" 
                                     name="oldSchedule" 
                                     value="edit" 
                                     data:selected="editSelected@scheduleInfo"/>

                        <spacer height="10"/>

                        <radioButton data:text="REPLACE_EXISTING_SCHEDULE@notifResourceBundle"
                                     data:shortDesc="REPLACE_EXISTING_SCHEDULE@notifResourceBundle" 
                                     name="oldSchedule" 
                                     value="replace" 
                                     data:selected="replaceSelected@scheduleInfo"/>

                        <tableLayout>
                          <contents>

                            <rowLayout>
                              <contents>
                                <cellFormat>
                                  <contents>
                                    <spacer width="40" />
                                  </contents>
                                </cellFormat>

                                <cellFormat>
                                  <contents>

                                    <messageDateField data:prompt="SCHEDULE_START_DATE@notifResourceBundle"
                                                      data:shortDesc="SCHEDULE_START_DATE@notifResourceBundle"
                                                      name="startDateField"
                                                      data:message="sample@sampleDate"
                                                      data:value="replaceStartDate@scheduleInfo" >
                                      <onSubmitValidater>
                                        <date dateStyle="medium" />
                                      </onSubmitValidater>
                                    </messageDateField>

                                    <tip>
                                      <contents>
                                        <styledText data:text="REPLACE_SCHEDULE_TIP@notifResourceBundle"/>
                                      </contents>
                                    </tip>
                                  </contents>
                                </cellFormat>

                              </contents>
                            </rowLayout>
                          </contents>
                        </tableLayout>

                        <spacer width="15"/>

                        <messageChoice name="timezone"
                                       data:prompt="TIMEZONE@commonResourceBundle"
                                       required="yes" 
                                       data:selectedValue="selectedTimezone@scheduleInfo" >
                          <contents data:childData="timezoneData@scheduleInfo" >
                            <option data:text="label"
                                    data:value="value"
                                    data:selected="selected" />
                          </contents>
                        </messageChoice>

                      </contents>
                    </stackLayout>

                    <spacer width="20"/>

                    <contentContainer data:text="NOTIFICATION_SCHEDULE@notifResourceBundle" 
                                      width="100%" 
                                      background="light" >
                      <contents>
                        <styledText data:text="EDIT_SCHEDULE_MSG1@notifResourceBundle"
                                    styleClass="OraInstructionText" />
                        <spacer height="5"/>
                        <styledText data:text="EDIT_SCHEDULE_MSG2@notifResourceBundle"
                                    styleClass="OraInstructionText" />
                      </contents>
                    </contentContainer>


                          </contents>
                        </rowLayout>
                      </contents>
                    </tableLayout>

                  </contents>
                </header>

              </contents>         
            </pageLayout>
          </contents>
        </form> 
      </contents>

      <provider>
        <data name="commonResourceBundle">
          <bundle class="oracle.sysman.resources.CommonResourceBundle"/>
        </data>
        <data name="notifResourceBundle">
          <bundle class="oracle.sysman.resources.NotifMsg"/>
        </data>
        <data name="scheduleInfo">
          <method class="oracle.sysman.eml.pref.NotifScheduleData"
                  method="getScheduleInfo" />
        </data>         
        <data name="sampleDate">
          <method class="oracle.sysman.eml.pref.NotifScheduleData"
                  method="getSampleDate" />
        </data>
      </provider>
    </dataScope>

  </baja:content>

  <handlers> 
    <event name="*">
      <method class="oracle.sysman.eml.pref.NotifScheduleData"
              method="doNull"/>
    </event>
    <event name="cancel">
      <method class="oracle.sysman.eml.pref.NotifScheduleData"
              method="doCancel"/>
    </event>
    <event name="continue">
      <method class="oracle.sysman.eml.pref.NotifScheduleData"
              method="doContinue"/>
    </event>
  </handlers>
    
</page>

