| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version |
| 2.0 (the "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 Unless required by |
| applicable law or agreed to in writing, software distributed under the |
| License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR |
| CONDITIONS OF ANY KIND, either express or implied. See the License for |
| the specific language governing permissions and limitations under the |
| License. |
| --> |
| <html xmlns="http://www.w3.org/1999/xhtml" |
| xmlns:f="http://java.sun.com/jsf/core" |
| xmlns:h="http://java.sun.com/jsf/html" |
| xmlns:ui="http://java.sun.com/jsf/facelets"> |
| |
| <head> |
| <title>OpenWebBeans :: Examples :: Reservation</title> |
| <link type="text/css" rel="stylesheet" href="#{facesContext.externalContext.requestContextPath}/main.css"/> |
| </head> |
| |
| <body> |
| |
| <ui:composition template="/adminMenu.xhtml"> |
| |
| <ui:define name="caption"> |
| <h:outputText value="List Reservations" styleClass="captionTitle" /> |
| </ui:define> |
| |
| <ui:define name="body"> |
| |
| <h:form id="form"> |
| |
| <h:dataTable id="dt" cellpadding="5" value="#{adminListUser.users}" binding="#{adminListUser.model}" var="model" styleClass="table dataTable" rowClasses="oddRow,evenRow"> |
| |
| <h:column id="dt1"> |
| <f:facet name="header"> |
| <h:outputText id="col1" value="Name" /> |
| </f:facet> |
| |
| <h:outputText id="col11" value="#{model.name}" /> |
| </h:column> |
| |
| <h:column id="dt2"> |
| <f:facet name="header"> |
| <h:outputText id="col2" value="Surname" /> |
| </f:facet> |
| |
| <h:outputText id="col221" value="#{model.surname}" /> |
| </h:column> |
| |
| <h:column id="dt3"> |
| <f:facet name="header"> |
| <h:outputText id="col3" value="Age" /> |
| </f:facet> |
| |
| <h:outputText id="col222" value="#{model.age}" /> |
| </h:column> |
| |
| <h:column id="dt4"> |
| <f:facet name="header"> |
| <h:outputText id="col4" value="User Name" /> |
| </f:facet> |
| |
| <h:outputText id="col223" value="#{model.userName}" /> |
| </h:column> |
| |
| <h:column id="dt5"> |
| <f:facet name="header"> |
| <h:outputText id="col5" value="Password" /> |
| </f:facet> |
| |
| <h:outputText id="col224" value="#{model.password}" /> |
| </h:column> |
| |
| <h:column id="dt6"> |
| <f:facet name="header"> |
| <h:outputText id="col6" value="Registered Date" /> |
| </f:facet> |
| |
| <h:outputText id="col225" value="#{model.registerDate}" /> |
| </h:column> |
| |
| <h:column id="dt7"> |
| <h:commandLink action="#{adminListUser.getReservations}" value="Show Reservations" /> |
| </h:column> |
| |
| </h:dataTable> |
| |
| <div class="caption"> |
| <h:outputText value="User Reservations" styleClass="captionTitle" /> |
| </div> |
| |
| <h:dataTable id="dt2" cellpadding="5" value="#{adminListUser.hotels}" var="model" styleClass="table dataTable" rowClasses="oddRow,evenRow"> |
| |
| <h:column id="dt21"> |
| <f:facet name="header"> |
| <h:outputText id="col1" value="Name" /> |
| </f:facet> |
| |
| <h:outputText id="col111" value="#{model.name}" /> |
| </h:column> |
| |
| <h:column id="dt22"> |
| <f:facet name="header"> |
| <h:outputText id="col222" value="Star" /> |
| </f:facet> |
| |
| <h:outputText id="col322" value="#{model.star}" /> |
| </h:column> |
| |
| <h:column id="dt23"> |
| <f:facet name="header"> |
| <h:outputText id="col2" value="City" /> |
| </f:facet> |
| |
| <h:outputText id="col42" value="#{model.city}" /> |
| </h:column> |
| |
| <h:column id="dt24"> |
| <f:facet name="header"> |
| <h:outputText id="co5l2" value="Country" /> |
| </f:facet> |
| |
| <h:outputText id="col622" value="#{model.country}" /> |
| </h:column> |
| |
| |
| </h:dataTable> |
| |
| </h:form> |
| </ui:define> |
| </ui:composition> |
| </body> |
| </html> |