Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:p="http://primefaces.org/ui"
- xmlns:j="http://jleaf.org/faces">
- <ui:composition template="/WEB-INF/layouts/browse.xhtml">
- <ui:define name="headPart">
- <j:lang id="lang" prefix="org.jleaf.erp.master.web" />
- <link
- href="${request.contextPath}/jleaf.resource/org/jleaf/erp/master/web/resources/css/style.css"
- type="text/css" rel="stylesheet" />
- <title>#{piece['uploadSellPriceProduct']}</title>
- </ui:define>
- <ui:define name="contentPart">
- #{uploadSellPriceProductController.init()}
- <div class="page_title">#{piece['uploadSellPriceProduct']}</div>
- <p:panel>
- <j:authorize task="uploadSellPriceProduct" forbidden="true"></j:authorize>
- <ui:include src="includes/menuForSellPriceProduct.xhtml">
- <ui:param name="active" value="uploadSellPriceProduct"/>
- </ui:include>
- <h:panelGrid >
- <p:row>
- <p:column>
- <h:form>
- </h:form>
- <h:panelGrid>
- <p:row >
- <form action="#{uploadSellPriceProductController.dataUploaderUrl}/api/upload" method="post" enctype="multipart/form-data" id="uploadFile" >
- <input type="hidden" name="datatype" value="sellPriceProduct" />
- <input type="hidden" name="_back" value="#{request.requestURL}" />
- <input type="hidden" name="_tid" value="#{loginController.getCurrentTenantId()}" />
- <input type="hidden" name="_uid" value="#{loginController.getCurrentUserId()}" />
- <p:column>
- <h:panelGrid columns="2">
- <h:outputText value = "#{piece['file']}"/>
- <p:inputText id="fileBrowser" type="file" name="file"/>
- </h:panelGrid>
- </p:column>
- </form>
- <p:column>
- <h:panelGrid columns="3">
- <h:form>
- <p:commandButton value="#{piece['uploadFile']}"
- onclick="document.getElementById('uploadFile').submit()" icon="ui-icon-arrowthick-1-n"/>
- </h:form>
- <p:spacer width="20"/>
- <p:commandButton value="#{piece['downloadTemplate']}" onclick="PrimeFaces.monitorDownload(start, stop);" icon="ui-icon-arrowthick-1-s">
- <p:fileDownload value="#{uploadSellPriceProductController.file}"/>
- </p:commandButton>
- </h:panelGrid>
- </p:column>
- </p:row>
- </h:panelGrid>
- </p:column>
- </p:row>
- </h:panelGrid>
- </p:panel>
- </ui:define>
- <ui:define name="outsidePart">
- </ui:define>
- </ui:composition>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment