widana

Untitled

Jan 29th, 2017
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 4.03 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2.        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3.  
  4. <html xmlns="http://www.w3.org/1999/xhtml"
  5.    xmlns:ui="http://java.sun.com/jsf/facelets"
  6.    xmlns:f="http://java.sun.com/jsf/core"
  7.    xmlns:h="http://java.sun.com/jsf/html"
  8.    xmlns:p="http://primefaces.org/ui"
  9.    xmlns:j="http://jleaf.org/faces">
  10.  
  11. <ui:composition template="/WEB-INF/layouts/browse.xhtml">
  12.     <ui:define name="headPart">
  13.         <j:lang id="lang" prefix="org.jleaf.erp.master.web" />
  14.         <link
  15.            href="${request.contextPath}/jleaf.resource/org/jleaf/erp/master/web/resources/css/style.css"
  16.            type="text/css" rel="stylesheet" />
  17.         <title>#{piece['uploadSellPriceProduct']}</title>
  18.     </ui:define>
  19.     <ui:define name="contentPart">
  20.          #{uploadSellPriceProductController.init()}
  21.         <div class="page_title">#{piece['uploadSellPriceProduct']}</div>
  22.         <p:panel>
  23.  
  24.         <j:authorize task="uploadSellPriceProduct" forbidden="true"></j:authorize>
  25.            
  26.         <ui:include src="includes/menuForSellPriceProduct.xhtml">
  27.             <ui:param name="active" value="uploadSellPriceProduct"/>
  28.         </ui:include>
  29.            
  30.             <h:panelGrid >
  31.                 <p:row>
  32.                     <p:column>
  33.                                                
  34.                         <h:form>
  35.                         </h:form>
  36.                        
  37.                         <h:panelGrid>
  38.                             <p:row >
  39.                                 <form action="#{uploadSellPriceProductController.dataUploaderUrl}/api/upload" method="post" enctype="multipart/form-data" id="uploadFile" >
  40.            
  41.                                     <input type="hidden" name="datatype" value="sellPriceProduct" />
  42.                                    
  43.                                     <input type="hidden" name="_back" value="#{request.requestURL}" />
  44.                                     <input type="hidden" name="_tid" value="#{loginController.getCurrentTenantId()}" />
  45.                                     <input type="hidden" name="_uid" value="#{loginController.getCurrentUserId()}" />
  46.                                    
  47.                                     <p:column>
  48.                                         <h:panelGrid columns="2">
  49.                                             <h:outputText  value = "#{piece['file']}"/>
  50.                                             <p:inputText id="fileBrowser" type="file" name="file"/>
  51.                                         </h:panelGrid>
  52.                                     </p:column>
  53.                                 </form>
  54.                                 <p:column>
  55.                                     <h:panelGrid columns="3">
  56.                                         <h:form>
  57.                                         <p:commandButton value="#{piece['uploadFile']}"
  58.                                            onclick="document.getElementById('uploadFile').submit()" icon="ui-icon-arrowthick-1-n"/>
  59.                                         </h:form>
  60.                                        
  61.                                         <p:spacer width="20"/>
  62.                                        
  63.                                         <p:commandButton value="#{piece['downloadTemplate']}" onclick="PrimeFaces.monitorDownload(start, stop);" icon="ui-icon-arrowthick-1-s">
  64.                                             <p:fileDownload value="#{uploadSellPriceProductController.file}"/>
  65.                                         </p:commandButton>          
  66.                                     </h:panelGrid>
  67.                                 </p:column>                    
  68.                             </p:row>
  69.                         </h:panelGrid>
  70.                        
  71.                     </p:column>
  72.                 </p:row>
  73.             </h:panelGrid>                    
  74.         </p:panel>
  75.     </ui:define>
  76.    
  77.    
  78.     <ui:define name="outsidePart">
  79.            
  80.     </ui:define>
  81.    
  82. </ui:composition>
  83. </html>
Advertisement
Add Comment
Please, Sign In to add comment