<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@disablingPeriodInfo" />
        </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="scheduleEx" method="GET" id="scheduleEx">
          <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>
                    <button data:text="CANCEL_BUTTON@commonResourceBundle"
                            data:destination="cancelDest@disablingPeriodInfo" />
                    <submitButton data:text="OK_BUTTON@commonResourceBundle" 
                                  name="event" 
                                  value="apply" />
                  </contents>
                </pageButtonBar>
              </contentFooter>

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

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

              <contents>

                <formValue name="userShown"
                           data:value="userShown@disablingPeriodInfo" />

                <stackLayout rendered="false"
                             data:rendered="disablePeriodErr@disablingPeriodInfo">
                  <contents>
                    <messageBox data:message="disablePeriodMsg@disablingPeriodInfo"
                                messageType="error"
                                data:text="INVALID_SUSPENDED_NOTIF@notifResourceBundle"/>
                  </contents>  
                </stackLayout>

                <header data:text="header@disablingPeriodInfo" >
                  <contents>

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

                            <cellFormat vAlign="top" hAlign="right">
                              <contents>
                                <button data:text="CANCEL_BUTTON@commonResourceBundle"
                                        data:destination="cancelDest@disablingPeriodInfo" />
                                <spacer width="10"/>
                                <submitButton data:text="OK_BUTTON@commonResourceBundle"
                                              name="event"
                                              value="apply" />
                                <spacer width="10"/>
                              </contents>
                            </cellFormat>
                          </contents>
                        </rowLayout>
                        <rowLayout>
                          <contents>
                            <spacer height="10"/>
                          </contents>
                        </rowLayout>

                      </contents>
                    </tableLayout>

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

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

                        <spacer height="2"/>
                        <messageDateField data:prompt="END_DATE@notifResourceBundle"
                                          data:shortDesc="END_DATE@notifResourceBundle"
                                          name="endDateField"
                                          data:message="sample@sampleDate"
                                          data:value="endDate@disablingPeriodInfo" >
                          <onSubmitValidater>
                            <date dateStyle="medium" />
                          </onSubmitValidater>
                        </messageDateField>

                        <spacer height="5"/>
                        <spacer height="5"/>

                        <styledText data:text="TIMEZONE@commonResourceBundle"
                                    styleClass="OraInstructionText"/>
                        <styledText data:text="timezone@disablingPeriodInfo"
                                    styleClass="OraInstructionTextStrong"/>

                      </contents>
                    </labeledFieldLayout>

                    <spacer height="5"/>

                  </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="disablingPeriodInfo">
          <method class="oracle.sysman.eml.pref.NotifScheduleData"
                  method="getDisablingPeriodInfo" />
        </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="apply">
      <method class="oracle.sysman.eml.pref.NotifScheduleData"
              method="doApplyDisablingPeriod"/>
    </event>
  </handlers>
    
</page>

