Facebook
From Coral Camel, 5 Years ago, written in Java.
Embed
Download Paste or View Raw
Hits: 180
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml"
  4.       xmlns:h="http://java.sun.com/jsf/html"
  5.       xmlns:f="http://java.sun.com/jsf/core"
  6.       xmlns:ui="http://java.sun.com/jsf/facelets"
  7.       xmlns:p="http://primefaces.org/ui">  
  8.     <ui:composition>
  9.  
  10.         <f:metadata>
  11.             <f:viewAction action="#{loginController.redirectOnLoggedIn()}"/>
  12.         </f:metadata>
  13.  
  14.         <h:form>
  15.             <f:event type="preRenderView" listener="#{ratingController.initRatingData()}"/>
  16.             <f:event listener="#{order1Controller.initUserOrderList()}" type="preRenderView" />
  17.         </h:form>  
  18.  
  19. <!--        <h:form id="showOrderDetailsForm">-->
  20.             <p:dialog id="showOrderDetailsForm" width="50%" height="100%" widgetVar="showOrderDetails" resizable="false" modal="true" showEffect="fade" hideEffect="fade" dynamic="true" draggable="false" fitViewport="true" >    
  21.  
  22.                 <f:facet name="header">
  23.                     <h:outputText value="#{showOrderDetails.lblMyOrderList}" style="font-size: 30px; "/>  
  24.                 </f:facet>
  25.  
  26.                 <p:scrollPanel style="width:100%;height:500px">
  27.                     <p:outputPanel id="orderDetail" style="text-align:center;">
  28.                         <p:panelGrid columns="2" rendered="#{not empty order1Controller.selectedOrder}" columnClasses="label,value">
  29.                             <f:facet name="header"/>
  30.  
  31.                         </p:panelGrid>
  32.                     </p:outputPanel>                <!--
  33.             <p:scrollPanel>-->
  34.  
  35.                     <div class="ui-g-12">
  36.                         <p:dataTable id="projectTableAll"
  37.                                      value="#{order1Controller.selectedOrders}"
  38.                                      var="list"
  39.                                      rowKey="#{list.orderId}"
  40.                                      reflow="true"
  41.                                      widgetVar="order"
  42.                                      scrollable="false"
  43.                                      emptyMessage="#{order.lblRecordsNotFound}"
  44.                                      style="margin-top: 10px;">
  45.  
  46.                             <p:column style="width: 20%" >
  47.                                 <f:facet name="header">
  48.                                     <h:outputText style="font-size:15px" />
  49.                                 </f:facet>
  50.                                 <h:outputText value="#{list.name}" style="font-weight: bold"/><br/><br/>
  51.                                 <h:outputText value="Zaladunek" style="font-weight: bold; font-size: 24px; margin-top: 5%!important"/>  
  52.                                 <div/>
  53.                                 <div>
  54.                                     <h:outputText value="#{list.pickupAddress.country}" style="font-weight: bold" /><br/><br/>
  55.                                     <h:outputText value="#{list.pickupAddress.street}" style="font-size: small"/><br/>
  56.                                     <h:outputText value="#{list.pickupAddress.town}" style="font-size: small"/><br/>
  57.                                     <h:outputText value="#{list.pickupAddress.zipCode}" style="font-size: small"/>
  58.                                 </div>
  59.                                 <h:outputText value="Kiedy: " style="font-weight: bold"/>  
  60.                                 <h:outputText value="#{list.pickupDate}" style="font-size: small">
  61.                                     <f:convertDateTime pattern="dd.MM.yyyy" />
  62.                                 </h:outputText><br/><br/>
  63.  
  64.                                 <div>
  65.                                     <h:outputText value="Rozładunek " style="font-weight: bold; font-size: 24px; margin-top: 5%!important"/> <br/>
  66.                                     <h:outputText value="#{list.deliveryAddress.country}" style="font-weight: bold" /><br/><br/>
  67.                                     <h:outputText value="#{list.deliveryAddress.street}" style="font-size: small"/><br/>
  68.                                     <h:outputText value="#{list.deliveryAddress.town}" style="font-size: small"/><br/>
  69.                                     <h:outputText value="#{list.deliveryAddress.zipCode}" style="font-size: small"/> <br/>
  70.                                     <h:outputText value="Kiedy: " style="font-weight: bold" />
  71.                                     <h:outputText value="#{list.deliveryDate}" style="font-size: small">
  72.                                         <f:convertDateTime pattern="dd.MM.yyyy" />
  73.                                     </h:outputText><br/><br/>
  74.                                 </div>
  75.  
  76.  
  77.                                 <h:outputText value="Pojazd " style="font-size:20px; font-weight: bold" /><br/>
  78.                                 <h:outputText value="#{list.bodyForm}" /><br/>
  79.                                 <h:outputText value="#{list.capacity}#{list.unit}" style="font-size: small" /><br/>
  80.                                 <h:outputText value="#{list.lodeType}" style="font-size: small"/><br/>
  81.  
  82.                                 <h:outputText value="Trasa: " style="font-weight: bold; font-size: 20px"/>
  83.                                 <h:outputText value="340 km"/><br/><br/>
  84.  
  85.                                 <h:outputText value="Budżet: " style="font-weight: bold; font-size: 20px"/>
  86.                                 <h:outputText value="#{list.budget} PLN" style="font-size: small"/><br/><br/>
  87.  
  88.  
  89.                             </p:column>
  90.                         </p:dataTable>
  91.                     </div>
  92.    
  93.  
  94.                     <style type="text/css">
  95.                         .logo {
  96.                             width: 5%
  97.                         }
  98.  
  99.                         .detail {
  100.                             width: 95%;
  101.                             padding-left: 25px;
  102.                         }
  103.  
  104.                         .detail td {
  105.                             font-size: 24px;
  106.                         }
  107.  
  108.                         .ui-datascroller .ui-datascroller-item {
  109.                             // border-bottom: 1px solid #A8A8A8;
  110.                             padding: 25px 10px;
  111.                             box-shadow: 5px 2px 2px gray;  
  112.                             /* with the exported variables from Nova and Luna Themes*/
  113.  
  114.                         }
  115.                     </style>
  116.  
  117.  
  118.  
  119.  
  120.                     <h:form style="text">
  121.                         <p:dataScroller value="#{order1Controller.selectedOrder.offerList}"
  122.                                         var="offer"
  123.                                         chunkSize="10" style="text">  
  124.                             <f:facet name="header">
  125.                                 Oferty
  126.                             </f:facet>
  127.                             <p:panelGrid columns="6" style="width: 100%" columnClasses="price,offet,id">
  128.  
  129.                                 <p:outputPanel>
  130.                                     <h:panelGrid columns="6" cellpadding="10">
  131.                                         <h:outputText value="Price: "/>
  132.                                         <h:outputText value="#{offer.oldValue}" style="font-weight: bold"/>
  133.  
  134.                                         <h:outputText value="Offer: "/>
  135.                                         <h:outputText value="#{offer.offerCommentText}" style=" "/>
  136.  
  137.                                         <h:outputText value="Użytkownik: "/>
  138.                                         <h:outputText value="#{offer.userId}" style="font-weight: bold"/>
  139.                                     </h:panelGrid>
  140.                                 </p:outputPanel>  
  141.                             </p:panelGrid>  
  142.  
  143.                         <p:panelGrid>
  144.                                 <h:outputLabel />
  145.                                 <p:inplace id="image" label="Dodaj komentarz" effect="slide" toggleable="true" style="border: 1px" >
  146.                                     <h:outputLabel style="float: left; margin: 2%"/>
  147.                                     <h:panelGroup style="float: left; width: 20%; margin: 2%">
  148.                                         <p:spinner id="oldValue" min="0" size="2" stepFactor="0.01" value="#{offerController.oldValue}" />  
  149.                                         <p:spacer width="5%"/>
  150.                                         <h:outputText  value="PLN"></h:outputText>
  151.                                     </h:panelGroup>  
  152.                                     <p:inputText value="#{commentController.commentText}" required="true" placeholder="Komenatarz" style="float: left; margin: 2%; width: 50%" />  
  153.  
  154.                                     <p:commandButton value="Dodaj" action="#{commentController.addComment()}" style="margin: 2% 2% 2% 160%  " oncomplete="PF('showOrderDetailsForm').hide()" ajax="false" process="@this showOrderDetailsForm" icon="ui-icon-pencil" update="@this showOrderDetailsForm"/>
  155.  
  156.                                 </p:inplace>
  157.  
  158.                             </p:panelGrid>
  159.                         </p:dataScroller>
  160.                     </h:form>
  161.  
  162.                 </p:scrollPanel>
  163.             </p:dialog>  
  164. <!--        </h:form>  -->
  165.  
  166.     </ui:composition>
  167. </html>  
  168.  
  169.