<page xmlns="http://bali.us.oracle.com/cabo/baja"
      xmlns:baja="http://bali.us.oracle.com/cabo/baja"
      xmlns:data="http://bali.us.oracle.com/cabo/marlin"
      xmlns:html="http://www.w3.org/TR/REC-html40"
      xmlns:marlin="http://bali.us.oracle.com/cabo/marlin">
  <baja:content xmlns="http://bali.us.oracle.com/cabo/marlin">
    <form name="confirmTarget">
      <contents>
        <dataScope>
          <contents>
            <html:title>
              <text data:text="pageTitle@confirmData"/>
            </html:title>

            <html:noScript>
              <text data:text="NO_JAVASCRIPT_MSG@blackoutBundle"/>
            </html:noScript>
            
            <pageLayout xmlns="http://bali.us.oracle.com/cabo/marlin">
              <mediumAdvertisement>
                <include baja:node="../../../oemBanner"/>
              </mediumAdvertisement>
              <globalButtons>
                <include baja:node="../../../globalButtonBar"/>
              </globalButtons>
              <tabs>
                <include baja:node="../../../globalTabs"/>
              </tabs>

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

              <pageHeader>
                <include baja:node="../header"/>
              </pageHeader>
              <contentFooter>
                <switcher data:childName="question@confirmData">
                  <case name="false">
                    <pageButtonBar>
                      <contents>
                        <submitButton data:text="OK@adminBundle" 
                                      data:shortDesc="OK@adminBundle"
                                      name="event"
                                      value="NO"/>
                      </contents>
                    </pageButtonBar>
                  </case>
                  <case name="true">
                    <pageButtonBar>
                      <contents>
                        <submitButton data:text="NO@adminBundle"
                                      data:shortDesc="NO@adminBundle"
                                      name="event"
                                      value="NO"/>
                        <submitButton data:text="YES@adminBundle"
                                      data:shortDesc="YES@adminBundle"
                                      name="event"
                                      value="YES"/>
                      </contents>
                    </pageButtonBar>
                  </case>
                </switcher>
              </contentFooter>
              <copyright>
                <include baja:node="../../../copyright"/>
              </copyright>
              <marlin:contents>
                <borderLayout>
                  <contents>
                    <switcher data:childName="question@confirmData">
                      <case name="false">
                        <header messageType="error">
                          <contents>
                            <stackLayout>
                              <contents>
                                <styledText data:text="messageText@confirmData"
                                            styleClass="OraInstructionTextStrong"/>
                                <spacer height="3"/>
                                <!-- optional tip -->
                                <tip rendered="false"
                                     data:rendered="showTip@confirmData">
                                  <contents>
                                    <styledText data:text="tipText@confirmData"/>
                                  </contents>
                                </tip>
                              </contents>
                            </stackLayout>
                          </contents>
                        </header>
                      </case>
                      <case name="true">
                        <header messageType="confirmation">
                          <contents>
                            <stackLayout>
                              <contents>
                                <styledText data:text="messageText@confirmData"
                                            styleClass="OraInstructionTextStrong"/>
                                <!-- Table Displayed in case of Multiple Targets -->
                                <spacer height="5"
                                        data:rendered="displayTargetsTable@confirmData"/>
                                <table partialRenderMode="self" name="T"
                                       width="25%"
                                       data:alternateText="NO_BLACKOUT_DEFINED@blackoutBundle"
                                       data:tableData="row@confirmData"
                                       data:columnHeaderData="column@confirmData"
                                       showAll="yes"
                                       data:value="value@confirmData"
                                       data:minValue="minValue@confirmData"
                                       data:blockSize="blockSize@confirmData"
                                       data:maxValue="maxValue@confirmData"
                                       data:summary="DELETE_CONFIRMATION_SUMMARY@blackoutBundle"
                                       data:rendered="displayTargetsTable@confirmData">
                                  <columnFormats>
                                    <columnFormat/>
                                    <columnFormat/>
                                  </columnFormats>
                                  <columnHeaderStamp>
                                    <sortableHeader data:text="text"
                                                    data:sortable="sortable"
                                                    data:value="value"/>
                                  </columnHeaderStamp>
                                  <!-- Set the Table Format so that alternate
                                  rows are displayed in different colours
                                  (rowBanding) -->
                                  <tableFormat tableBanding="rowBanding"/>
                                  <!-- The following contains the single
                                       Targets Name display Column. -->
                                  <contents>
                                    <!--Target Name-->
                                    <styledText data:text="targetName"
                                                data:shortDesc="TARGET@blackoutBundle"/>
                                    <styledText data:text="targetType"
                                                data:shortDesc="TYPE@SDKBundle"/>                                                
                                  </contents>
                                </table>
                                <spacer height="3"/>
                                <!-- optional tip -->
                                <tip rendered="false"
                                     data:rendered="showTip@confirmData">
                                  <contents>
                                    <styledText data:text="tipText@confirmData"/>
                                  </contents>
                                </tip>
                              </contents>
                            </stackLayout>
                          </contents>
                        </header>
                      </case>
                    </switcher>
                  </contents>
                </borderLayout>
              </marlin:contents>
            </pageLayout>
          </contents>
          <provider>
            <data name="confirmData">
              <method class="oracle.sysman.eml.admin.rep.blackout.BlackoutData"
                      method="getConfirmData"/>
            </data>
            <data name="adminBundle">
              <bundle class="oracle.sysman.eml.admin.rep.AdminResourceBundle"/>
            </data>
            <data name="blackoutBundle">
              <bundle class="oracle.sysman.eml.admin.rep.blackout.BlackoutResourceBundle"/>
            </data>
            <data name="SDKBundle">
              <bundle class="oracle.sysman.emSDK.eml.SDKUIMsg"/>
            </data>            
          </provider>
        </dataScope>
      </contents>
    </form>
  </baja:content>
  <baja:handlers>
    <event name="NO">
      <method class="oracle.sysman.eml.admin.rep.blackout.BlackoutEvents"
              method="doCancel"/>
    </event>
    <event name="YES">
      <method class="oracle.sysman.eml.admin.rep.blackout.BlackoutEvents"
              method="doConfirmSubmit"/>
    </event>
    <event name="sort">
      <method class="oracle.sysman.eml.admin.rep.blackout.BlackoutEvents"
              method="doSort"/>
    </event>
    <event name="goto">
      <method class="oracle.sysman.eml.admin.rep.blackout.BlackoutEvents"
              method="handleGoto"/>
    </event>
    <event name="*">
      <method class="oracle.sysman.eml.admin.rep.blackout.BlackoutEvents"
              method="doNull"/>
    </event>
  </baja:handlers>
</page>
