<?xml version='1.0' encoding='windows-1252'?>
<!--$Id: SRSearch.jspx,v 1.10 2006/05/11 00:32:06 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: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['srsearch.pageTitle']}">
          <!--Page Content Start-->
          <af:panelBox>
            <af:panelForm>
              <af:inputText value="#{bindings.SvrIdCriteria.inputValue}"
                            label="#{bindings.SvrIdCriteria.label}:"
                            columns="#{bindings.SvrIdCriteria.displayWidth}"/>
              <af:selectOneChoice value="#{bindings.StatusCriteria.inputValue}"
                                  label="#{bindings.StatusCriteria.label}:">
                <f:selectItems value="#{bindings.StatusCriteria.items}"/>
              </af:selectOneChoice>
              <af:inputText value="#{bindings.ProblemDescriptionCriteria.inputValue}"
                            label="#{bindings.ProblemDescriptionCriteria.label}:"
                            columns="#{bindings.ProblemDescriptionCriteria.displayWidth}"/>
              <af:inputText value="#{bindings.ProductNameCriteria.inputValue}"
                            label="#{bindings.ProductNameCriteria.label}:"
                            columns="#{bindings.ProductNameCriteria.displayWidth}"/>
              <f:facet name="footer">
                <af:panelButtonBar>
                  <af:commandButton actionListener="#{bindings.Execute.execute}"
                                    text="#{res['srsearch.searchLabel']}">
                        <af:setActionListener from="#{false}"
                                              to="#{userState.searchFirstTime}"/>                                    
                  </af:commandButton>
                  <af:commandButton actionListener="#{bindings.Delete.execute}"
                                    text="#{res['srsearch.resetSearchLabel']}">
                        <af:setActionListener from="#{true}"
                                              to="#{userState.searchFirstTime}"/>                                    
                  </af:commandButton>                  
                </af:panelButtonBar>
              </f:facet>
            </af:panelForm>
            <af:panelTip>
              <af:outputText value="#{res['srdemo.searchtip']}"/>
            </af:panelTip>
          </af:panelBox>
          <af:objectSpacer width="10" height="10"/>
          <af:panelGroup rendered="#{userState.searchFirstTime == false}">
           <af:panelHeader text="#{res['srsearch.results.subtitle']}"/>
            <af:showOneTab position="above">
              <af:showDetailItem text="#{res['srsearch.summaryView']}">
                <af:table value="#{bindings.SearchServiceRequests.collectionModel}"
                          var="row"
                          rows="#{bindings.SearchServiceRequests.rangeSize}"
                          first="#{bindings.SearchServiceRequests.rangeStart}"
                          emptyText="#{res['srsearch.noHits']}"
                          selectionState="#{bindings.SearchServiceRequests.collectionModel.selectedRow}"
                          selectionListener="#{bindings.SearchServiceRequests.collectionModel.makeCurrent}"
                          width="100%">
                  <af:column headerText="#{bindings.SearchServiceRequests.labels.SvrId}"
                             sortProperty="SvrId" sortable="false">
                    <af:commandLink actionListener="#{bindings.setCurrentRowWithKey.execute}"
                                    action="View"
                                    text="#{row.SvrId}">
                     <af:setActionListener from="#{row.rowKeyStr}"
                                           to="#{processScope.rowKeyStr}"/>
                        <af:setActionListener from="#{'GlobalSearch'}"
                                              to="#{userState.returnNavigationRule}"/>                              
                    </af:commandLink>                                    
                  </af:column>
                  <af:column headerText="#{bindings.SearchServiceRequests.labels.ProblemDescription}"
                             sortProperty="ProblemDescription" sortable="true">
                    <af:outputText value="#{row.ProblemDescription}"/>
                  </af:column>
                  <af:column headerText="#{bindings.SearchServiceRequests.labels.Status}:"
                             sortProperty="Status" sortable="true">
                    <af:outputText value="#{row.Status}"/>
                  </af:column>
                  <af:column headerText="#{bindings.SearchServiceRequests.labels.RequestDate}"
                             sortProperty="RequestDate" sortable="true">
                    <af:outputText value="#{row.RequestDate}">
                      <f:convertDateTime pattern="#{bindings.SearchServiceRequests.formats.RequestDate}"/>
                    </af:outputText>
                  </af:column>
                  <af:column headerText="#{bindings.SearchServiceRequests.labels.AssignedDate}"
                             sortProperty="AssignedDate" sortable="true">
                    <af:outputText value="#{row.AssignedDate eq null?res['srsearch.highlightUnassigned']:row.AssignedDate}"
                                   inlineStyle="#{row.AssignedDate eq null?'color:rgb(255,0,0);':''}">
                      <f:convertDateTime pattern="#{bindings.SearchServiceRequests.formats.AssignedDate}"/>
                    </af:outputText>
                  </af:column>
                  <f:facet name="selection">
                    <af:tableSelectOne text="#{res['srsearch.resultsTable.prefix']}">
                      <af:commandButton text="#{res['srsearch.resultsTable.view']}"
                                        actionListener="#{bindings.setCurrentRowWithKey.execute}"
                                        action="View">
                        <af:setActionListener from="#{'GlobalSearch'}"
                                              to="#{userState.returnNavigationRule}"/>                              
                        <af:setActionListener from="#{row.rowKeyStr}"
                                              to="#{processScope.rowKeyStr}"/>                              
                      </af:commandButton>
                      <af:commandButton text="#{res['srsearch.resultsTable.edit']}"
                                        id="editButton"
                                        action="Edit"
                                        actionListener="#{bindings.setCurrentRowWithKey.execute}">
                        <af:setActionListener from="#{row.rowKeyStr}"
                                              to="#{processScope.rowKeyStr}"/>                              
                        <af:setActionListener from="#{'GlobalSearch'}"
                                              to="#{userState.returnNavigationRule}"/>                                                                      
                      </af:commandButton>
                    </af:tableSelectOne>
                  </f:facet>
                </af:table>
              </af:showDetailItem>
              <af:showDetailItem text="#{res['srsearch.detailView']}"
                                 rendered="#{bindings.SearchServiceRequests.estimatedRowCount >0}">
                <af:panelHorizontal halign="center">
                  <af:panelBox>
                    <af:panelForm>
                      <af:panelLabelAndMessage label="#{bindings.SvrId.label}:"
                                               inlineStyle="text-align:right;">
                        <af:outputText value="#{bindings.SvrId.inputValue}"
                                       inlineStyle="font-size:smaller;"/>
                      </af:panelLabelAndMessage>
                      <af:panelLabelAndMessage label="#{bindings.ProductName.label}:"
                                               inlineStyle="text-align:right;">
                        <af:outputText value="#{bindings.ProductName.inputValue}"
                                       inlineStyle="font-size:smaller;"/>
                      </af:panelLabelAndMessage>
                      <af:panelLabelAndMessage label="#{bindings.CreatedBy.label}:"
                                               inlineStyle="text-align:right;">
                        <af:panelHorizontal>
                          <f:facet name="separator">
                            <af:objectSpacer width="4" height="10"/>
                          </f:facet>
                          <af:outputText value="#{bindings.CreatedByFirstName.inputValue}"
                                         inlineStyle="font-size:smaller;"/>
                          <af:outputText value="#{bindings.CreatedByLastName.inputValue}"
                                         inlineStyle="font-size:smaller;"/>
                        </af:panelHorizontal>
                      </af:panelLabelAndMessage>
                      <af:panelLabelAndMessage label="#{bindings.RequestDate.label}:"
                                               inlineStyle="text-align:right;">
                        <af:outputText value="#{bindings.RequestDate.inputValue}"
                                       inlineStyle="font-size:smaller;">
                          <f:convertDateTime pattern="#{bindings.RequestDate.format}"/>
                        </af:outputText>
                      </af:panelLabelAndMessage>
                      <af:panelLabelAndMessage label="#{bindings.ProblemDescription.label}:"
                                               inlineStyle="text-align:right;">
                        <af:outputText value="#{bindings.ProblemDescription.inputValue}"
                                       inlineStyle="font-size:smaller;"/>
                      </af:panelLabelAndMessage>
                      <af:panelLabelAndMessage label="#{bindings.AssignedTo.label}:"
                                               inlineStyle="text-align:right;">
                        <af:panelHorizontal>
                          <af:outputText value="#{bindings.AssignedToFirstName.inputValue}"
                                         inlineStyle="font-size:smaller;"/>
                          <f:facet name="separator">
                            <af:objectSpacer width="4" height="10"/>
                          </f:facet>
                          <af:outputText value="#{bindings.AssignedToLastName.inputValue}"
                                         inlineStyle="font-size:smaller;"/>
                        </af:panelHorizontal>
                      </af:panelLabelAndMessage>
                      <af:panelLabelAndMessage label="#{bindings.AssignedDate.label}:"
                                               inlineStyle="text-align:right;">
                        <af:outputText value="#{bindings.AssignedDate.inputValue}"
                                       inlineStyle="font-size:smaller;">
                          <f:convertDateTime pattern="#{bindings.AssignedDate.format}"/>
                        </af:outputText>
                      </af:panelLabelAndMessage>
                      <af:panelLabelAndMessage label="#{bindings.Status.label}:"
                                               inlineStyle="text-align:right;">
                        <af:outputText value="#{bindings.Status.inputValue}"
                                       inlineStyle="font-size:smaller;"/>
                      </af:panelLabelAndMessage>
                      <f:facet name="footer">
                        <af:panelButtonBar>
                          <af:commandButton actionListener="#{bindings.First.execute}"
                                            text="First"
                                            disabled="#{!bindings.First.enabled}"/>
                          <af:commandButton actionListener="#{bindings.Previous.execute}"
                                            text="Previous"
                                            disabled="#{!bindings.Previous.enabled}"/>
                          <af:commandButton actionListener="#{bindings.Next.execute}"
                                            text="Next"
                                            disabled="#{!bindings.Next.enabled}"/>
                          <af:commandButton actionListener="#{bindings.Last.execute}"
                                            text="Last"
                                            disabled="#{!bindings.Last.enabled}"/>
                        </af:panelButtonBar>
                      </f:facet>
                    </af:panelForm>
                  </af:panelBox>
                </af:panelHorizontal>
              </af:showDetailItem>
            </af:showOneTab>
          </af:panelGroup>
          <!-- 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>
