<%--
 * Copyright (c) 2001, 2005, Oracle. All rights reserved.
 *
 * Template for all PAF Admin pages.
 *
 * Your JSP page should put all its contents WITHIN the 'buildTree' tag
 * with attributes:
 *   nodeID="adminContent"
 *   scope="request"
 * And then include this file at the end:
 * <%@ include file="<template filename>.jspf" %>
 *
 * Inputs:
 *   String requestKey@servletRequest
--%>
<%@ include file="/sdk/oemTop.jspf" %>
<%@ taglib uri="http://xmlns.oracle.com/uix/ui" prefix="uix"%>
<%@ taglib uri="http://xmlns.oracle.com/oem/jsp/tag" prefix="oem" %>

<uix:renderingContext id="renderingContext">
  <oem:setURLEncoder id="renderingContext"/>

  <%--Common UI messages --%>
  <uix:bundle
    name="sdkUIMsg"
    class="oracle.sysman.emSDK.eml.SDKUIMsg"/>

  <%--ResourceBundle for common labels/headers etc--%>
  <uix:bundle
    name="commonResourceBundle"
    class="oracle.sysman.resources.CommonResourceBundle"/>

  <%--ResourceBundle for Deployment Advisor labels/headers etc--%>
  <uix:bundle
    name="paResourceBundle"
    class="oracle.sysman.pp.paf.ui.resource.PAResourceBundle"/>

  <uix:document>

    <%--To help in partial page renderring--%>
    <%@ include file="/enablePPR.jspf" %>

    <%--
      - To display "Oracle Enterprise Manager" followed by UserName on
      - PageTitle. To append page specific string in the title implement
      - getPageHeader() in the CONTROLLER CLASS of JSP
      --%>
    <%@ include file="/oemTitle.jspf" %>

    <uix:body>
      <uix:pageLayout>
        <%@ include file="/oemGlobal.jspf" %>
        <uix:form name="pafForm"
                  method="POST"
                  usesUploadBinding="usesUpload@servletRequest">
          <uix:formValue name="requestController" valueBinding="requestKey@servletRequest"/>

          <uix:tableLayout cellSpacing="0"
                           cellPadding="0"
                           borderWidth="0"
                           width="100%">
            <uix:rowLayout vAlign="top"
                           width="100%">
              <uix:cellFormat width="10%">
                <%-- SideBar navigation --%>
                <uix:sideBar>
                  <uix:contents>
                    <uix:styledList selectedIndexBinding="sideBarIndex@servletRequest"
                                    listStyle="none">
                      <uix:contents>
                        <uix:styledItem>
                          <uix:contents>
                            <uix:link textBinding="PA_ADMIN_OVERVIEW_HDR@paResourceBundle"
                                      destination="overview"/>
                          </uix:contents>
                        </uix:styledItem>
                        <uix:styledItem>
                          <uix:contents>
                            <uix:link textBinding="PA_ADMIN_PROC_INSTALL_HDR@paResourceBundle"
                                      destination="procedureInstall"/>
                          </uix:contents>
                        </uix:styledItem>
                        <uix:styledItem>
                          <uix:contents>
                            <uix:link textBinding="PA_ADMIN_PROV_DAEMON_HDR@paResourceBundle"
                                      destination="provDaemon"/>
                          </uix:contents>
                        </uix:styledItem>
                      </uix:contents>
                    </uix:styledList>
                  </uix:contents>
                </uix:sideBar>
              </uix:cellFormat>
              <uix:cellFormat vAlign="top"
                              width="90%">
                <%-- Include the page content from the caller JSP --%>
                <uix:ref refID="adminContent"/>
              </uix:cellFormat>
            </uix:rowLayout>
          </uix:tableLayout>

        </uix:form>
      </uix:pageLayout>
    </uix:body>
  </uix:document>
</uix:renderingContext>
