<?xml version='1.0' encoding='windows-1252'?>
<!--$Id: SRStaffSearch.jspx,v 1.9 2006/03/29 13:15:05 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">
  <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['srstaffsearch.pageTitle']}">
          <!--Page Content Start-->
          <af:panelBox>
            <af:panelForm>
              <af:inputText value="#{bindings.TheFirstName.inputValue}"
                            label="#{bindings.TheFirstName.label}:"
                            required="#{bindings.TheFirstName.mandatory}"
                            columns="#{bindings.TheFirstName.displayWidth}">
                <af:validator binding="#{bindings.TheFirstName.validator}"/>
              </af:inputText>
              <af:inputText value="#{bindings.TheLastName.inputValue}"
                            label="#{bindings.TheLastName.label}:"
                            required="#{bindings.TheLastName.mandatory}"
                            columns="#{bindings.TheLastName.displayWidth}">
                <af:validator binding="#{bindings.TheLastName.validator}"/>
              </af:inputText>
              <af:inputText value="#{bindings.EmailAddress.inputValue}"
                            label="#{bindings.EmailAddress.label}:"
                            required="#{bindings.EmailAddress.mandatory}"
                            columns="#{bindings.EmailAddress.displayWidth}">
                <af:validator binding="#{bindings.EmailAddress.validator}"/>
              </af:inputText>
              <af:selectOneRadio value="#{bindings.Role.inputValue}"
                                 label="#{bindings.Role.label}:">
                <f:selectItems value="#{bindings.Role.items}"/>
              </af:selectOneRadio>
              <f:facet name="footer">
                <af:panelGroup layout="vertical">
                  <af:panelButtonBar>
                    <af:commandButton actionListener="#{bindings.ExecuteWithParams.execute}"
                                      text="#{res['srstaffsearch.searchLabel']}"/>
                    <af:commandButton text="#{res['srdemo.cancel']}">
                      <af:returnActionListener/>
                    </af:commandButton>
                  </af:panelButtonBar>
                </af:panelGroup>
              </f:facet>
            </af:panelForm>
          </af:panelBox>
          <af:objectSeparator/>
          <af:table value="#{bindings.StaffListByEmailNameRole.collectionModel}" var="row"
                    rows="#{bindings.StaffListByEmailNameRole.rangeSize}"
                    first="#{bindings.StaffListByEmailNameRole.rangeStart}"
                    emptyText="#{bindings.StaffListByEmailNameRole.viewable ? 'No Hits.' : 'Access Denied.'}"
                    selectionState="#{bindings.StaffListByEmailNameRole.collectionModel.selectedRow}"
                    selectionListener="#{bindings.StaffListByEmailNameRole.collectionModel.makeCurrent}"
                    banding="row" width="100%"
                    rendered="#{bindings.StaffListByEmailNameRole.estimatedRowCount > 0}">
            <af:column headerText="#{res['srstaffsearch.results.name']}">
              <af:panelHorizontal>
                <af:outputText value="#{row.FirstName}"/>
                <af:objectSpacer width="4"/>
                <af:outputText value="#{row.LastName}"/>
              </af:panelHorizontal>
            </af:column>
            <af:column headerText="#{bindings.StaffListByEmailNameRole.labels.Email}">
              <af:outputText value="#{row.Email}"/>
            </af:column>
            <af:column headerText="#{bindings.StaffListByEmailNameRole.labels.UserRole}">
              <af:outputText value="#{row.UserRole}"/>
            </af:column>
            <f:facet name="selection">
              <af:tableSelectOne>
                <af:commandButton text="#{res['srstaffsearch.button.select']}">
                  <af:setActionListener from="#{row.UserId}"
                                        to="#{bindings.AssignedTo.inputValue}"/>
                  <af:returnActionListener value="#{row.UserId}"/>
                </af:commandButton>
              </af:tableSelectOne>
            </f:facet>
          </af:table>
          <af:panelTip rendered="#{bindings.StaffListByEmailNameRole.estimatedRowCount == 0}">
            <af:outputText value="#{res['srdemo.searchtip']}"/>
          </af:panelTip>
          <!-- Page Content End -->          
          <f:facet name="menuGlobal">
            <!-- Global menu items in the top right hand corner -->
            <af:menuButtons>
                <af:commandMenuItem text="#{res['srdemo.close']}"
                                    icon="/images/return.gif">
                <af:returnActionListener/>
              </af:commandMenuItem>
              </af:menuButtons>
          </f:facet>
          <f:facet name="messages">
            <af:messages/>
          </f:facet>
          <f:facet name="appCopyright">
            <!--Copyright msg-->
            <af:outputText value="#{res['srdemo.copyright']}"/>
          </f:facet>
        </af:panelPage>
      </af:form>
    </af:document>
  </f:view>
</jsp:root>
