<?xml version='1.0' encoding='windows-1252'?>
<!--$Id: SRMain.jspx,v 1.9 2006/05/11 00:32:02 steve Exp $-->
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:af="http://xmlns.oracle.com/adf/faces"
          xmlns:afh="http://xmlns.oracle.com/adf/faces/html"
          xmlns:afc="http://xmlns.oracle.com/adf/faces/webcache">
  <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
              doctype-system="http://www.w3.org/TR/html4/loose.dtd"
              doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
  <jsp:directive.page contentType="text/html;charset=UTF-8"/>
  <f:view>
    <f:loadBundle basename="oracle.srdemo.view.resources.UIResources"
                  var="res"/>
    <af:document title="#{res['srdemo.browserTitle']}">
      <af:form>
        <af:panelPage title="#{res['srmain.pageTitle']} #{bindings.SvrId}">
          <!--Page Content Start-->
          <af:panelForm maxColumns="2" rows="4" width="60%">
            <af:panelLabelAndMessage label="#{bindings.ProductName.label}:">
              <af:outputText value="#{bindings.ProductName.inputValue}"/>
            </af:panelLabelAndMessage>
            <af:panelLabelAndMessage label="#{bindings.CreatedBy.label}:">
              <af:outputText value="#{bindings.CreatedByFirstName.inputValue} #{bindings.CreatedByLastName.inputValue}"/>
            </af:panelLabelAndMessage>
            <af:panelLabelAndMessage label="#{bindings.AssignedTo.label}:">
              <af:outputText value="#{bindings.AssignedToFirstName.inputValue} #{bindings.AssignedToLastName.inputValue}"/>
            </af:panelLabelAndMessage>
            <af:panelLabelAndMessage label="#{bindings.ProblemDescription.label}:">
              <af:outputText value="#{bindings.ProblemDescription.inputValue}"/>
            </af:panelLabelAndMessage>
            <af:panelLabelAndMessage label="#{bindings.Status.label}:">
              <af:outputText value="#{bindings.Status.inputValue}"/>
            </af:panelLabelAndMessage>
            <af:panelLabelAndMessage label="#{bindings.RequestDate.label}:">
              <af:outputText value="#{bindings.RequestDate.inputValue}"/>
            </af:panelLabelAndMessage>
            <af:panelLabelAndMessage label="#{bindings.AssignedDate.label}:">
              <af:outputText value="#{bindings.AssignedDate.inputValue}"/>
            </af:panelLabelAndMessage>
            <f:facet name="footer">
              <af:panelGroup>
                <af:objectSpacer width="10" height="10"/>
                <af:panelButtonBar>
                  <af:commandButton text="#{res['srmain.srrequestform.editButton']}"
                                    rendered="#{userInfo.staff}" action="Edit">
                    <af:setActionListener from="#{'Main'}"
                                          to="#{userState.returnNavigationRule}"/>
                  </af:commandButton>
                  <af:commandButton
                                    text="#{res['srmain.srrequestform.deleteButton']}"
                                    rendered="#{userInfo.staff}"
                                    disabled="#{!userInfo.manager}"
                                    action="#{backing_SRMain.onDeleteRequest}"/>
                  <af:commandButton text="#{res['srmain.srrequestform.addanoteButton']}"
                                    disabled="#{backing_SRMain.addNotesPanel.rendered}"
                                    action="#{backing_SRMain.srAddNoteButton_action}"/>
                  <af:commandButton text="#{res['srmain.srrequestform.uploadFileButton']}"
                                    disabled="#{backing_SRMain.addNotesPanel.rendered}"
                                    action="dialog:FILEUPLOAD" immediate="true"
                                    partialSubmit="true" useWindow="true"/>
                </af:panelButtonBar>
              </af:panelGroup>
            </f:facet>
          </af:panelForm>
          <af:objectSeparator/>
          <af:panelBox id="addNotesPanel"
                       binding="#{backing_SRMain.addNotesPanel}"
                       rendered="false" width="60%">
            <af:panelForm rendered="true">
              <af:inputText
                            value="#{bindings.Notes.inputValue}"
                            label="#{bindings.Notes.label}:"
                            columns="60" rows="4">
                <af:validator binding="#{bindings.Notes.validator}"/>
              </af:inputText>
              <f:facet name="footer">
                <af:panelGroup>
                  <af:objectSpacer width="10" height="10"/>
                  <af:panelButtonBar>
                    <af:commandButton
                                      text="#{res['srmain.noteform.addButton']}"
                                      action="#{backing_SRMain.onAddNewNote}"/>
                    <af:commandButton
                                      text="#{res['srdemo.cancel']}"
                                      action="#{backing_SRMain.onCancelAddNote}"/>
                    <af:resetButton text="#{res['srdemo.reset']}"/>
                  </af:panelButtonBar>
                </af:panelGroup>
              </f:facet>
              <af:panelLabelAndMessage label="#{bindings.Hidden.label}:"
                                       rendered="#{userInfo.staff}">
                <af:selectBooleanCheckbox autoSubmit="true" immediate="true"
                                          id="confidential"
                                          valueChangeListener="#{backing_SRMain.confidentialChangeListener}"
                                          simple="true"
                                          value="#{bindings.Hidden.inputValue}"
                                          binding="#{backing_SRMain.confidential}"/>
                <af:outputText value="#{res['srmain.noteform.confidential.unchecked.exp']}"
                               partialTriggers="confidential"
                               binding="#{backing_SRMain.confidentialWarning}"/>
              </af:panelLabelAndMessage>
            </af:panelForm>
          </af:panelBox>
          <af:objectSpacer width="10" height="10"/>
          <af:table value="#{bindings.ServiceHistories.collectionModel}"
                    var="row"
                    rows="#{bindings.ServiceHistories.rangeSize}"
                    first="#{bindings.ServiceHistories.rangeStart}"
                    emptyText="#{bindings.ServiceHistories.viewable ? 'No rows yet.' : 'Access Denied.'}"
                    width="100%" binding="#{backing_SRMain.historyTable}">
            <af:column headerText="#{bindings.ServiceHistories.labels.SvhDate}"
                       sortable="false">
              <af:outputText value="#{row.SvhDate}">
                <f:convertDateTime pattern="#{bindings.ServiceHistories.formats.SvhDate}"/>
              </af:outputText>
            </af:column>
            <af:column headerText="#{bindings.ServiceHistories.labels.SvhType}"
                       sortable="false">
              <af:outputText value="#{row.SvhType}"/>
            </af:column>
            <af:column headerText="#{bindings.ServiceHistories.labels.Notes}"
                       sortable="false">
              <af:outputText value="#{row.Notes}"/>
            </af:column>
            <f:facet name="selection">
              <af:tableSelectMany text="#{res['srmain.srhistorytable.selectAnd']}"
                                  rendered="#{userInfo.manager}">
                <af:commandButton
                                  text="#{res['srmain.srhistorytable.deletebutton']}"
                                  action="#{backing_SRMain.onDeleteHistoryRows}"/>
              </af:tableSelectMany>
            </f:facet>
          </af:table>
          <!-- Page Content End -->
          <f:facet name="branding">
            <af:objectImage height="69" width="340"
                            source="/images/SRBranding.gif"/>
          </f:facet>
          <f:facet name="menu1">
            <afc:cache duration="864000" varyBy="userInfo.userName">
              <af:menuTabs var="menuTab" value="#{menuModel.model}">
                <f:facet name="nodeStamp">
                  <af:commandMenuItem text="#{menuTab.label}"
                                      action="#{menuTab.getOutcome}"
                                      rendered="#{menuTab.shown and menuTab.type=='default'}"
                                      disabled="#{menuTab.readOnly}"/>
                </f:facet>
              </af:menuTabs>
            </afc:cache>
          </f:facet>
          <f:facet name="menu2">
            <af:menuBar>
              <af:objectSpacer height="14"/>
            </af:menuBar>
          </f:facet>
          <f:facet name="menuGlobal">
            <f:subview id="globalMenufragment">
              <jsp:include page="/app/globalMenu.jspx"/>
            </f:subview>
          </f:facet>
          <f:facet name="messages">
            <af:messages/>
          </f:facet>
          <f:facet name="appCopyright">
            <!--Copyright msg-->
            <af:outputText value="#{res['srdemo.copyright']}"/>
          </f:facet>
          <f:facet name="appAbout">
              <!-- The About this Application Link-->
              <af:commandLink text="#{res['srdemo.about']}" action="GlobalAbout"
                              immediate="true"/>
          </f:facet>
          <f:facet name="infoUser">
            <!-- Show the Logged in user -->
            <h:outputFormat value="#{res['srdemo.connectedUser']}"
                            rendered="#{userInfo.authenticated}" escape="false">
              <f:param value="#{userInfo.userName}"/>
            </h:outputFormat>
          </f:facet>
        </af:panelPage>
      </af:form>
    </af:document>
  </f:view>
</jsp:root>
