<#-- 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. --> <#if tobrowser?exists && tobrowser>

${uiLabelMap.WebtoolsExportFromDataSource}


This page can be used to export data from the database. The exported documents will have a root tag of "<entity-engine-xml>".


<#if security.hasPermission("ENTITY_MAINT", session)> Click Here to Get Data (or save to file) <#else>
You do not have permission to use this page (ENTITY_MAINT needed)
<#else> <#macro displayButtonBar>
${uiLabelMap.WebtoolsCheckAll} ${uiLabelMap.WebtoolsUnCheckAll}
${uiLabelMap.PageTitleEntityExport}

${uiLabelMap.WebtoolsXMLExportInfo}


<#if security.hasPermission("ENTITY_MAINT", session)>

${uiLabelMap.WebtoolsResults}:

<#if Static["org.ofbiz.base.util.UtilValidate"].isNotEmpty(parameters.filename) && (numberOfEntities?number > 0)>

${uiLabelMap.WebtoolsWroteXMLForAllDataIn}

${uiLabelMap.WebtoolsWroteNRecordsToXMLFile}

<#elseif Static["org.ofbiz.base.util.UtilValidate"].isNotEmpty(parameters.outpath) && (numberOfEntities?number > 0)> <#list results as result>

${result}

<#else>

${uiLabelMap.WebtoolsNoFilenameSpecified}


${uiLabelMap.WebtoolsExport}:

${uiLabelMap.WebtoolsOutputDirectory}
${uiLabelMap.WebtoolsMaxRecordsPerFile}
${uiLabelMap.WebtoolsSingleFilename}
${uiLabelMap.WebtoolsRecordsUpdatedSince} <@htmlTemplate.renderDateTimeField name="entityFrom" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="" size="25" maxlength="30" id="entityFrom1" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/>
${uiLabelMap.WebtoolsRecordsUpdatedBefore} <@htmlTemplate.renderDateTimeField name="entityThru" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="" size="25" maxlength="30" id="entityThru1" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/>
${StringUtil.wrapString(uiLabelMap.WebtoolsOutToBrowser)} checked="checked" />

${uiLabelMap.WebtoolsEntityNames}:

<@displayButtonBar/>
${uiLabelMap.WebtoolsEntitySyncDump}:
${uiLabelMap.WebtoolsPreConfiguredSet}:
<#assign entCount = 0> <#assign checkAll = parameters.checkAll?default("false")> <#list modelEntities as modelEntity> <#if entCount % 3 == 0 && entCount != 0> <#assign entCount = entCount + 1> <#assign check = checkAll/> <#if checkAll == "true" && modelEntity.getClass().getName() == "org.ofbiz.entity.model.ModelViewEntity"> <#assign check = "false"/> <#assign curEntityName = modelEntity.getEntityName()/>
checked="checked"/>${curEntityName}
<@displayButtonBar/>
<#else>
${uiLabelMap.WebtoolsPermissionMaint}