Improved: E-commerce : FTL formatting.

(OFBIZ-7949)

For improved FTL code readability. Here is the first patch for the effort. There are still files which are required to be formatted. 

Thanks: Vaibhav Jain for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1761135 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Pranay Pandey
2016-09-17 07:17:15 +00:00
parent 479115f0bd
commit 06caedf26a
111 changed files with 9179 additions and 6969 deletions
+268 -112
View File
@@ -18,47 +18,51 @@ under the License.
-->
<script type="text/javascript">
//<![CDATA[
function selectChange(formId, elementId) {
if (elementId.id == 'searchProductStoreId') {
document.getElementById('searchCatalogId')[document.getElementById('searchCatalogId').selectedIndex].value = "";
if (document.getElementById('searchCategoryId').selectedIndex) {
document.getElementById('searchCategoryId')[document.getElementById('searchCategoryId').selectedIndex].value = "";
} else {
document.getElementById('searchCategoryId').value = "";
}
//<![CDATA[
function selectChange(formId, elementId) {
if (elementId.id == 'searchProductStoreId') {
document.getElementById('searchCatalogId')[document.getElementById('searchCatalogId')
.selectedIndex].value = "";
if (document.getElementById('searchCategoryId').selectedIndex) {
document.getElementById('searchCategoryId')[document.getElementById('searchCategoryId')
.selectedIndex].value = "";
} else {
document.getElementById('searchCategoryId').value = "";
}
}
if (elementId.id == 'searchCatalogId') {
if (document.getElementById('searchCategoryId').selectedIndex) {
document.getElementById('searchCategoryId')[document.getElementById('searchCategoryId')
.selectedIndex].value = "";
} else {
document.getElementById('searchCategoryId').value = "";
}
}
formId.action = "<@ofbizUrl>main</@ofbizUrl>";
formId.submit();
}
if (elementId.id == 'searchCatalogId') {
if (document.getElementById('searchCategoryId').selectedIndex) {
document.getElementById('searchCategoryId')[document.getElementById('searchCategoryId').selectedIndex].value = "";
} else {
document.getElementById('searchCategoryId').value = "";
}
function submit(id) {
var formId = id;
if (!jQuery('#searchCatalogId').is(":empty") && !jQuery('#searchProductStoreId').is(":empty")) {
document.getElementById(formId).submit();
} else {
if (jQuery('#searchProductStoreId').is(":empty")) {
jQuery('#productStoreErrorMessage').fadeIn('fast');
}
if (jQuery('#searchCatalogId').is(":empty")) {
jQuery('#catalogErrorMessage').fadeIn('fast');
}
}
}
formId.action="<@ofbizUrl>main</@ofbizUrl>";
formId.submit();
}
function submit (id) {
var formId = id;
if(!jQuery('#searchCatalogId').is(":empty") && !jQuery('#searchProductStoreId').is(":empty")){
document.getElementById(formId).submit();
} else {
if(jQuery('#searchProductStoreId').is(":empty")) {
jQuery('#productStoreErrorMessage').fadeIn('fast');
}
if(jQuery('#searchCatalogId').is(":empty")) {
jQuery('#catalogErrorMessage').fadeIn('fast');
}
}
}
//]]>
//]]>
</script>
<div class="screenlet">
<div class="screenlet-title-bar">
<h3>${uiLabelMap.ProductAdvancedSearchInCategory}</h3>
</div>
<div class="screenlet-body">
<form id="advToKeywordSearchform" name="advToKeywordSearchform" method="post" action="<@ofbizUrl>keywordsearch</@ofbizUrl>" style="margin: 0;">
<form id="advToKeywordSearchform" name="advToKeywordSearchform" method="post"
action="<@ofbizUrl>keywordsearch</@ofbizUrl>" style="margin: 0;">
<fieldset>
<input type="hidden" name="VIEW_SIZE" value="25"/>
<input type="hidden" name="PAGING" value="Y"/>
@@ -72,9 +76,17 @@ under the License.
</td>
<td valign="middle">
<div>
<b>"${(searchCategory.description)!}" [${(searchCategory.productCategoryId)!}]</b> ${uiLabelMap.ProductIncludeSubCategories}
<label>${uiLabelMap.CommonYes}<input type="radio" name="SEARCH_SUB_CATEGORIES" value="Y" checked="checked"/></label>
<label>${uiLabelMap.CommonNo}<input type="radio" name="SEARCH_SUB_CATEGORIES" value="N"/></label>
<b>
"${(searchCategory.description)!}"[${(searchCategory.productCategoryId)!}]
</b> ${uiLabelMap.ProductIncludeSubCategories}
<label>
${uiLabelMap.CommonYes}
<input type="radio" name="SEARCH_SUB_CATEGORIES" value="Y" checked="checked"/>
</label>
<label>
${uiLabelMap.CommonNo}
<input type="radio" name="SEARCH_SUB_CATEGORIES" value="N"/>
</label>
</div>
</td>
</tr>
@@ -84,19 +96,27 @@ under the License.
${uiLabelMap.ProductProductStore}:
</td>
<td valign="middle">
<select name="productStoreId" id="searchProductStoreId" onchange="javascript:selectChange(document.getElementById('advToKeywordSearchform'), document.getElementById('searchProductStoreId'));">
<select name="productStoreId" id="searchProductStoreId"
onchange="javascript:selectChange(document.getElementById('advToKeywordSearchform'),
document.getElementById('searchProductStoreId'));">
<#if ebayConfigList?has_content>
<#list ebayConfigList as ebayConfig>
<#assign productStore = delegator.findOne("ProductStore", {"productStoreId" : ebayConfig.productStoreId}, true) />
<#assign productStore = delegator.findOne("ProductStore",
{"productStoreId" : ebayConfig.productStoreId}, true) />
<#assign displayDesc = productStore.storeName?default("${uiLabelMap.ProductNoDescription}") />
<#if (18 < displayDesc?length)>
<#assign displayDesc = displayDesc[0..15] + "...">
</#if>
<option value="${productStore.productStoreId}" <#if productStoreId! == productStore.productStoreId> selected="selected"</#if>>${displayDesc} [${productStore.productStoreId}]</option>
</#list>
<#assign displayDesc = displayDesc[0..15] + "...">
</#if>
<option value="${productStore.productStoreId}"
<#if productStoreId! == productStore.productStoreId> selected="selected"</#if>>
${displayDesc} [${productStore.productStoreId}]
</option>
</#list>
</#if>
</select>
<span id="productStoreErrorMessage" style="display:none;" class="errorMessage">${uiLabelMap.CommonRequired}</span>
<span id="productStoreErrorMessage" style="display:none;" class="errorMessage">
${uiLabelMap.CommonRequired}
</span>
</td>
</tr>
<tr>
@@ -105,16 +125,23 @@ under the License.
</td>
<td valign="middle">
<div>
<select name="SEARCH_CATALOG_ID" id="searchCatalogId" onchange="javascript:selectChange(document.getElementById('advToKeywordSearchform'), document.getElementById('searchCatalogId'));" class="required">
<select name="SEARCH_CATALOG_ID" id="searchCatalogId"
onchange="javascript:selectChange(document.getElementById('advToKeywordSearchform'),
document.getElementById('searchCatalogId'));" class="required">
<#list prodCatalogList as prodCatalog>
<#assign displayDesc = prodCatalog.catalogName?default("${uiLabelMap.ProductNoDescription}") />
<#if (18 < displayDesc?length)>
<#assign displayDesc = displayDesc[0..15] + "...">
</#if>
<option value="${prodCatalog.prodCatalogId}" <#if searchCatalogId! == prodCatalog.prodCatalogId> selected="selected"</#if>>${displayDesc} [${prodCatalog.prodCatalogId}]</option>
<option value="${prodCatalog.prodCatalogId}" <#if searchCatalogId! == prodCatalog.prodCatalogId>
selected="selected"</#if>>
${displayDesc} [${prodCatalog.prodCatalogId}]
</option>
</#list>
</select>
<span id="catalogErrorMessage" style="display:none;" class="errorMessage">${uiLabelMap.CommonRequired}</span>
<span id="catalogErrorMessage" style="display:none;" class="errorMessage">
${uiLabelMap.CommonRequired}
</span>
</div>
</td>
</tr>
@@ -128,23 +155,41 @@ under the License.
<select name="SEARCH_CATEGORY_ID" id="searchCategoryId">
<option value="">- ${uiLabelMap.ProductAnyCategory} -</option>
<#list categoryIds as categoryId>
<#assign productCategory = delegator.findOne("ProductCategory", {"productCategoryId" : categoryId}, true) />
<#assign displayDesc = productCategory.categoryName?default("${uiLabelMap.ProductNoDescription}") />
<#assign productCategory = delegator.findOne("ProductCategory",
{"productCategoryId" : categoryId}, true) />
<#assign displayDesc =
productCategory.categoryName?default("${uiLabelMap.ProductNoDescription}") />
<#if (18 < displayDesc?length)>
<#assign displayDesc = displayDesc[0..15] + "...">
</#if>
<option value="${productCategory.productCategoryId}">${displayDesc} [${productCategory.productCategoryId}]</option>
<option value="${productCategory.productCategoryId}">
${displayDesc} [${productCategory.productCategoryId}]
</option>
</#list>
</select>
<#else>
<@htmlTemplate.lookupField value="${requestParameters.SEARCH_CATEGORY_ID!}" formName="advToKeywordSearchform" name="SEARCH_CATEGORY_ID" id="searchCategoryId" fieldFormName="LookupProductCategory"/>
<@htmlTemplate.lookupField value="${requestParameters.SEARCH_CATEGORY_ID!}"
formName="advToKeywordSearchform" name="SEARCH_CATEGORY_ID" id="searchCategoryId"
fieldFormName="LookupProductCategory"/>
</#if>
${uiLabelMap.ProductIncludeSubCategories}
<label>${uiLabelMap.CommonYes}<input type="radio" name="SEARCH_SUB_CATEGORIES" value="Y" checked="checked" /></label>
<label>${uiLabelMap.CommonNo}<input type="radio" name="SEARCH_SUB_CATEGORIES" value="N" /></label>
<label>${uiLabelMap.CommonInclude}<input type="radio" name="SEARCH_CATEGORY_EXC" value="" checked="checked" /></label>
<label>${uiLabelMap.CommonExclude}<input type="radio" name="SEARCH_CATEGORY_EXC" value="Y" /></label>
<label>${uiLabelMap.CommonAlwaysInclude}<input type="radio" name="SEARCH_CATEGORY_EXC" value="N" /></label>
<label>
${uiLabelMap.CommonYes}
<input type="radio" name="SEARCH_SUB_CATEGORIES" value="Y" checked="checked"/>
</label>
<label>
${uiLabelMap.CommonNo}<input type="radio" name="SEARCH_SUB_CATEGORIES" value="N"/>
</label>
<label>
${uiLabelMap.CommonInclude}
<input type="radio" name="SEARCH_CATEGORY_EXC" value="" checked="checked"/>
</label>
<label>
${uiLabelMap.CommonExclude}<input type="radio" name="SEARCH_CATEGORY_EXC" value="Y"/>
</label>
<label>
${uiLabelMap.CommonAlwaysInclude}<input type="radio" name="SEARCH_CATEGORY_EXC" value="N"/>
</label>
</div>
</td>
</tr>
@@ -155,7 +200,8 @@ under the License.
</td>
<td valign="middle">
<div>
<input type="text" name="SEARCH_PRODUCT_NAME" size="20" value="${requestParameters.SEARCH_PRODUCT_NAME!}" />
<input type="text" name="SEARCH_PRODUCT_NAME" size="20"
value="${requestParameters.SEARCH_PRODUCT_NAME!}"/>
</div>
</td>
</tr>
@@ -165,7 +211,8 @@ under the License.
</td>
<td valign="middle">
<div>
<input type="text" name="SEARCH_INTERNAL_PROD_NAME" size="20" value="${requestParameters.SEARCH_INTERNAL_PROD_NAME!}" />
<input type="text" name="SEARCH_INTERNAL_PROD_NAME" size="20"
value="${requestParameters.SEARCH_INTERNAL_PROD_NAME!}"/>
</div>
</td>
</tr>
@@ -175,9 +222,17 @@ under the License.
</td>
<td valign="middle">
<div>
<input type="text" name="SEARCH_STRING" size="40" value="${requestParameters.SEARCH_STRING!}" />&nbsp;
<label>${uiLabelMap.CommonAny}<input type="radio" name="SEARCH_OPERATOR" value="OR" <#if searchOperator == "OR">checked="checked"</#if> /></label>
<label>${uiLabelMap.CommonAll}<input type="radio" name="SEARCH_OPERATOR" value="AND" <#if searchOperator == "AND">checked="checked"</#if> /></label>
<input type="text" name="SEARCH_STRING" size="40" value="${requestParameters.SEARCH_STRING!}"/>&nbsp;
<label>
${uiLabelMap.CommonAny}
<input type="radio" name="SEARCH_OPERATOR"
value="OR" <#if searchOperator == "OR">checked="checked"</#if>/>
</label>
<label>
${uiLabelMap.CommonAll}
<input type="radio" name="SEARCH_OPERATOR"
value="AND" <#if searchOperator == "AND">checked="checked"</#if>/>
</label>
</div>
</td>
</tr>
@@ -187,22 +242,51 @@ under the License.
</td>
<td valign="middle">
<div>
<input type="text" name="SEARCH_PROD_FEAT_CAT1" size="15" value="${requestParameters.SEARCH_PROD_FEAT_CAT1!}" />&nbsp;
<label>${uiLabelMap.CommonInclude}<input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC1" value="" checked="checked" /></label>
<label>${uiLabelMap.CommonExclude}<input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC1" value="Y" /></label>
<label>${uiLabelMap.CommonAlwaysInclude}<input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC1" value="N" /></label>
<input type="text" name="SEARCH_PROD_FEAT_CAT1" size="15"
value="${requestParameters.SEARCH_PROD_FEAT_CAT1!}"/>&nbsp;
<label>
${uiLabelMap.CommonInclude}
<input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC1" value="" checked="checked"/>
</label>
<label>
${uiLabelMap.CommonExclude}
<input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC1" value="Y"/>
</label>
<label>
${uiLabelMap.CommonAlwaysInclude}
<input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC1" value="N"/>
</label>
</div>
<div>
<input type="text" name="SEARCH_PROD_FEAT_CAT2" size="15" value="${requestParameters.SEARCH_PROD_FEAT_CAT2!}" />&nbsp;
<label>${uiLabelMap.CommonInclude}<input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC2" value="" checked="checked" /></label>
<label>${uiLabelMap.CommonExclude}<input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC2" value="Y" /></label>
<label>${uiLabelMap.CommonAlwaysInclude}<input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC2" value="N" /></label>
<input type="text" name="SEARCH_PROD_FEAT_CAT2" size="15"
value="${requestParameters.SEARCH_PR23OD_FEAT_CAT2!}"/>&nbsp;
<label>
${uiLabelMap.CommonInclude}
<input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC2" value=""
checked="checked"/></label>
<label>
${uiLabelMap.CommonExclude}
<input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC2" value="Y"/></label>
<label>
${uiLabelMap.CommonAlwaysInclude}
<input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC2" value="N"/>
</label>
</div>
<div>
<input type="text" name="SEARCH_PROD_FEAT_CAT3" size="15" value="${requestParameters.SEARCH_PROD_FEAT_CAT3!}" />&nbsp;
<label>${uiLabelMap.CommonInclude}<input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC3" value="" checked="checked" /></label>
<label>${uiLabelMap.CommonExclude}<input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC3" value="Y" /></label>
<label>${uiLabelMap.CommonAlwaysInclude}<input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC3" value="N" /></label>
<input type="text" name="SEARCH_PROD_FEAT_CAT3" size="15"
value="${requestParameters.SEARCH_PROD_FEAT_CAT3!}"/>&nbsp;
<label>
${uiLabelMap.CommonInclude}
<input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC3" value="" checked="checked"/>
</label>
<label>
${uiLabelMap.CommonExclude}
<input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC3" value="Y"/>
</label>
<label>
${uiLabelMap.CommonAlwaysInclude}
<input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC3" value="N"/>
</label>
</div>
</td>
</tr>
@@ -212,22 +296,52 @@ under the License.
</td>
<td valign="middle">
<div>
<input type="text" name="SEARCH_PROD_FEAT_GRP1" size="15" value="${requestParameters.SEARCH_PROD_FEAT_GRP1!}" />&nbsp;
<label>${uiLabelMap.CommonInclude}<input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC1" value="" checked="checked" /></label>
<label>${uiLabelMap.CommonExclude}<input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC1" value="Y" /></label>
<label>${uiLabelMap.CommonAlwaysInclude}<input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC1" value="N" /></label>
<input type="text" name="SEARCH_PROD_FEAT_GRP1" size="15"
value="${requestParameters.SEARCH_PROD_FEAT_GRP1!}"/>&nbsp;
<label>
${uiLabelMap.CommonInclude}
<input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC1" value="" checked="checked"/>
</label>
<label>
${uiLabelMap.CommonExclude}
<input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC1" value="Y"/>
</label>
<label>
${uiLabelMap.CommonAlwaysInclude}
<input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC1" value="N"/>
</label>
</div>
<div>
<input type="text" name="SEARCH_PROD_FEAT_GRP2" size="15" value="${requestParameters.SEARCH_PROD_FEAT_GRP2!}" />&nbsp;
<label>${uiLabelMap.CommonInclude}<input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC2" value="" checked="checked" /></label>
<label>${uiLabelMap.CommonExclude}<input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC2" value="Y" /></label>
<label>${uiLabelMap.CommonAlwaysInclude}<input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC2" value="N" /></label>
<input type="text" name="SEARCH_PROD_FEAT_GRP2" size="15"
value="${requestParameters.SEARCH_PROD_FEAT_GRP2!}"/>&nbsp;
<label>
${uiLabelMap.CommonInclude}
<input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC2" value="" checked="checked"/>
</label>
<label>
${uiLabelMap.CommonExclude}
<input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC2" value="Y"/>
</label>
<label>
${uiLabelMap.CommonAlwaysInclude}
<input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC2" value="N"/>
</label>
</div>
<div>
<input type="text" name="SEARCH_PROD_FEAT_GRP3" size="15" value="${requestParameters.SEARCH_PROD_FEAT_GRP3!}" />&nbsp;
<label>${uiLabelMap.CommonInclude}<input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC3" value="" checked="checked" /></label>
<label>${uiLabelMap.CommonExclude}<input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC3" value="Y" /></label>
<label>${uiLabelMap.CommonAlwaysInclude}<input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC3" value="N" /></label>
<input type="text" name="SEARCH_PROD_FEAT_GRP3" size="15"
value="${requestParameters.SEARCH_PROD_FEAT_GRP3!}"/>&nbsp;
<label>
${uiLabelMap.CommonInclude}
<input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC3" value="" checked="checked"/>
</label>
<label>
${uiLabelMap.CommonExclude}
<input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC3" value="Y"/>
</label>
<label>
${uiLabelMap.CommonAlwaysInclude}
<input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC3" value="N"/>
</label>
</div>
</td>
</tr>
@@ -237,22 +351,33 @@ under the License.
</td>
<td valign="middle">
<div>
<input type="text" name="SEARCH_FEAT1" size="15" value="${requestParameters.SEARCH_FEAT1!}" />&nbsp;
<label>${uiLabelMap.CommonInclude}<input type="radio" name="SEARCH_FEAT_EXC1" value="" checked="checked" /></label>
<label>${uiLabelMap.CommonExclude}<input type="radio" name="SEARCH_FEAT_EXC1" value="Y" /></label>
<label>${uiLabelMap.CommonAlwaysInclude}<input type="radio" name="SEARCH_FEAT_EXC1" value="N" /></label>
<input type="text" name="SEARCH_FEAT1" size="15" value="${requestParameters.SEARCH_FEAT1!}"/>&nbsp;
<label>
${uiLabelMap.CommonInclude}
<input type="radio" name="SEARCH_FEAT_EXC1" value="" checked="checked"/>
</label>
<label>
${uiLabelMap.CommonExclude}<input type="radio" name="SEARCH_FEAT_EXC1" value="Y"/>
</label>
<label>
${uiLabelMap.CommonAlwaysInclude}<input type="radio" name="SEARCH_FEAT_EXC1" value="N"/>
</label>
</div>
<div>
<input type="text" name="SEARCH_FEAT2" size="15" value="${requestParameters.SEARCH_FEAT2!}" />&nbsp;
<label>${uiLabelMap.CommonInclude}<input type="radio" name="SEARCH_FEAT_EXC2" value="" checked="checked" /></label>
<label>${uiLabelMap.CommonExclude}<input type="radio" name="SEARCH_FEAT_EXC2" value="Y" /></label>
<label>${uiLabelMap.CommonAlwaysInclude}<input type="radio" name="SEARCH_FEAT_EXC2" value="N" /></label>
<input type="text" name="SEARCH_FEAT2" size="15" value="${requestParameters.SEARCH_FEAT2!}"/>&nbsp;
<label>
${uiLabelMap.CommonInclude}<input type="radio" name="SEARCH_FEAT_EXC2" value="" checked="checked"/>
</label>
<label>${uiLabelMap.CommonExclude}<input type="radio" name="SEARCH_FEAT_EXC2" value="Y"/></label>
<label>${uiLabelMap.CommonAlwaysInclude}<input type="radio" name="SEARCH_FEAT_EXC2" value="N"/></label>
</div>
<div>
<input type="text" name="SEARCH_FEAT3" size="15" value="${requestParameters.SEARCH_FEAT3!}" />&nbsp;
<label>${uiLabelMap.CommonInclude}<input type="radio" name="SEARCH_FEAT_EXC3" value="" checked="checked" /></label>
<label>${uiLabelMap.CommonExclude}<input type="radio" name="SEARCH_FEAT_EXC3" value="Y" /></label>
<label>${uiLabelMap.CommonAlwaysInclude}<input type="radio" name="SEARCH_FEAT_EXC3" value="N" /></label>
<input type="text" name="SEARCH_FEAT3" size="15" value="${requestParameters.SEARCH_FEAT3!}"/>&nbsp;
<label>
${uiLabelMap.CommonInclude}<input type="radio" name="SEARCH_FEAT_EXC3" value="" checked="checked"/>
</label>
<label>${uiLabelMap.CommonExclude}<input type="radio" name="SEARCH_FEAT_EXC3" value="Y"/></label>
<label>${uiLabelMap.CommonAlwaysInclude}<input type="radio" name="SEARCH_FEAT_EXC3" value="N"/></label>
</div>
</td>
</tr>
@@ -262,13 +387,15 @@ under the License.
</td>
<td valign="middle">
<div>
<input type="text" name="LIST_PRICE_LOW" size="8" value="${requestParameters.LIST_PRICE_LOW!}" />&nbsp;
<input type="text" name="LIST_PRICE_HIGH" size="8" value="${requestParameters.LIST_PRICE_HIGH!}" />&nbsp;
<input type="text" name="LIST_PRICE_LOW" size="8" value="${requestParameters.LIST_PRICE_LOW!}"/>&nbsp;
<input type="text" name="LIST_PRICE_HIGH"
size="8" value="${requestParameters.LIST_PRICE_HIGH!}"/>&nbsp;
</div>
</td>
</tr>
<#list productFeatureTypeIdsOrdered as productFeatureTypeId>
<#assign findPftMap = Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("productFeatureTypeId", productFeatureTypeId) />
<#assign findPftMap = Static["org.apache.ofbiz.base.util.UtilMisc"].toMap(
"productFeatureTypeId", productFeatureTypeId) />
<#assign productFeatureType = delegator.findOne("ProductFeatureType", findPftMap, true) />
<#assign productFeatures = productFeaturesByTypeMap[productFeatureTypeId] />
<tr>
@@ -280,7 +407,10 @@ under the License.
<select name="pft_${productFeatureTypeId}">
<option value="">- ${uiLabelMap.CommonSelectAny} -</option>
<#list productFeatures as productFeature>
<option value="${productFeature.productFeatureId}">${productFeature.description?default("${uiLabelMap.ProductNoDescription}")} [${productFeature.productFeatureId}]</option>
<option value="${productFeature.productFeatureId}">
${productFeature.description?default("${uiLabelMap.ProductNoDescription}")}
[${productFeature.productFeatureId}]
</option>
</#list>
</select>
</div>
@@ -296,7 +426,10 @@ under the License.
<select name="SEARCH_SUPPLIER_ID">
<option value="">- ${uiLabelMap.CommonSelectAny} -</option>
<#list supplerPartyRoleAndPartyDetails as supplerPartyRoleAndPartyDetail>
<option value="${supplerPartyRoleAndPartyDetail.partyId}">${supplerPartyRoleAndPartyDetail.groupName!} ${supplerPartyRoleAndPartyDetail.firstName!} ${supplerPartyRoleAndPartyDetail.lastName!} [${supplerPartyRoleAndPartyDetail.partyId}]</option>
<option value="${supplerPartyRoleAndPartyDetail.partyId}">
${supplerPartyRoleAndPartyDetail.groupName!} ${supplerPartyRoleAndPartyDetail.firstName!}
${supplerPartyRoleAndPartyDetail.lastName!} [${supplerPartyRoleAndPartyDetail.partyId}]
</option>
</#list>
</select>
</div>
@@ -312,7 +445,9 @@ under the License.
<option value="SortKeywordRelevancy">${uiLabelMap.ProductKeywordRelevancy}</option>
<option value="SortProductField:productName">${uiLabelMap.ProductProductName}</option>
<option value="SortProductField:internalName">${uiLabelMap.ProductInternalName}</option>
<option value="SortProductField:totalQuantityOrdered">${uiLabelMap.ProductPopularityByOrders}</option>
<option value="SortProductField:totalQuantityOrdered">
${uiLabelMap.ProductPopularityByOrders}
</option>
<option value="SortProductField:totalTimesViewed">${uiLabelMap.ProductPopularityByViews}</option>
<option value="SortProductField:averageCustomerRating">${uiLabelMap.ProductCustomerRating}</option>
<option value="SortProductPrice:LIST_PRICE">${uiLabelMap.ProductListPrice}</option>
@@ -321,8 +456,12 @@ under the License.
<option value="SortProductPrice:MINIMUM_PRICE">${uiLabelMap.ProductMinimumPrice}</option>
<option value="SortProductPrice:MAXIMUM_PRICE">${uiLabelMap.ProductMaximumPrice}</option>
</select>
<label>${uiLabelMap.ProductLowToHigh}<input type="radio" name="sortAscending" value="Y" checked="checked" /></label>
<label>${uiLabelMap.ProductHighToLow}<input type="radio" name="sortAscending" value="N" /></label>
<label>
${uiLabelMap.ProductLowToHigh}<input type="radio" name="sortAscending" value="Y" checked="checked"/>
</label>
<label>
${uiLabelMap.ProductHighToLow}<input type="radio" name="sortAscending" value="N"/>
</label>
</div>
</td>
</tr>
@@ -331,7 +470,9 @@ under the License.
${uiLabelMap.ProductPrioritizeProductsInCategory}:
</td>
<td valign="middle">
<@htmlTemplate.lookupField value="${requestParameters.PRIORITIZE_CATEGORY_ID!}" formName="advToKeywordSearchform" name="PRIORITIZE_CATEGORY_ID" id="PRIORITIZE_CATEGORY_ID" fieldFormName="LookupProductCategory"/>
<@htmlTemplate.lookupField value="${requestParameters.PRIORITIZE_CATEGORY_ID!}"
formName="advToKeywordSearchform" name="PRIORITIZE_CATEGORY_ID" id="PRIORITIZE_CATEGORY_ID"
fieldFormName="LookupProductCategory"/>
</td>
</tr>
<tr>
@@ -342,7 +483,10 @@ under the License.
<select name="SEARCH_GOOD_IDENTIFICATION_TYPE">
<option value="">- ${uiLabelMap.CommonSelectAny} -</option>
<#list goodIdentificationTypes as goodIdentificationType>
<option value="${goodIdentificationType.goodIdentificationTypeId}">${goodIdentificationType.get("description")!}</option>
<option
value="${goodIdentificationType.goodIdentificationTypeId}">
${goodIdentificationType.get("description")!}
</option>
</#list>
</select>
</td>
@@ -352,9 +496,16 @@ under the License.
${uiLabelMap.ProductGoodIdentificationValue}:
</td>
<td>
<input type="text" name="SEARCH_GOOD_IDENTIFICATION_VALUE" size="60" maxlength="60" value="${requestParameters.SEARCH_GOOD_IDENTIFICATION_VALUE!}" />
<label>${uiLabelMap.CommonInclude}<input type="radio" name="SEARCH_GOOD_IDENTIFICATION_INCL" value="Y" checked="checked" /></label>
<label>${uiLabelMap.CommonExclude}<input type="radio" name="SEARCH_GOOD_IDENTIFICATION_INCL" value="N" /></label>
<input type="text" name="SEARCH_GOOD_IDENTIFICATION_VALUE" size="60" maxlength="60"
value="${requestParameters.SEARCH_GOOD_IDENTIFICATION_VALUE!}"/>
<label>
${uiLabelMap.CommonInclude}
<input type="radio" name="SEARCH_GOOD_IDENTIFICATION_INCL" value="Y" checked="checked"/>
</label>
<label>
${uiLabelMap.CommonExclude}
<input type="radio" name="SEARCH_GOOD_IDENTIFICATION_INCL" value="N"/>
</label>
</td>
</tr>
<#if searchConstraintStrings?has_content>
@@ -368,15 +519,20 @@ under the License.
</#list>
<span class="label">${uiLabelMap.CommonSortedBy}:</span>${searchSortOrderString}
<div>
<label>${uiLabelMap.ProductNewSearch}<input type="radio" name="clearSearch" value="Y" checked="checked" /></label>
<label>${uiLabelMap.CommonRefineSearch}<input type="radio" name="clearSearch" value="N" /></label>
<label>
${uiLabelMap.ProductNewSearch}
<input type="radio" name="clearSearch" value="Y" checked="checked"/>
</label>
<label>
${uiLabelMap.CommonRefineSearch}<input type="radio" name="clearSearch" value="N"/>
</label>
</div>
</td>
</tr>
</#if>
<tr>
<td align="center" colspan="2">
<hr />
<hr/>
<a href="javascript:submit('advToKeywordSearchform');" class="buttontext">${uiLabelMap.CommonFind}</a>
</td>
</tr>
+7 -7
View File
@@ -29,11 +29,11 @@ under the License.
</script>
<#if productIds?has_content>
<table cellspacing="0" class="basic-table">
<tr>
<td align="center" colspan="2">
<a href="javascript:exportToEbay();" class="buttontext">${uiLabelMap.EbayExportToEbay}</a>
</td>
</tr>
</table>
<table cellspacing="0" class="basic-table">
<tr>
<td align="center" colspan="2">
<a href="javascript:exportToEbay();" class="buttontext">${uiLabelMap.EbayExportToEbay}</a>
</td>
</tr>
</table>
</#if>
+24 -9
View File
@@ -22,10 +22,17 @@ under the License.
</div>
<div class="screenlet-body">
<#list searchConstraintStrings as searchConstraintString>
<div><a href="<@ofbizUrl>keywordsearch?removeConstraint=${searchConstraintString_index}&amp;clearSearch=N</@ofbizUrl>" class="buttontext">X</a>${searchConstraintString}</div>
<div>
<a href="<@ofbizUrl>keywordsearch?removeConstraint=${searchConstraintString_index}&amp;clearSearch=N</@ofbizUrl>"
class="buttontext">X</a>
${searchConstraintString}
</div>
</#list>
<span class="label">${uiLabelMap.CommonSortedBy}:</span>${searchSortOrderString}
<div><a href="<@ofbizUrl>advancedsearch?SEARCH_CATEGORY_ID=${(requestParameters.SEARCH_CATEGORY_ID)!}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonRefineSearch}</a></div>
<div>
<a href="<@ofbizUrl>advancedsearch?SEARCH_CATEGORY_ID=${(requestParameters.SEARCH_CATEGORY_ID)!}</@ofbizUrl>"
class="buttontext">${uiLabelMap.CommonRefineSearch}</a>
</div>
<#if !productIds?has_content>
<div><h2>${uiLabelMap.ProductNoResultsFound}.</h2></div>
@@ -52,22 +59,29 @@ under the License.
</script>
<#macro paginationPanel>
<div class="clearfix">
<div class="lefthalf margin-left"><input type="checkbox" name="selectAll" value="0" onclick="javascript:toggleAll(this);"/> <strong>${uiLabelMap.ProductProduct}</strong></div>
<div class="lefthalf margin-left">
<input type="checkbox" name="selectAll" value="0" onclick="javascript:toggleAll(this);"/>
<strong>${uiLabelMap.ProductProduct}</strong>
</div>
<div class="right">
<strong>
<#if 0 &lt; viewIndex?int>
<a href="<@ofbizUrl>keywordsearch/~VIEW_INDEX=${viewIndex-1}/~VIEW_SIZE=${viewSize}/~clearSearch=N/~PAGING=${paging}/~noConditionFind=${noConditionFind}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonPrevious}</a> |
<a href="<@ofbizUrl>keywordsearch/~VIEW_INDEX=${viewIndex-1}/~VIEW_SIZE=${viewSize}/~clearSearch=N/~PAGING=${paging}/~noConditionFind=${noConditionFind}</@ofbizUrl>"
class="buttontext">${uiLabelMap.CommonPrevious}</a> |
</#if>
<#if 0 &lt; listSize?int>
${lowIndex+1} - ${highIndex} ${uiLabelMap.CommonOf} ${listSize}
</#if>
<#if highIndex?int &lt; listSize?int>
| <a href="<@ofbizUrl>keywordsearch/~VIEW_INDEX=${viewIndex+1}/~VIEW_SIZE=${viewSize}/~clearSearch=N/~PAGING=${paging}/~noConditionFind=${noConditionFind}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonNext}</a>
| <a href="<@ofbizUrl>keywordsearch/~VIEW_INDEX=${viewIndex+1}/~VIEW_SIZE=${viewSize}/~clearSearch=N/~PAGING=${paging}/~noConditionFind=${noConditionFind}</@ofbizUrl>"
class="buttontext">${uiLabelMap.CommonNext}</a>
</#if>
<#if paging == "Y">
<a href="<@ofbizUrl>keywordsearch/~VIEW_INDEX=0/~VIEW_SIZE=99999/~clearSearch=N/~PAGING=N/~noConditionFind=${noConditionFind}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonPagingOff}</a>
<a href="<@ofbizUrl>keywordsearch/~VIEW_INDEX=0/~VIEW_SIZE=99999/~clearSearch=N/~PAGING=N/~noConditionFind=${noConditionFind}</@ofbizUrl>"
class="buttontext">${uiLabelMap.CommonPagingOff}</a>
<#else>
<a href="<@ofbizUrl>keywordsearch/~VIEW_INDEX=0/~VIEW_SIZE=${previousViewSize}/~clearSearch=N/~PAGING=Y/~noConditionFind=${noConditionFind}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonPagingOn}</a>
<a href="<@ofbizUrl>keywordsearch/~VIEW_INDEX=0/~VIEW_SIZE=${previousViewSize}/~clearSearch=N/~PAGING=Y/~noConditionFind=${noConditionFind}</@ofbizUrl>"
class="buttontext">${uiLabelMap.CommonPagingOn}</a>
</#if>
</strong>
</div>
@@ -87,7 +101,8 @@ under the License.
<tr <#if altRow> class="alternate-row"</#if>>
<td>
<input type="checkbox" name="selectResult" value="${productId}"/>
<a href="<@ofbizUrl>EditProduct?productId=${productId}</@ofbizUrl>" class="buttontext">[${productId}] ${(product.internalName)!}</a>
<a href="<@ofbizUrl>EditProduct?productId=${productId}</@ofbizUrl>"
class="buttontext">[${productId}] ${(product.internalName)!}</a>
</td>
</tr>
</#list>
@@ -97,4 +112,4 @@ under the License.
<@paginationPanel />
</#if>
</div>
</div>
</div>
+215 -167
View File
@@ -17,10 +17,11 @@ specific language governing permissions and limitations
under the License.
-->
<script language="JavaScript" type="text/javascript">
function changeEbayCategory(categ) {
document.forms["ProductsExportToEbay"].action = "<@ofbizUrl>ProductsExportToEbay?categoryCode="+categ+"</@ofbizUrl>";
document.forms["ProductsExportToEbay"].submit();
}
function changeEbayCategory(categ) {
document.forms["ProductsExportToEbay"].action =
"<@ofbizUrl>ProductsExportToEbay?categoryCode="+categ+"</@ofbizUrl>";
document.forms["ProductsExportToEbay"].submit();
}
function changeWebSite(Id) {
var formId = Id ;
@@ -28,171 +29,218 @@ under the License.
formId.submit();
}
function activateSubmitButton() {
categ = document.forms["ProductsExportToEbay"].ebayCategory.value;
if (document.forms["ProductsExportToEbay"].submitButton) {
if (categ != null && (categ.substring(0, 1) == 'Y' || categ == '')) {
document.forms["ProductsExportToEbay"].submitButton.disabled = false;
} else {
document.forms["ProductsExportToEbay"].submitButton.disabled = true;
document.forms["ProductsExportToEbay"].submitButton.value = "Please select a category";
}
}
function activateSubmitButton() {
categ = document.forms["ProductsExportToEbay"].ebayCategory.value;
if (document.forms["ProductsExportToEbay"].submitButton) {
if (categ != null && (categ.substring(0, 1) == 'Y' || categ == '')) {
document.forms["ProductsExportToEbay"].submitButton.disabled = false;
} else {
document.forms["ProductsExportToEbay"].submitButton.disabled = true;
document.forms["ProductsExportToEbay"].submitButton.value = "Please select a category";
}
}
}
</script>
<div>
<form id="ProductsExportToEbay" method="post" action="<@ofbizUrl>PostProductsToEbay</@ofbizUrl>" name="ProductsExportToEbay">
<input type="hidden" name="productStoreId" value="${productStoreId!}" />
<table border="0" cellpadding="2" cellspacing="0">
<tr>
<td align="right" class="label">${uiLabelMap.FormFieldTitle_ebayCategory}</td>
<td>&nbsp;</td>
<td>
<input type="hidden" name="selectResult" value="${selectResult!}"/>
<select name="ebayCategory" onchange="changeEbayCategory(this.value)">
<option value=""> </option>
<#if categories??>
<#list categories as category>
<option value="${category.CategoryCode}" <#if categoryCode?? && categoryCode == category.CategoryCode>selected="selected"</#if>>${category.CategoryName}</option>
</#list>
</#if>
</select>
</td>
</tr>
<#if hideExportOptions?has_content && hideExportOptions == "N">
<tr>
<td align="right" class="label">${uiLabelMap.CommonCountry}</td>
<td>&nbsp;</td>
<td>
<select name="country">
<#if countries??>
<#list countries as country>
<option value="${country.geoCode}" <#if countryCode?? && countryCode == country.geoCode>selected="selected"</#if>>${country.get("geoName",locale)}</option>
</#list>
</#if>
</select>
</td>
</tr>
<tr>
<td align="right" class="label">${uiLabelMap.FormFieldTitle_location}</td>
<td>&nbsp;</td>
<td>
<input type="text" name="location" size="50" maxlength="50" value="${parameters.location!}" />
</td>
</tr>
<tr>
<td align="right" class="label">${uiLabelMap.FormFieldTitle_listingDuration}</td>
<td>&nbsp;</td>
<td>
<select name="listingDuration">
<option value="Days_1">1 ${uiLabelMap.CommonDay}</option>
<option value="Days_3">3 ${uiLabelMap.CommonDays}</option>
<option value="Days_7">7 ${uiLabelMap.CommonDays}</option>
</select>
</td>
</tr>
<tr>
<td align="right" class="label">${uiLabelMap.FormFieldTitle_startPrice}</td>
<td>&nbsp;</td>
<td>
<input type="text" name="startPrice" size="12" maxlength="12" value="${parameters.startPrice!}" />
</td>
</tr>
<tr>
<td align="right" class="label">${uiLabelMap.CommonQuantity}</td>
<td>&nbsp;</td>
<td>
<input type="text" name="quantity" size="12" maxlength="12" value="<#if parameters.quantity??>${parameters.quantity!}<#else>1</#if>" />
</td>
</tr>
<tr>
<td align="right" class="label">${uiLabelMap.CommonWebsite}</td>
<td>&nbsp;</td>
<td>
<select name="webSiteId" onchange="javascript:changeWebSite(document.getElementById('ProductsExportToEbay'));">
<#list webSiteList as webSite>
<#assign displayDesc = webSite.siteName?default("${uiLabelMap.ProductNoDescription}")>
<#if (18 < displayDesc?length)>
<#assign displayDesc = displayDesc[0..15] + "...">
</#if>
<option value="${webSite.webSiteId}" <#if selectedWebSiteId! == webSite.webSiteId> selected="selected"</#if>>${displayDesc} [${webSite.webSiteId}]</option>
</#list>
</select>
</td>
</tr>
<tr>
<td align="right" class="label">${uiLabelMap.FormFieldTitle_webSiteUrl}</td>
<td>&nbsp;</td>
<td>
<input type="text" name="webSiteUrl" size="100" value="${webSiteUrl!}"/>
</td>
</tr>
<tr>
<td align="center" colspan="3"><b><u>${uiLabelMap.FormFieldTitle_paymentMethodsAccepted}</u></b></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="3">
<table class="basic-table" cellspacing="0">
<tr>
<td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentPayPal}</td>
<td width="2%"><input type="checkbox" name="paymentPayPal" <#if parameters.paymentPayPal??>checked="checked"</#if> /></td>
<td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentVisaMC}</td>
<td width="2%"><input type="checkbox" name="paymentVisaMC" <#if parameters.paymentVisaMC??>checked="checked"</#if> /></td>
<td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentAmEx}</td>
<td width="2%"><input type="checkbox" name="paymentAmEx" <#if parameters.paymentAmEx??>checked="checked"</#if> /></td>
<td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentDiscover}</td>
<td width="2%"><input type="checkbox" name="paymentDiscover" <#if parameters.paymentDiscover??>checked="checked"</#if> /></td>
</tr>
<tr>
<td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentMOCC}</td>
<td width="2%"><input type="checkbox" name="paymentMOCC" <#if parameters.paymentMOCC??>checked="checked"</#if> /></td>
<td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentPersonalCheck}</td>
<td width="2%"><input type="checkbox" name="paymentPersonalCheck" <#if parameters.paymentPersonalCheck??>checked="checked"</#if> /></td>
<td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentCCAccepted}</td>
<td width="2%"><input type="checkbox" name="paymentCCAccepted" <#if parameters.paymentCCAccepted??>checked="checked"</#if> /></td>
<td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentCashInPerson}</td>
<td width="2%"><input type="checkbox" name="paymentCashInPerson" <#if parameters.paymentCashInPerson??>checked="checked"</#if> /></td>
</tr>
<tr>
<td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentCashOnPickup}</td>
<td width="2%"><input type="checkbox" name="paymentCashOnPickup" <#if parameters.paymentCashOnPickup??>checked="checked"</#if> /></td>
<td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentCOD}</td>
<td width="2%"><input type="checkbox" name="paymentCOD" <#if parameters.paymentCOD??>checked="checked"</#if> /></td>
<td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentCODPrePayDelivery}</td>
<td width="2%"><input type="checkbox" name="paymentCODPrePayDelivery" <#if parameters.paymentCODPrePayDelivery??>checked="checked"</#if> /></td>
<td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentMoneyXferAccepted}</td>
<td width="2%"><input type="checkbox" name="paymentMoneyXferAccepted" <#if parameters.paymentMoneyXferAccepted??>checked="checked"</#if> /></td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="right" class="label">${uiLabelMap.FormFieldTitle_payPalEmail}</td>
<td>&nbsp;</td>
<td>
<input type="text" name="payPalEmail" size="50" maxlength="50" value="${parameters.payPalEmail!}" />
</td>
</tr>
<tr>
<td align="right" class="label">${uiLabelMap.FormFieldTitle_customXml}</td>
<td>&nbsp;</td>
<td>
<textarea cols="60" rows="6" wrap="soft" name="customXml">${customXml!}</textarea>
</td>
</tr>
<tr>
<td colspan=2>&nbsp;</td>
<td>
<input type="submit" value="${uiLabelMap.EbayExportToEbay}" name="submitButton" class="smallSubmit" />
</td>
</tr>
<form id="ProductsExportToEbay" method="post" action="<@ofbizUrl>PostProductsToEbay</@ofbizUrl>"
name="ProductsExportToEbay">
<input type="hidden" name="productStoreId" value="${productStoreId!}"/>
<table border="0" cellpadding="2" cellspacing="0">
<tr>
<td align="right" class="label">${uiLabelMap.FormFieldTitle_ebayCategory}</td>
<td>&nbsp;</td>
<td>
<input type="hidden" name="selectResult" value="${selectResult!}"/>
<select name="ebayCategory" onchange="changeEbayCategory(this.value)">
<option value=""></option>
<#if categories??>
<#list categories as category>
<option value="${category.CategoryCode}"
<#if categoryCode?? && categoryCode == category.CategoryCode>selected="selected"</#if>>
${category.CategoryName}
</option>
</#list>
</#if>
</table>
</form>
<script language="JavaScript" type="text/javascript">
activateSubmitButton();
</script>
</select>
</td>
</tr>
<#if hideExportOptions?has_content && hideExportOptions == "N">
<tr>
<td align="right" class="label">${uiLabelMap.CommonCountry}</td>
<td>&nbsp;</td>
<td>
<select name="country">
<#if countries??>
<#list countries as country>
<option value="${country.geoCode}"
<#if countryCode?? && countryCode == country.geoCode>selected="selected"</#if>>
${country.get("geoName",locale)}
</option>
</#list>
</#if>
</select>
</td>
</tr>
<tr>
<td align="right" class="label">${uiLabelMap.FormFieldTitle_location}</td>
<td>&nbsp;</td>
<td>
<input type="text" name="location" size="50" maxlength="50" value="${parameters.location!}"/>
</td>
</tr>
<tr>
<td align="right" class="label">${uiLabelMap.FormFieldTitle_listingDuration}</td>
<td>&nbsp;</td>
<td>
<select name="listingDuration">
<option value="Days_1">1 ${uiLabelMap.CommonDay}</option>
<option value="Days_3">3 ${uiLabelMap.CommonDays}</option>
<option value="Days_7">7 ${uiLabelMap.CommonDays}</option>
</select>
</td>
</tr>
<tr>
<td align="right" class="label">${uiLabelMap.FormFieldTitle_startPrice}</td>
<td>&nbsp;</td>
<td>
<input type="text" name="startPrice" size="12" maxlength="12" value="${parameters.startPrice!}"/>
</td>
</tr>
<tr>
<td align="right" class="label">${uiLabelMap.CommonQuantity}</td>
<td>&nbsp;</td>
<td>
<input type="text" name="quantity" size="12" maxlength="12"
value="<#if parameters.quantity??>${parameters.quantity!}<#else>1</#if>"/>
</td>
</tr>
<tr>
<td align="right" class="label">${uiLabelMap.CommonWebsite}</td>
<td>&nbsp;</td>
<td>
<select name="webSiteId"
onchange="javascript:changeWebSite(document.getElementById('ProductsExportToEbay'));">
<#list webSiteList as webSite>
<#assign displayDesc = webSite.siteName?default("${uiLabelMap.ProductNoDescription}")>
<#if (18 < displayDesc?length)>
<#assign displayDesc = displayDesc[0..15] + "...">
</#if>
<option value="${webSite.webSiteId}" <#if selectedWebSiteId! == webSite.webSiteId>
selected="selected"</#if>>
${displayDesc} [${webSite.webSiteId}]
</option>
</#list>
</select>
</td>
</tr>
<tr>
<td align="right" class="label">${uiLabelMap.FormFieldTitle_webSiteUrl}</td>
<td>&nbsp;</td>
<td>
<input type="text" name="webSiteUrl" size="100" value="${webSiteUrl!}"/>
</td>
</tr>
<tr>
<td align="center" colspan="3"><b><u>${uiLabelMap.FormFieldTitle_paymentMethodsAccepted}</u></b></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="3">
<table class="basic-table" cellspacing="0">
<tr>
<td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentPayPal}</td>
<td width="2%">
<input type="checkbox" name="paymentPayPal" <#if parameters.paymentPayPal??>checked="checked"</#if>/>
</td>
<td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentVisaMC}</td>
<td width="2%">
<input type="checkbox" name="paymentVisaMC" <#if parameters.paymentVisaMC??>checked="checked"</#if>/>
</td>
<td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentAmEx}</td>
<td width="2%">
<input type="checkbox" name="paymentAmEx" <#if parameters.paymentAmEx??>checked="checked"</#if>/>
</td>
<td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentDiscover}</td>
<td width="2%">
<input type="checkbox"
name="paymentDiscover" <#if parameters.paymentDiscover??>checked="checked"</#if>/>
</td>
</tr>
<tr>
<td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentMOCC}</td>
<td width="2%">
<input type="checkbox" name="paymentMOCC" <#if parameters.paymentMOCC??>checked="checked"</#if>/>
</td>
<td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentPersonalCheck}</td>
<td width="2%">
<input type="checkbox"
name="paymentPersonalCheck" <#if parameters.paymentPersonalCheck??>checked="checked"</#if>/>
</td>
<td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentCCAccepted}</td>
<td width="2%">
<input type="checkbox"
name="paymentCCAccepted" <#if parameters.paymentCCAccepted??>checked="checked"</#if>/>
</td>
<td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentCashInPerson}</td>
<td width="2%">
<input type="checkbox"
name="paymentCashInPerson" <#if parameters.paymentCashInPerson??>checked="checked"</#if>/>
</td>
</tr>
<tr>
<td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentCashOnPickup}</td>
<td width="2%">
<input type="checkbox"
name="paymentCashOnPickup" <#if parameters.paymentCashOnPickup??>checked="checked"</#if>/>
</td>
<td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentCOD}</td>
<td width="2%">
<input type="checkbox" name="paymentCOD" <#if parameters.paymentCOD??>checked="checked"</#if>/>
</td>
<td align="right" width="23%" class="label">
${uiLabelMap.FormFieldTitle_paymentCODPrePayDelivery}
</td>
<td width="2%">
<input type="checkbox"
name="paymentCODPrePayDelivery"
<#if parameters.paymentCODPrePayDelivery??>checked="checked"</#if>/>
</td>
<td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentMoneyXferAccepted}</td>
<td width="2%">
<input type="checkbox"
name="paymentMoneyXferAccepted"
<#if parameters.paymentMoneyXferAccepted??>checked="checked"</#if>/>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="right" class="label">${uiLabelMap.FormFieldTitle_payPalEmail}</td>
<td>&nbsp;</td>
<td>
<input type="text" name="payPalEmail" size="50" maxlength="50" value="${parameters.payPalEmail!}"/>
</td>
</tr>
<tr>
<td align="right" class="label">${uiLabelMap.FormFieldTitle_customXml}</td>
<td>&nbsp;</td>
<td>
<textarea cols="60" rows="6" wrap="soft" name="customXml">${customXml!}</textarea>
</td>
</tr>
<tr>
<td colspan=2>&nbsp;</td>
<td>
<input type="submit" value="${uiLabelMap.EbayExportToEbay}" name="submitButton" class="smallSubmit"/>
</td>
</tr>
</#if>
</table>
</form>
<script language="JavaScript" type="text/javascript">
activateSubmitButton();
</script>
</div>
@@ -17,5 +17,7 @@ specific language governing permissions and limitations
under the License.
-->
<a href="<@OfbizContentAltUrl contentId=blog.contentId viewContent='ViewBlogArticle'/>" >${blog.contentName} [${blog.contentId}]</a>
<a href="<@OfbizContentAltUrl contentId=blog.contentId viewContent='ViewBlogArticle'/>" >
${blog.contentName} [${blog.contentId}]
</a>
+3 -1
View File
@@ -28,7 +28,9 @@ under the License.
<ul class="browsecategorylist">
<#list blogs as blog>
<li class="browsecategorytext">
<a href="<@ofbizUrl>MainBlog?blogContentId=${blog.contentId}</@ofbizUrl>" class="browsecategorybutton">${blog.contentName!}</a>
<a href="<@ofbizUrl>MainBlog?blogContentId=${blog.contentId}</@ofbizUrl>" class="browsecategorybutton">
${blog.contentName!}
</a>
</li>
</#list>
</ul>
+68 -56
View File
@@ -26,30 +26,31 @@
<#-- This code sets the checkboxes based on existing data -->
<#assign text_check=""/>
<#assign img_check=""/>
<#if (imageContent?has_content && (drDataTemplateTypeId?default("") == "SCREEN_COMBINED") || drMimeTypeId?default("")?starts_with("image"))>
<#assign img_check="checked='checked'"/>
<#if (imageContent?has_content && (drDataTemplateTypeId?default("") == "SCREEN_COMBINED")
|| drMimeTypeId?default("")?starts_with("image"))>
<#assign img_check="checked='checked'"/>
</#if>
<#if (textContent?has_content && drMimeTypeId?default("")?starts_with("text"))
|| (textContent?has_content && (drDataTemplateTypeId?default("") == "SCREEN_COMBINED"))
|| !img_check?has_content>
<#assign text_check="checked='checked'"/>
|| (textContent?has_content && (drDataTemplateTypeId?default("") == "SCREEN_COMBINED"))
|| !img_check?has_content>
<#assign text_check="checked='checked'"/>
</#if>
<#-- Sets one of the two templates -->
<#assign topleft_check=""/>
<#assign topcenter_check=""/>
<#if view.drDataResourceId?has_content && view.drDataResourceId == "BLOG_TPL_TOPLEFT">
<#assign topleft_check="checked='checked'"/>
<#assign topleft_check="checked='checked'"/>
<#else>
<#assign topcenter_check="checked='checked'"/>
<#assign topcenter_check="checked='checked'"/>
</#if>
<#-- Fills in existing text -->
<#assign textData=""/>
<#if electronicText?has_content >
<#if electronicText.textData?has_content >
<#assign textData=electronicText.textData/>
</#if>
<#if electronicText.textData?has_content >
<#assign textData=electronicText.textData/>
</#if>
</#if>
<#-- Stores the ids for existing data -->
@@ -57,20 +58,20 @@
<#assign textDataResourceId=""/>
<#if textContent?has_content >
<#assign textContentId=textContent.contentId!/>
<#assign textDataResourceId=textContent.drDataResourceId!/>
<#assign textContentId=textContent.contentId!/>
<#assign textDataResourceId=textContent.drDataResourceId!/>
</#if>
<#if textElectronicText?has_content && textElectronicText.textData?has_content >
<#assign textData=textElectronicText.textData/>
<#assign textData=textElectronicText.textData/>
</#if>
<#assign imageContentId=""/>
<#assign imageDataResourceId=""/>
<#if imageContent?has_content >
<#assign imageContentId=imageContent.contentId!/>
<#assign imageDataResourceId=imageContent.drDataResourceId!/>
<#assign imageContentId=imageContent.contentId!/>
<#assign imageDataResourceId=imageContent.drDataResourceId!/>
</#if>
<input type="hidden" name="textContentId" value="${textContentId}"/>
@@ -79,45 +80,56 @@
<input type="hidden" name="imageDataResourceId" value="${imageDataResourceId}"/>
<table>
<tr>
<td width="10%" align="right">
<span class="treeHeader"> </span>
</td>
<td>&nbsp;</td>
<td width="5%" valign="top">
<div class="inputBox"><input type="checkBox" ${text_check} name="drMimeTypeId_TEXT" value="Y"/>Text</div>
</td>
<td>&nbsp;</td>
<td width="60%">
<textarea class="textAreaBox" class="inputBox" name="textData" cols="60" rows="24">${textData!}</textarea>
</td>
<td width="10%" align="right">
<span class="treeHeader"> </span>
</td>
</tr>
<tr>
<td width="10%" align="right">
<span class="treeHeader"> </span>
</td>
<td>&nbsp;</td>
<td width="5%" valign="top">
<div class="inputBox"><input type="checkbox" ${img_check} name="drMimeTypeId_IMAGE" value="Y"/>Image</div>
</td>
<td>&nbsp;</td>
<td width="60%">
<div class="inputBox">Existing file name: <#if imageContent?has_content && imageContent.drObjectInfo?has_content>${imageContent.drObjectInfo}</#if></div>
<br />
<input type="file" class="inputBox" name="uploadedFile" size="25"/>
<#--
Force: <input type="checkbox" value="true" name="forceElectronicText"/>
-->
<br />
Top-left:<input type="radio" ${topleft_check} class="inputBox" name="templateId" value="BLOG_TPL_TOPLEFT"/>
&nbsp;Top-center:<input type="radio" ${topcenter_check} class="inputBox" name="templateId" value="BLOG_TPL_TOPCENTER"/>
</td>
<td width="10%" align="right">
<span class="treeHeader">&nbsp;</span>
</td>
</tr>
<tr>
<td width="10%" align="right">
<span class="treeHeader"> </span>
</td>
<td>&nbsp;</td>
<td width="5%" valign="top">
<div class="inputBox">
<input type="checkBox" ${text_check} name="drMimeTypeId_TEXT" value="Y"/>
Text
</div>
</td>
<td>&nbsp;</td>
<td width="60%">
<textarea class="textAreaBox" class="inputBox" name="textData" cols="60" rows="24">
${textData!}
</textarea>
</td>
<td width="10%" align="right">
<span class="treeHeader"> </span>
</td>
</tr>
<tr>
<td width="10%" align="right">
<span class="treeHeader"> </span>
</td>
<td>&nbsp;</td>
<td width="5%" valign="top">
<div class="inputBox"><input type="checkbox" ${img_check} name="drMimeTypeId_IMAGE" value="Y"/>
Image
</div>
</td>
<td>&nbsp;</td>
<td width="60%">
<div class="inputBox">
Existing file name:
<#if imageContent?has_content && imageContent.drObjectInfo?has_content>
${imageContent.drObjectInfo}
</#if>
</div>
<br />
<input type="file" class="inputBox" name="uploadedFile" size="25"/>
<#--
Force: <input type="checkbox" value="true" name="forceElectronicText"/>
-->
<br />
Top-left:<input type="radio" ${topleft_check} class="inputBox" name="templateId" value="BLOG_TPL_TOPLEFT"/>&nbsp;
Top-center:<input type="radio" ${topcenter_check} class="inputBox" name="templateId" value="BLOG_TPL_TOPCENTER"/>
</td>
<td width="10%" align="right">
<span class="treeHeader">&nbsp;</span>
</td>
</tr>
</table>
+57 -32
View File
@@ -18,41 +18,66 @@ under the License.
-->
<#assign shoppingCart = sessionAttributes.shoppingCart!>
<#if shoppingCart?has_content>
<#assign shoppingCartSize = shoppingCart.size()>
<#assign shoppingCartSize = shoppingCart.size()>
<#else>
<#assign shoppingCartSize = 0>
<#assign shoppingCartSize = 0>
</#if>
<div id="microcart">
<#if (shoppingCartSize > 0)>
<p id="microCartNotEmpty">
${uiLabelMap.EcommerceCartHas} <strong id="microCartQuantity">${shoppingCart.getTotalQuantity()}</strong>
<#if shoppingCart.getTotalQuantity() == 1>${uiLabelMap.OrderItem}<#else>${uiLabelMap.OrderItems}</#if>,
<strong id="microCartTotal"><@ofbizCurrency amount=shoppingCart.getDisplayGrandTotal() isoCode=shoppingCart.getCurrency()/></strong>
</p>
<span id="microCartEmpty" style="display:none">${uiLabelMap.OrderShoppingCartEmpty}</span>
<#else>
<p>${uiLabelMap.OrderShoppingCartEmpty}</p>
</#if>
<ul>
<li><a href="<@ofbizUrl>view/showcart</@ofbizUrl>">[${uiLabelMap.OrderViewCart}]</a></li>
<#if (shoppingCartSize > 0)>
<#if !initialLocaleComplete?? || initialLocaleComplete?length == 2 >
<#if initialLocaleComplete?? && initialLocaleComplete?length == 2 && initialLocaleComplete == "fr">
<#assign initialLocaleComplete = "fr_FR"><#-- same idea can be used with other default locale -->
<#else>
<#assign initialLocaleComplete = "en_US">
</#if>
</#if>
<li id="quickCheckoutEnabled"><a href="<@ofbizUrl>quickcheckout</@ofbizUrl>">[${uiLabelMap.OrderCheckoutQuick}]</a></li>
<li id="quickCheckoutDisabled" style="display:none" class="disabled">[${uiLabelMap.OrderCheckoutQuick}]</li>
<li id="onePageCheckoutEnabled"><a href="<@ofbizUrl>onePageCheckout</@ofbizUrl>">[${uiLabelMap.EcommerceOnePageCheckout}]</a></li>
<li id="onePageCheckoutDisabled" style="display:none" class="disabled">[${uiLabelMap.EcommerceOnePageCheckout}]</li>
<#if shoppingCart?has_content && (shoppingCart.getGrandTotal() > 0)>
<li id="microCartPayPalCheckout"><a href="<@ofbizUrl>setPayPalCheckout</@ofbizUrl>"><img src="https://www.paypal.com/${initialLocaleComplete}/i/btn/btn_xpressCheckout.gif" alt="[PayPal Express Checkout]" onError="this.onerror=null;this.src='https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif'"/></a></li>
</#if>
<#if (shoppingCartSize > 0)>
<p id="microCartNotEmpty">
${uiLabelMap.EcommerceCartHas}
<strong id="microCartQuantity">
${shoppingCart.getTotalQuantity()}
</strong>
<#if shoppingCart.getTotalQuantity() == 1>
${uiLabelMap.OrderItem}
<#else>
<li class="disabled">[${uiLabelMap.OrderCheckoutQuick}]</li>
<li class="disabled">[${uiLabelMap.EcommerceOnePageCheckout}]</li>
${uiLabelMap.OrderItems}
</#if>,
<strong id="microCartTotal">
<@ofbizCurrency amount=shoppingCart.getDisplayGrandTotal() isoCode=shoppingCart.getCurrency()/>
</strong>
</p>
<span id="microCartEmpty" style="display:none">${uiLabelMap.OrderShoppingCartEmpty}</span>
<#else>
<p>${uiLabelMap.OrderShoppingCartEmpty}</p>
</#if>
<ul>
<li>
<a href="<@ofbizUrl>view/showcart</@ofbizUrl>">[${uiLabelMap.OrderViewCart}]</a>
</li>
<#if (shoppingCartSize > 0)>
<#if !initialLocaleComplete?? || initialLocaleComplete?length == 2 >
<#if initialLocaleComplete?? && initialLocaleComplete?length == 2 && initialLocaleComplete == "fr">
<#assign initialLocaleComplete = "fr_FR"><#-- same idea can be used with other default locale -->
<#else>
<#assign initialLocaleComplete = "en_US">
</#if>
</#if>
</ul>
<li id="quickCheckoutEnabled">
<a href="<@ofbizUrl>quickcheckout</@ofbizUrl>">[${uiLabelMap.OrderCheckoutQuick}]</a>
</li>
<li id="quickCheckoutDisabled" style="display:none" class="disabled">
[${uiLabelMap.OrderCheckoutQuick}]
</li>
<li id="onePageCheckoutEnabled">
<a href="<@ofbizUrl>onePageCheckout</@ofbizUrl>">[${uiLabelMap.EcommerceOnePageCheckout}]</a>
</li>
<li id="onePageCheckoutDisabled" style="display:none" class="disabled">
[${uiLabelMap.EcommerceOnePageCheckout}]
</li>
<#if shoppingCart?has_content && (shoppingCart.getGrandTotal() > 0)>
<li id="microCartPayPalCheckout">
<a href="<@ofbizUrl>setPayPalCheckout</@ofbizUrl>">
<img src="https://www.paypal.com/${initialLocaleComplete}/i/btn/btn_xpressCheckout.gif"
alt="[PayPal Express Checkout]"
onError="this.onerror=null;this.src='https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif'"/>
</a>
</li>
</#if>
<#else>
<li class="disabled">[${uiLabelMap.OrderCheckoutQuick}]</li>
<li class="disabled">[${uiLabelMap.EcommerceOnePageCheckout}]</li>
</#if>
</ul>
</div>
+26 -24
View File
@@ -18,29 +18,31 @@ under the License.
-->
<#if showPromoText>
<div id="minipromotext" class="screenlet">
<div class="screenlet-title-bar">
<ul>
<li class="h3">${uiLabelMap.OrderSpecialOffers}</li>
</ul>
<br class="clear"/>
</div>
<div class="screenlet-body">
<#-- show promotions text -->
<ul>
<#list productPromos as productPromo>
<li>
<p>
<a href="<@ofbizUrl>showPromotionDetails?productPromoId=${productPromo.productPromoId}</@ofbizUrl>" class="linktext">${uiLabelMap.CommonDetails}</a>
${StringUtil.wrapString(productPromo.promoText!)}
</p>
</li>
</#list>
<li>
<a href="<@ofbizUrl>showAllPromotions</@ofbizUrl>" class="button">${uiLabelMap.OrderViewAllPromotions}</a>
</li>
</ul>
<div id="minipromotext" class="screenlet">
<div class="screenlet-title-bar">
<ul>
<li class="h3">${uiLabelMap.OrderSpecialOffers}</li>
</ul>
<br class="clear"/>
</div>
</div>
<div class="screenlet-body">
<#-- show promotions text -->
<ul>
<#list productPromos as productPromo>
<li>
<p>
<a href="<@ofbizUrl>showPromotionDetails?productPromoId=${productPromo.productPromoId}</@ofbizUrl>"
class="linktext">${uiLabelMap.CommonDetails}</a>
${StringUtil.wrapString(productPromo.promoText!)}
</p>
</li>
</#list>
<li>
<a href="<@ofbizUrl>showAllPromotions</@ofbizUrl>" class="button">
${uiLabelMap.OrderViewAllPromotions}
</a>
</li>
</ul>
</div>
</div>
</#if>
File diff suppressed because it is too large Load Diff
+93 -30
View File
@@ -35,27 +35,40 @@ under the License.
<tfoot>
<tr id="completedCartSubtotalRow">
<th id="subTotal" scope="row" colspan="5">${uiLabelMap.CommonSubtotal}</th>
<td headers="subTotal" id="completedCartSubTotal"><@ofbizCurrency amount=shoppingCart.getSubTotal() isoCode=shoppingCart.getCurrency() /></td>
<td headers="subTotal" id="completedCartSubTotal">
<@ofbizCurrency amount=shoppingCart.getSubTotal() isoCode=shoppingCart.getCurrency() />
</td>
</tr>
<#assign orderAdjustmentsTotal = 0 />
<#list shoppingCart.getAdjustments() as cartAdjustment>
<#assign orderAdjustmentsTotal = orderAdjustmentsTotal + Static["org.apache.ofbiz.order.order.OrderReadHelper"].calcOrderAdjustment(cartAdjustment, shoppingCart.getSubTotal()) />
<#assign orderAdjustmentsTotal = orderAdjustmentsTotal +
Static["org.apache.ofbiz.order.order.OrderReadHelper"]
.calcOrderAdjustment(cartAdjustment, shoppingCart.getSubTotal()) />
</#list>
<tr id="completedCartDiscountRow">
<th id="productDiscount" scope="row" colspan="5">${uiLabelMap.ProductDiscount}</th>
<td headers="productDiscount" id="completedCartDiscount"><input type="hidden" value="${orderAdjustmentsTotal}" id="initializedCompletedCartDiscount" /><@ofbizCurrency amount=orderAdjustmentsTotal isoCode=shoppingCart.getCurrency() /></td>
<td headers="productDiscount" id="completedCartDiscount">
<input type="hidden" value="${orderAdjustmentsTotal}" id="initializedCompletedCartDiscount" />
<@ofbizCurrency amount=orderAdjustmentsTotal isoCode=shoppingCart.getCurrency() />
</td>
</tr>
<tr>
<th id="shippingAndHandling" scope="row" colspan="5">${uiLabelMap.OrderShippingAndHandling}</th>
<td headers="shippingAndHandling" id="completedCartTotalShipping"><@ofbizCurrency amount=shoppingCart.getTotalShipping() isoCode=shoppingCart.getCurrency() /></td>
<td headers="shippingAndHandling" id="completedCartTotalShipping">
<@ofbizCurrency amount=shoppingCart.getTotalShipping() isoCode=shoppingCart.getCurrency() />
</td>
</tr>
<tr>
<th id="salesTax" scope="row" colspan="5">${uiLabelMap.OrderSalesTax}</th>
<td headers="salesTax" id="completedCartTotalSalesTax"><@ofbizCurrency amount=shoppingCart.getTotalSalesTax() isoCode=shoppingCart.getCurrency() /></td>
<td headers="salesTax" id="completedCartTotalSalesTax">
<@ofbizCurrency amount=shoppingCart.getTotalSalesTax() isoCode=shoppingCart.getCurrency() />
</td>
</tr>
<tr>
<th id="grandTotal" scope="row" colspan="5">${uiLabelMap.OrderGrandTotal}</th>
<td headers="grandTotal" id="completedCartDisplayGrandTotal"><@ofbizCurrency amount=shoppingCart.getDisplayGrandTotal() isoCode=shoppingCart.getCurrency() /></td>
<td headers="grandTotal" id="completedCartDisplayGrandTotal">
<@ofbizCurrency amount=shoppingCart.getDisplayGrandTotal() isoCode=shoppingCart.getCurrency() />
</td>
</tr>
</tfoot>
<tbody>
@@ -66,16 +79,29 @@ under the License.
<#else>
<#assign parentProductId = cartLine.getProductId() />
</#if>
<#assign smallImageUrl = Static["org.apache.ofbiz.product.product.ProductContentWrapper"].getProductContentAsText(cartLine.getProduct(), "SMALL_IMAGE_URL", locale, dispatcher, "url")! />
<#assign smallImageUrl = Static["org.apache.ofbiz.product.product.ProductContentWrapper"]
.getProductContentAsText(cartLine.getProduct(), "SMALL_IMAGE_URL", locale, dispatcher, "url")! />
<#if !smallImageUrl?string?has_content><#assign smallImageUrl = "" /></#if>
</#if>
<tr id="cartItemDisplayRow_${cartLine_index}">
<td headers="orderItem"><img src="<@ofbizContentUrl>${requestAttributes.contentPathPrefix!}${smallImageUrl}</@ofbizContentUrl>" alt = "Product Image" /></td>
<td headers="orderItem">
<img src="<@ofbizContentUrl>${requestAttributes.contentPathPrefix!}${smallImageUrl}</@ofbizContentUrl>"
alt = "Product Image" /></td>
<td headers="description">${cartLine.getName()!}</td>
<td headers="unitPrice">${cartLine.getDisplayPrice()}</td>
<td headers="quantity"><span id="completedCartItemQty_${cartLine_index}">${cartLine.getQuantity()?string.number}</span></td>
<td headers="adjustment"><span id="completedCartItemAdjustment_${cartLine_index}"><@ofbizCurrency amount=cartLine.getOtherAdjustments() isoCode=shoppingCart.getCurrency() /></span></td>
<td headers="itemTotal" align="right"><span id="completedCartItemSubTotal_${cartLine_index}"><@ofbizCurrency amount=cartLine.getDisplayItemSubTotal() isoCode=shoppingCart.getCurrency() /></span></td>
<td headers="quantity">
<span id="completedCartItemQty_${cartLine_index}">${cartLine.getQuantity()?string.number}</span>
</td>
<td headers="adjustment">
<span id="completedCartItemAdjustment_${cartLine_index}">
<@ofbizCurrency amount=cartLine.getOtherAdjustments() isoCode=shoppingCart.getCurrency() />
</span>
</td>
<td headers="itemTotal" align="right">
<span id="completedCartItemSubTotal_${cartLine_index}">
<@ofbizCurrency amount=cartLine.getDisplayItemSubTotal() isoCode=shoppingCart.getCurrency() />
</span>
</td>
</tr>
</#list>
</tbody>
@@ -101,29 +127,39 @@ under the License.
<tfoot>
<tr>
<th scope="row" colspan="6">${uiLabelMap.CommonSubtotal}</th>
<td id="cartSubTotal"><@ofbizCurrency amount=shoppingCart.getSubTotal() isoCode=shoppingCart.getCurrency() /></td>
<td id="cartSubTotal">
<@ofbizCurrency amount=shoppingCart.getSubTotal() isoCode=shoppingCart.getCurrency() />
</td>
</tr>
<tr>
<th scope="row" colspan="6">${uiLabelMap.ProductDiscount}</th>
<td id="cartDiscountValue">
<#assign orderAdjustmentsTotal = 0 />
<#list shoppingCart.getAdjustments() as cartAdjustment>
<#assign orderAdjustmentsTotal = orderAdjustmentsTotal + Static["org.apache.ofbiz.order.order.OrderReadHelper"].calcOrderAdjustment(cartAdjustment, shoppingCart.getSubTotal()) />
<#assign orderAdjustmentsTotal = orderAdjustmentsTotal +
Static["org.apache.ofbiz.order.order.OrderReadHelper"]
.calcOrderAdjustment(cartAdjustment, shoppingCart.getSubTotal()) />
</#list>
<@ofbizCurrency amount=orderAdjustmentsTotal isoCode=shoppingCart.getCurrency() />
</td>
</tr>
<tr>
<th scope="row" colspan="6">${uiLabelMap.OrderShippingAndHandling}</th>
<td id="cartTotalShipping"><@ofbizCurrency amount=shoppingCart.getTotalShipping() isoCode=shoppingCart.getCurrency() /></td>
<td id="cartTotalShipping">
<@ofbizCurrency amount=shoppingCart.getTotalShipping() isoCode=shoppingCart.getCurrency() />
</td>
</tr>
<tr>
<th scope="row" colspan="6">${uiLabelMap.OrderSalesTax}</th>
<td id="cartTotalSalesTax"><@ofbizCurrency amount=shoppingCart.getTotalSalesTax() isoCode=shoppingCart.getCurrency() /></td>
<td id="cartTotalSalesTax">
<@ofbizCurrency amount=shoppingCart.getTotalSalesTax() isoCode=shoppingCart.getCurrency() />
</td>
</tr>
<tr>
<th scope="row" colspan="6">${uiLabelMap.OrderGrandTotal}</th>
<td id="cartDisplayGrandTotal"><@ofbizCurrency amount=shoppingCart.getDisplayGrandTotal() isoCode=shoppingCart.getCurrency() /></td>
<td id="cartDisplayGrandTotal">
<@ofbizCurrency amount=shoppingCart.getDisplayGrandTotal() isoCode=shoppingCart.getCurrency() />
</td>
</tr>
</tfoot>
<tbody id="updateBody">
@@ -136,33 +172,56 @@ under the License.
<#else>
<#assign parentProductId = cartLine.getProductId() />
</#if>
<#assign smallImageUrl = Static["org.apache.ofbiz.product.product.ProductContentWrapper"].getProductContentAsText(cartLine.getProduct(), "SMALL_IMAGE_URL", locale, dispatcher, "url")! />
<#assign smallImageUrl = Static["org.apache.ofbiz.product.product.ProductContentWrapper"]
.getProductContentAsText(cartLine.getProduct(), "SMALL_IMAGE_URL",
locale, dispatcher, "url")! />
<#if !smallImageUrl?string?has_content><#assign smallImageUrl = "" /></#if>
<#if smallImageUrl?string?has_content>
<img src="<@ofbizContentUrl>${requestAttributes.contentPathPrefix!}${smallImageUrl}</@ofbizContentUrl>" alt="Product Image" />
<img src="<@ofbizContentUrl>${requestAttributes.contentPathPrefix!}${smallImageUrl}</@ofbizContentUrl>"
alt="Product Image" />
</#if>
</#if>
</td>
<td headers="editDescription">${cartLine.getName()!}</td>
<td headers="editUnitPrice" id="itemUnitPrice_${cartLine_index}"><@ofbizCurrency amount=cartLine.getDisplayPrice() isoCode=shoppingCart.getCurrency() /></td>
<td headers="editUnitPrice" id="itemUnitPrice_${cartLine_index}">
<@ofbizCurrency amount=cartLine.getDisplayPrice() isoCode=shoppingCart.getCurrency() />
</td>
<td headers="editQuantity">
<#if cartLine.getIsPromo()>
${cartLine.getQuantity()?string.number}
<#else>
<input type="hidden" name="cartLineProductId" id="cartLineProductId_${cartLine_index}" value="${cartLine.getProductId()}" />
<input type="text" name="update${cartLine_index}" id="qty_${cartLine_index}" value="${cartLine.getQuantity()?string.number}" class="required validate-number" />
<span id="advice-required-qty_${cartLine_index}" style="display:none;" class="errorMessage"> (${uiLabelMap.CommonRequired})</span>
<span id="advice-validate-number-qty_${cartLine_index}" style="display:none;" class="errorMessage"> (${uiLabelMap.CommonPleaseEnterValidNumberInThisField}) </span>
<input type="hidden" name="cartLineProductId" id="cartLineProductId_${cartLine_index}"
value="${cartLine.getProductId()}" />
<input type="text" name="update${cartLine_index}" id="qty_${cartLine_index}"
value="${cartLine.getQuantity()?string.number}" class="required validate-number" />
<span id="advice-required-qty_${cartLine_index}" style="display:none;" class="errorMessage">
(${uiLabelMap.CommonRequired})
</span>
<span id="advice-validate-number-qty_${cartLine_index}" style="display:none;" class="errorMessage">
(${uiLabelMap.CommonPleaseEnterValidNumberInThisField})
</span>
</#if>
</td>
<#if !cartLine.getIsPromo()>
<td headers="editAdjustment" id="addPromoCode_${cartLine_index}"><@ofbizCurrency amount=cartLine.getOtherAdjustments() isoCode=shoppingCart.getCurrency() /></td>
<td headers="editAdjustment" id="addPromoCode_${cartLine_index}">
<@ofbizCurrency amount=cartLine.getOtherAdjustments() isoCode=shoppingCart.getCurrency() />
</td>
<#else>
<td headers="editAdjustment"><@ofbizCurrency amount=cartLine.getOtherAdjustments() isoCode=shoppingCart.getCurrency() /></td>
<td headers="editAdjustment">
<@ofbizCurrency amount=cartLine.getOtherAdjustments() isoCode=shoppingCart.getCurrency() />
</td>
</#if>
<td headers="editItemTotal" id="displayItem_${cartLine_index}"><@ofbizCurrency amount=cartLine.getDisplayItemSubTotal() isoCode=shoppingCart.getCurrency() /></td>
<td headers="editItemTotal" id="displayItem_${cartLine_index}">
<@ofbizCurrency amount=cartLine.getDisplayItemSubTotal() isoCode=shoppingCart.getCurrency() />
</td>
<#if !cartLine.getIsPromo()>
<td><a id="removeItemLink_${cartLine_index}" href="javascript:void(0);"><img id="remove_${cartLine_index}" src="<@ofbizContentUrl>/ecommerce/images/remove.png</@ofbizContentUrl>" alt="Remove Item Image" /></a></td>
<td>
<a id="removeItemLink_${cartLine_index}" href="javascript:void(0);">
<img id="remove_${cartLine_index}"
src="<@ofbizContentUrl>/ecommerce/images/remove.png</@ofbizContentUrl>"
alt="Remove Item Image" />
</a>
</td>
</#if>
</tr>
</#list>
@@ -176,9 +235,13 @@ under the License.
</div>
</fieldset>
<fieldset>
<a href="javascript:void(0);" class="button" id="updateShoppingCart" >${uiLabelMap.EcommerceContinueToStep} 2</a>
<a style="display: none" class="button" href="javascript:void(0);" id="processingShipping">${uiLabelMap.EcommercePleaseWait}....</a>
<a href="javascript:void(0);" class="button" id="updateShoppingCart" >
${uiLabelMap.EcommerceContinueToStep} 2
</a>
<a style="display: none" class="button" href="javascript:void(0);" id="processingShipping">
${uiLabelMap.EcommercePleaseWait}....
</a>
</fieldset>
</form>
</div>
</#if>
</#if>
+99 -77
View File
@@ -16,44 +16,57 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<#assign searchOptionsHistoryList = Static["org.apache.ofbiz.product.product.ProductSearchSession"].getSearchOptionsHistoryList(session)/>
<#assign currentCatalogId = Static["org.apache.ofbiz.product.catalog.CatalogWorker"].getCurrentCatalogId(request)/>
<#assign searchOptionsHistoryList =
Static["org.apache.ofbiz.product.product.ProductSearchSession"].getSearchOptionsHistoryList(session)/>
<#assign currentCatalogId =
Static["org.apache.ofbiz.product.catalog.CatalogWorker"].getCurrentCatalogId(request)/>
<h2>${uiLabelMap.ProductAdvancedSearchInCategory}</h2>
<form id="advtokeywordsearchform" method="post" action="<@ofbizUrl>keywordsearch</@ofbizUrl>">
<fieldset class="inline">
<input type="hidden" name="VIEW_SIZE" value="10" />
<input type="hidden" name="PAGING" value="Y" />
<input type="hidden" name="SEARCH_CATALOG_ID" value="${currentCatalogId}" />
<#if searchCategory?has_content>
<input type="hidden" name="SEARCH_CATEGORY_ID" value="${searchCategoryId?if_exists}" />
<label>${uiLabelMap.ProductCategory}</label>
<p>${(searchCategory.description)?if_exists}</p>
<div>
<label>${uiLabelMap.ProductIncludeSubCategories}</label>
<label for="SEARCH_SUB_CATEGORIES_YES">${uiLabelMap.CommonYes}</label> <input type="radio" name="SEARCH_SUB_CATEGORIES" id="SEARCH_SUB_CATEGORIES_YES" value="Y" checked="checked" />
<label for="SEARCH_SUB_CATEGORIES_NO">${uiLabelMap.CommonNo}</label> <input type="radio" name="SEARCH_SUB_CATEGORIES" id="SEARCH_SUB_CATEGORIES_NO" value="N" />
</div>
</#if>
<input type="hidden" name="VIEW_SIZE" value="10"/>
<input type="hidden" name="PAGING" value="Y"/>
<input type="hidden" name="SEARCH_CATALOG_ID" value="${currentCatalogId}"/>
<#if searchCategory?has_content>
<input type="hidden" name="SEARCH_CATEGORY_ID" value="${searchCategoryId?if_exists}"/>
<label>${uiLabelMap.ProductCategory}</label>
<p>${(searchCategory.description)?if_exists}</p>
<div>
<label>${uiLabelMap.ProductIncludeSubCategories}</label>
<label for="SEARCH_SUB_CATEGORIES_YES">${uiLabelMap.CommonYes}</label>
<input type="radio" name="SEARCH_SUB_CATEGORIES" id="SEARCH_SUB_CATEGORIES_YES" value="Y"
checked="checked"/>
<label for="SEARCH_SUB_CATEGORIES_NO">${uiLabelMap.CommonNo}</label>
<input type="radio" name="SEARCH_SUB_CATEGORIES" id="SEARCH_SUB_CATEGORIES_NO" value="N"/>
</div>
</#if>
<div>
<label for="SEARCH_STRING">${uiLabelMap.ProductKeywords}</label>
<input type="text" name="SEARCH_STRING" id="SEARCH_STRING" size="20" value="${requestParameters.SEARCH_STRING?if_exists}" />
<label for="SEARCH_OPERATOR_ANY">${uiLabelMap.CommonAny}</label> <input type="radio" name="SEARCH_OPERATOR" id="SEARCH_OPERATOR_ANY" value="OR" <#if searchOperator == "OR">checked="checked"</#if> />
<label for="SEARCH_OPERATOR_ALL">${uiLabelMap.CommonAll}</label> <input type="radio" name="SEARCH_OPERATOR" id="SEARCH_OPERATOR_ALL" value="AND" <#if searchOperator == "AND">checked="checked"</#if> />
<input type="text" name="SEARCH_STRING" id="SEARCH_STRING" size="20"
value="${requestParameters.SEARCH_STRING?if_exists}"/>
<label for="SEARCH_OPERATOR_ANY">${uiLabelMap.CommonAny}</label>
<input type="radio" name="SEARCH_OPERATOR" id="SEARCH_OPERATOR_ANY"
value="OR" <#if searchOperator == "OR">checked="checked"</#if>/>
<label for="SEARCH_OPERATOR_ALL">${uiLabelMap.CommonAll}</label>
<input type="radio" name="SEARCH_OPERATOR" id="SEARCH_OPERATOR_ALL"
value="AND" <#if searchOperator == "AND">checked="checked"</#if>/>
</div>
<#list productFeatureTypeIdsOrdered as productFeatureTypeId>
<#assign findPftMap = Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("productFeatureTypeId", productFeatureTypeId)>
<#assign productFeatureType = delegator.findOne("ProductFeatureType", findPftMap, true)>
<#assign productFeatures = productFeaturesByTypeMap[productFeatureTypeId]>
<div>
<label for="pft_${productFeatureTypeId}">${(productFeatureType.get("description",locale))?if_exists}</label>
<select name="pft_${productFeatureTypeId}" id="pft_${productFeatureTypeId}">
<option value="">- ${uiLabelMap.CommonSelectAny} -</option>
<#list productFeatures as productFeature>
<option value="${productFeature.productFeatureId}">${productFeature.description?default(productFeature.productFeatureId)}</option>
</#list>
</select>
</div>
</#list>
<#list productFeatureTypeIdsOrdered as productFeatureTypeId>
<#assign findPftMap =
Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("productFeatureTypeId", productFeatureTypeId)>
<#assign productFeatureType = delegator.findOne("ProductFeatureType", findPftMap, true)>
<#assign productFeatures = productFeaturesByTypeMap[productFeatureTypeId]>
<div>
<label for="pft_${productFeatureTypeId}">${(productFeatureType.get("description",locale))?if_exists}</label>
<select name="pft_${productFeatureTypeId}" id="pft_${productFeatureTypeId}">
<option value="">- ${uiLabelMap.CommonSelectAny} -</option>
<#list productFeatures as productFeature>
<option value="${productFeature.productFeatureId}">
${productFeature.description?default(productFeature.productFeatureId)}
</option>
</#list>
</select>
</div>
</#list>
<div>
<label for="sortOrder">${uiLabelMap.ProductSortedBy}</label>
<select name="sortOrder" id="sortOrder">
@@ -64,52 +77,61 @@ under the License.
<option value="SortProductField:averageCustomerRating">${uiLabelMap.ProductCustomerRating}</option>
<option value="SortProductPrice:LIST_PRICE">${uiLabelMap.ProductListPrice}</option>
<option value="SortProductPrice:DEFAULT_PRICE">${uiLabelMap.ProductDefaultPrice}</option>
<#if productFeatureTypes?? && productFeatureTypes?has_content>
<#list productFeatureTypes as productFeatureType>
<option value="SortProductFeature:${productFeatureType.productFeatureTypeId}">${productFeatureType.description?default(productFeatureType.productFeatureTypeId)}</option>
</#list>
</#if>
</select>
<label for="sortAscendingHigh">${uiLabelMap.EcommerceLowToHigh}</label> <input type="radio" name="sortAscending" id="sortAscendingHigh" value="Y" checked="checked" />
<label for="sortAscendingLow">${uiLabelMap.EcommerceHighToLow}</label> <input type="radio" name="sortAscending" id="sortAscendingLow" value="N" />
</div>
<#if searchConstraintStrings?has_content>
<div>
<label>${uiLabelMap.ProductLastSearch}</label>
<#list searchConstraintStrings as searchConstraintString>
<p>${searchConstraintString}</p>
</#list>
<p>${uiLabelMap.ProductSortedBy}: ${searchSortOrderString}</p>
<div>
<label for="clearSearchNew">${uiLabelMap.ProductNewSearch}</label><input type="radio" name="clearSearch" id="clearSearchNew" value="Y" checked="checked" />
<label for="clearSearchRefine">${uiLabelMap.ProductRefineSearch}</label><input type="radio" name="clearSearch" id="clearSearchRefine" value="N" />
</div>
</div>
</#if>
<div>
<input type="submit" name="submit" class="button" value="${uiLabelMap.CommonFind}" />
</div>
<#if searchOptionsHistoryList?has_content>
<h2>${uiLabelMap.OrderLastSearches}...</h2>
<div>
<a href="<@ofbizUrl>clearSearchOptionsHistoryList</@ofbizUrl>" class="button">${uiLabelMap.OrderClearSearchHistory}</a>
<h3>${uiLabelMap.OrderClearSearchHistoryNote}</h3>
</div>
<#list searchOptionsHistoryList as searchOptions>
<#-- searchOptions type is ProductSearchSession.ProductSearchOptions -->
<div>
<p>${uiLabelMap.EcommerceSearchNumber}${searchOptions_index + 1}</p>
<a href="<@ofbizUrl>setCurrentSearchFromHistoryAndSearch?searchHistoryIndex=${searchOptions_index}&amp;clearSearch=N</@ofbizUrl>" class="button">${uiLabelMap.CommonSearch}</a>
<a href="<@ofbizUrl>setCurrentSearchFromHistory?searchHistoryIndex=${searchOptions_index}</@ofbizUrl>" class="button">${uiLabelMap.CommonRefine}</a>
</div>
<#assign constraintStrings = searchOptions.searchGetConstraintStrings(false, delegator, locale)>
<#list constraintStrings as constraintString>
<p> - ${constraintString}</p>
<#if productFeatureTypes?? && productFeatureTypes?has_content>
<#list productFeatureTypes as productFeatureType>
<option value="SortProductFeature:${productFeatureType.productFeatureTypeId}">
${productFeatureType.description?default(productFeatureType.productFeatureTypeId)}
</option>
</#list>
<#if searchOptions_has_next>
</#if>
</#if>
</select>
<label for="sortAscendingHigh">${uiLabelMap.EcommerceLowToHigh}</label>
<input type="radio" name="sortAscending" id="sortAscendingHigh" value="Y" checked="checked"/>
<label for="sortAscendingLow">${uiLabelMap.EcommerceHighToLow}</label>
<input type="radio" name="sortAscending" id="sortAscendingLow" value="N"/>
</div>
<#if searchConstraintStrings?has_content>
<div>
<label>${uiLabelMap.ProductLastSearch}</label>
<#list searchConstraintStrings as searchConstraintString>
<p>${searchConstraintString}</p>
</#list>
</#if>
<p>${uiLabelMap.ProductSortedBy}: ${searchSortOrderString}</p>
<div>
<label for="clearSearchNew">${uiLabelMap.ProductNewSearch}</label>
<input type="radio" name="clearSearch" id="clearSearchNew" value="Y" checked="checked"/>
<label for="clearSearchRefine">${uiLabelMap.ProductRefineSearch}</label>
<input type="radio" name="clearSearch" id="clearSearchRefine" value="N"/>
</div>
</div>
</#if>
<div>
<input type="submit" name="submit" class="button" value="${uiLabelMap.CommonFind}"/>
</div>
<#if searchOptionsHistoryList?has_content>
<h2>${uiLabelMap.OrderLastSearches}...</h2>
<div>
<a href="<@ofbizUrl>clearSearchOptionsHistoryList</@ofbizUrl>" class="button">
${uiLabelMap.OrderClearSearchHistory}
</a>
<h3>${uiLabelMap.OrderClearSearchHistoryNote}</h3>
</div>
<#list searchOptionsHistoryList as searchOptions>
<#-- searchOptions type is ProductSearchSession.ProductSearchOptions -->
<div>
<p>${uiLabelMap.EcommerceSearchNumber}${searchOptions_index + 1}</p>
<a href="<@ofbizUrl>setCurrentSearchFromHistoryAndSearch?searchHistoryIndex=${searchOptions_index}&amp;clearSearch=N</@ofbizUrl>"
class="button">${uiLabelMap.CommonSearch}</a>
<a href="<@ofbizUrl>setCurrentSearchFromHistory?searchHistoryIndex=${searchOptions_index}</@ofbizUrl>"
class="button">${uiLabelMap.CommonRefine}</a>
</div>
<#assign constraintStrings = searchOptions.searchGetConstraintStrings(false, delegator, locale)>
<#list constraintStrings as constraintString>
<p> - ${constraintString}</p>
</#list>
<#if searchOptions_has_next>
</#if>
</#list>
</#if>
</fieldset>
</form>
+46 -42
View File
@@ -18,53 +18,45 @@ under the License.
-->
<div class="breadcrumbs">
<#assign isDefaultTheme = !layoutSettings.VT_FTR_TMPLT_LOC?contains("multiflex")>
<#if isDefaultTheme>
<a href="<@ofbizUrl>main</@ofbizUrl>" class="linktext">${uiLabelMap.CommonMain}</a> &gt;
<#else>
<#assign isDefaultTheme = !layoutSettings.VT_FTR_TMPLT_LOC?contains("multiflex")>
<#if isDefaultTheme>
<a href="<@ofbizUrl>main</@ofbizUrl>" class="linktext">${uiLabelMap.CommonMain}</a> &gt;
<#else>
<ul>
<li>
<a href="<@ofbizUrl>main</@ofbizUrl>" class="linktext">${uiLabelMap.CommonMain}</a>
</li>
</#if>
<#-- Show the category branch -->
<#if productCategoryTrail??>
<#list productCategoryTrail as trail>
<#if !isDefaultTheme>
<li>
<a href="<@ofbizCatalogAltUrl productCategoryId=trail.productCategoryId previousCategoryId=trail.parentCategory!""/>" class="linktext">
<#if trail.title??>
${trail.title}
<#else>
${trail.productCategoryId}
</#if>
</a>
</li>
</#if>
<#-- Show the category branch -->
<#if productCategoryTrail??>
<#list productCategoryTrail as trail>
<#if !isDefaultTheme>
<li>
<a href="<@ofbizCatalogAltUrl productCategoryId=trail.productCategoryId previousCategoryId=trail.parentCategory!""/>"
class="linktext">
<#if trail.title??>
${trail.title}
<#else>
${trail.productCategoryId}
</#if>
</a>
</li>
<#else>
<a href="<@ofbizCatalogAltUrl productCategoryId=trail.productCategoryId previousCategoryId=trail.parentCategory!""/>"
class="linktext">
<#if trail.title??>
${trail.title} >
<#else>
<a href="<@ofbizCatalogAltUrl productCategoryId=trail.productCategoryId previousCategoryId=trail.parentCategory!""/>" class="linktext">
<#if trail.title??>
${trail.title} >
<#else>
${trail.productCategoryId} >
</#if>
</a>
</#if>
</#list>
</#if>
<#if !isDefaultTheme>
<li>
<a href="<@ofbizCatalogAltUrl productCategoryId=currentCategoryId previousCategoryId=parameters.parentCategoryStr/>" class="linktext">
<#if currentCategoryName??>
${currentCategoryName}
<#elseif currentCategoryDescription??>
${currentCategoryDescription}
<#else>
${currentCategoryId}
${trail.productCategoryId} >
</#if>
</a>
</li>
<#else>
<a href="<@ofbizCatalogAltUrl productCategoryId=currentCategoryId previousCategoryId=parameters.parentCategoryStr/>" class="linktext">
</#if>
</#list>
</#if>
<#if !isDefaultTheme>
<li>
<a href="<@ofbizCatalogAltUrl productCategoryId=currentCategoryId previousCategoryId=parameters.parentCategoryStr/>"
class="linktext">
<#if currentCategoryName??>
${currentCategoryName}
<#elseif currentCategoryDescription??>
@@ -73,8 +65,20 @@ under the License.
${currentCategoryId}
</#if>
</a>
</#if>
</li>
<#else>
<a href="<@ofbizCatalogAltUrl productCategoryId=currentCategoryId previousCategoryId=parameters.parentCategoryStr/>"
class="linktext">
<#if currentCategoryName??>
${currentCategoryName}
<#elseif currentCategoryDescription??>
${currentCategoryDescription}
<#else>
${currentCategoryId}
</#if>
</a>
</#if>
</ul>
</div>
<br />
<br/>
+22 -20
View File
@@ -18,28 +18,30 @@ under the License.
-->
<#assign catalogCol = Static["org.apache.ofbiz.product.catalog.CatalogWorker"].getCatalogIdsAvailable(request)!>
<#assign currentCatalogId = Static["org.apache.ofbiz.product.catalog.CatalogWorker"].getCurrentCatalogId(request)!>
<#assign currentCatalogName = Static["org.apache.ofbiz.product.catalog.CatalogWorker"].getCatalogName(request, currentCatalogId)!>
<#assign currentCatalogName =
Static["org.apache.ofbiz.product.catalog.CatalogWorker"].getCatalogName(request, currentCatalogId)!>
<#-- Only show if there is more than 1 (one) catalog, no sense selecting when there is only one option... -->
<#if (catalogCol?size > 1)>
<div id ="choosecatalog" class="screenlet">
<div class="screenlet-title-bar">
<ul>
<li class="h3">${uiLabelMap.ProductChooseCatalog}</li>
</ul>
<br class="clear"/>
<div id="choosecatalog" class="screenlet">
<div class="screenlet-title-bar">
<ul>
<li class="h3">${uiLabelMap.ProductChooseCatalog}</li>
</ul>
<br class="clear"/>
</div>
<div class="screenlet-body">
<form name="choosecatalogform" method="post" action="<@ofbizUrl>main</@ofbizUrl>">
<select name='CURRENT_CATALOG_ID' class='selectBox' onchange="submit()">
<option value='${currentCatalogId}'>${currentCatalogName}</option>
<option value='${currentCatalogId}'></option>
<#list catalogCol as catalogId>
<#assign thisCatalogName =
Static["org.apache.ofbiz.product.catalog.CatalogWorker"].getCatalogName(request, catalogId)>
<option value='${catalogId}'>${thisCatalogName}</option>
</#list>
</select>
</form>
</div>
</div>
<div class="screenlet-body">
<form name="choosecatalogform" method="post" action="<@ofbizUrl>main</@ofbizUrl>">
<select name='CURRENT_CATALOG_ID' class='selectBox' onchange="submit()">
<option value='${currentCatalogId}'>${currentCatalogName}</option>
<option value='${currentCatalogId}'></option>
<#list catalogCol as catalogId>
<#assign thisCatalogName = Static["org.apache.ofbiz.product.catalog.CatalogWorker"].getCatalogName(request, catalogId)>
<option value='${catalogId}'>${thisCatalogName}</option>
</#list>
</select>
</form>
</div>
</div>
</#if>
File diff suppressed because it is too large Load Diff
+7 -7
View File
@@ -18,15 +18,15 @@ under the License.
-->
<html>
<body>
<#if requestParameters.detail?has_content>
<#--assign detailImage = Static["org.apache.ofbiz.base.util.Base64"].base64Decode(requestParameters.detail)-->
<img src="${requestParameters.detail}" alt="" />
<#else>
<script language="JavaScript" type="text/javascript">
<#if requestParameters.detail?has_content>
<#--assign detailImage = Static["org.apache.ofbiz.base.util.Base64"].base64Decode(requestParameters.detail)-->
<img src="${requestParameters.detail}" alt=""/>
<#else>
<script language="JavaScript" type="text/javascript">
<!-- //
window.close();
// -->
</script>
</#if>
</script>
</#if>
</body>
</html>
@@ -20,14 +20,13 @@ under the License.
<tr>
<td colspan="2">
<h1>
${uiLabelMap.ProductProductsLastViewed}
${uiLabelMap.ProductProductsLastViewed}
</h1>
</td>
</tr>
</table>
<#if sessionAttributes.lastViewedProducts?? && sessionAttributes.lastViewedProducts?has_content>
<table>
<#list sessionAttributes.lastViewedProducts as productId>
<tr>
@@ -39,13 +38,12 @@ under the License.
</tr>
</#list>
</table>
<#else>
<table>
<tr>
<td>
<div class='tabletext'>${uiLabelMap.ProductNotViewedAnyProducts}.</div>
</td>
</tr>
</table>
<table>
<tr>
<td>
<div class='tabletext'>${uiLabelMap.ProductNotViewedAnyProducts}.</div>
</td>
</tr>
</table>
</#if>
@@ -18,90 +18,99 @@ under the License.
-->
<#macro paginationControls>
<#assign viewIndexMax = Static["java.lang.Math"].ceil((listSize - 1)?double / viewSize?double)>
<#if (viewIndexMax?int > 0)>
<div class="product-prevnext">
<#-- Start Page Select Drop-Down -->
<select name="pageSelect" onchange="window.location=this[this.selectedIndex].value;">
<option value="#">${uiLabelMap.CommonPage} ${viewIndex?int + 1} ${uiLabelMap.CommonOf} ${viewIndexMax + 1}</option>
<#list 0..viewIndexMax as curViewNum>
<option value="<@ofbizUrl>category/~category_id=${productCategoryId}/~searchCategoryId=${currentSearchCategory.productCategoryId}/~VIEW_SIZE=${viewSize}/~VIEW_INDEX=${curViewNum?int}/~clearSearch=N</@ofbizUrl>">${uiLabelMap.CommonGotoPage} ${curViewNum + 1}</option>
</#list>
</select>
<#-- End Page Select Drop-Down -->
<#if (0 < viewIndex?int)>
<a href="<@ofbizUrl>category/~category_id=${productCategoryId}/~searchCategoryId=${currentSearchCategory.productCategoryId}/~VIEW_SIZE=${viewSize}/~VIEW_INDEX=${viewIndex?int - 1}/~clearSearch=N</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonPrevious}</a> |
</#if>
<#if ((listSize?int - viewSize?int) > 0)>
<span>${lowIndex + 1} - ${highIndex} ${uiLabelMap.CommonOf} ${listSize}</span>
</#if>
<#if highIndex?int < listSize?int>
| <a href="<@ofbizUrl>category/~category_id=${productCategoryId}/~searchCategoryId=${currentSearchCategory.productCategoryId}/~VIEW_SIZE=${viewSize}/~VIEW_INDEX=${viewIndex?int + 1}/~clearSearch=N</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonNext}</a>
</#if>
</div>
</#if>
<#assign viewIndexMax = Static["java.lang.Math"].ceil((listSize - 1)?double / viewSize?double)>
<#if (viewIndexMax?int > 0)>
<div class="product-prevnext">
<#-- Start Page Select Drop-Down -->
<select name="pageSelect" onchange="window.location=this[this.selectedIndex].value;">
<option value="#">
${uiLabelMap.CommonPage} ${viewIndex?int + 1} ${uiLabelMap.CommonOf} ${viewIndexMax + 1}
</option>
<#list 0..viewIndexMax as curViewNum>
<option
value="<@ofbizUrl>category/~category_id=${productCategoryId}/~searchCategoryId=${currentSearchCategory.productCategoryId}/~VIEW_SIZE=${viewSize}/~VIEW_INDEX=${curViewNum?int}/~clearSearch=N</@ofbizUrl>">
${uiLabelMap.CommonGotoPage} ${curViewNum + 1}
</option>
</#list>
</select>
<#-- End Page Select Drop-Down -->
<#if (0 < viewIndex?int)>
<a href="<@ofbizUrl>category/~category_id=${productCategoryId}/~searchCategoryId=${currentSearchCategory.productCategoryId}/~VIEW_SIZE=${viewSize}/~VIEW_INDEX=${viewIndex?int - 1}/~clearSearch=N</@ofbizUrl>"
class="buttontext">${uiLabelMap.CommonPrevious}</a> |
</#if>
<#if ((listSize?int - viewSize?int) > 0)>
<span>${lowIndex + 1} - ${highIndex} ${uiLabelMap.CommonOf} ${listSize}</span>
</#if>
<#if highIndex?int < listSize?int>
| <a href="<@ofbizUrl>category/~category_id=${productCategoryId}/~searchCategoryId=${currentSearchCategory.productCategoryId}/~VIEW_SIZE=${viewSize}/~VIEW_INDEX=${viewIndex?int + 1}/~clearSearch=N</@ofbizUrl>"
class="buttontext">
${uiLabelMap.CommonNext}
</a>
</#if>
</div>
</#if>
</#macro>
<#if productCategory??>
<#assign categoryName = categoryContentWrapper.get("CATEGORY_NAME", "html")!/>
<#assign categoryDescription = categoryContentWrapper.get("DESCRIPTION", "html")!/>
<#if categoryName?has_content>
<h1>${categoryName}</h1>
</#if>
<#if categoryDescription?has_content>
<h1>${categoryDescription}</h1>
</#if>
<#assign longDescription = categoryContentWrapper.get("LONG_DESCRIPTION", "html")!/>
<#assign categoryImageUrl = categoryContentWrapper.get("CATEGORY_IMAGE_URL", "url")!/>
<#if categoryImageUrl?string?has_content || longDescription?has_content>
<div>
<#if categoryImageUrl?string?has_content>
<#assign height=100/>
<img src='<@ofbizContentUrl>${categoryImageUrl}</@ofbizContentUrl>' vspace='5' hspace='5' border='1' height='${height}' align='left' alt="" />
</#if>
<#if longDescription?has_content>
${longDescription}
</#if>
</div>
<#assign categoryName = categoryContentWrapper.get("CATEGORY_NAME", "html")!/>
<#assign categoryDescription = categoryContentWrapper.get("DESCRIPTION", "html")!/>
<#if categoryName?has_content>
<h1>${categoryName}</h1>
</#if>
<#if categoryDescription?has_content>
<h1>${categoryDescription}</h1>
</#if>
<#assign longDescription = categoryContentWrapper.get("LONG_DESCRIPTION", "html")!/>
<#assign categoryImageUrl = categoryContentWrapper.get("CATEGORY_IMAGE_URL", "url")!/>
<#if categoryImageUrl?string?has_content || longDescription?has_content>
<div>
<#if categoryImageUrl?string?has_content>
<#assign height=100/>
<img src='<@ofbizContentUrl>${categoryImageUrl}</@ofbizContentUrl>' vspace='5' hspace='5'
border='1' height='${height}' align='left' alt="" />
</#if>
<#if longDescription?has_content>
${longDescription}
</#if>
</div>
</#if>
</#if>
<#if productIds?has_content>
<@paginationControls/>
<#assign numCol = numCol?default(1)>
<#assign numCol = numCol?number>
<#assign tabCol = 1>
<div
<#if categoryImageUrl?string?has_content>
style="position: relative; margin-top: ${height}px;"
</#if>
class="productsummary-container<#if (numCol?int > 1)> matrix</#if>">
<@paginationControls/>
<#assign numCol = numCol?default(1)>
<#assign numCol = numCol?number>
<#assign tabCol = 1>
<div
<#if categoryImageUrl?string?has_content>
style="position: relative; margin-top: ${height}px;"</#if>
class="productsummary-container<#if (numCol?int > 1)> matrix</#if>">
<#if (numCol?int > 1)>
<table>
</#if>
<#list productIds as productId>
<#if (numCol?int == 1)>
${setRequestAttribute("optProductId", productId)}
${setRequestAttribute("listIndex", productId_index)}
${screens.render(productsummaryScreen)}
<#else>
<#if (tabCol?int = 1)><tr></#if>
<td>
${setRequestAttribute("optProductId", productId)}
${setRequestAttribute("listIndex", productId_index)}
${screens.render(productsummaryScreen)}
</td>
<#if (tabCol?int = numCol)></tr></#if>
<#assign tabCol = tabCol+1><#if (tabCol?int > numCol)><#assign tabCol = 1></#if>
</#if>
</#list>
<#list productIds as productId>
<#if (numCol?int == 1)>
${setRequestAttribute("optProductId", productId)}
${setRequestAttribute("listIndex", productId_index)}
${screens.render(productsummaryScreen)}
<#else>
<#if (tabCol?int = 1)><tr></#if>
<td>
${setRequestAttribute("optProductId", productId)}
${setRequestAttribute("listIndex", productId_index)}
${screens.render(productsummaryScreen)}
</td>
<#if (tabCol?int = numCol)></tr></#if>
<#assign tabCol = tabCol+1><#if (tabCol?int > numCol)><#assign tabCol = 1></#if>
</#if>
</#list>
<#if (numCol?int > 1)>
</table>
</#if>
</div>
<@paginationControls/>
</div>
<@paginationControls/>
<#else>
<hr />
<div>${uiLabelMap.ProductNoProductsInThisCategory}</div>
<hr />
<div>${uiLabelMap.ProductNoProductsInThisCategory}</div>
</#if>
+27 -5
View File
@@ -29,14 +29,24 @@ under the License.
<#assign currentSearchCategoryName = categoryContentWrapper.get("CATEGORY_NAME", "html")?string />
<#list searchConstraintStrings as searchConstraintString>
<#if searchConstraintString.indexOf(currentSearchCategoryName) != -1>
<div id="searchConstraints">&nbsp;<a href="<@ofbizUrl>category/~category_id=${productCategoryId}?removeConstraint=${searchConstraintString_index}&amp;clearSearch=N<#if previousCategoryId??>&amp;searchCategoryId=${previousCategoryId}</#if></@ofbizUrl>" class="buttontext">X</a><#noescape>&nbsp;${searchConstraintString}</#noescape></div>
<div id="searchConstraints">&nbsp;
<a href="<@ofbizUrl>category/~category_id=${productCategoryId}?removeConstraint=${searchConstraintString_index}&amp;clearSearch=N<#if previousCategoryId??>&amp;searchCategoryId=${previousCategoryId}</#if></@ofbizUrl>"
class="buttontext">X</a>
<#noescape>&nbsp;${searchConstraintString}</#noescape>
</div>
</#if>
</#list>
</#if>
</#escape>
<#list searchConstraintStrings as searchConstraintString>
<#if searchConstraintString.indexOf("Category: ") = -1 && searchConstraintString != "Exclude Variants">
<div id="searchConstraints">&nbsp;<a href="<@ofbizUrl>category/~category_id=${productCategoryId}?removeConstraint=${searchConstraintString_index}&amp;clearSearch=N<#if currentSearchCategory??>&amp;searchCategoryId=${currentSearchCategory.productCategoryId}</#if></@ofbizUrl>" class="buttontext">X</a>&nbsp;${searchConstraintString}</div>
<div id="searchConstraints">&nbsp;
<a href="<@ofbizUrl>category/~category_id=${productCategoryId}?removeConstraint=${searchConstraintString_index}&amp;clearSearch=N<#if currentSearchCategory??>&amp;searchCategoryId=${currentSearchCategory.productCategoryId}</#if></@ofbizUrl>"
class="buttontext">
X
</a>&nbsp;
${searchConstraintString}
</div>
</#if>
</#list>
<#if showSubCats>
@@ -46,7 +56,11 @@ under the License.
<#list subCategoryList as category>
<#assign subCategoryContentWrapper = category.categoryContentWrapper />
<#assign categoryName = subCategoryContentWrapper.get("CATEGORY_NAME", "html")!?string />
<li><a href="<@ofbizUrl>category/~category_id=${productCategoryId}?SEARCH_CATEGORY_ID${index}=${category.productCategoryId}&amp;searchCategoryId=${category.productCategoryId}&amp;clearSearch=N</@ofbizUrl>">${categoryName!} (${category.count})</a></li>
<li>
<a href="<@ofbizUrl>category/~category_id=${productCategoryId}?SEARCH_CATEGORY_ID${index}=${category.productCategoryId}&amp;searchCategoryId=${category.productCategoryId}&amp;clearSearch=N</@ofbizUrl>">
${categoryName!} (${category.count})
</a>
</li>
</#list>
</ul>
</div>
@@ -56,7 +70,11 @@ under the License.
<strong>${colorFeatureType.description}</strong>
<ul>
<#list colors as color>
<li><a href="<@ofbizUrl>category/~category_id=${productCategoryId}?pft_${color.productFeatureTypeId}=${color.productFeatureId}&amp;clearSearch=N<#if currentSearchCategory??>&amp;searchCategoryId=${currentSearchCategory.productCategoryId}</#if></@ofbizUrl>">${color.description} (${color.featureCount})</a></li>
<li>
<a href="<@ofbizUrl>category/~category_id=${productCategoryId}?pft_${color.productFeatureTypeId}=${color.productFeatureId}&amp;clearSearch=N<#if currentSearchCategory??>&amp;searchCategoryId=${currentSearchCategory.productCategoryId}</#if></@ofbizUrl>">
${color.description} (${color.featureCount})
</a>
</li>
</#list>
</ul>
</div>
@@ -66,7 +84,11 @@ under the License.
<strong>${uiLabelMap.EcommercePriceRange}</strong>
<ul>
<#list priceRangeList as priceRange>
<li><a href="<@ofbizUrl>category/~category_id=${productCategoryId}?LIST_PRICE_LOW=${priceRange.low}&amp;LIST_PRICE_HIGH=${priceRange.high}&amp;clearSearch=N<#if currentSearchCategory??>&amp;searchCategoryId=${currentSearchCategory.productCategoryId}</#if></@ofbizUrl>"><@ofbizCurrency amount=priceRange.low /> - <@ofbizCurrency amount=priceRange.high /> (${priceRange.count})</a><li>
<li>
<a href="<@ofbizUrl>category/~category_id=${productCategoryId}?LIST_PRICE_LOW=${priceRange.low}&amp;LIST_PRICE_HIGH=${priceRange.high}&amp;clearSearch=N<#if currentSearchCategory??>&amp;searchCategoryId=${currentSearchCategory.productCategoryId}</#if></@ofbizUrl>">
<@ofbizCurrency amount=priceRange.low /> - <@ofbizCurrency amount=priceRange.high /> (${priceRange.count})
</a>
<li>
</#list>
</ul>
</div>
+13 -12
View File
@@ -17,22 +17,23 @@ specific language governing permissions and limitations
under the License.
-->
<#assign associatedProducts = Static["org.apache.ofbiz.order.shoppingcart.product.ProductDisplayWorker"].getRandomCartProductAssoc(request, true)!>
<#assign associatedProducts = Static["org.apache.ofbiz.order.shoppingcart.product.ProductDisplayWorker"]
.getRandomCartProductAssoc(request, true)!>
<#if associatedProducts?has_content>
<div id="miniassocproducts" class="screenlet">
<div id="miniassocproducts" class="screenlet">
<h3>${uiLabelMap.EcommerceYouMightLike}...</h3>
<div class="screenlet-body">
<#-- random complementary products -->
<ul class="browsecategorylist">
<#-- random complementary products -->
<ul class="browsecategorylist">
<#list associatedProducts as miniProduct>
<li class="browsecategorytext">
${setRequestAttribute("miniProdQuantity", 1)}
${setRequestAttribute("miniProdFormName", "theminiassocprod" + miniProduct_index + "form")}
${setRequestAttribute("optProductId", miniProduct.productId)}
${screens.render("component://ecommerce/widget/CatalogScreens.xml#miniproductsummary")}
</li>
<li class="browsecategorytext">
${setRequestAttribute("miniProdQuantity", 1)}
${setRequestAttribute("miniProdFormName", "theminiassocprod" + miniProduct_index + "form")}
${setRequestAttribute("optProductId", miniProduct.productId)}
${screens.render("component://ecommerce/widget/CatalogScreens.xml#miniproductsummary")}
</li>
</#list>
</ul>
</ul>
</div>
</div>
</div>
</#if>
@@ -18,34 +18,45 @@ under the License.
-->
<#assign maxToShow = 4/>
<#assign searchOptionsHistoryList = Static["org.apache.ofbiz.product.product.ProductSearchSession"].getSearchOptionsHistoryList(session)!/>
<#assign searchOptionsHistoryList = Static["org.apache.ofbiz.product.product.ProductSearchSession"]
.getSearchOptionsHistoryList(session)!/>
<#if searchOptionsHistoryList?has_content>
<#if (searchOptionsHistoryList?size > maxToShow)><#assign limit=maxToShow/><#else><#assign limit=(searchOptionsHistoryList?size-1)/></#if>
<div id="minilastproductsearches" class="screenlet">
<div class="boxlink">
<a href="<@ofbizUrl>clearLastViewed</@ofbizUrl>" class="lightbuttontextsmall">[${uiLabelMap.CommonClear}]</a>
<#if (searchOptionsHistoryList?size > maxToShow)>
<a href="<@ofbizUrl>advancedsearch</@ofbizUrl>" class="lightbuttontextsmall">[${uiLabelMap.CommonMore}]</a>
</#if>
</div>
<h3>${uiLabelMap.OrderLastSearches}...</h3>
<ul>
<#list searchOptionsHistoryList[0..limit] as searchOptions>
<#-- searchOptions type is ProductSearchSession.ProductSearchOptions -->
<li>
${uiLabelMap.EcommerceSearchNumber} ${searchOptions_index + 1}
<ul>
<li>
<a href="<@ofbizUrl>setCurrentSearchFromHistoryAndSearch?searchHistoryIndex=${searchOptions_index}&amp;clearSearch=N</@ofbizUrl>" class="button">${uiLabelMap.CommonSearch}</a>
<a href="<@ofbizUrl>setCurrentSearchFromHistory?searchHistoryIndex=${searchOptions_index}</@ofbizUrl>" class="button">${uiLabelMap.CommonRefine}</a>
</li>
<#assign constraintStrings = searchOptions.searchGetConstraintStrings(false, delegator, locale)>
<#list constraintStrings as constraintString>
<li>${constraintString}</li>
</#list>
</ul>
</li>
</#list>
</ul>
<#if (searchOptionsHistoryList?size > maxToShow)>
<#assign limit=maxToShow/>
<#else>
<#assign limit=(searchOptionsHistoryList?size-1)/>
</#if>
<div id="minilastproductsearches" class="screenlet">
<div class="boxlink">
<a href="<@ofbizUrl>clearLastViewed</@ofbizUrl>" class="lightbuttontextsmall">
[${uiLabelMap.CommonClear}]
</a>
<#if (searchOptionsHistoryList?size > maxToShow)>
<a href="<@ofbizUrl>advancedsearch</@ofbizUrl>" class="lightbuttontextsmall">
[${uiLabelMap.CommonMore}]
</a>
</#if>
</div>
<h3>${uiLabelMap.OrderLastSearches}...</h3>
<ul>
<#list searchOptionsHistoryList[0..limit] as searchOptions>
<#-- searchOptions type is ProductSearchSession.ProductSearchOptions -->
<li>
${uiLabelMap.EcommerceSearchNumber} ${searchOptions_index + 1}
<ul>
<li>
<a href="<@ofbizUrl>setCurrentSearchFromHistoryAndSearch?searchHistoryIndex=${searchOptions_index}&amp;clearSearch=N</@ofbizUrl>"
class="button">${uiLabelMap.CommonSearch}</a>
<a href="<@ofbizUrl>setCurrentSearchFromHistory?searchHistoryIndex=${searchOptions_index}</@ofbizUrl>"
class="button">${uiLabelMap.CommonRefine}</a>
</li>
<#assign constraintStrings = searchOptions.searchGetConstraintStrings(false, delegator, locale)>
<#list constraintStrings as constraintString>
<li>${constraintString}</li>
</#list>
</ul>
</li>
</#list>
</ul>
</div>
</#if>
@@ -20,28 +20,46 @@ under the License.
<#assign maxToShow = 8/>
<#assign lastViewedCategories = sessionAttributes.lastViewedCategories!/>
<#if lastViewedCategories?has_content>
<#if (lastViewedCategories?size > maxToShow)><#assign limit=maxToShow/><#else><#assign limit=(lastViewedCategories?size-1)/></#if>
<#if (lastViewedCategories?size > maxToShow)>
<#assign limit=maxToShow/>
<#else>
<#assign limit=(lastViewedCategories?size-1)/>
</#if>
<div id="minilastviewedcategories" class="screenlet">
<div class="screenlet-title-bar">
<ul>
<li class="h3">${uiLabelMap.EcommerceLastCategories}</li>
<li><a href="<@ofbizUrl>clearLastViewed</@ofbizUrl>">[${uiLabelMap.CommonClear}]</a></li>
<li>
<a href="<@ofbizUrl>clearLastViewed</@ofbizUrl>">[${uiLabelMap.CommonClear}]</a>
</li>
</ul>
<br class="clear"/>
</div>
<div class="screenlet-body">
<ul class="browsecategorylist">
<#list lastViewedCategories[0..limit] as categoryId>
<#assign category = delegator.findOne("ProductCategory", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("productCategoryId", categoryId), true)!>
<#assign category = delegator.findOne("ProductCategory",
Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("productCategoryId", categoryId), true)!>
<#if category?has_content>
<li class="browsecategorytext">
<#if catContentWrappers?? && catContentWrappers[category.productCategoryId]?? && catContentWrappers[category.productCategoryId].get("CATEGORY_NAME", "html")??>
<a href="<@ofbizCatalogAltUrl productCategoryId=categoryId/>" class="browsecategorybutton">${catContentWrappers[category.productCategoryId].get("CATEGORY_NAME", "html")}</a>
<#elseif catContentWrappers?? && catContentWrappers[category.productCategoryId]?? && catContentWrappers[category.productCategoryId].get("DESCRIPTION", "html")??>
<a href="<@ofbizCatalogAltUrl productCategoryId=categoryId/>" class="browsecategorybutton">${catContentWrappers[category.productCategoryId].get("DESCRIPTION", "html")}</a>
<#else>
<a href="<@ofbizCatalogAltUrl productCategoryId=categoryId/>" class="browsecategorybutton">${category.description!}</a>
</#if>
<#if catContentWrappers?? && catContentWrappers[category.productCategoryId]?? &&
catContentWrappers[category.productCategoryId].get("CATEGORY_NAME", "html")??>
<a href="<@ofbizCatalogAltUrl productCategoryId=categoryId/>"
class="browsecategorybutton">
${catContentWrappers[category.productCategoryId].get("CATEGORY_NAME", "html")}
</a>
<#elseif catContentWrappers?? && catContentWrappers[category.productCategoryId]?? &&
catContentWrappers[category.productCategoryId].get("DESCRIPTION", "html")??>
<a href="<@ofbizCatalogAltUrl productCategoryId=categoryId/>"
class="browsecategorybutton">
${catContentWrappers[category.productCategoryId].get("DESCRIPTION", "html")}
</a>
<#else>
<a href="<@ofbizCatalogAltUrl productCategoryId=categoryId/>"
class="browsecategorybutton">
${category.description!}
</a>
</#if>
</li>
</#if>
</#list>
@@ -20,14 +20,26 @@ under the License.
<#assign maxToShow = 4/>
<#assign lastViewedProducts = sessionAttributes.lastViewedProducts!/>
<#if lastViewedProducts?has_content>
<#if (lastViewedProducts?size > maxToShow)><#assign limit=maxToShow/><#else><#assign limit=(lastViewedProducts?size-1)/></#if>
<#if (lastViewedProducts?size > maxToShow)>
<#assign limit=maxToShow/>
<#else>
<#assign limit=(lastViewedProducts?size-1)/>
</#if>
<div id="minilastviewedproducts" class="screenlet">
<div class="screenlet-title-bar">
<ul>
<li class="h3">${uiLabelMap.EcommerceLastProducts}</li>
<li><a href="<@ofbizUrl>clearLastViewed</@ofbizUrl>">[${uiLabelMap.CommonClear}]</a></li>
<li>
<a href="<@ofbizUrl>clearLastViewed</@ofbizUrl>">
[${uiLabelMap.CommonClear}]
</a>
</li>
<#if (lastViewedProducts?size > maxToShow)>
<li><a href="<@ofbizUrl>lastviewedproducts</@ofbizUrl>">[${uiLabelMap.CommonMore}]</a></li>
<li>
<a href="<@ofbizUrl>lastviewedproducts</@ofbizUrl>">
[${uiLabelMap.CommonMore}]
</a>
</li>
</#if>
</ul>
<br class="clear"/>
@@ -17,45 +17,81 @@ specific language governing permissions and limitations
under the License.
-->
<#if miniProduct??>
<a href="<@ofbizCatalogAltUrl productId=miniProduct.productId/>" class="linktext">${miniProductContentWrapper.get("PRODUCT_NAME", "html")?default("No Name Available")}</a>
<ul>
<li>${miniProduct.productId}
<#if (priceResult.price?default(0) > 0 && miniProduct.requireAmount?default("N") == "N")>
<#if "Y" = miniProduct.isVirtual!> ${uiLabelMap.CommonFrom} </#if>
<#if totalPrice??>
<li>${uiLabelMap.ProductAggregatedPrice}: <span class='basePrice'><@ofbizCurrency amount=totalPrice isoCode=priceResult.currencyUsed/></span></li>
<#else>
<span class="<#if priceResult.isSale>salePrice<#else>normalPrice</#if>">
<@ofbizCurrency amount=priceResult.price isoCode=priceResult.currencyUsed/></span>
</#if>
</#if>
</li>
<a href="<@ofbizCatalogAltUrl productId=miniProduct.productId/>" class="linktext">
${miniProductContentWrapper.get("PRODUCT_NAME", "html")?default("No Name Available")}
</a>
<ul>
<li>
${miniProduct.productId}
<#if (priceResult.price?default(0) > 0 && miniProduct.requireAmount?default("N") == "N")>
<#if "Y" = miniProduct.isVirtual!>
${uiLabelMap.CommonFrom}
</#if>
<#if totalPrice??>
<li>
${uiLabelMap.ProductAggregatedPrice}:
<span class='basePrice'>
<@ofbizCurrency amount=totalPrice isoCode=priceResult.currencyUsed/>
</span>
</li>
<#else>
<span class="<#if priceResult.isSale>salePrice<#else>normalPrice</#if>">
<@ofbizCurrency amount=priceResult.price isoCode=priceResult.currencyUsed/></span>
</#if>
</#if>
</li>
<#if (miniProduct.introductionDate??) && (nowTimeLong < miniProduct.introductionDate.getTime())>
<#-- check to see if introductionDate hasn't passed yet -->
<li>${uiLabelMap.ProductNotYetAvailable}</li>
<#-- check to see if introductionDate hasn't passed yet -->
<li>${uiLabelMap.ProductNotYetAvailable}</li>
<#elseif (miniProduct.salesDiscontinuationDate??) && (nowTimeLong > miniProduct.salesDiscontinuationDate.getTime())>
<#-- check to see if salesDiscontinuationDate has passed -->
<li>${uiLabelMap.ProductNoLongerAvailable}</li>
<#-- check to see if salesDiscontinuationDate has passed -->
<li>${uiLabelMap.ProductNoLongerAvailable}</li>
<#elseif miniProduct.isVirtual?default("N") == "Y">
<li><a href="<@ofbizCatalogAltUrl productCategoryId=requestParameters.category_id?? productId=miniProduct.productId/>" class="buttons"><span style="white-space: nowrap;">${uiLabelMap.OrderChooseVariations}...</span></a></li>
<li>
<a href="<@ofbizCatalogAltUrl productCategoryId=requestParameters.category_id?? productId=miniProduct.productId/>"
class="buttons">
<span style="white-space: nowrap;">${uiLabelMap.OrderChooseVariations}...</span>
</a>
</li>
<#elseif miniProduct.requireAmount?default("N") == "Y">
<li><a href="<@ofbizCatalogAltUrl productCategoryId=requestParameters.category_id?? productId=miniProduct.productId/>" class="buttons"><span style="white-space: nowrap;">${uiLabelMap.OrderChooseAmount}...</span></a></li>
<li>
<a href="<@ofbizCatalogAltUrl productCategoryId=requestParameters.category_id?? productId=miniProduct.productId/>"
class="buttons">
<span style="white-space: nowrap;">${uiLabelMap.OrderChooseAmount}...</span>
</a>
</li>
<#else>
<li>
<form method="post" action="<@ofbizUrl>additem<#if requestAttributes._CURRENT_VIEW_?has_content>/${requestAttributes._CURRENT_VIEW_}</#if></@ofbizUrl>" name="${miniProdFormName}" style="margin: 0;">
<form method="post"
action="<@ofbizUrl>additem<#if requestAttributes._CURRENT_VIEW_?has_content>/${requestAttributes._CURRENT_VIEW_}</#if></@ofbizUrl>"
name="${miniProdFormName}" style="margin: 0;">
<fieldset>
<input type="hidden" name="add_product_id" value="${miniProduct.productId}"/>
<input type="hidden" name="quantity" value="${miniProdQuantity?default("1")}"/>
<#if requestParameters.orderId?has_content><input type="hidden" name="orderId" value="${requestParameters.orderId}"/></#if>
<#if requestParameters.product_id?has_content><input type="hidden" name="product_id" value="${requestParameters.product_id}"/></#if>
<#if requestParameters.category_id?has_content><input type="hidden" name="category_id" value="${requestParameters.category_id}"/></#if>
<#if requestParameters.VIEW_INDEX?has_content><input type="hidden" name="VIEW_INDEX" value="${requestParameters.VIEW_INDEX}"/></#if>
<#if requestParameters.VIEW_SIZE?has_content><input type="hidden" name="VIEW_SIZE" value="${requestParameters.VIEW_SIZE}"/></#if>
<#if requestParameters.orderId?has_content>
<input type="hidden" name="orderId" value="${requestParameters.orderId}"/>
</#if>
<#if requestParameters.product_id?has_content>
<input type="hidden" name="product_id" value="${requestParameters.product_id}"/>
</#if>
<#if requestParameters.category_id?has_content>
<input type="hidden" name="category_id" value="${requestParameters.category_id}"/>
</#if>
<#if requestParameters.VIEW_INDEX?has_content>
<input type="hidden" name="VIEW_INDEX" value="${requestParameters.VIEW_INDEX}"/>
</#if>
<#if requestParameters.VIEW_SIZE?has_content>
<input type="hidden" name="VIEW_SIZE" value="${requestParameters.VIEW_SIZE}"/>
</#if>
<input type="hidden" name="clearSearch" value="N"/>
<a href="javascript:document.${miniProdFormName}.submit()" class="buttons"><span style="white-space: nowrap;">${uiLabelMap.CommonAdd} ${miniProdQuantity} ${uiLabelMap.OrderToCart}</span></a>
<a href="javascript:document.${miniProdFormName}.submit()" class="buttons">
<span style="white-space: nowrap;">
${uiLabelMap.CommonAdd} ${miniProdQuantity} ${uiLabelMap.OrderToCart}
</span>
</a>
</fieldset>
</form>
</li>
</#if>
</ul>
</ul>
</#if>
+15 -16
View File
@@ -17,24 +17,23 @@ specific language governing permissions and limitations
under the License.
-->
<#if reorderProducts?has_content>
<div id ="minireorderprods" class="screenlet">
<div id="minireorderprods" class="screenlet">
<div class="screenlet-title-bar">
<ul>
<li class="h3">${uiLabelMap.ProductQuickReorder}...</li>
</ul>
<ul>
<li class="h3">${uiLabelMap.ProductQuickReorder}...</li>
</ul>
</div>
<div class="screenlet-body">
<#list reorderProducts as miniProduct>
<div>
${setRequestAttribute("miniProdQuantity", reorderQuantities.get(miniProduct.productId))}
${setRequestAttribute("miniProdFormName", "theminireorderprod" + miniProduct_index + "form")}
${setRequestAttribute("optProductId", miniProduct.productId)}
${screens.render("component://ecommerce/widget/CatalogScreens.xml#miniproductsummary")}
</div>
<#if miniProduct_has_next>
</#if>
</#list>
<#list reorderProducts as miniProduct>
<div>
${setRequestAttribute("miniProdQuantity", reorderQuantities.get(miniProduct.productId))}
${setRequestAttribute("miniProdFormName", "theminireorderprod" + miniProduct_index + "form")}
${setRequestAttribute("optProductId", miniProduct.productId)}
${screens.render("component://ecommerce/widget/CatalogScreens.xml#miniproductsummary")}
</div>
<#if miniProduct_has_next>
</#if>
</#list>
</div>
</div>
</div>
</#if>
+4 -1
View File
@@ -27,7 +27,10 @@ under the License.
</div>
<div class="screenlet-body">
<#list tagCloudList as tagCloud>
<a style="font-size: ${tagCloud.fontSize}pt;" href="<@ofbizUrl>tagsearch?SEARCH_STRING=${tagCloud.tag}&amp;keywordTypeId=KWT_TAG&amp;statusId=KW_APPROVED</@ofbizUrl>">${tagCloud.tag}</a>
<a style="font-size: ${tagCloud.fontSize}pt;"
href="<@ofbizUrl>tagsearch?SEARCH_STRING=${tagCloud.tag}&amp;keywordTypeId=KWT_TAG&amp;statusId=KW_APPROVED</@ofbizUrl>">
${tagCloud.tag}
</a>
</#list>
</div>
</div>
+175 -160
View File
@@ -16,194 +16,209 @@
specific language governing permissions and limitations
under the License.
-->
<script language="javascript" type="text/javascript" src="<@ofbizContentUrl>/images/jquery/plugins/jsTree/jquery.jstree.js</@ofbizContentUrl>"></script>
<script type="text/javascript" src="<@ofbizContentUrl>/images/jquery/ui/js/jquery.cookie-1.4.0.js</@ofbizContentUrl>"></script>
<script language="javascript" type="text/javascript"
src="<@ofbizContentUrl>/images/jquery/plugins/jsTree/jquery.jstree.js</@ofbizContentUrl>"></script>
<script type="text/javascript"
src="<@ofbizContentUrl>/images/jquery/ui/js/jquery.cookie-1.4.0.js</@ofbizContentUrl>"></script>
<script type="text/javascript">
<#-- some labels are not unescaped in the JSON object so we have to do this manuely -->
function unescapeHtmlText(text) {
<#-- some labels are not unescaped in the JSON object so we have to do this manuely -->
function unescapeHtmlText(text) {
return jQuery('<div />').html(text).text()
}
}
jQuery(window).load(createTree());
jQuery(window).load(createTree());
<#-- creating the JSON Data -->
var rawdata = [
<#-- creating the JSON Data -->
var rawdata = [
<#if (requestAttributes.topLevelList)??>
<#assign topLevelList = requestAttributes.topLevelList>
</#if>
<#if (topLevelList?has_content)>
<@fillTree rootCat=completedTree/>
</#if>
<#macro fillTree rootCat>
<#if (rootCat?has_content)>
<#list rootCat?sort_by("productCategoryId") as root>
{
"data": {"title" : unescapeHtmlText("<#if root.categoryName??>${root.categoryName?js_string}<#elseif root.categoryDescription??>${root.categoryDescription?js_string}<#else>${root.productCategoryId?js_string}</#if>"), "attr": { "href":"javascript: void(0);", "onClick":"callDocument('${root.productCategoryId}', '${root.parentCategoryId}')" , "class" : "${root.cssClass!}"}},
"attr": {"id" : "${root.productCategoryId}"}
<#if root.child?has_content>
,"children": [
<@fillTree rootCat=root.child/>
]
</#if>
<#if root_has_next>
},
<#else>
}
</#if>
</#list>
</#if>
</#macro>
];
<#if (rootCat?has_content)>
<#list rootCat?sort_by("productCategoryId") as root>
{
"data": {
"title": unescapeHtmlText(
"<#if root.categoryName??>${root.categoryName?js_string}<#elseif root.categoryDescription??>${root.categoryDescription?js_string}<#else>${root.productCategoryId?js_string}</#if>"),
"attr": {
"href": "javascript: void(0);",
"onClick": "callDocument('${root.productCategoryId}', '${root.parentCategoryId}')",
"class": "${root.cssClass!}"
}
},
"attr": {"id": "${root.productCategoryId}"}
<#if root.child?has_content>
, "children": [
<@fillTree rootCat=root.child/>]
</#if>
<#if root_has_next>
},
<#else>
}
</#if>
</#list>
</#if>
</#macro>
]
;
<#-------------------------------------------------------------------------------------define Requests-->
<#-------------------------------------------------------------------------------------define Requests-->
var editDocumentTreeUrl = '<@ofbizUrl>/views/EditDocumentTree</@ofbizUrl>';
var listDocument = '<@ofbizUrl>/views/ListDocument</@ofbizUrl>';
var listDocument = '<@ofbizUrl>/views/ListDocument</@ofbizUrl>';
var editDocumentUrl = '<@ofbizUrl>/views/EditDocument</@ofbizUrl>';
var deleteDocumentUrl = '<@ofbizUrl>removeDocumentFromTree</@ofbizUrl>';
<#-------------------------------------------------------------------------------------create Tree-->
<#-------------------------------------------------------------------------------------create Tree-->
function createTree() {
jQuery(function () {
jQuery("#tree").jstree({
"themes" : {
"theme" : "classic",
"icons" : false
jQuery("#tree").jstree({
"themes": {
"theme": "classic",
"icons": false
},
"cookies" : {
"cookie_options" : {path: '/'}
"cookies": {
"cookie_options": {path: '/'}
},
"plugins" : [ "themes", "json_data", "cookies"],
"json_data" : {
"data" : rawdata
}
});
"plugins": ["themes", "json_data", "cookies"],
"json_data": {
"data": rawdata
}
});
});
}
<#-------------------------------------------------------------------------------------callDocument function-->
function callDocument(id, parentCategoryStr) {
var checkUrl = '<@ofbizUrl>productCategoryList</@ofbizUrl>';
if(checkUrl.search("http"))
var ajaxUrl = '<@ofbizUrl>productCategoryList</@ofbizUrl>';
else
var ajaxUrl = '<@ofbizUrl>productCategoryListSecure</@ofbizUrl>';
<#-------------------------------------------------------------------------------------callDocument function-->
function callDocument(id, parentCategoryStr) {
var checkUrl = '<@ofbizUrl>productCategoryList</@ofbizUrl>';
if (checkUrl.search("http"))
var ajaxUrl = '<@ofbizUrl>productCategoryList</@ofbizUrl>';
else
var ajaxUrl = '<@ofbizUrl>productCategoryListSecure</@ofbizUrl>';
//jQuerry Ajax Request
jQuery.ajax({
url: ajaxUrl,
type: 'POST',
data: {"category_id" : id, "parentCategoryStr" : parentCategoryStr},
error: function(msg) {
alert("An error occurred loading content! : " + msg);
},
success: function(msg) {
jQuery('#div3').html(msg);
}
});
}
<#-------------------------------------------------------------------------------------callCreateDocumentTree function-->
function callCreateDocumentTree(contentId) {
jQuery.ajax({
url: editDocumentTreeUrl,
type: 'POST',
data: {contentId: contentId,
contentAssocTypeId: 'TREE_CHILD'},
error: function(msg) {
alert("An error occurred loading content! : " + msg);
},
success: function(msg) {
jQuery('#Document').html(msg);
}
});
}
<#-------------------------------------------------------------------------------------callCreateSection function-->
function callCreateDocument(contentId) {
jQuery.ajax({
url: editDocumentUrl,
type: 'POST',
data: {contentId: contentId},
error: function(msg) {
alert("An error occurred loading content! : " + msg);
},
success: function(msg) {
jQuery('#Document').html(msg);
}
});
}
<#-------------------------------------------------------------------------------------callEditSection function-->
function callEditDocument(contentIdTo) {
jQuery.ajax({
url: editDocumentUrl,
type: 'POST',
data: {contentIdTo: contentIdTo},
error: function(msg) {
alert("An error occurred loading content! : " + msg);
},
success: function(msg) {
jQuery('#Document').html(msg);
}
});
//jQuerry Ajax Request
jQuery.ajax({
url: ajaxUrl,
type: 'POST',
data: {"category_id": id, "parentCategoryStr": parentCategoryStr},
error: function (msg) {
alert("An error occurred loading content! : " + msg);
},
success: function (msg) {
jQuery('#div3').html(msg);
}
});
}
<#-------------------------------------------------------------------------------------callCreateDocumentTree function-->
function callCreateDocumentTree(contentId) {
jQuery.ajax({
url: editDocumentTreeUrl,
type: 'POST',
data: {
contentId: contentId,
contentAssocTypeId: 'TREE_CHILD'
},
error: function (msg) {
alert("An error occurred loading content! : " + msg);
},
success: function (msg) {
jQuery('#Document').html(msg);
}
});
}
<#-------------------------------------------------------------------------------------callCreateSection function-->
function callCreateDocument(contentId) {
jQuery.ajax({
url: editDocumentUrl,
type: 'POST',
data: {contentId: contentId},
error: function (msg) {
alert("An error occurred loading content! : " + msg);
},
success: function (msg) {
jQuery('#Document').html(msg);
}
});
}
<#-------------------------------------------------------------------------------------callEditSection function-->
function callEditDocument(contentIdTo) {
jQuery.ajax({
url: editDocumentUrl,
type: 'POST',
data: {contentIdTo: contentIdTo},
error: function (msg) {
alert("An error occurred loading content! : " + msg);
},
success: function (msg) {
jQuery('#Document').html(msg);
}
});
}
<#-------------------------------------------------------------------------------------callDeleteItem function-->
function callDeleteDocument(contentId, contentIdTo, contentAssocTypeId, fromDate) {
jQuery.ajax({
url: deleteDocumentUrl,
type: 'POST',
data: {contentId : contentId, contentIdTo : contentIdTo, contentAssocTypeId : contentAssocTypeId, fromDate : fromDate},
error: function(msg) {
alert("An error occurred loading content! : " + msg);
},
success: function(msg) {
location.reload();
}
});
}
<#-------------------------------------------------------------------------------------callRename function-->
function callRenameDocumentTree(contentId) {
jQuery.ajax({
url: editDocumentTreeUrl,
type: 'POST',
data: { contentId: contentId,
contentAssocTypeId:'TREE_CHILD',
rename: 'Y'
},
error: function(msg) {
alert("An error occurred loading content! : " + msg);
},
success: function(msg) {
jQuery('#Document').html(msg);
}
});
}
<#------------------------------------------------------pagination function -->
function nextPrevDocumentList(url){
url= '<@ofbizUrl>'+url+'</@ofbizUrl>';
jQuery.ajax({
url: url,
type: 'POST',
error: function(msg) {
alert("An error occurred loading content! : " + msg);
},
success: function(msg) {
jQuery('#Document').html(msg);
}
});
}
}
<#-------------------------------------------------------------------------------------callDeleteItem function-->
function callDeleteDocument(contentId, contentIdTo, contentAssocTypeId, fromDate) {
jQuery.ajax({
url: deleteDocumentUrl,
type: 'POST',
data: {
contentId: contentId,
contentIdTo: contentIdTo,
contentAssocTypeId: contentAssocTypeId,
fromDate: fromDate
},
error: function (msg) {
alert("An error occurred loading content! : " + msg);
},
success: function (msg) {
location.reload();
}
});
}
<#-------------------------------------------------------------------------------------callRename function-->
function callRenameDocumentTree(contentId) {
jQuery.ajax({
url: editDocumentTreeUrl,
type: 'POST',
data: {
contentId: contentId,
contentAssocTypeId: 'TREE_CHILD',
rename: 'Y'
},
error: function (msg) {
alert("An error occurred loading content! : " + msg);
},
success: function (msg) {
jQuery('#Document').html(msg);
}
});
}
<#------------------------------------------------------pagination function -->
function nextPrevDocumentList(url) {
url = '<@ofbizUrl>'+ url+'</@ofbizUrl>';
jQuery.ajax({
url: url,
type: 'POST',
error: function (msg) {
alert("An error occurred loading content! : " + msg);
},
success: function (msg) {
jQuery('#Document').html(msg);
}
});
}
</script>
<div id="quickadd" class="screenlet">
<div class="screenlet-title-bar">
<ul>
<li class="h3">${uiLabelMap.ProductCategories}</li>
</ul>
</div>
<div class="screenlet-body" id="tree">
</div>
<div class="screenlet-title-bar">
<ul>
<li class="h3">${uiLabelMap.ProductCategories}</li>
</ul>
</div>
<div class="screenlet-body" id="tree">
</div>
</div>
@@ -19,29 +19,44 @@ under the License.
<#assign productCategoryLink = requestAttributes.productCategoryLink!/>
<#if productCategoryLink?has_content>
<#if productCategoryLink.detailSubScreen?has_content>
<#if productCategoryLink.detailSubScreen?has_content>
${screens.render(productCategoryLink.detailSubScreen)}
<#else>
<#else>
<#assign titleText = productCategoryLink.titleText!/>
<#assign imageUrl = productCategoryLink.imageUrl!/>
<#assign detailText = productCategoryLink.detailText!/>
<#if productCategoryLink.linkTypeEnumId == "PCLT_SEARCH_PARAM">
<#assign linkUrl = requestAttributes._REQUEST_HANDLER_.makeLink(request, response, "keywordsearch?" + productCategoryLink.linkInfo)/>
<#assign linkUrl = requestAttributes._REQUEST_HANDLER_.makeLink(
request, response, "keywordsearch?" + productCategoryLink.linkInfo)/>
<#elseif productCategoryLink.linkTypeEnumId == "PCLT_ABS_URL">
<#assign linkUrl = productCategoryLink.linkInfo!/>
<#elseif productCategoryLink.linkTypeEnumId == "PCLT_CAT_ID">
<#assign linkUrl = requestAttributes._REQUEST_HANDLER_.makeLink(request, response, "category/~category_id=" + productCategoryLink.linkInfo) + "/~pcategory=" + productCategoryId/>
<#assign linkProductCategory = delegator.findOne("ProductCategory", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("productCategoryId", productCategoryLink.linkInfo), true)/>
<#assign linkCategoryContentWrapper = Static["org.apache.ofbiz.product.category.CategoryContentWrapper"].makeCategoryContentWrapper(linkProductCategory, request)/>
<#assign titleText = productCategoryLink.titleText?default(linkCategoryContentWrapper.get("CATEGORY_NAME", "html"))!/>
<#assign imageUrl = productCategoryLink.imageUrl?default(linkCategoryContentWrapper.get("CATEGORY_IMAGE_URL", "url"))!/>
<#assign detailText = productCategoryLink.detailText?default(linkCategoryContentWrapper.get("DESCRIPTION", "html"))!/>
<#assign linkUrl = requestAttributes._REQUEST_HANDLER_.makeLink(
request, response, "category/~category_id=" + productCategoryLink.linkInfo) +
"/~pcategory=" + productCategoryId/>
<#assign linkProductCategory = delegator.findOne(
"ProductCategory", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap(
"productCategoryId", productCategoryLink.linkInfo), true)/>
<#assign linkCategoryContentWrapper =
Static["org.apache.ofbiz.product.category.CategoryContentWrapper"]
.makeCategoryContentWrapper(linkProductCategory, request)/>
<#assign titleText = productCategoryLink.titleText?default(
linkCategoryContentWrapper.get("CATEGORY_NAME", "html"))!/>
<#assign imageUrl = productCategoryLink.imageUrl?default(
linkCategoryContentWrapper.get("CATEGORY_IMAGE_URL", "url"))!/>
<#assign detailText = productCategoryLink.detailText?default(
linkCategoryContentWrapper.get("DESCRIPTION", "html"))!/>
</#if>
<div class="productcategorylink">
<#if imageUrl?string?has_content>
<div class="smallimage"><a href="${linkUrl}"><img src="<@ofbizContentUrl>${imageUrl}</@ofbizContentUrl>" alt="${titleText?default("Link Image")}"/></a></div>
<div class="smallimage">
<a href="${linkUrl}">
<img src="<@ofbizContentUrl>${imageUrl}</@ofbizContentUrl>"
alt="${titleText?default("Link Image")}"/>
</a>
</div>
</#if>
<#if titleText?has_content>
<a href="${linkUrl}" class="linktext">${titleText}</a>
@@ -50,5 +65,5 @@ under the License.
<div>${detailText}</div>
</#if>
</div>
</#if>
</#if>
</#if>
File diff suppressed because it is too large Load Diff
+7 -3
View File
@@ -63,11 +63,15 @@ under the License.
<textarea class="textAreaBox" name="productReview" cols="40"></textarea>
</div>
<div>
<a href="javascript:document.getElementById('reviewProduct').submit();" class="button">[${uiLabelMap.CommonSave}]</a>
<a href="<@ofbizUrl>product?product_id=${requestParameters.product_id}</@ofbizUrl>" class="button">[${uiLabelMap.CommonCancel}]</a>
<a href="javascript:document.getElementById('reviewProduct').submit();" class="button">
[${uiLabelMap.CommonSave}]
</a>
<a href="<@ofbizUrl>product?product_id=${requestParameters.product_id}</@ofbizUrl>" class="button">
[${uiLabelMap.CommonCancel}]
</a>
</div>
</fieldset>
</form>
<#else>
<h2>${uiLabelMap.ProductCannotReviewUnKnownProduct}.</h2>
</#if>
</#if>
@@ -18,74 +18,86 @@ under the License.
-->
<#if productCategoryList?has_content>
<h1>Popular Categories</h1>
<div class="productsummary-container matrix">
<table>
<tbody>
<#list productCategoryList as childCategoryList>
<tr>
<#assign cateCount = 0/>
<#list childCategoryList as productCategory>
<#if (cateCount > 2)>
<tr>
<#assign cateCount = 0/>
</#if>
<#assign productCategoryId = productCategory.productCategoryId/>
<#assign categoryImageUrl = "/images/defaultImage.jpg">
<#assign productCategoryMembers = delegator.findByAnd("ProductCategoryAndMember", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("productCategoryId", productCategoryId), Static["org.apache.ofbiz.base.util.UtilMisc"].toList("-quantity"), false)>
<#if productCategory.categoryImageUrl?has_content>
<#assign categoryImageUrl = productCategory.categoryImageUrl/>
<#elseif productCategoryMembers?has_content>
<#assign productCategoryMember = Static["org.apache.ofbiz.entity.util.EntityUtil"].getFirst(productCategoryMembers)/>
<#assign product = delegator.findOne("Product", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("productId", productCategoryMember.productId), false)/>
<#if product.smallImageUrl?has_content>
<#assign categoryImageUrl = product.smallImageUrl/>
<h1>Popular Categories</h1>
<div class="productsummary-container matrix">
<table>
<tbody>
<#list productCategoryList as childCategoryList>
<tr>
<#assign cateCount = 0/>
<#list childCategoryList as productCategory>
<#if (cateCount > 2)>
<tr>
<#assign cateCount = 0/>
</#if>
<#assign productCategoryId = productCategory.productCategoryId/>
<#assign categoryImageUrl = "/images/defaultImage.jpg">
<#assign productCategoryMembers = delegator
.findByAnd("ProductCategoryAndMember", Static["org.apache.ofbiz.base.util.UtilMisc"]
.toMap("productCategoryId", productCategoryId),
Static["org.apache.ofbiz.base.util.UtilMisc"].toList("-quantity"), false)>
<#if productCategory.categoryImageUrl?has_content>
<#assign categoryImageUrl = productCategory.categoryImageUrl/>
<#elseif productCategoryMembers?has_content>
<#assign productCategoryMember =
Static["org.apache.ofbiz.entity.util.EntityUtil"].getFirst(productCategoryMembers)/>
<#assign product = delegator.findOne("Product",
Static["org.apache.ofbiz.base.util.UtilMisc"]
.toMap("productId", productCategoryMember.productId), false)/>
<#if product.smallImageUrl?has_content>
<#assign categoryImageUrl = product.smallImageUrl/>
</#if>
</#if>
<td>
<div class="productsummary">
<div class="smallimage">
<a href="<@ofbizCatalogAltUrl productCategoryId=productCategoryId/>">
<span class="popup_link"><img alt="Small Image" src="${categoryImageUrl}"></span>
</a>
</div>
<div class="productbuy">
<a class="linktext" style="font-size:12px"
href="<@ofbizCatalogAltUrl productCategoryId=productCategoryId/>">
${productCategory.categoryName!productCategoryId}
</a>
</div>
<div class="productinfo">
<ul>
<#if productCategoryMembers??>
<#assign i = 0/>
<#list productCategoryMembers as productCategoryMember>
<#if (i > 2)>
<#if productCategoryMembers[i]?has_content>
<a class="linktext" href="<@ofbizCatalogAltUrl productCategoryId=productCategoryId/>">
<span>More...</span>
</a>
</#if>
</#if>
<td>
<div class="productsummary">
<div class="smallimage">
<a href="<@ofbizCatalogAltUrl productCategoryId=productCategoryId/>">
<span class="popup_link"><img alt="Small Image" src="${categoryImageUrl}"></span>
</a>
</div>
<div class="productbuy">
<a class="linktext" style="font-size:12px" href="<@ofbizCatalogAltUrl productCategoryId=productCategoryId/>">${productCategory.categoryName!productCategoryId}</a>
</div>
<div class="productinfo">
<ul>
<#if productCategoryMembers??>
<#assign i = 0/>
<#list productCategoryMembers as productCategoryMember>
<#if (i > 2)>
<#if productCategoryMembers[i]?has_content>
<a class="linktext" href="<@ofbizCatalogAltUrl productCategoryId=productCategoryId/>">
<span>More...</span>
</a>
</#if>
<#break>
</#if>
<#if productCategoryMember?has_content>
<#assign product = delegator.findOne("Product", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("productId", productCategoryMember.productId), false)>
<li class="browsecategorytext">
<a class="linktext" href="<@ofbizCatalogAltUrl productCategoryId="PROMOTIONS" productId="${product.productId}"/>">
${product.productName!product.productId}
</a>
</li>
</#if>
<#assign i = i+1/>
</#list>
</#if>
</ul>
</div>
</div>
</td>
<#assign cateCount = cateCount + 1/>
</#list>
<tr/>
<#break>
</#if>
<#if productCategoryMember?has_content>
<#assign product = delegator.findOne("Product",
Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("productId",
productCategoryMember.productId), false)>
<li class="browsecategorytext">
<a class="linktext"
href="<@ofbizCatalogAltUrl productCategoryId="PROMOTIONS"
productId="${product.productId}"/>">
${product.productName!product.productId}
</a>
</li>
</#if>
<#assign i = i+1/>
</#list>
</#if>
</ul>
</div>
</div>
</td>
<#assign cateCount = cateCount + 1/>
</#list>
</tbody>
</table>
</div>
<tr/>
</#list>
</tbody>
</table>
</div>
</#if>
+52 -34
View File
@@ -22,12 +22,14 @@ under the License.
<#-- looping macro -->
<#macro categoryList parentCategory category wrapInBox>
<#if catContentWrappers?? && catContentWrappers[category.productCategoryId]?? && catContentWrappers[category.productCategoryId].get("CATEGORY_NAME", "html")??>
<#if catContentWrappers?? && catContentWrappers[category.productCategoryId]?? &&
catContentWrappers[category.productCategoryId].get("CATEGORY_NAME", "html")??>
<#assign categoryName = catContentWrappers[category.productCategoryId].get("CATEGORY_NAME", "html")>
<#else>
<#assign categoryName = category.categoryName!>
</#if>
<#if catContentWrappers?? && catContentWrappers[category.productCategoryId]?? && catContentWrappers[category.productCategoryId].get("DESCRIPTION", "html")??>
<#if catContentWrappers?? && catContentWrappers[category.productCategoryId]?? &&
catContentWrappers[category.productCategoryId].get("DESCRIPTION", "html")??>
<#assign categoryDescription = catContentWrappers[category.productCategoryId].get("DESCRIPTION", "html")>
<#else>
<#assign categoryDescription = category.description!>
@@ -41,53 +43,69 @@ under the License.
<div id="sidedeepcategory" class="screenlet">
<div class="screenlet-title-bar">
<ul>
<li class="h3"><#if categoryDescription?has_content>${categoryDescription}<#else>${categoryName?default("")}</#if></li>
<li class="h3">
<#if categoryDescription?has_content>
${categoryDescription}
<#else>
${categoryName?default("")}
</#if>
</li>
</ul>
<br class="clear"/>
</div>
<div class="screenlet-body">
<div class="browsecategorylist">
</#if>
<li class="browsecategorytext">
<#if parentCategory?has_content>
<#assign parentCategoryId = parentCategory.productCategoryId/>
<#else>
<#assign parentCategoryId = ""/>
</#if>
<a href="<@ofbizCatalogAltUrl productCategoryId=category.productCategoryId previousCategoryId=parentCategoryId/>" class="${browseCategoryButtonClass}"><#if categoryName?has_content>${categoryName}<#else>${categoryDescription?default("")}</#if></a>
<li class="browsecategorytext">
<#if parentCategory?has_content>
<#assign parentCategoryId = parentCategory.productCategoryId/>
<#else>
<#assign parentCategoryId = ""/>
</#if>
<a href="<@ofbizCatalogAltUrl productCategoryId=category.productCategoryId
previousCategoryId=parentCategoryId/>" class="${browseCategoryButtonClass}">
<#if categoryName?has_content>
${categoryName}
<#else>
${categoryDescription?default("")}
</#if>
</a>
<#if (Static["org.apache.ofbiz.product.category.CategoryWorker"].checkTrailItem(request, category.getString("productCategoryId"))) || (curCategoryId?? && curCategoryId == category.productCategoryId)>
<#local subCatList = Static["org.apache.ofbiz.product.category.CategoryWorker"].getRelatedCategoriesRet(request, "subCatList", category.getString("productCategoryId"), true)>
<#if subCatList??>
<#list subCatList as subCat>
<ul class="browsecategorylist">
<@categoryList parentCategory=category category=subCat wrapInBox="N"/>
</ul>
</#list>
<#if (Static["org.apache.ofbiz.product.category.CategoryWorker"]
.checkTrailItem(request, category.getString("productCategoryId"))) ||
(curCategoryId?? && curCategoryId == category.productCategoryId)>
<#local subCatList = Static["org.apache.ofbiz.product.category.CategoryWorker"]
.getRelatedCategoriesRet(request, "subCatList", category.getString("productCategoryId"), true)>
<#if subCatList??>
<#list subCatList as subCat>
<ul class="browsecategorylist">
<@categoryList parentCategory=category category=subCat wrapInBox="N"/>
</ul>
</#list>
</#if>
</#if>
</#if>
</li>
<#if wrapInBox == "Y">
</div>
</div>
</div>
</div>
</#if>
</#macro>
<#if topLevelList?has_content>
<div id="sidedeepcategory" class="screenlet">
<div class="screenlet-title-bar">
<ul>
<li class="h3">${uiLabelMap.ProductBrowseCategories}</li>
</ul>
<br class="clear"/>
<div id="sidedeepcategory" class="screenlet">
<div class="screenlet-title-bar">
<ul>
<li class="h3">${uiLabelMap.ProductBrowseCategories}</li>
</ul>
<br class="clear"/>
</div>
<div class="screenlet-body">
<ul class="browsecategorylist">
<#list topLevelList as category>
<@categoryList parentCategory="" category=category wrapInBox="N"/>
</#list>
</ul>
</div>
</div>
<div class="screenlet-body">
<ul class="browsecategorylist">
<#list topLevelList as category>
<@categoryList parentCategory="" category=category wrapInBox="N"/>
</#list>
</ul>
</div>
</div>
</#if>
+42 -40
View File
@@ -18,49 +18,51 @@ under the License.
-->
<html>
<head>
<title>${uiLabelMap.EcommerceTellAFriend}</title>
</head>
<head>
<title>${uiLabelMap.EcommerceTellAFriend}</title>
</head>
<body class="ecbody">
<form name="tellafriend" action="<@ofbizUrl>emailFriend</@ofbizUrl>" method="post">
<#if (requestParameters.productId)?? || (requestParameters.productId)??>
<input type="hidden" name="pageUrl" value="<@ofbizCatalogAltUrl fullPath="true" secure="false" productCategoryId=requestParameters.categoryId!"" productId=requestParameters.productId!""/>" />
<#else>
<#assign cancel = "Y">
</#if>
<input type="hidden" name="webSiteId" value="${context.webSiteId!}">
<#if !cancel??>
<table>
<tr>
<td>${uiLabelMap.CommonYouremail}:</td>
<td><input type="text" name="sendFrom" size="30" /></td>
</tr>
<tr>
<td>${uiLabelMap.CommonEmailTo}:</td>
<td><input type="text" name="sendTo" size="30" /></td>
</tr>
<tr>
<td colspan="2" align="center">${uiLabelMap.CommonMessage}</td>
</tr>
<tr>
<td colspan="2" align="center">
<textarea cols="40" rows="5" name="message"></textarea>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" value="${uiLabelMap.CommonSend}" />
</td>
</tr>
</table>
<#else>
<script language="JavaScript" type="text/javascript">
<form name="tellafriend" action="<@ofbizUrl>emailFriend</@ofbizUrl>" method="post">
<#if (requestParameters.productId)?? || (requestParameters.productId)??>
<input type="hidden" name="pageUrl" value="<@ofbizCatalogAltUrl fullPath="true"
secure="false" productCategoryId=requestParameters.categoryId!""
productId=requestParameters.productId!""/>"/>
<#else>
<#assign cancel = "Y">
</#if>
<input type="hidden" name="webSiteId" value="${context.webSiteId!}">
<#if !cancel??>
<table>
<tr>
<td>${uiLabelMap.CommonYouremail}:</td>
<td><input type="text" name="sendFrom" size="30"/></td>
</tr>
<tr>
<td>${uiLabelMap.CommonEmailTo}:</td>
<td><input type="text" name="sendTo" size="30"/></td>
</tr>
<tr>
<td colspan="2" align="center">${uiLabelMap.CommonMessage}</td>
</tr>
<tr>
<td colspan="2" align="center">
<textarea cols="40" rows="5" name="message"></textarea>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" value="${uiLabelMap.CommonSend}"/>
</td>
</tr>
</table>
<#else>
<script language="JavaScript" type="text/javascript">
<!-- //
window.close();
// -->
</script>
<div>${uiLabelMap.EcommerceTellAFriendSorry}</div>
</#if>
</form>
</script>
<div>${uiLabelMap.EcommerceTellAFriendSorry}</div>
</#if>
</form>
</body>
</html>
+28 -17
View File
@@ -18,38 +18,49 @@ under the License.
-->
<#macro renderAncestryPath trail siteId startIndex=0 endIndexOffset=0 buttonTitle="Back to" searchOn="" >
<#local indent = "">
<#local csv = "">
<#local counter = 0>
<#local len = trail?size>
<table border="0" cellspacing="4">
<#local indent = "">
<#local csv = "">
<#local counter = 0>
<#local len = trail?size>
<table border="0" cellspacing="4">
<#list trail as content>
<#if counter < (len - endIndexOffset) && startIndex <= counter >
<#if 0 < counter >
<#local csv = csv + ","/>
<#local csv = csv + ","/>
</#if>
<#local csv = csv + content.contentId/>
<#if counter < len && startIndex <= counter >
<tr>
<td >
<tr>
<td>
${indent}
<#if content.contentTypeId == "WEB_SITE_PUB_PT" >
<a class="tabButton" href="<@ofbizUrl>showcontenttree?contentId=${content.contentId!}&nodeTrailCsv=${csv}</@ofbizUrl>" >${uiLabelMap.CommonBackTo}</a> &nbsp;${content.contentName!}
<a class="tabButton"
href="<@ofbizUrl>showcontenttree?contentId=${content.contentId!}&nodeTrailCsv=${csv}</@ofbizUrl>">
${uiLabelMap.CommonBackTo}
</a>
&nbsp;${content.contentName!}
<#else>
<a class="tabButton" href="<@ofbizUrl>showcontenttree?contentId=${siteId!}&nodeTrailCsv=${csv}</@ofbizUrl>" >${uiLabelMap.CommonBackTo}</a> &nbsp;${content.contentName!}
<a class="tabButton"
href="<@ofbizUrl>showcontenttree?contentId=${siteId!}&nodeTrailCsv=${csv}</@ofbizUrl>">
${uiLabelMap.CommonBackTo}
</a>
&nbsp;${content.contentName!}
</#if>
<#local indent = indent + "&nbsp;&nbsp;&nbsp;&nbsp;">
[${content.contentId!}]
<#if searchOn?has_content && searchOn?lower_case == "true">
&nbsp;
<a class="tabButton" href="<@ofbizUrl>searchContent?siteId=${siteId!}&nodeTrailCsv=${csv}</@ofbizUrl>" >${uiLabelMap.CommonSearch}</a>
&nbsp;
<a class="tabButton"
href="<@ofbizUrl>searchContent?siteId=${siteId!}&nodeTrailCsv=${csv}</@ofbizUrl>">
${uiLabelMap.CommonSearch}
</a>
</#if>
</#if>
</td>
</tr>
</#if>
</td>
</tr>
</#if>
<#local counter = counter + 1>
<#if 20 < counter > <#break/></#if>
<#if 20 < counter > <#break/></#if>
</#list>
</table>
</table>
</#macro>
@@ -42,10 +42,13 @@ under the License.
<#assign count_1=0/>
<@loopSubContent contentId=contentRootId viewIndex=0 viewSize=9999 orderBy="contentName">
<li class="browsecategorytext">
<a href="<@ofbizUrl>showcontenttree?contentId=${subContentId}&amp;nodeTrailCsv=${subContentId}</@ofbizUrl>" class="browsecategorybutton">${content.contentName}</a>
<a href="<@ofbizUrl>showcontenttree?contentId=${subContentId}&amp;nodeTrailCsv=${subContentId}</@ofbizUrl>"
class="browsecategorybutton">
${content.contentName}
</a>
</li>
<#assign count_1=(count_1 + 1)/>
</@loopSubContent>
</ul>
</div>
</div>
</div>
+5 -2
View File
@@ -19,7 +19,8 @@ under the License.
<#assign groupName = page.randomSurveyGroup!>
<#if groupName?has_content>
<#assign randomSurvey = Static["org.apache.ofbiz.product.store.ProductStoreWorker"].getRandomSurveyWrapper(request, "testSurveyGroup")!>
<#assign randomSurvey = Static["org.apache.ofbiz.product.store.ProductStoreWorker"]
.getRandomSurveyWrapper(request, "testSurveyGroup")!>
</#if>
<#if randomSurvey?has_content>
@@ -31,7 +32,9 @@ under the License.
<br class="clear"/>
</div>
<div class="screenlet-body">
<form method="post" action="<@ofbizUrl>minipoll<#if requestAttributes._CURRENT_VIEW_??>/${requestAttributes._CURRENT_VIEW_}</#if></@ofbizUrl>" style="margin: 0;">
<form method="post"
action="<@ofbizUrl>minipoll<#if requestAttributes._CURRENT_VIEW_??>/${requestAttributes._CURRENT_VIEW_}</#if></@ofbizUrl>"
style="margin: 0;">
${randomSurvey.render()}
</form>
</div>
@@ -28,9 +28,11 @@ under the License.
<div class="screenlet-body">
<#list mrvList as mrvArr>
<div class="browsecategorytext">
<a href="<@ofbizUrl>viewcontent?contentId=${mrvArr[0]}</@ofbizUrl>" class="browsecategorybutton">${mrvArr[1]}</a>
<a href="<@ofbizUrl>viewcontent?contentId=${mrvArr[0]}</@ofbizUrl>" class="browsecategorybutton">
${mrvArr[1]}
</a>
</div>
</#list>
</div>
</div>
</#if>
</#if>
+61 -61
View File
@@ -19,80 +19,80 @@ under the License.
<form method="post" action="<@ofbizUrl>searchContent</@ofbizUrl>" name="searchQuery">
<table border="0" cellpadding="2" cellspacing="0">
<tr>
<td width="20%" align="right">
<span class="tableheadtext">${uiLabelMap.EcommerceEnterQueryParameters}</span>
</td>
<td>&nbsp;</td>
<td width="80%">
<input type="text" class="inputBox" name="queryLine" size="60"/>
</td>
</tr>
<tr>
<!-- category form -->
<tr>
<table>
<table border="0" cellpadding="2" cellspacing="0">
<tr>
<td align="right" valign="middle">
<div>${uiLabelMap.ProductFeatures}:</div>
<td width="20%" align="right">
<span class="tableheadtext">${uiLabelMap.EcommerceEnterQueryParameters}</span>
</td>
<td align="right" valign="middle">
<div>
${uiLabelMap.CommonAll} <input type="radio" name="any_or_all" value="all" checked="checked" />
${uiLabelMap.CommonAny} <input type="radio" name="any_or_all" value="any" />
</div>
<td>&nbsp;</td>
<td width="80%">
<input type="text" class="inputBox" name="queryLine" size="60"/>
</td>
</tr>
<#list productFeatureTypeIdsOrdered as productFeatureTypeId>
<#assign findPftMap = Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("productFeatureTypeId", productFeatureTypeId)>
<#assign productFeatureType = delegator.findOne("ProductFeatureType", findPftMap, true)>
<#assign productFeatures = productFeaturesByTypeMap[productFeatureTypeId]>
<tr>
<!-- category form -->
<tr>
<table>
<tr>
<td align="right" valign="middle">
<div>${(productFeatureType.get("description",locale))!}:</div>
<div>${uiLabelMap.ProductFeatures}:</div>
</td>
<td valign="middle">
<td align="right" valign="middle">
<div>
<select class="selectBox" name="pft_${productFeatureTypeId}">
<option value="">- ${uiLabelMap.CommonSelectAny} -</option>
<#list productFeatures as productFeature>
<option value="${productFeature.productFeatureId}">${productFeature.description?default("No Description")} [${productFeature.productFeatureId}]</option>
</#list>
</select>
${uiLabelMap.CommonAll} <input type="radio" name="any_or_all" value="all" checked="checked" />
${uiLabelMap.CommonAny} <input type="radio" name="any_or_all" value="any" />
</div>
</td>
</tr>
</#list>
<#if searchConstraintStrings?has_content>
<tr>
<td align="right" valign="top">
<div>${uiLabelMap.ProductLastSearch}:</div>
</td>
<td valign="top">
<#list productFeatureTypeIdsOrdered as productFeatureTypeId>
<#assign findPftMap = Static["org.apache.ofbiz.base.util.UtilMisc"]
.toMap("productFeatureTypeId", productFeatureTypeId)>
<#assign productFeatureType = delegator.findOne("ProductFeatureType", findPftMap, true)>
<#assign productFeatures = productFeaturesByTypeMap[productFeatureTypeId]>
<tr>
<td align="right" valign="middle">
<div>${(productFeatureType.get("description",locale))!}:</div>
</td>
<td valign="middle">
<div>
<select class="selectBox" name="pft_${productFeatureTypeId}">
<option value="">- ${uiLabelMap.CommonSelectAny} -</option>
<#list productFeatures as productFeature>
<option value="${productFeature.productFeatureId}">
${productFeature.description?default("No Description")} [${productFeature.productFeatureId}]
</option>
</#list>
</select>
</div>
</td>
</tr>
</#list>
<#if searchConstraintStrings?has_content>
<tr>
<td align="right" valign="top">
<div>${uiLabelMap.ProductLastSearch}:</div>
</td>
<td valign="top">
<#list searchConstraintStrings as searchConstraintString>
<div>&nbsp;-&nbsp;${searchConstraintString}</div>
<div>&nbsp;-&nbsp;${searchConstraintString}</div>
</#list>
<div>${uiLabelMap.ProductSortedBy}: ${searchSortOrderString}</div>
<div>
${uiLabelMap.ProductNewSearch}<input type="radio" name="clearSearch" value="Y" checked="checked" />
${uiLabelMap.CommonRefineSearch}<input type="radio" name="clearSearch" value="N" />
${uiLabelMap.ProductNewSearch}
<input type="radio" name="clearSearch" value="Y" checked="checked" />
${uiLabelMap.CommonRefineSearch}
<input type="radio" name="clearSearch" value="N" />
</div>
</td>
</td>
</tr>
</#if>
<td width="20%" align="right">&nbsp;</td>
<td>&nbsp;</td>
<td width="80%" colspan="4">
<input type="submit" class="smallSubmit" name="submitButton" value="${uiLabelMap.CommonQuery}"/>
</td>
</tr>
</#if>
<td width="20%" align="right">
&nbsp;</td>
<td>&nbsp;</td>
<td width="80%" colspan="4">
<input type="submit" class="smallSubmit" name="submitButton" value="${uiLabelMap.CommonQuery}"/>
</td>
</tr>
</table>
</table>
</form>
@@ -107,8 +107,8 @@ under the License.
<#local indent = indent + "&nbsp;&nbsp;"/>
</#list>
</#if>
<@loopSubContent contentId=contentId viewIndex=0 viewSize=9999 returnAfterPickWhen="1==1";>
<option value="${content.contentId?lower_case}">${indent}${content.description}</option>
<@listSiteIds contentId=content.contentId indentIndex=indentIndex + 1 />
</@loopSubContent>
<@loopSubContent contentId=contentId viewIndex=0 viewSize=9999 returnAfterPickWhen="1==1";>
<option value="${content.contentId?lower_case}">${indent}${content.description}</option>
<@listSiteIds contentId=content.contentId indentIndex=indentIndex + 1 />
</@loopSubContent>
</#macro>
+72 -51
View File
@@ -23,22 +23,26 @@ under the License.
<@renderAncestryPath trail=ancestorList?default([]) endIndexOffset=1 siteId=siteId searchOn="true"/>
<#if ancestorList?has_content && (0 < ancestorList?size) >
<#assign lastContent=ancestorList?last />
<h1>[${lastContent.contentId}] ${lastContent.description}
<a class="tabButton" href="<@ofbizUrl>searchContent?siteId=${lastContent.contentId!}</@ofbizUrl>" >${uiLabelMap.CommonSearch}</a>
</h1>
<#assign lastContent=ancestorList?last />
<h1>[${lastContent.contentId}] ${lastContent.description}
<a class="tabButton"
href="<@ofbizUrl>searchContent?siteId=${lastContent.contentId!}</@ofbizUrl>">
${uiLabelMap.CommonSearch}
</a>
</h1>
</#if>
<#assign viewIdx = "" />
<#if requestParameters.viewIndex?has_content>
<#assign viewIdx = requestParameters.viewIndex! />
<#assign viewIdx = requestParameters.viewIndex! />
</#if>
<#assign viewSz = "" />
<#if requestParameters.viewSize?has_content>
<#assign viewSz = requestParameters.viewSize! />
<#assign viewSz = requestParameters.viewSize! />
</#if>
<#assign nodeTrailCsv=requestParameters.nodeTrailCsv!/>
<#assign dummy=Static["org.apache.ofbiz.base.util.Debug"].logInfo("in showcontenttree, nodeTrailCsv(0):" + nodeTrailCsv, "")/>
<#assign dummy=Static["org.apache.ofbiz.base.util.Debug"]
.logInfo("in showcontenttree, nodeTrailCsv(0):" + nodeTrailCsv, "")/>
<#assign nodeTrail=[]/>
<#assign firstContentId=""/>
<#if nodeTrailCsv?has_content>
@@ -54,58 +58,75 @@ under the License.
-->
<div>
<@renderCategoryBrowse contentId=siteId indentIndex=1 nodeTrail=nodeTrail />
<@renderCategoryBrowse contentId=siteId indentIndex=1 nodeTrail=nodeTrail />
</div>
<#macro renderCategoryBrowse contentId="" indentIndex=0 nodeTrail=[] viewSz=9999 viewIdx=0>
<!-- start of renderCategoryBrowse for contentId=${contentId} -->
<!-- start of renderCategoryBrowse for contentId=${contentId} -->
<#local contentIdx = contentId! />
<#if (!contentIdx?? || contentIdx?length == 0)>
<#local contentIdx = page.contentIdx! />
<#if (!contentIdx?? || contentIdx?length == 0)>
</#if>
</#if>
<#local contentIdx = contentId! />
<#if (!contentIdx?? || contentIdx?length == 0)>
<#local contentIdx = page.contentIdx! />
<#if (!contentIdx?? || contentIdx?length == 0)>
</#if>
</#if>
<#local thisContentId=nodeTrail[indentIndex]!/>
<#local thisContentId=nodeTrail[indentIndex]!/>
<#local thisNodeTrailCsv = "" />
<#local listUpper = (indentIndex - 1) />
<#if nodeTrail?size < listUpper >
<#local listUpper = (nodeTrail?size - 1)>
</#if>
<#list 0..listUpper as idx>
<#if thisNodeTrailCsv?has_content>
<#local thisNodeTrailCsv = thisNodeTrailCsv + ","/>
</#if>
<#if nodeTrail[idx]??>
<#local thisNodeTrailCsv = thisNodeTrailCsv + nodeTrail[idx]>
</#if>
</#list>
<#local thisNodeTrailCsv = "" />
<#local listUpper = (indentIndex - 1) />
<#if nodeTrail?size < listUpper >
<#local listUpper = (nodeTrail?size - 1)>
</#if>
<#list 0..listUpper as idx>
<#if thisNodeTrailCsv?has_content>
<#local thisNodeTrailCsv = thisNodeTrailCsv + ","/>
</#if>
<#if nodeTrail[idx]??>
<#local thisNodeTrailCsv = thisNodeTrailCsv + nodeTrail[idx]>
</#if>
</#list>
<!-- in showcontenttree, contentIdx: ${contentIdx} -->
<!-- in showcontenttree, contentIdx: ${contentIdx} -->
<!-- Look for content first -->
<@loopSubContent contentId=contentIdx viewIndex=viewIdx viewSize=viewSz contentAssocTypeId="PUBLISH_LINK" returnAfterPickWhen="1==1">
<#assign dummy=Static["org.apache.ofbiz.base.util.Debug"].logInfo("in showcontenttree, nodeTrailCsv(1):" + nodeTrailCsv, "")/>
<#local thisCsv=thisNodeTrailCsv + "," + subContentId />
<a class="tabButton" href="<@ofbizUrl>viewcontent?contentId=${subContentId!}&nodeTrailCsv=${thisCsv}</@ofbizUrl>">${uiLabelMap.CommonView}</a> ${content.description!}<br />
</@loopSubContent>
<!-- Look for content first -->
<@loopSubContent contentId=contentIdx viewIndex=viewIdx viewSize=viewSz
contentAssocTypeId="PUBLISH_LINK" returnAfterPickWhen="1==1">
<#assign dummy=Static["org.apache.ofbiz.base.util.Debug"]
.logInfo("in showcontenttree, nodeTrailCsv(1):" + nodeTrailCsv, "")/>
<#local thisCsv=thisNodeTrailCsv + "," + subContentId />
<a class="tabButton"
href="<@ofbizUrl>viewcontent?contentId=${subContentId!}&nodeTrailCsv=${thisCsv}</@ofbizUrl>">
${uiLabelMap.CommonView}
</a> ${content.description!}
<br/>
</@loopSubContent>
<!-- Look for sub-topics -->
<@loopSubContent contentId=contentIdx viewIndex=viewIdx viewSize=viewSz returnAfterPickWhen="1==1" orderBy="contentName">
<#local plusMinus="+"/>
<#if thisContentId == subContentId>
<#local plusMinus="-"/>
</#if>
<#local thisCsv=thisNodeTrailCsv />
<#local thisCsv=thisNodeTrailCsv + "," + subContentId />
<a class="tabButton" href="<@ofbizUrl>showcontenttree?contentId=${siteId!}&nodeTrailCsv=${thisCsv}</@ofbizUrl>" >${plusMinus}</a> &nbsp;${content.description!}
<a class="tabButton" href="<@ofbizUrl>searchContent?siteId=${subContentId!}&nodeTrailCsv=${thisCsv}</@ofbizUrl>" >${uiLabelMap.CommonSearch}</a> <br />
<#if thisContentId == subContentId>
<#assign catTrail = nodeTrail + [subContentId]/>
<div><@renderCategoryBrowse contentId=subContentId indentIndex=(indentIndex + 1) nodeTrail=catTrail viewSz=viewSz viewIdx=viewIdx /></div>
</#if>
</@loopSubContent>
<!-- Look for sub-topics -->
<@loopSubContent contentId=contentIdx viewIndex=viewIdx viewSize=viewSz
returnAfterPickWhen="1==1" orderBy="contentName">
<#local plusMinus="+"/>
<#if thisContentId == subContentId>
<#local plusMinus="-"/>
</#if>
<#local thisCsv=thisNodeTrailCsv />
<#local thisCsv=thisNodeTrailCsv + "," + subContentId />
<a class="tabButton"
href="<@ofbizUrl>showcontenttree?contentId=${siteId!}&nodeTrailCsv=${thisCsv}</@ofbizUrl>">
${plusMinus}
</a> &nbsp;${content.description!}
<a class="tabButton"
href="<@ofbizUrl>searchContent?siteId=${subContentId!}&nodeTrailCsv=${thisCsv}</@ofbizUrl>">
${uiLabelMap.CommonSearch}
</a>
<br/>
<#if thisContentId == subContentId>
<#assign catTrail = nodeTrail + [subContentId]/>
<div>
<@renderCategoryBrowse contentId=subContentId indentIndex=(indentIndex + 1)
nodeTrail=catTrail viewSz=viewSz viewIdx=viewIdx />
</div>
</#if>
</@loopSubContent>
</#macro>
+16 -12
View File
@@ -20,14 +20,13 @@ under the License.
<#recurse doc>
<#macro "ask:document">
<#recurse .node>
</#macro>
<#macro "ask:title">
<h2>${.node}</h2>
<p/>
<h2>${.node}</h2>
<p/>
</#macro>
<#macro "ask:body">
@@ -48,18 +47,23 @@ under the License.
</#macro>
<#macro @text>
${.node?html}
${.node?html}
</#macro>
<#--
<#macro content>
<#assign contentId="ECMC" + .node.@id[0]/>
<DataResource dataResourceId="${contentId}" dataResourceTypeId="ELECTRONIC_TEXT" dataTemplateTypeId="NONE" dataSourceId="ECM" mimeTypeId="text/html"/>
<ElectronicText dataResourceId="${contentId}">
<textData><![CDATA[
${.node.content_text}
]]></textData>
</ElectronicText>
<Content contentId="${contentId}" contentTypeId="DOCUMENT" dataResourceId="${contentId}" contentName="${.node.@name[0]}" description="${.node.content_desc?html}" mimeTypeId="text/xml" templateDataResourceId="TPL_XML_MB"/>
<#assign contentId="ECMC" + .node.@id[0]/>
<DataResource dataResourceId="${contentId}" dataResourceTypeId="ELECTRONIC_TEXT"
dataTemplateTypeId="NONE" dataSourceId="ECM" mimeTypeId="text/html"/>
<ElectronicText dataResourceId="${contentId}">
<textData>
<![CDATA[
${.node.content_text}
]]>
</textData>
</ElectronicText>
<Content contentId="${contentId}" contentTypeId="DOCUMENT" dataResourceId="${contentId}"
contentName="${.node.@name[0]}" description="${.node.content_desc?html}" mimeTypeId="text/xml"
templateDataResourceId="TPL_XML_MB"/>
</#macro>
-->
+99 -83
View File
@@ -18,119 +18,135 @@ under the License.
-->
<div class="screenlet">
<div style="margin:10px;">
<#-- Do this so that we don't have to find the content twice (again in renderSubContent) -->
<#assign subContentId=requestParameters.contentId!/>
<#assign nodeTrailCsv=requestParameters.nodeTrailCsv!/>
<#-- <#assign dummy=Static["org.apache.ofbiz.base.util.Debug"].logInfo("in viewcontent, nodeTrailCsv:" + nodeTrailCsv, "")/> -->
<#if ancestorList?has_content && (0 < ancestorList?size) >
<div style="margin:10px;">
<#-- Do this so that we don't have to find the content twice (again in renderSubContent) -->
<#assign subContentId=requestParameters.contentId!/>
<#assign nodeTrailCsv=requestParameters.nodeTrailCsv!/>
<#-- <#assign dummy=Static["org.apache.ofbiz.base.util.Debug"]
.logInfo("in viewcontent, nodeTrailCsv:" + nodeTrailCsv, "")/> -->
<#if ancestorList?has_content && (0 < ancestorList?size) >
<#assign lastContent=ancestorList?last />
<#assign firstContent=ancestorList[0] />
</#if>
<#if firstContent?has_content>
<#assign siteId = firstContent.contentId/>
</#if>
<#if siteId?has_content>
<@renderAncestryPath trail=ancestorList?default([]) endIndexOffset=1 siteId=siteId/>
</#if>
<#if lastContent?has_content>
<h1>[${lastContent.contentId}] ${lastContent.description!}</h1>
</#if>
<#--
<#assign globalNodeTrail=[]/>
<#assign firstContentId=""/>
<#if nodeTrailCsv?has_content>
<#assign globalNodeTrail=Static["org.apache.ofbiz.base.util.StringUtil"].split(nodeTrailCsv, ",") />
<#if 0 < globalNodeTrail?size>
<#assign firstContentId=globalNodeTrail[0]?string/>
</#if>
</#if>
<#assign globalNodeTrail=requestParameters.globalNodeTrail?default([])/>
-->
<#if globalNodeTrail?has_content && (0 < globalNodeTrail?size) >
<#if firstContent?has_content>
<#assign siteId = firstContent.contentId/>
</#if>
<#if siteId?has_content>
<@renderAncestryPath trail=ancestorList?default([]) endIndexOffset=1 siteId=siteId/>
</#if>
<#if lastContent?has_content>
<h1>[${lastContent.contentId}] ${lastContent.description!}</h1>
</#if>
<#--
<#assign globalNodeTrail=[]/>
<#assign firstContentId=""/>
<#if nodeTrailCsv?has_content>
<#assign globalNodeTrail=Static["org.apache.ofbiz.base.util.StringUtil"].split(nodeTrailCsv, ",") />
<#if 0 < globalNodeTrail?size>
<#assign firstContentId=globalNodeTrail[0]?string/>
</#if>
</#if>
<#assign globalNodeTrail=requestParameters.globalNodeTrail?default([])/>
-->
<#if globalNodeTrail?has_content && (0 < globalNodeTrail?size) >
<#assign lastNode = globalNodeTrail?last/>
<#if lastNode?has_content>
<#assign subContent=lastNode.value/>
</#if>
<#else>
<#assign subContent = delegator.findOne("Content", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("contentId", subContentId), true)/>
</#if>
<#assign dummy=Static["org.apache.ofbiz.base.util.Debug"].logInfo("in viewcontent, subContent:" + subContent, "")/>
<br />
<h1>${uiLabelMap.EcommerceContentFor} [${subContentId}] ${subContent.contentName!} - ${subContent.description!}:</h1><br />
<table border="0" class="blogtext">
<tr>
<td width="40">&nbsp;</td>
<td>
<@renderSubContentCache subContentId=subContentId />
</td>
<td width="40" valign="bottom">
<#--
<@wrapSubContentCache subContentId=subContentId wrapTemplateId="WRAP_VIEW" >
</@wrapSubContentCache >
<@checkPermission mode="equals" entityOperation="_CREATE" targetOperation="HAS_USER_ROLE" >
<a class="tabButton" href="<@ofbizUrl>createforumresponse?contentIdTo=${requestParameters.contentId}&amp;nodeTrailCsv=${nodeTrailCsv!}</@ofbizUrl>" >Respond</a>
</@checkPermission>
-->
<br />
</td>
</tr>
<#assign thisContentId = subContentId/>
<@loopSubContent contentId=thisContentId viewIndex=0 viewSize=9999 contentAssocTypeId="RELATED_CONTENT">
<#assign thisNodeTrailCsv = nodeTrailCsv />
<#else>
<#assign subContent = delegator.findOne("Content",
Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("contentId", subContentId), true)/>
</#if>
<#assign dummy=Static["org.apache.ofbiz.base.util.Debug"]
.logInfo("in viewcontent, subContent:" + subContent, "")/>
<br/>
<h1>${uiLabelMap.EcommerceContentFor} [${subContentId}] ${subContent.contentName!}
- ${subContent.description!}:</h1><br/>
<table border="0" class="blogtext">
<tr>
<td colspan="3" align="right">
<a class="tabButton" href="<@ofbizUrl>viewcontent?contentId=${subContentId}&amp;nodeTrailCsv=${thisNodeTrailCsv!}</@ofbizUrl>" >${content.contentName!}</a>
<td width="40">&nbsp;</td>
<td>
<@renderSubContentCache subContentId=subContentId />
</td>
<td width="40" valign="bottom">
<#--
<@wrapSubContentCache subContentId=subContentId wrapTemplateId="WRAP_VIEW" >
</@wrapSubContentCache >
<@checkPermission mode="equals" entityOperation="_CREATE" targetOperation="HAS_USER_ROLE" >
<a class="tabButton" href="<@ofbizUrl>createforumresponse?contentIdTo=${requestParameters.contentId}&amp;nodeTrailCsv=${nodeTrailCsv!}</@ofbizUrl>" >Respond</a>
</@checkPermission>
-->
<br/>
</td>
</tr>
</@loopSubContent>
</table>
<hr />
<#--
<@checkPermission mode="not-equals" subContentId=subContentId targetOperation="CONTENT_CREATE|CONTENT_RESPOND" contentPurposeList="RESPONSE" >
${permissionErrorMsg!}
</@checkPermission>
-->
<#assign thisContentId = subContentId/>
<@loopSubContent contentId=thisContentId viewIndex=0 viewSize=9999 contentAssocTypeId="RELATED_CONTENT">
<#assign thisNodeTrailCsv = nodeTrailCsv />
<tr>
<td colspan="3" align="right">
<a class="tabButton"
href="<@ofbizUrl>viewcontent?contentId=${subContentId}&amp;nodeTrailCsv=${thisNodeTrailCsv!}</@ofbizUrl>">${content.contentName!}</a>
</td>
</tr>
</@loopSubContent>
</table>
<hr/>
<#--
<@checkPermission mode="not-equals" subContentId=subContentId
targetOperation="CONTENT_CREATE|CONTENT_RESPOND" contentPurposeList="RESPONSE" >
${permissionErrorMsg!}
</@checkPermission>
-->
</div>
</div>
</div>
<#macro renderAncestryPath trail siteId startIndex=0 endIndexOffset=0 buttonTitle="Back to" searchOn="" >
<#local indent = "">
<#local csv = "">
<#local counter = 0>
<#local len = trail?size>
<table border="0" cellspacing="4">
<#local indent = "">
<#local csv = "">
<#local counter = 0>
<#local len = trail?size>
<table border="0" cellspacing="4">
<#list trail as content>
<#if counter < (len - endIndexOffset) && startIndex <= counter >
<#if 0 < counter >
<#local csv = csv + ","/>
<#local csv = csv + ","/>
</#if>
<#local csv = csv + content.contentId/>
<#if counter < len && startIndex <= counter >
<tr>
<td>
<tr>
<td>
${indent}
<#if content.contentTypeId == "WEB_SITE_PUB_PT" >
<a class="tabButton" href="<@ofbizUrl>showcontenttree?contentId=${content.contentId!}&nodeTrailCsv=${csv}</@ofbizUrl>" >${uiLabelMap.CommonBackTo}</a> &nbsp;${content.contentName!}
<a class="tabButton"
href="<@ofbizUrl>showcontenttree?contentId=${content.contentId!}&nodeTrailCsv=${csv}</@ofbizUrl>">
${uiLabelMap.CommonBackTo}
</a>
&nbsp;${content.contentName!}
<#else>
<a class="tabButton" href="<@ofbizUrl>viewcontent?contentId=${content.contentId!}&nodeTrailCsv=${csv}</@ofbizUrl>" >${uiLabelMap.CommonBackTo}</a> &nbsp;${content.contentName!}
<a class="tabButton"
href="<@ofbizUrl>viewcontent?contentId=${content.contentId!}&nodeTrailCsv=${csv}</@ofbizUrl>">
${uiLabelMap.CommonBackTo}
</a>
&nbsp;${content.contentName!}
</#if>
<#local indent = indent + "&nbsp;&nbsp;&nbsp;&nbsp;">
[${content.contentId!}]
<#if searchOn?has_content && searchOn?lower_case == "true">
&nbsp;
<a class="tabButton" href="<@ofbizUrl>searchContent?siteId=${siteId!}&nodeTrailCsv=${csv}</@ofbizUrl>" >${uiLabelMap.CommonSearch}</a>
&nbsp;
<a class="tabButton"
href="<@ofbizUrl>searchContent?siteId=${siteId!}&nodeTrailCsv=${csv}</@ofbizUrl>">
${uiLabelMap.CommonSearch}
</a>
</#if>
</#if>
</td>
</tr>
</#if>
</td>
</tr>
</#if>
<#local counter = counter + 1>
<#if 20 < counter > <#break/></#if>
<#if 20 < counter > <#break/></#if>
</#list>
</table>
</table>
</#macro>
+77 -57
View File
@@ -18,63 +18,83 @@ under the License.
-->
<div class="screenlet">
<div class="screenlet-title-bar">
<h3>${uiLabelMap.CommonContactUs}</h3>
</div>
<script type="text/javascript" language="JavaScript">
<div class="screenlet-title-bar">
<h3>${uiLabelMap.CommonContactUs}</h3>
</div>
<script type="text/javascript" language="JavaScript">
<!--
function reloadCaptcha(fieldName) {
var captchaUri = "<@ofbizUrl>captcha.jpg?captchaCodeId=" + fieldName + "&amp;unique=_PLACEHOLDER_</@ofbizUrl>";
var unique = Date.now();
captchaUri = captchaUri.replace("_PLACEHOLDER_", unique);
document.getElementById(fieldName).src = captchaUri;
}
function reloadCaptcha(fieldName) {
var captchaUri = "<@ofbizUrl>captcha.jpg?captchaCodeId=" + fieldName + "&amp;unique=_PLACEHOLDER_</@ofbizUrl>";
var unique = Date.now();
captchaUri = captchaUri.replace("_PLACEHOLDER_", unique);
document.getElementById(fieldName).src = captchaUri;
}
//-->
</script>
<div class="screenlet-body">
<form id="contactForm" method="post" action="<@ofbizUrl>submitAnonContact</@ofbizUrl>">
<input type="hidden" name="partyIdFrom" value="${(userLogin.partyId)!}" />
<input type="hidden" name="partyIdTo" value="${productStore.payToPartyId!}"/>
<input type="hidden" name="contactMechTypeId" value="WEB_ADDRESS" />
<input type="hidden" name="communicationEventTypeId" value="WEB_SITE_COMMUNICATI" />
<input type="hidden" name="productStoreId" value="${productStore.productStoreId}" />
<input type="hidden" name="emailType" value="CONT_NOTI_EMAIL" />
<table class="basic-table" cellspacing="0">
<tbody>
<tr>
<td class="label">${uiLabelMap.EcommerceSubject}</td>
<td><input type="text" name="subject" id="subject" class="required" value="${requestParameters.subject!}"/>*</td>
</tr>
<tr>
<td class="label">${uiLabelMap.CommonMessage}</td>
<td><textarea name="content" id="message" class="required" cols="50" rows="5">${requestParameters.content!}</textarea>*</td>
</tr>
<tr>
<td class="label">${uiLabelMap.FormFieldTitle_emailAddress}</td>
<td><input type="text" name="emailAddress" id="emailAddress" class="required" value="${requestParameters.emailAddress!}"/>*</td>
</tr>
<tr>
<td class="label">${uiLabelMap.PartyFirstName}</td>
<td><input type="text" name="firstName" id="firstName" class="required" value="${requestParameters.firstName!}"/></td>
</tr>
<tr>
<td class="label">${uiLabelMap.PartyLastName}</td>
<td><input type="text" name="lastName" id="lastName" class="required" value="${requestParameters.lastName!}"/></td>
</tr>
<tr>
<td class="label">${uiLabelMap.CommonCaptchaCode}</td>
<td><div><img id="captchaImage" src="<@ofbizUrl>captcha.jpg?captchaCodeId=captchaImage&amp;unique=${nowTimestamp.getTime()}</@ofbizUrl>" alt="" /></div><a href="javascript:reloadCaptcha('captchaImage');">${uiLabelMap.CommonReloadCaptchaCode}</a></td>
</tr>
<tr>
<td class="label">${uiLabelMap.CommonVerifyCaptchaCode}</td>
<td><input type="text" autocomplete="off" maxlength="30" size="23" name="captcha"/>*</td>
</tr>
<tr>
<td class="label"></td>
<td><input type="submit" value="${uiLabelMap.CommonSubmit}" /></td>
</tr>
</tbody>
</table>
</form>
</div>
</script>
<div class="screenlet-body">
<form id="contactForm" method="post" action="<@ofbizUrl>submitAnonContact</@ofbizUrl>">
<input type="hidden" name="partyIdFrom" value="${(userLogin.partyId)!}"/>
<input type="hidden" name="partyIdTo" value="${productStore.payToPartyId!}"/>
<input type="hidden" name="contactMechTypeId" value="WEB_ADDRESS"/>
<input type="hidden" name="communicationEventTypeId" value="WEB_SITE_COMMUNICATI"/>
<input type="hidden" name="productStoreId" value="${productStore.productStoreId}"/>
<input type="hidden" name="emailType" value="CONT_NOTI_EMAIL"/>
<table class="basic-table" cellspacing="0">
<tbody>
<tr>
<td class="label">${uiLabelMap.EcommerceSubject}</td>
<td>
<input type="text" name="subject" id="subject" class="required" value="${requestParameters.subject!}"/>*
</td>
</tr>
<tr>
<td class="label">${uiLabelMap.CommonMessage}</td>
<td>
<textarea name="content" id="message" class="required" cols="50" rows="5">
${requestParameters.content!}
</textarea>*
</td>
</tr>
<tr>
<td class="label">${uiLabelMap.FormFieldTitle_emailAddress}</td>
<td>
<input type="text" name="emailAddress" id="emailAddress" class="required"
value="${requestParameters.emailAddress!}"/>*
</td>
</tr>
<tr>
<td class="label">${uiLabelMap.PartyFirstName}</td>
<td>
<input type="text" name="firstName" id="firstName" class="required" value="${requestParameters.firstName!}"/>
</td>
</tr>
<tr>
<td class="label">${uiLabelMap.PartyLastName}</td>
<td>
<input type="text" name="lastName" id="lastName" class="required" value="${requestParameters.lastName!}"/>
</td>
</tr>
<tr>
<td class="label">${uiLabelMap.CommonCaptchaCode}</td>
<td>
<div>
<img id="captchaImage"
src="<@ofbizUrl>captcha.jpg?captchaCodeId=captchaImage&amp;unique=${nowTimestamp.getTime()}</@ofbizUrl>"
alt=""/>
</div>
<a href="javascript:reloadCaptcha('captchaImage');">${uiLabelMap.CommonReloadCaptchaCode}</a>
</td>
</tr>
<tr>
<td class="label">${uiLabelMap.CommonVerifyCaptchaCode}</td>
<td><input type="text" autocomplete="off" maxlength="30" size="23" name="captcha"/>*</td>
</tr>
<tr>
<td class="label"></td>
<td><input type="submit" value="${uiLabelMap.CommonSubmit}"/></td>
</tr>
</tbody>
</table>
</form>
</div>
</div>
+10 -5
View File
@@ -19,9 +19,11 @@ under the License.
<div class="screenlet">
<div class="screenlet-title-bar">
<h3>${uiLabelMap.PartyChangePassword}</h3>
</div>
&nbsp;<a id="CommonGoBack1" href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>
&nbsp;<a id="CommonSave1" href="javascript:document.getElementById('changepasswordform').submit()" class="button">${uiLabelMap.CommonSave}</a>
</div>&nbsp;
<a id="CommonGoBack1" href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>&nbsp;
<a id="CommonSave1" href="javascript:document.getElementById('changepasswordform').submit()" class="button">
${uiLabelMap.CommonSave}
</a>
<p/>
<div class="screenlet-body">
<form id="changepasswordform" method="post" action="<@ofbizUrl>updatePassword/${donePage}</@ofbizUrl>">
@@ -40,12 +42,15 @@ under the License.
</div>
<div>
<label for="passwordHint">${uiLabelMap.PartyPasswordHint}</label>
<input type="text" class='inputBox' maxlength="100" name="passwordHint" id="passwordHint" value="${userLoginData.passwordHint!}" />
<input type="text" class='inputBox' maxlength="100" name="passwordHint"
id="passwordHint" value="${userLoginData.passwordHint!}" />
</div>
<label>${uiLabelMap.CommonFieldsMarkedAreRequired}</label>
</fieldset>
</form>
<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">[${uiLabelMap.CommonGoBack}]</a>
<a href="javascript:document.getElementById('changepasswordform').submit()" class="button">[${uiLabelMap.CommonSave}]</a>
<a href="javascript:document.getElementById('changepasswordform').submit()" class="button">
[${uiLabelMap.CommonSave}]
</a>
</div>
</div>
+14 -13
View File
@@ -18,17 +18,18 @@ under the License.
-->
<div class="screenlet">
<div class="screenlet-title-bar">
<div class="h3">${survey.surveyName}</div>
</div>
<div class="screenlet-body">
<#-- Render the survey -->
<#if surveyWrapper?has_content>
<form method="post" enctype="multipart/form-data" action="<@ofbizUrl>profilesurvey/profilesurvey</@ofbizUrl>" style="margin: 0;">
${surveyWrapper.render()}
</form>
<#else>
<h1>${uiLabelMap.OrderNothingToDoHere}</h1>
</#if>
</div>
<div class="screenlet-title-bar">
<div class="h3">${survey.surveyName}</div>
</div>
<div class="screenlet-body">
<#-- Render the survey -->
<#if surveyWrapper?has_content>
<form method="post" enctype="multipart/form-data" action="<@ofbizUrl>profilesurvey/profilesurvey</@ofbizUrl>"
style="margin: 0;">
${surveyWrapper.render()}
</form>
<#else>
<h1>${uiLabelMap.OrderNothingToDoHere}</h1>
</#if>
</div>
</div>
@@ -20,76 +20,98 @@ under the License.
<#assign productPrice = productPriceList[0]!/>
<div class="screenlet">
<div class="screenlet-title-bar">
<div class="h3">${uiLabelMap.PageTitleDigitalProductEdit}</div>
</div>
<div class="screenlet-body">
<#if !supplierProduct?has_content && parameters.productId?has_content>
<div><h3>${uiLabelMap.EcommerceMessage1} [${parameters.productId}] ${uiLabelMap.EcommerceMessage2}</h3></div>
<#else>
<div class="screenlet-title-bar">
<div class="h3">${uiLabelMap.PageTitleDigitalProductEdit}</div>
</div>
<div class="screenlet-body">
<#if !supplierProduct?has_content && parameters.productId?has_content>
<div><h3>${uiLabelMap.EcommerceMessage1} [${parameters.productId}] ${uiLabelMap.EcommerceMessage2}</h3></div>
<#else>
<#if !supplierProduct??>
<h1>${uiLabelMap.EcommerceAddNewDigitalProduct}</h1>
<form method="post" action="<@ofbizUrl>createCustomerDigitalDownloadProduct</@ofbizUrl>" name="editdigitaluploadform" style="margin: 0;">
<input type="hidden" name="productStoreId" value="${productStore.productStoreId}" />
<form method="post" action="<@ofbizUrl>createCustomerDigitalDownloadProduct</@ofbizUrl>"
name="editdigitaluploadform" style="margin: 0;">
<input type="hidden" name="productStoreId" value="${productStore.productStoreId}"/>
<#else>
<h1>${uiLabelMap.EcommerceUpdateDigitalProduct}</h1>
<form method="post" action="<@ofbizUrl>updateCustomerDigitalDownloadProduct</@ofbizUrl>" name="editdigitaluploadform" style="margin: 0;">
<input type="hidden" name="productId" value="${parameters.productId}" />
<input type="hidden" name="currencyUomId" value="${parameters.currencyUomId}" />
<input type="hidden" name="minimumOrderQuantity" value="${parameters.minimumOrderQuantity}" />
<input type="hidden" name="availableFromDate" value="${parameters.availableFromDate}" />
</#if>
&nbsp;<a href="<@ofbizUrl>digitalproductlist</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonBackToList}</a>
<table width="90%" border="0" cellpadding="2" cellspacing="0">
<tr>
<td width="26%" align="right" valign="top"><div>${uiLabelMap.ProductProductName}</div></td>
<td width="5">&nbsp;</td>
<td width="74%"><input type="text" class="inputBox" size="30" maxlength="60" name="productName" value="${(product.productName)!}"/>*</td>
</tr>
<tr>
<td width="26%" align="right" valign="top"><div>${uiLabelMap.ProductProductDescription}</div></td>
<td width="5">&nbsp;</td>
<td width="74%"><input type="text" class="inputBox" size="30" maxlength="60" name="description" value="${(product.description)!}"/></td>
</tr>
<tr>
<td width="26%" align="right" valign="top"><div>${uiLabelMap.ProductPrice}</div></td>
<td width="5">&nbsp;</td>
<td width="74%"><input type="text" class="inputBox" size="30" maxlength="60" name="price" value="${(productPrice.price)!}"/>*</td>
</tr>
<tr>
<td width="26%" align="right" valign="top"><div>&nbsp;</div></td>
<td width="5">&nbsp;</td>
<td width="74%"><a href="javascript:document.editdigitaluploadform.submit()" class="buttontext">${uiLabelMap.CommonSave}</a></td>
</tr>
</table>
</form>
</#if>
</div>
<form method="post" action="<@ofbizUrl>updateCustomerDigitalDownloadProduct</@ofbizUrl>"
name="editdigitaluploadform" style="margin: 0;">
<input type="hidden" name="productId" value="${parameters.productId}"/>
<input type="hidden" name="currencyUomId" value="${parameters.currencyUomId}"/>
<input type="hidden" name="minimumOrderQuantity" value="${parameters.minimumOrderQuantity}"/>
<input type="hidden" name="availableFromDate" value="${parameters.availableFromDate}"/>
</#if>&nbsp;
<a href="<@ofbizUrl>digitalproductlist</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonBackToList}</a>
<table width="90%" border="0" cellpadding="2" cellspacing="0">
<tr>
<td width="26%" align="right" valign="top">
<div>${uiLabelMap.ProductProductName}</div>
</td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="30" maxlength="60"
name="productName" value="${(product.productName)!}"/>*
</td>
</tr>
<tr>
<td width="26%" align="right" valign="top">
<div>${uiLabelMap.ProductProductDescription}</div>
</td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="30" maxlength="60"
name="description" value="${(product.description)!}"/>
</td>
</tr>
<tr>
<td width="26%" align="right" valign="top">
<div>${uiLabelMap.ProductPrice}</div>
</td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="30" maxlength="60" name="price" value="${(productPrice.price)!}"/>*
</td>
</tr>
<tr>
<td width="26%" align="right" valign="top">
<div>&nbsp;</div>
</td>
<td width="5">&nbsp;</td>
<td width="74%">
<a href="javascript:document.editdigitaluploadform.submit()"
class="buttontext">${uiLabelMap.CommonSave}</a>
</td>
</tr>
</table>
</form>
</#if>
</div>
</div>
<#if supplierProduct?has_content>
<div class="screenlet">
<div class="screenlet">
<div class="screenlet-title-bar">
<div class="h3">${uiLabelMap.OrderDigitalProductFiles}</div>
<div class="h3">${uiLabelMap.OrderDigitalProductFiles}</div>
</div>
<div class="screenlet-body">
<#list productContentAndInfoList as productContentAndInfo>
<div>
${productContentAndInfo.contentName} (${uiLabelMap.CommonSince}: ${productContentAndInfo.fromDate})
<a href="<@ofbizUrl>removeCustomerDigitalDownloadProductFile?contentId=${productContentAndInfo.contentId}&amp;productContentTypeId=${productContentAndInfo.productContentTypeId}&amp;fromDate=${productContentAndInfo.fromDate}&amp;productId=${parameters.productId}&amp;currencyUomId=${parameters.currencyUomId}&amp;minimumOrderQuantity=${parameters.minimumOrderQuantity}&amp;availableFromDate=${parameters.availableFromDate}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonRemove}</a>
</div>
</#list>
<div><hr /></div>
<div class="tableheadtext">${uiLabelMap.EcommerceDigitalAddFromMyFiles}</div>
<#list productContentAndInfoList as productContentAndInfo>
<div>
<form method="post" action="<@ofbizUrl>addCustomerDigitalDownloadProductFile</@ofbizUrl>" name="adddigitaluploadfile" style="margin: 0;">
<input type="hidden" name="productId" value="${parameters.productId}" />
<input type="hidden" name="currencyUomId" value="${parameters.currencyUomId}" />
<input type="hidden" name="minimumOrderQuantity" value="${parameters.minimumOrderQuantity}" />
<input type="hidden" name="availableFromDate" value="${parameters.availableFromDate}" />
${productContentAndInfo.contentName} (${uiLabelMap.CommonSince}: ${productContentAndInfo.fromDate})
<a href="<@ofbizUrl>removeCustomerDigitalDownloadProductFile?contentId=${productContentAndInfo.contentId}&amp;productContentTypeId=${productContentAndInfo.productContentTypeId}&amp;fromDate=${productContentAndInfo.fromDate}&amp;productId=${parameters.productId}&amp;currencyUomId=${parameters.currencyUomId}&amp;minimumOrderQuantity=${parameters.minimumOrderQuantity}&amp;availableFromDate=${parameters.availableFromDate}</@ofbizUrl>"
class="buttontext">${uiLabelMap.CommonRemove}</a>
</div>
</#list>
<div>
<hr/>
</div>
<div class="tableheadtext">${uiLabelMap.EcommerceDigitalAddFromMyFiles}</div>
<div>
<form method="post" action="<@ofbizUrl>addCustomerDigitalDownloadProductFile</@ofbizUrl>"
name="adddigitaluploadfile" style="margin: 0;">
<input type="hidden" name="productId" value="${parameters.productId}"/>
<input type="hidden" name="currencyUomId" value="${parameters.currencyUomId}"/>
<input type="hidden" name="minimumOrderQuantity" value="${parameters.minimumOrderQuantity}"/>
<input type="hidden" name="availableFromDate" value="${parameters.availableFromDate}"/>
<select name="contentId" class="selectBox">
<#list ownerContentAndRoleList as ownerContentAndRole>
<option value="${ownerContentAndRole.contentId}">${ownerContentAndRole.contentName}</option>
@@ -97,8 +119,8 @@ under the License.
</select>
<a href="javascript:document.adddigitaluploadfile.submit()" class="buttontext">${uiLabelMap.CommonAdd}</a>
</form>
</div>
&nbsp;<a href="<@ofbizUrl>digitalproductlist</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonBackToList}</a>
</div>&nbsp;
<a href="<@ofbizUrl>digitalproductlist</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonBackToList}</a>
</div>
</div>
</div>
</#if>
@@ -18,52 +18,67 @@ under the License.
-->
<div class="screenlet">
<div class="screenlet-title-bar">
<div class="h3">${uiLabelMap.PageTitleDigitalProductList}</div>
</div>
<div class="screenlet-body">
<div>&nbsp;<a href="<@ofbizUrl>digitalproductedit</@ofbizUrl>" class="buttontext">${uiLabelMap.EcommerceDigitalNewProduct}</a></div>
<table width="100%" cellpadding="1" cellspacing="0" border="0">
<tr>
<td width="30%">
<div><b>${uiLabelMap.ProductProductName}</b></div>
</td>
<td width="5">&nbsp;</td>
<td width="45%">
<div><b>${uiLabelMap.CommonDescription}</b></div>
</td>
<td width="5">&nbsp;</td>
<td width="20%">&nbsp;</td>
</tr>
<#list supplierProductList as supplierProduct>
<#assign product = supplierProduct.getRelatedOne("Product", true)/>
<tr><td colspan="5"><hr /></td></tr>
<tr>
<td>
<div>${(product.productName)!}</div>
</td>
<td width="5">&nbsp;</td>
<td>
<div>${(product.description)!}</div>
</td>
<td width="5">&nbsp;</td>
<td align="right">
<a href="<@ofbizUrl>digitalproductedit?productId=${supplierProduct.productId}&amp;currencyUomId=${supplierProduct.currencyUomId}&amp;minimumOrderQuantity=${supplierProduct.minimumOrderQuantity}&amp;availableFromDate=${supplierProduct.availableFromDate}</@ofbizUrl>" class="buttontext">Edit</a>
</td>
</tr>
</#list>
<#if !supplierProductList?has_content>
<tr><td colspan="5"><h3>${uiLabelMap.EcommerceNoDigitalProductsFound}</h3></td></tr>
</#if>
</table>
<div class="screenlet-title-bar">
<div class="h3">${uiLabelMap.PageTitleDigitalProductList}</div>
</div>
<div class="screenlet-body">
<div>&nbsp;
<a href="<@ofbizUrl>digitalproductedit</@ofbizUrl>" class="buttontext">
${uiLabelMap.EcommerceDigitalNewProduct}
</a>
</div>
<table width="100%" cellpadding="1" cellspacing="0" border="0">
<tr>
<td width="30%">
<div><b>${uiLabelMap.ProductProductName}</b></div>
</td>
<td width="5">&nbsp;</td>
<td width="45%">
<div><b>${uiLabelMap.CommonDescription}</b></div>
</td>
<td width="5">&nbsp;</td>
<td width="20%">&nbsp;</td>
</tr>
<#list supplierProductList as supplierProduct>
<#assign product = supplierProduct.getRelatedOne("Product", true)/>
<tr>
<td colspan="5">
<hr/>
</td>
</tr>
<tr>
<td>
<div>${(product.productName)!}</div>
</td>
<td width="5">&nbsp;</td>
<td>
<div>${(product.description)!}</div>
</td>
<td width="5">&nbsp;</td>
<td align="right">
<a href="<@ofbizUrl>digitalproductedit?productId=${supplierProduct.productId}&amp;currencyUomId=${supplierProduct.currencyUomId}&amp;minimumOrderQuantity=${supplierProduct.minimumOrderQuantity}&amp;availableFromDate=${supplierProduct.availableFromDate}</@ofbizUrl>"
class="buttontext">Edit</a>
</td>
</tr>
</#list>
<#if !supplierProductList?has_content>
<tr>
<td colspan="5"><h3>${uiLabelMap.EcommerceNoDigitalProductsFound}</h3></td>
</tr>
</#if>
</table>
</div>
</div>
<div class="screenlet">
<div class="screenlet-title-bar">
<div class="h3">${uiLabelMap.EcommerceDigitalProductPurchaseHistoryCommission}</div>
</div>
<div class="screenlet-body">
<div>&nbsp;<a href="<@ofbizUrl>digitalproductedit</@ofbizUrl>" class="buttontext">${uiLabelMap.EcommerceDigitalNewProduct}</a></div>
<div class="screenlet-title-bar">
<div class="h3">${uiLabelMap.EcommerceDigitalProductPurchaseHistoryCommission}</div>
</div>
<div class="screenlet-body">
<div>&nbsp;
<a href="<@ofbizUrl>digitalproductedit</@ofbizUrl>" class="buttontext">
${uiLabelMap.EcommerceDigitalNewProduct}
</a>
</div>
</div>
</div>
+159 -124
View File
@@ -17,27 +17,30 @@ specific language governing permissions and limitations
under the License.
-->
<#if canNotView>
<h3>${uiLabelMap.PartyContactInfoNotBelongToYou}.</h3>
<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonBack}</a>
<h3>${uiLabelMap.PartyContactInfoNotBelongToYou}.</h3>
<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonBack}</a>
<#else>
<#if !contactMech??>
<#-- When creating a new contact mech, first select the type, then actually create -->
<#-- When creating a new contact mech, first select the type, then actually create -->
<#if !requestParameters.preContactMechTypeId?? && !preContactMechTypeId??>
<h2>${uiLabelMap.PartyCreateNewContactInfo}</h2>
<form method="post" action='<@ofbizUrl>editcontactmechnosave</@ofbizUrl>' name="createcontactmechform">
<div>
<table width="90%" border="0" cellpadding="2" cellspacing="0">
<tr>
<td>${uiLabelMap.PartySelectContactType}:</td>
<td>
<select name="preContactMechTypeId" class='selectBox'>
<#list contactMechTypes as contactMechType>
<option value='${contactMechType.contactMechTypeId}'>${contactMechType.get("description",locale)}</option>
</#list>
</select>&nbsp;<a href="javascript:document.createcontactmechform.submit()" class="button">${uiLabelMap.CommonCreate}</a>
</td>
</tr>
</table>
<table width="90%" border="0" cellpadding="2" cellspacing="0">
<tr>
<td>${uiLabelMap.PartySelectContactType}:</td>
<td>
<select name="preContactMechTypeId" class='selectBox'>
<#list contactMechTypes as contactMechType>
<option value='${contactMechType.contactMechTypeId}'>
${contactMechType.get("description",locale)}
</option>
</#list>
</select>&nbsp;
<a href="javascript:document.createcontactmechform.submit()" class="button">${uiLabelMap.CommonCreate}</a>
</td>
</tr>
</table>
</div>
</form>
<#-- <p><h3>ERROR: Contact information with ID "${contactMechId}" not found!</h3></p> -->
@@ -46,80 +49,95 @@ under the License.
<#if contactMechTypeId??>
<#if !contactMech??>
<h2>${uiLabelMap.PartyCreateNewContactInfo}</h2>
<a href='<@ofbizUrl>${donePage}</@ofbizUrl>' class="button">${uiLabelMap.CommonGoBack}</a>
<a href="javascript:document.editcontactmechform.submit()" class="button">${uiLabelMap.CommonSave}</a>
<table width="90%" border="0" cellpadding="2" cellspacing="0">
<form method="post" action='<@ofbizUrl>${reqName}</@ofbizUrl>' name="editcontactmechform" id="editcontactmechform">
<div>
<input type='hidden' name='contactMechTypeId' value='${contactMechTypeId}' />
<#if contactMechPurposeType??>
<div>(${uiLabelMap.PartyNewContactHavePurpose} "${contactMechPurposeType.get("description",locale)!}")</div>
</#if>
<#if cmNewPurposeTypeId?has_content><input type='hidden' name='contactMechPurposeTypeId' value='${cmNewPurposeTypeId}' /></#if>
<#if preContactMechTypeId?has_content><input type='hidden' name='preContactMechTypeId' value='${preContactMechTypeId}' /></#if>
<#if paymentMethodId?has_content><input type='hidden' name='paymentMethodId' value='${paymentMethodId}' /></#if>
<h2>${uiLabelMap.PartyCreateNewContactInfo}</h2>
<a href='<@ofbizUrl>${donePage}</@ofbizUrl>' class="button">${uiLabelMap.CommonGoBack}</a>
<a href="javascript:document.editcontactmechform.submit()" class="button">${uiLabelMap.CommonSave}</a>
<table width="90%" border="0" cellpadding="2" cellspacing="0">
<form method="post" action='<@ofbizUrl>${reqName}</@ofbizUrl>' name="editcontactmechform" id="editcontactmechform">
<div>
<input type='hidden' name='contactMechTypeId' value='${contactMechTypeId}'/>
<#if contactMechPurposeType??>
<div>(${uiLabelMap.PartyNewContactHavePurpose} "${contactMechPurposeType.get("description",locale)!}")</div>
</#if>
<#if cmNewPurposeTypeId?has_content>
<input type='hidden' name='contactMechPurposeTypeId' value='${cmNewPurposeTypeId}'/>
</#if>
<#if preContactMechTypeId?has_content>
<input type='hidden' name='preContactMechTypeId' value='${preContactMechTypeId}'/>
</#if>
<#if paymentMethodId?has_content>
<input type='hidden' name='paymentMethodId' value='${paymentMethodId}'/>
</#if>
<#else>
<h2>${uiLabelMap.PartyEditContactInfo}</h2>
<h2>${uiLabelMap.PartyEditContactInfo}</h2>
<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>
<a href="javascript:document.editcontactmechform.submit()" class="button">${uiLabelMap.CommonSave}</a>
<table width="90%" border="0" cellpadding="2" cellspacing="0">
<tr>
<td align="right" valign="top">${uiLabelMap.PartyContactPurposes}</td>
<td>&nbsp;</td>
<td>
<table border="0" cellspacing="1">
<#list partyContactMechPurposes! as partyContactMechPurpose>
<#assign contactMechPurposeType = partyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true) />
<tr>
<td>
<#if contactMechPurposeType??>
${contactMechPurposeType.get("description",locale)}
<#else>
${uiLabelMap.PartyPurposeTypeNotFound}: "${partyContactMechPurpose.contactMechPurposeTypeId}"
</#if>
(${uiLabelMap.CommonSince}:${partyContactMechPurpose.fromDate.toString()})
<#if partyContactMechPurpose.thruDate??>(${uiLabelMap.CommonExpires}:${partyContactMechPurpose.thruDate.toString()})</#if>
</td>
<td>
<form name="deletePartyContactMechPurpose_${partyContactMechPurpose.contactMechPurposeTypeId}" method="post" action="<@ofbizUrl>deletePartyContactMechPurpose</@ofbizUrl>">
<div>
<input type="hidden" name="contactMechId" value="${contactMechId}"/>
<input type="hidden" name="contactMechPurposeTypeId" value="${partyContactMechPurpose.contactMechPurposeTypeId}"/>
<input type="hidden" name="fromDate" value="${partyContactMechPurpose.fromDate}"/>
<input type="hidden" name="useValues" value="true"/>
<a href='javascript:document.deletePartyContactMechPurpose_${partyContactMechPurpose.contactMechPurposeTypeId}.submit()' class='button'>&nbsp;${uiLabelMap.CommonDelete}&nbsp;</a>
</div>
</form>
</td>
</tr>
</#list>
<#if purposeTypes?has_content>
<table width="90%" border="0" cellpadding="2" cellspacing="0">
<tr>
<td align="right" valign="top">${uiLabelMap.PartyContactPurposes}</td>
<td>&nbsp;</td>
<td>
<table border="0" cellspacing="1">
<#list partyContactMechPurposes! as partyContactMechPurpose>
<#assign contactMechPurposeType = partyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true) />
<tr>
<td>
<form method="post" action='<@ofbizUrl>createPartyContactMechPurpose</@ofbizUrl>' name='newpurposeform'>
<#if contactMechPurposeType??>
${contactMechPurposeType.get("description",locale)}
<#else>
${uiLabelMap.PartyPurposeTypeNotFound}: "${partyContactMechPurpose.contactMechPurposeTypeId}"
</#if>
(${uiLabelMap.CommonSince}:${partyContactMechPurpose.fromDate.toString()})
<#if partyContactMechPurpose.thruDate??>(${uiLabelMap.CommonExpires}
:${partyContactMechPurpose.thruDate.toString()})</#if>
</td>
<td>
<form name="deletePartyContactMechPurpose_${partyContactMechPurpose.contactMechPurposeTypeId}"
method="post" action="<@ofbizUrl>deletePartyContactMechPurpose</@ofbizUrl>">
<div>
<input type="hidden" name="contactMechId" value="${contactMechId}"/>
<input type="hidden" name="useValues" value="true"/>
<input type="hidden" name="contactMechId" value="${contactMechId}"/>
<input type="hidden" name="contactMechPurposeTypeId"
value="${partyContactMechPurpose.contactMechPurposeTypeId}"/>
<input type="hidden" name="fromDate" value="${partyContactMechPurpose.fromDate}"/>
<input type="hidden" name="useValues" value="true"/>
<a href='javascript:document.deletePartyContactMechPurpose_${partyContactMechPurpose.contactMechPurposeTypeId}.submit()'
class='button'>&nbsp;${uiLabelMap.CommonDelete}&nbsp;</a>
</div>
</form>
</td>
</tr>
</#list>
<#if purposeTypes?has_content>
<tr>
<td>
<form method="post" action='<@ofbizUrl>createPartyContactMechPurpose</@ofbizUrl>'
name='newpurposeform'>
<div>
<input type="hidden" name="contactMechId" value="${contactMechId}"/>
<input type="hidden" name="useValues" value="true"/>
<select name='contactMechPurposeTypeId' class='selectBox'>
<option></option>
<#list purposeTypes as contactMechPurposeType>
<option value='${contactMechPurposeType.contactMechPurposeTypeId}'>${contactMechPurposeType.get("description",locale)}</option>
<option value='${contactMechPurposeType.contactMechPurposeTypeId}'>
${contactMechPurposeType.get("description",locale)}
</option>
</#list>
</select>
</div>
</div>
</form>
</td>
<td><a href='javascript:document.newpurposeform.submit()' class='button'>${uiLabelMap.PartyAddPurpose}</a></td>
<td>
<a href='javascript:document.newpurposeform.submit()' class='button'>${uiLabelMap.PartyAddPurpose}</a>
</td>
</tr>
</#if>
</table>
</td>
</tr>
<form method="post" action='<@ofbizUrl>${reqName}</@ofbizUrl>' name="editcontactmechform" id="editcontactmechform">
<div>
<input type="hidden" name="contactMechId" value='${contactMechId}' />
<input type="hidden" name="contactMechTypeId" value='${contactMechTypeId}' />
</#if>
</table>
</td>
</tr>
<form method="post" action='<@ofbizUrl>${reqName}</@ofbizUrl>' name="editcontactmechform" id="editcontactmechform">
<div>
<input type="hidden" name="contactMechId" value='${contactMechId}'/>
<input type="hidden" name="contactMechTypeId" value='${contactMechTypeId}'/>
</#if>
<#if contactMechTypeId = "POSTAL_ADDRESS">
@@ -127,67 +145,74 @@ under the License.
<td align="right" valign="top">${uiLabelMap.PartyToName}</td>
<td>&nbsp;</td>
<td>
<input type="text" class='inputBox' size="30" maxlength="60" name="toName" value="${postalAddressData.toName!}" />
<input type="text" class='inputBox' size="30" maxlength="60" name="toName"
value="${postalAddressData.toName!}"/>
</td>
</tr>
<tr>
<td align="right" valign="top">${uiLabelMap.PartyAttentionName}</td>
<td>&nbsp;</td>
<td>
<input type="text" class='inputBox' size="30" maxlength="60" name="attnName" value="${postalAddressData.attnName!}" />
<input type="text" class='inputBox' size="30" maxlength="60" name="attnName"
value="${postalAddressData.attnName!}"/>
</td>
</tr>
<tr>
<td align="right" valign="top">${uiLabelMap.PartyAddressLine1}</td>
<td>&nbsp;</td>
<td>
<input type="text" class='inputBox' size="30" maxlength="30" name="address1" value="${postalAddressData.address1!}" />
*</td>
<input type="text" class='inputBox' size="30" maxlength="30" name="address1"
value="${postalAddressData.address1!}"/>*
</td>
</tr>
<tr>
<td align="right" valign="top">${uiLabelMap.PartyAddressLine2}</td>
<td>&nbsp;</td>
<td>
<input type="text" class='inputBox' size="30" maxlength="30" name="address2" value="${postalAddressData.address2!}" />
<input type="text" class='inputBox' size="30" maxlength="30" name="address2"
value="${postalAddressData.address2!}"/>
</td>
</tr>
<tr>
<td align="right" valign="top">${uiLabelMap.PartyCity}</td>
<td>&nbsp;</td>
<td>
<input type="text" class='inputBox' size="30" maxlength="30" name="city" value="${postalAddressData.city!}" />
*</td>
<input type="text" class='inputBox' size="30" maxlength="30" name="city" value="${postalAddressData.city!}"/>*
</td>
</tr>
<tr>
<td align="right" valign="top"> ${uiLabelMap.PartyState}
<td>&nbsp;</td>
<td>
<td>
<select name="stateProvinceGeoId" id="editcontactmechform_stateProvinceGeoId">
</select>
</td>
</tr>
</tr>
<tr>
<td align="right" valign="top">${uiLabelMap.PartyZipCode}</td>
<td >&nbsp;</td>
<td>&nbsp;</td>
<td>
<input type="text" class='inputBox' size="12" maxlength="10" name="postalCode" value="${postalAddressData.postalCode!}" />
*</td>
<input type="text" class='inputBox' size="12" maxlength="10" name="postalCode"
value="${postalAddressData.postalCode!}"/>*
</td>
</tr>
<tr>
<tr>
<td align="right" valign="top">${uiLabelMap.CommonCountry}</td>
<td>&nbsp;</td>
<td>
<select name="countryGeoId" id="editcontactmechform_countryGeoId">
${screens.render("component://common/widget/CommonScreens.xml#countries")}
<#if (postalAddress??) && (postalAddress.countryGeoId??)>
<#assign defaultCountryGeoId = postalAddress.countryGeoId>
<#else>
<#assign defaultCountryGeoId = Static["org.apache.ofbiz.entity.util.EntityUtilProperties"].getPropertyValue("general", "country.geo.id.default", delegator)>
</#if>
<option selected="selected" value="${defaultCountryGeoId}">
<#assign countryGeo = delegator.findOne("Geo",Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("geoId",defaultCountryGeoId), false)>
${countryGeo.get("geoName",locale)}
</option>
${screens.render("component://common/widget/CommonScreens.xml#countries")}
<#if (postalAddress??) && (postalAddress.countryGeoId??)>
<#assign defaultCountryGeoId = postalAddress.countryGeoId>
<#else>
<#assign defaultCountryGeoId = Static["org.apache.ofbiz.entity.util.EntityUtilProperties"]
.getPropertyValue("general", "country.geo.id.default", delegator)>
</#if>
<option selected="selected" value="${defaultCountryGeoId}">
<#assign countryGeo = delegator.findOne("Geo",Static["org.apache.ofbiz.base.util.UtilMisc"]
.toMap("geoId",defaultCountryGeoId), false)>
${countryGeo.get("geoName",locale)}
</option>
</select>
</td>
</tr>
@@ -196,54 +221,64 @@ under the License.
<td align="right" valign="top">${uiLabelMap.PartyPhoneNumber}</td>
<td>&nbsp;</td>
<td>
<input type="text" class='inputBox' size="4" maxlength="10" name="countryCode" value="${telecomNumberData.countryCode!}" />
-&nbsp;<input type="text" class='inputBox' size="4" maxlength="10" name="areaCode" value="${telecomNumberData.areaCode!}" />
-&nbsp;<input type="text" class='inputBox' size="15" maxlength="15" name="contactNumber" value="${telecomNumberData.contactNumber!}" />
&nbsp;${uiLabelMap.PartyExtension}&nbsp;<input type="text" class='inputBox' size="6" maxlength="10" name="extension" value="${partyContactMechData.extension!}" />
<input type="text" class='inputBox' size="4" maxlength="10" name="countryCode"
value="${telecomNumberData.countryCode!}"/>-&nbsp;
<input type="text" class='inputBox' size="4" maxlength="10" name="areaCode"
value="${telecomNumberData.areaCode!}"/>-&nbsp;
<input type="text" class='inputBox' size="15" maxlength="15" name="contactNumber"
value="${telecomNumberData.contactNumber!}"/>&nbsp;
${uiLabelMap.PartyExtension}&nbsp;
<input type="text" class='inputBox' size="6" maxlength="10"
name="extension" value="${partyContactMechData.extension!}"/>
</td>
</tr>
<tr>
<td align="right" valign="top"></td>
<td>&nbsp;</td>
<td>[${uiLabelMap.CommonCountryCode}] [${uiLabelMap.PartyAreaCode}] [${uiLabelMap.PartyContactNumber}] [${uiLabelMap.PartyExtension}]</td>
<td>[${uiLabelMap.CommonCountryCode}] [${uiLabelMap.PartyAreaCode}] [${uiLabelMap.PartyContactNumber}]
[${uiLabelMap.PartyExtension}]
</td>
</tr>
<#elseif contactMechTypeId = "EMAIL_ADDRESS">
<tr>
<td align="right" valign="top">${uiLabelMap.PartyEmailAddress}</td>
<td>&nbsp;</td>
<td>
<input type="text" class='inputBox' size="60" maxlength="255" name="emailAddress" value="<#if tryEntity>${contactMech.infoString!}<#else>${requestParameters.emailAddress!}</#if>" />
*</td>
<input type="text" class='inputBox' size="60" maxlength="255" name="emailAddress"
value="<#if tryEntity>${contactMech.infoString!}<#else>${requestParameters.emailAddress!}</#if>"/>*
</td>
</tr>
<#else>
<tr>
<td align="right" valign="top">${contactMechType.get("description",locale)!}</td>
<td>&nbsp;</td>
<td>
<input type="text" class='inputBox' size="60" maxlength="255" name="infoString" value="${contactMechData.infoString!}" />
*</td>
</tr>
</#if>
<tr>
<td align="right" valign="top">${uiLabelMap.PartyAllowSolicitation}?</td>
<td>&nbsp;</td>
<td>
<select name="allowSolicitation" class='selectBox'>
<#if (((partyContactMechData.allowSolicitation)!"") == "Y")><option value="Y">${uiLabelMap.CommonY}</option></#if>
<#if (((partyContactMechData.allowSolicitation)!"") == "N")><option value="N">${uiLabelMap.CommonN}</option></#if>
<option></option>
<option value="Y">${uiLabelMap.CommonY}</option>
<option value="N">${uiLabelMap.CommonN}</option>
</select>
<input type="text" class='inputBox' size="60" maxlength="255" name="infoString"
value="${contactMechData.infoString!}"/>*
</td>
</tr>
</div>
</form>
</#if>
<tr>
<td align="right" valign="top">${uiLabelMap.PartyAllowSolicitation}?</td>
<td>&nbsp;</td>
<td>
<select name="allowSolicitation" class='selectBox'>
<#if (((partyContactMechData.allowSolicitation)!"") == "Y")>
<option value="Y">${uiLabelMap.CommonY}</option></#if>
<#if (((partyContactMechData.allowSolicitation)!"") == "N")>
<option value="N">${uiLabelMap.CommonN}</option></#if>
<option></option>
<option value="Y">${uiLabelMap.CommonY}</option>
<option value="N">${uiLabelMap.CommonN}</option>
</select>
</td>
</tr>
</div>
</form>
</table>
<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>
<a href="javascript:document.editcontactmechform.submit()" class="button">${uiLabelMap.CommonSave}</a>
<#else>
<#else>
<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>
</#if>
</#if>
+133 -112
View File
@@ -19,124 +19,145 @@ under the License.
<#if canNotView>
<h3>${uiLabelMap.AccountingCardInfoNotBelongToYou}.</h3>
<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>
<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>
<#else>
<#if !creditCard??>
<h2>${uiLabelMap.AccountingAddNewCreditCard}</h2>
<form method="post" action="<@ofbizUrl>createCreditCard?DONE_PAGE=${donePage}</@ofbizUrl>" name="editcreditcardform">
<div>
<#else>
<h2>${uiLabelMap.AccountingEditCreditCard}</h2>
<form method="post" action="<@ofbizUrl>updateCreditCard?DONE_PAGE=${donePage}</@ofbizUrl>" name="editcreditcardform">
<div>
<input type="hidden" name="paymentMethodId" value="${paymentMethodId}" />
</#if>
&nbsp;<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>
&nbsp;<a href="javascript:document.editcreditcardform.submit()" class="button">${uiLabelMap.CommonSave}</a>
<p/>
<table width="90%" border="0" cellpadding="2" cellspacing="0">
${screens.render("component://accounting/widget/CommonScreens.xml#creditCardFields")}
<tr>
<td align="right" valign="top">${uiLabelMap.PartyBillingAddress}</td>
<td>&nbsp;</td>
<td>
<#-- Removed because is confusing, can add but would have to come back here with all data populated as before...
<a href="<@ofbizUrl>editcontactmech</@ofbizUrl>" class="buttontext">
[Create New Address]</a>&nbsp;&nbsp;
-->
<table width="100%" border="0" cellpadding="1">
<#assign hasCurrent = false />
<#if curPostalAddress?has_content>
<#assign hasCurrent = true />
<tr>
<td align="right" valign="top">
<input type="radio" name="contactMechId" value="${curContactMechId}" checked="checked" />
</td>
<td valign="top">
${uiLabelMap.PartyUseCurrentAddress}:
<#list curPartyContactMechPurposes as curPartyContactMechPurpose>
<#assign curContactMechPurposeType = curPartyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true) />
<div>
${curContactMechPurposeType.get("description",locale)!}
<#if curPartyContactMechPurpose.thruDate??>
((${uiLabelMap.CommonExpire}:${curPartyContactMechPurpose.thruDate.toString()})
</#if>
</div>
</#list>
<div>
<#if curPostalAddress.toName??>${uiLabelMap.CommonTo}: ${curPostalAddress.toName}<br /></#if>
<#if curPostalAddress.attnName??>${uiLabelMap.PartyAddrAttnName}: ${curPostalAddress.attnName}<br /></#if>
${curPostalAddress.address1!}<br />
<#if curPostalAddress.address2??>${curPostalAddress.address2}<br /></#if>
${curPostalAddress.city}<#if curPostalAddress.stateProvinceGeoId?has_content>,&nbsp;${curPostalAddress.stateProvinceGeoId}</#if>&nbsp;${curPostalAddress.postalCode}
<#if curPostalAddress.countryGeoId??><br />${curPostalAddress.countryGeoId}</#if>
<div>(${uiLabelMap.CommonUpdated}:&nbsp;${(curPartyContactMech.fromDate.toString())!})</div>
<#if curPartyContactMech.thruDate??><div>${uiLabelMap.CommonDelete}:&nbsp;${curPartyContactMech.thruDate.toString()}</#if>
</div>
</td>
</tr>
<#else>
<#-- <tr>
<td valign="top" colspan="2">
<div>${uiLabelMap.PartyBillingAddressNotSelected}</div>
</td>
</tr> -->
</#if>
<h2>${uiLabelMap.AccountingAddNewCreditCard}</h2>
<form method="post" action="<@ofbizUrl>createCreditCard?DONE_PAGE=${donePage}</@ofbizUrl>" name="editcreditcardform">
<div>
<#else>
<h2>${uiLabelMap.AccountingEditCreditCard}</h2>
<form method="post" action="<@ofbizUrl>updateCreditCard?DONE_PAGE=${donePage}</@ofbizUrl>" name="editcreditcardform">
<div>
<input type="hidden" name="paymentMethodId" value="${paymentMethodId}"/>
</#if>&nbsp;
<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>&nbsp;
<a href="javascript:document.editcreditcardform.submit()" class="button">${uiLabelMap.CommonSave}</a>
<p/>
<table width="90%" border="0" cellpadding="2" cellspacing="0">
${screens.render("component://accounting/widget/CommonScreens.xml#creditCardFields")}
<tr>
<td align="right" valign="top">${uiLabelMap.PartyBillingAddress}</td>
<td>&nbsp;</td>
<td>
<#-- Removed because is confusing, can add but would have to come back here with all data populated as before...
<a href="<@ofbizUrl>editcontactmech</@ofbizUrl>" class="buttontext">
[Create New Address]</a>&nbsp;&nbsp;
-->
<table width="100%" border="0" cellpadding="1">
<#assign hasCurrent = false />
<#if curPostalAddress?has_content>
<#assign hasCurrent = true />
<tr>
<td align="right" valign="top">
<input type="radio" name="contactMechId" value="${curContactMechId}" checked="checked"/>
</td>
<td valign="top">
${uiLabelMap.PartyUseCurrentAddress}:
<#list curPartyContactMechPurposes as curPartyContactMechPurpose>
<#assign curContactMechPurposeType =
curPartyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true) />
<div>
${curContactMechPurposeType.get("description",locale)!}
<#if curPartyContactMechPurpose.thruDate??>
((${uiLabelMap.CommonExpire}:${curPartyContactMechPurpose.thruDate.toString()})
</#if>
</div>
</#list>
<div>
<#if curPostalAddress.toName??>${uiLabelMap.CommonTo}: ${curPostalAddress.toName}<br/></#if>
<#if curPostalAddress.attnName??>${uiLabelMap.PartyAddrAttnName}: ${curPostalAddress.attnName}
<br/>
</#if>
${curPostalAddress.address1!}<br/>
<#if curPostalAddress.address2??>${curPostalAddress.address2}<br/></#if>
${curPostalAddress.city}
<#if curPostalAddress.stateProvinceGeoId?has_content>,&nbsp;
${curPostalAddress.stateProvinceGeoId}
</#if>&nbsp;${curPostalAddress.postalCode}
<#if curPostalAddress.countryGeoId??><br/>${curPostalAddress.countryGeoId}</#if>
<div>(${uiLabelMap.CommonUpdated}:&nbsp;${(curPartyContactMech.fromDate.toString())!})</div>
<#if curPartyContactMech.thruDate??>
<div>${uiLabelMap.CommonDelete}:&nbsp;${curPartyContactMech.thruDate.toString()}
</#if>
</div>
</td>
</tr>
<#else>
<#-- <tr>
<td valign="top" colspan="2">
<div>${uiLabelMap.PartyBillingAddressNotSelected}</div>
</td>
</tr> -->
</#if>
<#-- is confusing
<tr>
<td valign="top" colspan="2">
<div>${uiLabelMap.EcommerceMessage3}</div>
</td>
</tr>
-->
<#list postalAddressInfos as postalAddressInfo>
<#assign contactMech = postalAddressInfo.contactMech />
<#assign partyContactMechPurposes = postalAddressInfo.partyContactMechPurposes />
<#assign postalAddress = postalAddressInfo.postalAddress />
<#assign partyContactMech = postalAddressInfo.partyContactMech />
<tr>
<td align="right" valign="top">
<input type="radio" name="contactMechId" value="${contactMech.contactMechId}"/>
</td>
<td valign="middle">
<#list partyContactMechPurposes as partyContactMechPurpose>
<#assign contactMechPurposeType =
partyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true) />
<div>
${contactMechPurposeType.get("description",locale)!}
<#if partyContactMechPurpose.thruDate??>
(${uiLabelMap.CommonExpire}:${partyContactMechPurpose.thruDate})
</#if>
</div>
</#list>
<div>
<#if postalAddress.toName??>${uiLabelMap.CommonTo}: ${postalAddress.toName}<br/></#if>
<#if postalAddress.attnName??>${uiLabelMap.PartyAddrAttnName}: ${postalAddress.attnName}<br/></#if>
${postalAddress.address1!}<br/>
<#if postalAddress.address2??>${postalAddress.address2}<br/></#if>
${postalAddress.city}
<#if postalAddress.stateProvinceGeoId?has_content>
,&nbsp;${postalAddress.stateProvinceGeoId}
</#if>&nbsp;
${postalAddress.postalCode}
<#if postalAddress.countryGeoId??><br/>${postalAddress.countryGeoId}</#if>
</div>
<div>(${uiLabelMap.CommonUpdated}:&nbsp;${(partyContactMech.fromDate.toString())!})</div>
<#if partyContactMech.thruDate??>
<div>${uiLabelMap.CommonDelete}:&nbsp;${partyContactMech.thruDate.toString()}</div>
</#if>
</td>
</tr>
</#list>
<#if !postalAddressInfos?has_content && !curContactMech??>
<tr>
<td colspan="2">
<div>${uiLabelMap.PartyNoContactInformation}.</div>
</td>
</tr>
</#if>
<tr>
<td valign="top" colspan="2">
<div>${uiLabelMap.EcommerceMessage3}</div>
<td align="right" valign="top">
<input type="radio" name="contactMechId" value="_NEW_" <#if !hasCurrent>checked="checked"</#if>/>
</td>
<td valign="middle">
<span>${uiLabelMap.PartyCreateNewBillingAddress}.</span>
</td>
</tr>
-->
<#list postalAddressInfos as postalAddressInfo>
<#assign contactMech = postalAddressInfo.contactMech />
<#assign partyContactMechPurposes = postalAddressInfo.partyContactMechPurposes />
<#assign postalAddress = postalAddressInfo.postalAddress />
<#assign partyContactMech = postalAddressInfo.partyContactMech />
<tr>
<td align="right" valign="top">
<input type="radio" name="contactMechId" value="${contactMech.contactMechId}" />
</td>
<td valign="middle">
<#list partyContactMechPurposes as partyContactMechPurpose>
<#assign contactMechPurposeType = partyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true) />
<div>
${contactMechPurposeType.get("description",locale)!}
<#if partyContactMechPurpose.thruDate??>(${uiLabelMap.CommonExpire}:${partyContactMechPurpose.thruDate})</#if>
</div>
</#list>
<div>
<#if postalAddress.toName??>${uiLabelMap.CommonTo}: ${postalAddress.toName}<br /></#if>
<#if postalAddress.attnName??>${uiLabelMap.PartyAddrAttnName}: ${postalAddress.attnName}<br /></#if>
${postalAddress.address1!}<br />
<#if postalAddress.address2??>${postalAddress.address2}<br /></#if>
${postalAddress.city}<#if postalAddress.stateProvinceGeoId?has_content>,&nbsp;${postalAddress.stateProvinceGeoId}</#if>&nbsp;${postalAddress.postalCode}
<#if postalAddress.countryGeoId??><br />${postalAddress.countryGeoId}</#if>
</div>
<div>(${uiLabelMap.CommonUpdated}:&nbsp;${(partyContactMech.fromDate.toString())!})</div>
<#if partyContactMech.thruDate??><div>${uiLabelMap.CommonDelete}:&nbsp;${partyContactMech.thruDate.toString()}</div></#if>
</td>
</tr>
</#list>
<#if !postalAddressInfos?has_content && !curContactMech??>
<tr><td colspan="2"><div>${uiLabelMap.PartyNoContactInformation}.</div></td></tr>
</#if>
<tr>
<td align="right" valign="top">
<input type="radio" name="contactMechId" value="_NEW_" <#if !hasCurrent>checked="checked"</#if> />
</td>
<td valign="middle">
<span>${uiLabelMap.PartyCreateNewBillingAddress}.</span>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</form>
</table>
</td>
</tr>
</table>
</div>
</form>
&nbsp;<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>
&nbsp;<a href="javascript:document.editcreditcardform.submit()" class="button">${uiLabelMap.CommonSave}</a>
&nbsp;<a href="javascript:document.editcreditcardform.submit()" class="button">${uiLabelMap.CommonSave}</a>
</#if>
+146 -95
View File
@@ -18,51 +18,67 @@ under the License.
-->
<#if canNotView>
<p><h3>${uiLabelMap.AccountingEFTNotBelongToYou}.</h3></p>
&nbsp;<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonGoBack}</a>
<p><h3>${uiLabelMap.AccountingEFTNotBelongToYou}.</h3></p>&nbsp;
<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonGoBack}</a>
<#else>
<#if !eftAccount??>
<h1>${uiLabelMap.AccountingAddNewEftAccount}</h1>
<form method="post" action="<@ofbizUrl>createEftAccount?DONE_PAGE=${donePage}</@ofbizUrl>" name="editeftaccountform" style="margin: 0;">
<#else>
<h1>${uiLabelMap.PageTitleEditEFTAccount}</h1>
<form method="post" action="<@ofbizUrl>updateEftAccount?DONE_PAGE=${donePage}</@ofbizUrl>" name="editeftaccountform" style="margin: 0;">
<input type="hidden" name="paymentMethodId" value="${paymentMethodId}" />
</#if>
&nbsp;<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>
&nbsp;<a href="javascript:document.editeftaccountform.submit()" class="button">${uiLabelMap.CommonSave}</a>
<p/>
<table width="90%" border="0" cellpadding="2" cellspacing="0">
<#if !eftAccount??>
<h1>${uiLabelMap.AccountingAddNewEftAccount}</h1>
<form method="post" action="<@ofbizUrl>createEftAccount?DONE_PAGE=${donePage}</@ofbizUrl>" name="editeftaccountform"
style="margin: 0;">
<#else>
<h1>${uiLabelMap.PageTitleEditEFTAccount}</h1>
<form method="post" action="<@ofbizUrl>updateEftAccount?DONE_PAGE=${donePage}</@ofbizUrl>" name="editeftaccountform"
style="margin: 0;">
<input type="hidden" name="paymentMethodId" value="${paymentMethodId}"/>
</#if>&nbsp;
<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>&nbsp;
<a href="javascript:document.editeftaccountform.submit()" class="button">${uiLabelMap.CommonSave}</a>
<p/>
<table width="90%" border="0" cellpadding="2" cellspacing="0">
<tr>
<td width="26%" align="right" valign="top"><div>${uiLabelMap.AccountingNameOnAccount}</div></td>
<td width="26%" align="right" valign="top">
<div>${uiLabelMap.AccountingNameOnAccount}</div>
</td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="30" maxlength="60" name="nameOnAccount" value="${eftAccountData.nameOnAccount!}" />
*</td>
</tr>
<tr>
<td width="26%" align="right" valign="top"><div>${uiLabelMap.AccountingCompanyNameOnAccount}</div></td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="30" maxlength="60" name="companyNameOnAccount" value="${eftAccountData.companyNameOnAccount!}" />
<input type="text" class="inputBox" size="30" maxlength="60" name="nameOnAccount"
value="${eftAccountData.nameOnAccount!}"/>*
</td>
</tr>
<tr>
<td width="26%" align="right" valign="top"><div>${uiLabelMap.AccountingBankName}</div></td>
<td width="26%" align="right" valign="top">
<div>${uiLabelMap.AccountingCompanyNameOnAccount}</div>
</td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="30" maxlength="60" name="bankName" value="${eftAccountData.bankName!}" />
*</td>
<input type="text" class="inputBox" size="30" maxlength="60" name="companyNameOnAccount"
value="${eftAccountData.companyNameOnAccount!}"/>
</td>
</tr>
<tr>
<td width="26%" align="right" valign="top"><div>${uiLabelMap.AccountingRoutingNumber}</div></td>
<td width="26%" align="right" valign="top">
<div>${uiLabelMap.AccountingBankName}</div>
</td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="10" maxlength="30" name="routingNumber" value="${eftAccountData.routingNumber!}" />
*</td>
<input type="text" class="inputBox" size="30" maxlength="60"
name="bankName"value="${eftAccountData.bankName!}"/>*
</td>
</tr>
<tr>
<td width="26%" align="right" valign="top"><div>${uiLabelMap.AccountingAccountType}</div></td>
<td width="26%" align="right" valign="top">
<div>${uiLabelMap.AccountingRoutingNumber}</div>
</td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="10" maxlength="30"
name="routingNumber" value="${eftAccountData.routingNumber!}"/>*
</td>
</tr>
<tr>
<td width="26%" align="right" valign="top">
<div>${uiLabelMap.AccountingAccountType}</div>
</td>
<td width="5">&nbsp;</td>
<td width="74%">
<select name="accountType" class="selectBox">
@@ -70,26 +86,33 @@ under the License.
<option></option>
<option>${uiLabelMap.CommonChecking}</option>
<option>${uiLabelMap.CommonSavings}</option>
</select>
*</td>
</tr>
<tr>
<td width="26%" align="right" valign="top"><div>${uiLabelMap.AccountingAccountNumber}</div></td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="20" maxlength="40" name="accountNumber" value="${eftAccountData.accountNumber!}" />
*</td>
</tr>
<tr>
<td width="26%" align="right" valign="top"><div>${uiLabelMap.CommonDescription}</div></td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="30" maxlength="60" name="description" value="${paymentMethodData.description!}" />
</select>*
</td>
</tr>
<tr>
<td width="26%" align="right" valign="top"><div>${uiLabelMap.PartyBillingAddress}</div></td>
<td width="26%" align="right" valign="top">
<div>${uiLabelMap.AccountingAccountNumber}</div>
</td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="20" maxlength="40" name="accountNumber"
value="${eftAccountData.accountNumber!}"/>*
</td>
</tr>
<tr>
<td width="26%" align="right" valign="top">
<div>${uiLabelMap.CommonDescription}</div>
</td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="30" maxlength="60" name="description"
value="${paymentMethodData.description!}"/>
</td>
</tr>
<tr>
<td width="26%" align="right" valign="top">
<div>${uiLabelMap.PartyBillingAddress}</div>
</td>
<td width="5">&nbsp;</td>
<td width="74%">
<#-- Removed because is confusing, can add but would have to come back here with all data populated as before...
@@ -97,41 +120,54 @@ under the License.
[Create New Address]</a>&nbsp;&nbsp;
-->
<table width="100%" border="0" cellpadding="1">
<#if curPostalAddress??>
<tr>
<td align="right" valign="top" width="1%">
<input type="radio" name="contactMechId" value="${curContactMechId}" checked="checked" />
</td>
<td valign="top" width="80%">
<div><b>${uiLabelMap.PartyUseCurrentAddress}:</b></div>
<#list curPartyContactMechPurposes as curPartyContactMechPurpose>
<#assign curContactMechPurposeType = curPartyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true)>
<#if curPostalAddress??>
<tr>
<td align="right" valign="top" width="1%">
<input type="radio" name="contactMechId" value="${curContactMechId}" checked="checked"/>
</td>
<td valign="top" width="80%">
<div><b>${uiLabelMap.PartyUseCurrentAddress}:</b></div>
<#list curPartyContactMechPurposes as curPartyContactMechPurpose>
<#assign curContactMechPurposeType =
curPartyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true)>
<div>
<b>${curContactMechPurposeType.get("description",locale)!}</b>
<#if curPartyContactMechPurpose.thruDate??>
(${uiLabelMap.CommonExpire}:${curPartyContactMechPurpose.thruDate.toString()})
</#if>
</div>
</#list>
<div>
<b>${curContactMechPurposeType.get("description",locale)!}</b>
<#if curPartyContactMechPurpose.thruDate??>
(${uiLabelMap.CommonExpire}:${curPartyContactMechPurpose.thruDate.toString()})
<#if curPostalAddress.toName??>
<b>${uiLabelMap.CommonTo}:</b> ${curPostalAddress.toName}<br/>
</#if>
<#if curPostalAddress.attnName??>
<b>${uiLabelMap.PartyAddrAttnName}:</b> ${curPostalAddress.attnName}<br/>
</#if>
${curPostalAddress.address1!}<br/>
<#if curPostalAddress.address2??>${curPostalAddress.address2}<br/></#if>
${curPostalAddress.city}
<#if curPostalAddress.stateProvinceGeoId?has_content>,&nbsp;
${curPostalAddress.stateProvinceGeoId}
</#if>&nbsp;
${curPostalAddress.postalCode}
<#if curPostalAddress.countryGeoId??><br/>${curPostalAddress.countryGeoId}</#if>
</div>
</#list>
<div>
<#if curPostalAddress.toName??><b>${uiLabelMap.CommonTo}:</b> ${curPostalAddress.toName}<br /></#if>
<#if curPostalAddress.attnName??><b>${uiLabelMap.PartyAddrAttnName}:</b> ${curPostalAddress.attnName}<br /></#if>
${curPostalAddress.address1!}<br />
<#if curPostalAddress.address2??>${curPostalAddress.address2}<br /></#if>
${curPostalAddress.city}<#if curPostalAddress.stateProvinceGeoId?has_content>,&nbsp;${curPostalAddress.stateProvinceGeoId}</#if>&nbsp;${curPostalAddress.postalCode}
<#if curPostalAddress.countryGeoId??><br />${curPostalAddress.countryGeoId}</#if>
</div>
<div>(${uiLabelMap.CommonUpdated}:&nbsp;${(curPartyContactMech.fromDate.toString())!})</div>
<#if curPartyContactMech.thruDate??><div><b>${uiLabelMap.CommonDelete}:&nbsp;${curPartyContactMech.thruDate.toString()}</b></div></#if>
</td>
</tr>
<#else>
<#-- <tr>
<td valign="top" colspan="2">
<div>${uiLabelMap.PartyNoBillingAddress}</div>
</td>
</tr> -->
</#if>
<div>(${uiLabelMap.CommonUpdated}:&nbsp;${(curPartyContactMech.fromDate.toString())!})</div>
<#if curPartyContactMech.thruDate??>
<div><b>${uiLabelMap.CommonDelete}:&nbsp;${curPartyContactMech.thruDate.toString()}</b></div>
</#if>
</td>
</tr>
<#else>
<#--
<tr>
<td valign="top" colspan="2">
<div>${uiLabelMap.PartyNoBillingAddress}</div>
</td>
</tr>
-->
</#if>
<#-- is confusing
<tr>
<td valign="top" colspan="2">
@@ -146,38 +182,53 @@ under the License.
<#assign partyContactMech = postalAddressInfo.partyContactMech>
<tr>
<td align="right" valign="top" width="1%">
<input type="radio" name="contactMechId" value="${contactMech.contactMechId}" />
<input type="radio" name="contactMechId" value="${contactMech.contactMechId}"/>
</td>
<td valign="top" width="80%">
<#list partyContactMechPurposes as partyContactMechPurpose>
<#assign contactMechPurposeType = partyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true)>
<div>
<b>${contactMechPurposeType.get("description",locale)!}</b>
<#if partyContactMechPurpose.thruDate??>(${uiLabelMap.CommonExpire}:${partyContactMechPurpose.thruDate})</#if>
</div>
<#assign contactMechPurposeType =
partyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true)>
<div>
<b>${contactMechPurposeType.get("description",locale)!}</b>
<#if partyContactMechPurpose.thruDate??>
(${uiLabelMap.CommonExpire}:${partyContactMechPurpose.thruDate})
</#if>
</div>
</#list>
<div>
<#if postalAddress.toName??><b>${uiLabelMap.CommonTo}:</b> ${postalAddress.toName}<br /></#if>
<#if postalAddress.attnName??><b>${uiLabelMap.PartyAddrAttnName}:</b> ${postalAddress.attnName}<br /></#if>
${postalAddress.address1!}<br />
<#if postalAddress.address2??>${postalAddress.address2}<br /></#if>
${postalAddress.city}<#if postalAddress.stateProvinceGeoId?has_content>,&nbsp;${postalAddress.stateProvinceGeoId}</#if>&nbsp;${postalAddress.postalCode}
<#if postalAddress.countryGeoId??><br />${postalAddress.countryGeoId}</#if>
<#if postalAddress.toName??><b>${uiLabelMap.CommonTo}:</b> ${postalAddress.toName}<br/></#if>
<#if postalAddress.attnName??>
<b>${uiLabelMap.PartyAddrAttnName}:</b> ${postalAddress.attnName}<br/>
</#if>
${postalAddress.address1!}<br/>
<#if postalAddress.address2??>${postalAddress.address2}<br/></#if>
${postalAddress.city}
<#if postalAddress.stateProvinceGeoId?has_content>,&nbsp;
${postalAddress.stateProvinceGeoId}
</#if>&nbsp;
${postalAddress.postalCode}
<#if postalAddress.countryGeoId??><br/>${postalAddress.countryGeoId}</#if>
</div>
<div>(${uiLabelMap.CommonUpdated}:&nbsp;${(partyContactMech.fromDate.toString())!})</div>
<#if partyContactMech.thruDate??><div><b>${uiLabelMap.CommonDelete}:&nbsp;${partyContactMech.thruDate.toString()}</b></div></#if>
<#if partyContactMech.thruDate??>
<div><b>${uiLabelMap.CommonDelete}:&nbsp;${partyContactMech.thruDate.toString()}</b></div>
</#if>
</td>
</tr>
</#list>
<#if !postalAddressInfos?has_content && !curContactMech??>
<tr><td colspan="2"><div>${uiLabelMap.PartyNoContactInformation}.</div></td></tr>
<tr>
<td colspan="2">
<div>${uiLabelMap.PartyNoContactInformation}.</div>
</td>
</tr>
</#if>
</table>
</td>
</tr>
</table>
</form>
</form>
&nbsp;<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>
&nbsp;<a href="javascript:document.editeftaccountform.submit()" class="button">${uiLabelMap.CommonSave}</a>
&nbsp;<a href="javascript:document.editeftaccountform.submit()" class="button">${uiLabelMap.CommonSave}</a>
</#if>
+102 -90
View File
@@ -18,96 +18,108 @@ under the License.
-->
<#if canNotView>
<p><h3>${uiLabelMap.AccountingCardInfoNotBelongToYou}.</h3></p>
&nbsp;<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="buttontext">[${uiLabelMap.CommonGoBack}]</a>
<p><h3>${uiLabelMap.AccountingCardInfoNotBelongToYou}.</h3></p>&nbsp;
<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="buttontext">[${uiLabelMap.CommonGoBack}]</a>
<#else>
<#if !giftCard??>
<h1>${uiLabelMap.AccountingAddNewGiftCard}</h1>
<form method="post" action="<@ofbizUrl>createGiftCard?DONE_PAGE=${donePage}</@ofbizUrl>" name="editgiftcardform" style="margin: 0;">
<#else>
<h1>${uiLabelMap.AccountingEditGiftCard}</h1>
<form method="post" action="<@ofbizUrl>updateGiftCard?DONE_PAGE=${donePage}</@ofbizUrl>" name="editgiftcardform" style="margin: 0;">
<input type="hidden" name="paymentMethodId" value="${paymentMethodId}" />
</#if>
&nbsp;<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>
&nbsp;<a href="javascript:document.editgiftcardform.submit()" class="button">${uiLabelMap.CommonSave}</a>
<p/>
<table width="90%" border="0" cellpadding="2" cellspacing="0">
<tr>
<td width="26%" align="right" valign="top"><div>${uiLabelMap.AccountingCardNumber}</div></td>
<td width="5">&nbsp;</td>
<td width="74%">
<#if giftCardData?has_content && giftCardData.cardNumber?has_content>
<#assign pcardNumberDisplay = "">
<#assign pcardNumber = giftCardData.cardNumber!>
<#if pcardNumber?has_content>
<#assign psize = pcardNumber?length - 4>
<#if 0 < psize>
<#list 0 .. psize-1 as foo>
<#assign pcardNumberDisplay = pcardNumberDisplay + "*">
</#list>
<#assign pcardNumberDisplay = pcardNumberDisplay + pcardNumber[psize .. psize + 3]>
<#else>
<#assign pcardNumberDisplay = pcardNumber>
<#if !giftCard??>
<h1>${uiLabelMap.AccountingAddNewGiftCard}</h1>
<form method="post" action="<@ofbizUrl>createGiftCard?DONE_PAGE=${donePage}</@ofbizUrl>"
name="editgiftcardform" style="margin: 0;">
<#else>
<h1>${uiLabelMap.AccountingEditGiftCard}</h1>
<form method="post" action="<@ofbizUrl>updateGiftCard?DONE_PAGE=${donePage}</@ofbizUrl>" name="editgiftcardform"
style="margin: 0;">
<input type="hidden" name="paymentMethodId" value="${paymentMethodId}"/>
</#if>&nbsp;
<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>&nbsp;
<a href="javascript:document.editgiftcardform.submit()" class="button">${uiLabelMap.CommonSave}</a>
<p/>
<table width="90%" border="0" cellpadding="2" cellspacing="0">
<tr>
<td width="26%" align="right" valign="top">
<div>${uiLabelMap.AccountingCardNumber}</div>
</td>
<td width="5">&nbsp;</td>
<td width="74%">
<#if giftCardData?has_content && giftCardData.cardNumber?has_content>
<#assign pcardNumberDisplay = "">
<#assign pcardNumber = giftCardData.cardNumber!>
<#if pcardNumber?has_content>
<#assign psize = pcardNumber?length - 4>
<#if 0 < psize>
<#list 0 .. psize-1 as foo>
<#assign pcardNumberDisplay = pcardNumberDisplay + "*">
</#list>
<#assign pcardNumberDisplay = pcardNumberDisplay + pcardNumber[psize .. psize + 3]>
<#else>
<#assign pcardNumberDisplay = pcardNumber>
</#if>
</#if>
</#if>
</#if>
</#if>
<input type="text" class="inputBox" size="20" maxlength="60" name="cardNumber" value="${pcardNumberDisplay!}" />
</td>
</tr>
<tr>
<td width="26%" align="right" valign="top"><div>${uiLabelMap.AccountingPINNumber}</div></td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="password" class="inputBox" size="10" maxlength="60" name="pinNumber" value="${giftCardData.pinNumber!}" />
</td>
</tr>
<tr>
<td width="26%" align="right" valign="top"><div>${uiLabelMap.AccountingExpirationDate}</div></td>
<td width="5">&nbsp;</td>
<td width="74%">
<#assign expMonth = "">
<#assign expYear = "">
<#if giftCardData?? && giftCardData.expireDate??>
<#assign expDate = giftCard.expireDate>
<#if (expDate?? && expDate.indexOf("/") > 0)>
<#assign expMonth = expDate.substring(0,expDate.indexOf("/"))>
<#assign expYear = expDate.substring(expDate.indexOf("/")+1)>
</#if>
</#if>
<select name="expMonth" class="selectBox" onchange="javascript:makeExpDate();">
<#if giftCardData?has_content && expMonth?has_content>
<#assign ccExprMonth = expMonth>
<#else>
<#assign ccExprMonth = requestParameters.expMonth!>
</#if>
<#if ccExprMonth?has_content>
<option value="${ccExprMonth!}">${ccExprMonth!}</option>
</#if>
${screens.render("component://common/widget/CommonScreens.xml#ccmonths")}
</select>
<select name="expYear" class="selectBox" onchange="javascript:makeExpDate();">
<#if giftCard?has_content && expYear?has_content>
<#assign ccExprYear = expYear>
<#else>
<#assign ccExprYear = requestParameters.expYear!>
</#if>
<#if ccExprYear?has_content>
<option value="${ccExprYear!}">${ccExprYear!}</option>
</#if>
${screens.render("component://common/widget/CommonScreens.xml#ccyears")}
</select>
</td>
</tr>
<tr>
<td width="26%" align="right" valign="top"><div>${uiLabelMap.CommonDescription}</div></td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="30" maxlength="60" name="description" value="${paymentMethodData.description!}" />
</td>
</tr>
</table>
</form>
&nbsp;<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>
&nbsp;<a href="javascript:document.editgiftcardform.submit()" class="button">${uiLabelMap.CommonSave}</a>
<input type="text" class="inputBox" size="20" maxlength="60" name="cardNumber" value="${pcardNumberDisplay!}"/>
</td>
</tr>
<tr>
<td width="26%" align="right" valign="top">
<div>${uiLabelMap.AccountingPINNumber}</div>
</td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="password" class="inputBox" size="10" maxlength="60" name="pinNumber"
value="${giftCardData.pinNumber!}"/>
</td>
</tr>
<tr>
<td width="26%" align="right" valign="top">
<div>${uiLabelMap.AccountingExpirationDate}</div>
</td>
<td width="5">&nbsp;</td>
<td width="74%">
<#assign expMonth = "">
<#assign expYear = "">
<#if giftCardData?? && giftCardData.expireDate??>
<#assign expDate = giftCard.expireDate>
<#if (expDate?? && expDate.indexOf("/") > 0)>
<#assign expMonth = expDate.substring(0,expDate.indexOf("/"))>
<#assign expYear = expDate.substring(expDate.indexOf("/")+1)>
</#if>
</#if>
<select name="expMonth" class="selectBox" onchange="javascript:makeExpDate();">
<#if giftCardData?has_content && expMonth?has_content>
<#assign ccExprMonth = expMonth>
<#else>
<#assign ccExprMonth = requestParameters.expMonth!>
</#if>
<#if ccExprMonth?has_content>
<option value="${ccExprMonth!}">${ccExprMonth!}</option>
</#if>
${screens.render("component://common/widget/CommonScreens.xml#ccmonths")}
</select>
<select name="expYear" class="selectBox" onchange="javascript:makeExpDate();">
<#if giftCard?has_content && expYear?has_content>
<#assign ccExprYear = expYear>
<#else>
<#assign ccExprYear = requestParameters.expYear!>
</#if>
<#if ccExprYear?has_content>
<option value="${ccExprYear!}">${ccExprYear!}</option>
</#if>
${screens.render("component://common/widget/CommonScreens.xml#ccyears")}
</select>
</td>
</tr>
<tr>
<td width="26%" align="right" valign="top">
<div>${uiLabelMap.CommonDescription}</div>
</td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="30" maxlength="60" name="description"
value="${paymentMethodData.description!}"/>
</td>
</tr>
</table>
</form>&nbsp;
<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>&nbsp;
<a href="javascript:document.editgiftcardform.submit()" class="button">${uiLabelMap.CommonSave}</a>
</#if>
+165 -155
View File
@@ -17,162 +17,172 @@ specific language governing permissions and limitations
under the License.
-->
<#if person??>
<h2>${uiLabelMap.PartyEditPersonalInformation}</h2>
&nbsp;<form id="editpersonform1" method="post" action="<@ofbizUrl>updatePerson</@ofbizUrl>" name="editpersonform">
<h2>${uiLabelMap.PartyEditPersonalInformation}</h2>&nbsp;
<form id="editpersonform1" method="post" action="<@ofbizUrl>updatePerson</@ofbizUrl>" name="editpersonform">
<#else>
<h2>${uiLabelMap.PartyAddNewPersonalInformation}</h2>
&nbsp;<form id="editpersonform2" method="post" action="<@ofbizUrl>createPerson/${donePage}</@ofbizUrl>" name="editpersonform">
<h2>${uiLabelMap.PartyAddNewPersonalInformation}</h2>&nbsp;
<form id="editpersonform2" method="post" action="<@ofbizUrl>createPerson/${donePage}</@ofbizUrl>"
name="editpersonform">
</#if>
<div>
&nbsp;<a href='<@ofbizUrl>${donePage}</@ofbizUrl>' class="button">${uiLabelMap.CommonGoBack}</a>
&nbsp;<a href="javascript:document.editpersonform.submit()" class="button">${uiLabelMap.CommonSave}</a>
<p/>
<input type="hidden" name="partyId" value="${person.partyId!}" />
<table width="90%" border="0" cellpadding="2" cellspacing="0">
<tr>
<td align="right">${uiLabelMap.CommonTitle}</td>
<td>
<select name="personalTitle" class="selectBox">
<#if personData.personalTitle?has_content >
<option>${personData.personalTitle}</option>
<option value="${personData.personalTitle}"> -- </option>
<#else>
<option value="">${uiLabelMap.CommonSelectOne}</option>
</#if>
<option>${uiLabelMap.CommonTitleMr}</option>
<option>${uiLabelMap.CommonTitleMrs}</option>
<option>${uiLabelMap.CommonTitleMs}</option>
<option>${uiLabelMap.CommonTitleDr}</option>
</select>
</td>
</tr>
<tr>
<td align="right">${uiLabelMap.PartyFirstName}</td>
<td>
<input type="text" class='inputBox' size="30" maxlength="30" name="firstName" value="${personData.firstName!}"/>
*</td>
</tr>
<tr>
<td align="right">${uiLabelMap.PartyMiddleInitial}</td>
<td>
<input type="text" class='inputBox' size="4" maxlength="4" name="middleName" value="${personData.middleName!}"/>
</td>
</tr>
<tr>
<td align="right">${uiLabelMap.PartyLastName}</td>
<td>
<input type="text" class='inputBox' size="30" maxlength="30" name="lastName" value="${personData.lastName!}"/>
*</td>
</tr>
<tr>
<td align="right">${uiLabelMap.PartySuffix}</td>
<td>
<input type="text" class='inputBox' size="10" maxlength="30" name="suffix" value="${personData.suffix!}"/>
</td>
</tr>
<tr>
<td align="right">${uiLabelMap.PartyNickName}</td>
<td>
<input type="text" class='inputBox' size="30" maxlength="60" name="nickname" value="${personData.nickname!}"/>
</td>
</tr>
<tr>
<td align="right">${uiLabelMap.PartyGender}</td>
<td>
<select name="gender" class='selectBox'>
<#if personData.gender?has_content >
<option value="${personData.gender}">
<div>
&nbsp;<a href='<@ofbizUrl>${donePage}</@ofbizUrl>' class="button">${uiLabelMap.CommonGoBack}</a>
&nbsp;<a href="javascript:document.editpersonform.submit()" class="button">${uiLabelMap.CommonSave}</a>
<p/>
<input type="hidden" name="partyId" value="${person.partyId!}"/>
<table width="90%" border="0" cellpadding="2" cellspacing="0">
<tr>
<td align="right">${uiLabelMap.CommonTitle}</td>
<td>
<select name="personalTitle" class="selectBox">
<#if personData.personalTitle?has_content >
<option>${personData.personalTitle}</option>
<option value="${personData.personalTitle}"> --</option>
<#else>
<option value="">${uiLabelMap.CommonSelectOne}</option>
</#if>
<option>${uiLabelMap.CommonTitleMr}</option>
<option>${uiLabelMap.CommonTitleMrs}</option>
<option>${uiLabelMap.CommonTitleMs}</option>
<option>${uiLabelMap.CommonTitleDr}</option>
</select>
</td>
</tr>
<tr>
<td align="right">${uiLabelMap.PartyFirstName}</td>
<td>
<input type="text" class='inputBox' size="30" maxlength="30" name="firstName"
value="${personData.firstName!}"/>*
</td>
</tr>
<tr>
<td align="right">${uiLabelMap.PartyMiddleInitial}</td>
<td>
<input type="text" class='inputBox' size="4" maxlength="4" name="middleName"
value="${personData.middleName!}"/>
</td>
</tr>
<tr>
<td align="right">${uiLabelMap.PartyLastName}</td>
<td>
<input type="text" class='inputBox' size="30" maxlength="30" name="lastName" value="${personData.lastName!}"/>
*
</td>
</tr>
<tr>
<td align="right">${uiLabelMap.PartySuffix}</td>
<td>
<input type="text" class='inputBox' size="10" maxlength="30" name="suffix" value="${personData.suffix!}"/>
</td>
</tr>
<tr>
<td align="right">${uiLabelMap.PartyNickName}</td>
<td>
<input type="text" class='inputBox' size="30" maxlength="60" name="nickname" value="${personData.nickname!}"/>
</td>
</tr>
<tr>
<td align="right">${uiLabelMap.PartyGender}</td>
<td>
<select name="gender" class='selectBox'>
<#if personData.gender?has_content >
<option value="${personData.gender}">
<#if personData.gender == "M" >${uiLabelMap.CommonMale}</#if>
<#if personData.gender == "F" >${uiLabelMap.CommonFemale}</#if>
</option>
<option value="${personData.gender}"> -- </option>
<#else>
<option value="">${uiLabelMap.CommonSelectOne}</option>
</#if>
<option value="M">${uiLabelMap.CommonMale}</option>
<option value="F">${uiLabelMap.CommonFemale}</option>
</select>
</td>
</tr>
<tr>
<td align="right">${uiLabelMap.PartyBirthDate}</td>
<td>
<input type="text" class='inputBox' size="11" maxlength="20" name="birthDate" value="${(personData.birthDate.toString())!}"/>
<div>${uiLabelMap.CommonFormatDate}</div>
</td>
</tr>
<tr>
<td align="right">${uiLabelMap.PartyHeight}</td>
<td>
<input type="text" class='inputBox' size="30" maxlength="60" name="height" value="${personData.height!}"/>
</td>
</tr>
<tr>
<td align="right">${uiLabelMap.PartyWeight}</td>
<td>
<input type="text" class='inputBox' size="30" maxlength="60" name="weight" value="${personData.weight!}"/>
</td>
</tr>
<#if personData.gender == "F" >${uiLabelMap.CommonFemale}</#if>
</option>
<option value="${personData.gender}"> --</option>
<#else>
<option value="">${uiLabelMap.CommonSelectOne}</option>
</#if>
<option value="M">${uiLabelMap.CommonMale}</option>
<option value="F">${uiLabelMap.CommonFemale}</option>
</select>
</td>
</tr>
<tr>
<td align="right">${uiLabelMap.PartyBirthDate}</td>
<td>
<input type="text" class='inputBox' size="11" maxlength="20" name="birthDate"
value="${(personData.birthDate.toString())!}"/>
<div>${uiLabelMap.CommonFormatDate}</div>
</td>
</tr>
<tr>
<td align="right">${uiLabelMap.PartyHeight}</td>
<td>
<input type="text" class='inputBox' size="30" maxlength="60" name="height" value="${personData.height!}"/>
</td>
</tr>
<tr>
<td align="right">${uiLabelMap.PartyWeight}</td>
<td>
<input type="text" class='inputBox' size="30" maxlength="60" name="weight" value="${personData.weight!}"/>
</td>
</tr>
<tr>
<td align="right">${uiLabelMap.PartyMaidenName}</td>
<td>
<input type="text" class='inputBox' size="30" maxlength="60" name="mothersMaidenName" value="${personData.mothersMaidenName!}"/>
</td>
</tr>
<tr>
<td align="right">${uiLabelMap.PartyMaritalStatus}</td>
<td>
<select name="maritalStatus" class='selectBox'>
<#if personData.maritalStatus?has_content>
<option value="${personData.maritalStatus}">
<#if personData.maritalStatus == "S">${uiLabelMap.PartySingle}</#if>
<#if personData.maritalStatus == "M">${uiLabelMap.PartyMarried}</#if>
<#if personData.maritalStatus == "D">${uiLabelMap.PartyDivorced}</#if>
</option>
<option value="${personData.maritalStatus}"> -- </option>
<#else>
<option></option>
</#if>
<option value="S">${uiLabelMap.PartySingle}</option>
<option value="M">${uiLabelMap.PartyMarried}</option>
<option value="D">${uiLabelMap.PartyDivorced}</option>
</select>
</td>
</tr>
<tr>
<td align="right">${uiLabelMap.PartySocialSecurityNumber}</td>
<td>
<input type="text" class='inputBox' size="30" maxlength="60" name="socialSecurityNumber" value="${personData.socialSecurityNumber!}"/>
</td>
</tr>
<tr>
<td align="right">${uiLabelMap.PartyPassportNumber}</td>
<td>
<input type="text" class='inputBox' size="30" maxlength="60" name="passportNumber" value="${personData.passportNumber!}"/>
</td>
</tr>
<tr>
<td align="right">${uiLabelMap.PartyPassportExpireDate}</td>
<td>
<input type="text" class='inputBox' size="11" maxlength="20" name="passportExpireDate" value="${personData.passportExpireDate!}"/>
<div>${uiLabelMap.CommonFormatDate}</div>
</td>
</tr>
<tr>
<td align="right">${uiLabelMap.PartyTotalYearsWorkExperience}</td>
<td>
<input type="text" class='inputBox' size="30" maxlength="60" name="totalYearsWorkExperience" value="${personData.totalYearsWorkExperience!}"/>
</td>
</tr>
<tr>
<td align="right">${uiLabelMap.CommonComment}</td>
<td>
<input type="text" class='inputBox' size="30" maxlength="60" name="comments" value="${personData.comments!}"/>
</td>
</tr>
</table>
</div>
</form>
&nbsp;<a href='<@ofbizUrl>${donePage}</@ofbizUrl>' class="button">${uiLabelMap.CommonGoBack}</a>
&nbsp;<a id="editpersonform3" href="javascript:document.editpersonform.submit()" class="button">${uiLabelMap.CommonSave}</a>
<tr>
<td align="right">${uiLabelMap.PartyMaidenName}</td>
<td>
<input type="text" class='inputBox' size="30" maxlength="60" name="mothersMaidenName"
value="${personData.mothersMaidenName!}"/>
</td>
</tr>
<tr>
<td align="right">${uiLabelMap.PartyMaritalStatus}</td>
<td>
<select name="maritalStatus" class='selectBox'>
<#if personData.maritalStatus?has_content>
<option value="${personData.maritalStatus}">
<#if personData.maritalStatus == "S">${uiLabelMap.PartySingle}</#if>
<#if personData.maritalStatus == "M">${uiLabelMap.PartyMarried}</#if>
<#if personData.maritalStatus == "D">${uiLabelMap.PartyDivorced}</#if>
</option>
<option value="${personData.maritalStatus}"> --</option>
<#else>
<option></option>
</#if>
<option value="S">${uiLabelMap.PartySingle}</option>
<option value="M">${uiLabelMap.PartyMarried}</option>
<option value="D">${uiLabelMap.PartyDivorced}</option>
</select>
</td>
</tr>
<tr>
<td align="right">${uiLabelMap.PartySocialSecurityNumber}</td>
<td>
<input type="text" class='inputBox' size="30" maxlength="60" name="socialSecurityNumber"
value="${personData.socialSecurityNumber!}"/>
</td>
</tr>
<tr>
<td align="right">${uiLabelMap.PartyPassportNumber}</td>
<td>
<input type="text" class='inputBox' size="30" maxlength="60" name="passportNumber"
value="${personData.passportNumber!}"/>
</td>
</tr>
<tr>
<td align="right">${uiLabelMap.PartyPassportExpireDate}</td>
<td>
<input type="text" class='inputBox' size="11" maxlength="20" name="passportExpireDate"
value="${personData.passportExpireDate!}"/>
<div>${uiLabelMap.CommonFormatDate}</div>
</td>
</tr>
<tr>
<td align="right">${uiLabelMap.PartyTotalYearsWorkExperience}</td>
<td>
<input type="text" class='inputBox' size="30" maxlength="60" name="totalYearsWorkExperience"
value="${personData.totalYearsWorkExperience!}"/>
</td>
</tr>
<tr>
<td align="right">${uiLabelMap.CommonComment}</td>
<td>
<input type="text" class='inputBox' size="30" maxlength="60" name="comments" value="${personData.comments!}"/>
</td>
</tr>
</table>
</div>
</form>&nbsp;
<a href='<@ofbizUrl>${donePage}</@ofbizUrl>' class="button">${uiLabelMap.CommonGoBack}</a>&nbsp;
<a id="editpersonform3" href="javascript:document.editpersonform.submit()" class="button">${uiLabelMap.CommonSave}</a>
@@ -19,27 +19,47 @@ under the License.
<table border="0" cellpadding="1">
<tr>
<td align="right" width="25%"><div class="tableheadtext">Account Number:</div></td>
<td><div>${ownedFinAccount.finAccountId}</div></td>
<td align="right" width="25%">
<div class="tableheadtext">Account Number:</div>
</td>
<td>
<div>${ownedFinAccount.finAccountId}</div>
</td>
</tr>
<tr>
<td align="right"><div class="tableheadtext">Currency:</div></td>
<td><div>${(accountCurrencyUom.description)!} [${ownedFinAccount.currencyUomId!}]</div></td>
<td align="right">
<div class="tableheadtext">Currency:</div>
</td>
<td>
<div>${(accountCurrencyUom.description)!} [${ownedFinAccount.currencyUomId!}]</div>
</td>
</tr>
<tr>
<td align="right"><div class="tableheadtext">Date Opened:</div></td>
<td><div>${ownedFinAccount.fromDate!}</div></td>
<td align="right">
<div class="tableheadtext">Date Opened:</div>
</td>
<td>
<div>${ownedFinAccount.fromDate!}</div>
</td>
</tr>
<tr>
<td align="right"><div class="tableheadtext">Status:</div></td>
<td><div>${(finAccountStatusItem.description)?default("Active")}</div></td>
<td align="right">
<div class="tableheadtext">Status:</div>
</td>
<td>
<div>${(finAccountStatusItem.description)?default("Active")}</div>
</td>
</tr>
<#if ownedFinAccount.replenishLevel??>
<#if ownedFinAccount.replenishLevel??>
<tr>
<td align="right"><div class="tableheadtext">Replenish Level:</div></td>
<td><div>${ownedFinAccount.replenishLevel}</div></td>
<td align="right">
<div class="tableheadtext">Replenish Level:</div>
</td>
<td>
<div>${ownedFinAccount.replenishLevel}</div>
</td>
</tr>
</#if>
</#if>
</table>
<table border="0" cellpadding="1" border="2">
@@ -51,21 +71,26 @@ under the License.
<th>Type</th>
<th>Amount</th>
</tr>
<#list ownedFinAccountTransList as ownedFinAccountTrans>
<#assign finAccountTransType = ownedFinAccountTrans.getRelatedOne("FinAccountTransType", false)/>
<#assign displayAmount = ownedFinAccountTrans.amount/>
<#if ownedFinAccountTrans.finAccountTransTypeId == "WITHDRAWAL">
<#assign displayAmount = -displayAmount/>
</#if>
<tr>
<td>${ownedFinAccountTrans.transactionDate!}</td>
<td>${ownedFinAccountTrans.finAccountTransId}</td>
<td><#if ownedFinAccountTrans.orderId?has_content>${ownedFinAccountTrans.orderId!}:${ownedFinAccountTrans.orderItemSeqId!}<#else>&nbsp;</#if></td>
<td><#if ownedFinAccountTrans.paymentId?has_content>${ownedFinAccountTrans.paymentId!}<#else>&nbsp;</#if></td>
<td>${finAccountTransType.description?default(ownedFinAccountTrans.finAccountTransTypeId)!}</td>
<td><@ofbizCurrency amount=displayAmount isoCode=ownedFinAccount.currencyUomId/></td>
</tr>
</#list>
<#list ownedFinAccountTransList as ownedFinAccountTrans>
<#assign finAccountTransType = ownedFinAccountTrans.getRelatedOne("FinAccountTransType", false)/>
<#assign displayAmount = ownedFinAccountTrans.amount/>
<#if ownedFinAccountTrans.finAccountTransTypeId == "WITHDRAWAL">
<#assign displayAmount = -displayAmount/>
</#if>
<tr>
<td>${ownedFinAccountTrans.transactionDate!}</td>
<td>${ownedFinAccountTrans.finAccountTransId}</td>
<td>
<#if ownedFinAccountTrans.orderId?has_content>
${ownedFinAccountTrans.orderId!}:${ownedFinAccountTrans.orderItemSeqId!}
<#else>&nbsp;
</#if>
</td>
<td><#if ownedFinAccountTrans.paymentId?has_content>${ownedFinAccountTrans.paymentId!}<#else>&nbsp;</#if></td>
<td>${finAccountTransType.description?default(ownedFinAccountTrans.finAccountTransTypeId)!}</td>
<td><@ofbizCurrency amount=displayAmount isoCode=ownedFinAccount.currencyUomId/></td>
</tr>
</#list>
<tr>
<th>Actual Balance</th>
<td>&nbsp;</td>
@@ -75,32 +100,32 @@ under the License.
</table>
<#if ownedFinAccountAuthList?has_content>
<table border="0" cellpadding="1">
<tr>
<th>Authorization ${uiLabelMap.CommonDate}</th>
<th>ID</th>
<th>Expires</th>
<th>Amount</th>
</tr>
<tr>
<td>Actual Balance</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td><@ofbizCurrency amount=ownedFinAccount.actualBalance isoCode=ownedFinAccount.currencyUomId/></td>
</tr>
<#list ownedFinAccountAuthList as ownedFinAccountAuth>
<tr>
<td>${ownedFinAccountAuth.authorizationDate!}</td>
<td>${ownedFinAccountAuth.finAccountAuthId}</td>
<td>${ownedFinAccountAuth.thruDate!}</td>
<td><@ofbizCurrency amount=-ownedFinAccountAuth.amount isoCode=ownedFinAccount.currencyUomId/></td>
</tr>
</#list>
<tr>
<th>Available Balance</th>
<td>&nbsp;</td>
<td>&nbsp;</td>
<th><@ofbizCurrency amount=ownedFinAccount.availableBalance isoCode=ownedFinAccount.currencyUomId/></th>
</tr>
</table>
<table border="0" cellpadding="1">
<tr>
<th>Authorization ${uiLabelMap.CommonDate}</th>
<th>ID</th>
<th>Expires</th>
<th>Amount</th>
</tr>
<tr>
<td>Actual Balance</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td><@ofbizCurrency amount=ownedFinAccount.actualBalance isoCode=ownedFinAccount.currencyUomId/></td>
</tr>
<#list ownedFinAccountAuthList as ownedFinAccountAuth>
<tr>
<td>${ownedFinAccountAuth.authorizationDate!}</td>
<td>${ownedFinAccountAuth.finAccountAuthId}</td>
<td>${ownedFinAccountAuth.thruDate!}</td>
<td><@ofbizCurrency amount=-ownedFinAccountAuth.amount isoCode=ownedFinAccount.currencyUomId/></td>
</tr>
</#list>
<tr>
<th>Available Balance</th>
<td>&nbsp;</td>
<td>&nbsp;</td>
<th><@ofbizCurrency amount=ownedFinAccount.availableBalance isoCode=ownedFinAccount.currencyUomId/></th>
</tr>
</table>
</#if>
+25 -13
View File
@@ -18,11 +18,11 @@ under the License.
-->
<h1>${uiLabelMap.AccountingGiftCardBalance}</h1>
<br />
<br/>
<div>${uiLabelMap.AccountingEnterGiftCardNumber}</div>
<br />
<br/>
<br />
<br/>
<table align="center">
<#if requestAttributes.processResult??>
<tr>
@@ -43,23 +43,35 @@ under the License.
</div>
</td>
</tr>
<tr><td colspan="2">&nbsp;</td></tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
</#if>
<form method="post" action="<@ofbizUrl>querygcbalance</@ofbizUrl>">
<input type="hidden" name="currency" value="USD" />
<input type="hidden" name="paymentConfig" value="${paymentProperties?default("payment.properties")}" />
<input type="hidden" name="currency" value="USD"/>
<input type="hidden" name="paymentConfig" value="${paymentProperties?default("payment.properties")}"/>
<tr>
<td><div class="tableheadtext">${uiLabelMap.AccountingCardNumber}</div></td>
<td><input type="text" class="inputBox" name="cardNumber" size="20" value="${(requestParameters.cardNumber)!}" /></td>
<td>
<div class="tableheadtext">${uiLabelMap.AccountingCardNumber}</div>
</td>
<td>
<input type="text" class="inputBox" name="cardNumber" size="20" value="${(requestParameters.cardNumber)!}"/>
</td>
</tr>
<tr>
<td><div class="tableheadtext">${uiLabelMap.AccountingPINNumber}</div></td>
<td><input type="text" class="inputBox" name="pin" size="15" value="${(requestParameters.pin)!}" /></td>
<td>
<div class="tableheadtext">${uiLabelMap.AccountingPINNumber}</div>
</td>
<td><input type="text" class="inputBox" name="pin" size="15" value="${(requestParameters.pin)!}"/></td>
</tr>
<tr><td colspan="2">&nbsp;</td></tr>
<tr>
<td colspan="2" align="center"><input type="submit" class="smallSubmit" value="${uiLabelMap.EcommerceCheckBalance}" /></td>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" class="smallSubmit" value="${uiLabelMap.EcommerceCheckBalance}"/>
</td>
</tr>
</form>
</table>
<br />
<br/>
+23 -14
View File
@@ -18,14 +18,14 @@ under the License.
-->
<h1>${uiLabelMap.AccountingGiftCardLink}</h1>
<br />
<br/>
<div>${uiLabelMap.AccountingEnterGiftCardLink}.</div>
<br />
<br/>
<form name="gclink" method="post" action="<@ofbizUrl>linkgiftcard</@ofbizUrl>">
<input type="hidden" name="paymentConfig" value="${paymentProperties?default("payment.properties")}" />
<input type="hidden" name="paymentConfig" value="${paymentProperties?default("payment.properties")}"/>
<#if userLogin?has_content>
<input type="hidden" name="partyId" value="${userLogin.partyId}" />
<input type="hidden" name="partyId" value="${userLogin.partyId}"/>
</#if>
<table align="center">
<tr>
@@ -34,12 +34,16 @@ under the License.
</td>
</tr>
<tr>
<td><div>${uiLabelMap.AccountingCardNumber}</div></td>
<td><input type="text" class="inputBox" name="physicalCard" size="20" /></td>
<td>
<div>${uiLabelMap.AccountingCardNumber}</div>
</td>
<td><input type="text" class="inputBox" name="physicalCard" size="20"/></td>
</tr>
<tr>
<td><div>${uiLabelMap.AccountingPINNumber}</div></td>
<td><input type="text" class="inputBox" name="physicalPin" size="20" /></td>
<td>
<div>${uiLabelMap.AccountingPINNumber}</div>
</td>
<td><input type="text" class="inputBox" name="physicalPin" size="20"/></td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
@@ -50,19 +54,24 @@ under the License.
</td>
</tr>
<tr>
<td><div>${uiLabelMap.AccountingCardNumber}</div></td>
<td><input type="text" class="inputBox" name="virtualCard" size="20" /></td>
<td>
<div>${uiLabelMap.AccountingCardNumber}</div>
</td>
<td><input type="text" class="inputBox" name="virtualCard" size="20"/></td>
</tr>
<tr>
<td><div>${uiLabelMap.AccountingPINNumber}</div></td>
<td><input type="text" class="inputBox" name="virtualPin" size="20" /></td>
<td>
<div>${uiLabelMap.AccountingPINNumber}</div>
</td>
<td><input type="text" class="inputBox" name="virtualPin" size="20"/></td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" class="smallSubmit" value="${uiLabelMap.EcommerceLinkCards}" /></td>
<td colspan="2" align="center"><input type="submit" class="smallSubmit" value="${uiLabelMap.EcommerceLinkCards}"/>
</td>
</tr>
</table>
</form>
<br />
<br/>
+62 -38
View File
@@ -19,48 +19,72 @@ under the License.
<#assign delegator = requestAttributes.delegator>
<#if communicationEvent.partyIdFrom??>
<#assign fromName = Static["org.apache.ofbiz.party.party.PartyHelper"].getPartyName(delegator, communicationEvent.partyIdFrom, true)>
<#assign fromName =
Static["org.apache.ofbiz.party.party.PartyHelper"].getPartyName(delegator, communicationEvent.partyIdFrom, true)>
</#if>
<#if communicationEvent.partyIdTo??>
<#assign toName = Static["org.apache.ofbiz.party.party.PartyHelper"].getPartyName(delegator, communicationEvent.partyIdTo, true)>
<#assign toName =
Static["org.apache.ofbiz.party.party.PartyHelper"].getPartyName(delegator, communicationEvent.partyIdTo, true)>
</#if>
<div class="screenlet">
<div class="screenlet-title-bar">
<div class="boxlink">
<#if (communicationEvent.partyIdFrom! != (userLogin.partyId)!)>
<a href="<@ofbizUrl>newmessage?communicationEventId=${communicationEvent.communicationEventId}</@ofbizUrl>" class="submenutext">${uiLabelMap.PartyReply}</a>
</#if>
<a href="<@ofbizUrl>messagelist</@ofbizUrl>" class="submenutextright">${uiLabelMap.EcommerceViewList}</a>
</div>
<div class="h3">${uiLabelMap.EcommerceReadMessage}</div>
</div>
<div class="screenlet-body">
<table width="100%" border="0" cellpadding="1">
<tr><td>&nbsp;</td></tr>
<tr>
<td align="right"><div class="tableheadtext">${uiLabelMap.CommonFrom}:</div></td>
<td><div>${fromName!}</div></td>
</tr>
<tr>
<td align="right"><div class="tableheadtext">${uiLabelMap.CommonTo}:</div></td>
<td><div>${toName!}</div></td>
</tr>
<tr>
<td align="right"><div class="tableheadtext">${uiLabelMap.CommonDate}:</div></td>
<td><div>${communicationEvent.entryDate}</div></td>
</tr>
<tr>
<td align="right"><div class="tableheadtext">${uiLabelMap.EcommerceSubject}:</div></td>
<td><div>&nbsp;${(communicationEvent.subject)?default("[${uiLabelMap.EcommerceNoSubject}]")}</div></td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td>&nbsp;</td>
<td>
<div>${StringUtil.wrapString(communicationEvent.content)?default("[${uiLabelMap.EcommerceEmptyBody}]")}</div>
</td>
</tr>
</table>
<div class="screenlet-title-bar">
<div class="boxlink">
<#if (communicationEvent.partyIdFrom! != (userLogin.partyId)!)>
<a href="<@ofbizUrl>newmessage?communicationEventId=${communicationEvent.communicationEventId}</@ofbizUrl>"
class="submenutext">${uiLabelMap.PartyReply}
</a>
</#if>
<a href="<@ofbizUrl>messagelist</@ofbizUrl>" class="submenutextright">${uiLabelMap.EcommerceViewList}</a>
</div>
<div class="h3">${uiLabelMap.EcommerceReadMessage}</div>
</div>
<div class="screenlet-body">
<table width="100%" border="0" cellpadding="1">
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td align="right">
<div class="tableheadtext">${uiLabelMap.CommonFrom}:</div>
</td>
<td>
<div>${fromName!}</div>
</td>
</tr>
<tr>
<td align="right">
<div class="tableheadtext">${uiLabelMap.CommonTo}:</div>
</td>
<td>
<div>${toName!}</div>
</td>
</tr>
<tr>
<td align="right">
<div class="tableheadtext">${uiLabelMap.CommonDate}:</div>
</td>
<td>
<div>${communicationEvent.entryDate}</div>
</td>
</tr>
<tr>
<td align="right">
<div class="tableheadtext">${uiLabelMap.EcommerceSubject}:</div>
</td>
<td>
<div>&nbsp;${(communicationEvent.subject)?default("[${uiLabelMap.EcommerceNoSubject}]")}</div>
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>
<div>${StringUtil.wrapString(communicationEvent.content)?default("[${uiLabelMap.EcommerceEmptyBody}]")}</div>
</td>
</tr>
</table>
</div>
</div>
+82 -52
View File
@@ -19,67 +19,97 @@ under the License.
<#macro showMessage communicationEvent isSentMessage index>
<#if communicationEvent.partyIdFrom?has_content>
<#assign partyNameFrom = Static["org.apache.ofbiz.party.party.PartyHelper"].getPartyName(delegator, communicationEvent.partyIdFrom, true)>
<#assign partyNameFrom =
Static["org.apache.ofbiz.party.party.PartyHelper"].getPartyName(delegator, communicationEvent.partyIdFrom, true)>
<#else>
<#assign partyNameFrom = "${uiLabelMap.CommonNA}">
</#if>
<#if communicationEvent.partyIdTo?has_content>
<#assign partyNameTo = Static["org.apache.ofbiz.party.party.PartyHelper"].getPartyName(delegator, communicationEvent.partyIdTo, true)>
<#assign partyNameTo =
Static["org.apache.ofbiz.party.party.PartyHelper"].getPartyName(delegator, communicationEvent.partyIdTo, true)>
<#else>
<#assign partyNameTo = "${uiLabelMap.CommonNA}">
</#if>
<tr>
<td><div>${partyNameFrom}</div></td>
<td><div>${partyNameTo}</div></td>
<td><div>${communicationEvent.subject?default("")}</div></td>
<td><div>${communicationEvent.entryDate}</div></td>
<td align="right">
<form method="post" action="<@ofbizUrl>readmessage</@ofbizUrl>" name="ecomm_read_mess${index}">
<input name="communicationEventId" value="${communicationEvent.communicationEventId}" type="hidden"/>
</form>
<a href="javascript:document.ecomm_read_mess${index}.submit()">${uiLabelMap.EcommerceRead}</a>
<#if isSentMessage>
<form method="post" action="<@ofbizUrl>newmessage</@ofbizUrl>" name="ecomm_sent_mess${index}">
<input name="communicationEventId" value="${communicationEvent.communicationEventId}" type="hidden"/>
</form>
<a href="javascript:document.ecomm_sent_mess${index}.submit()">${uiLabelMap.PartyReply}</a>
</#if>
</td>
</tr>
<tr>
<td>
<div>${partyNameFrom}</div>
</td>
<td>
<div>${partyNameTo}</div>
</td>
<td>
<div>${communicationEvent.subject?default("")}</div>
</td>
<td>
<div>${communicationEvent.entryDate}</div>
</td>
<td align="right">
<form method="post" action="<@ofbizUrl>readmessage</@ofbizUrl>" name="ecomm_read_mess${index}">
<input name="communicationEventId" value="${communicationEvent.communicationEventId}" type="hidden"/>
</form>
<a href="javascript:document.ecomm_read_mess${index}.submit()">${uiLabelMap.EcommerceRead}</a>
<#if isSentMessage>
<form method="post" action="<@ofbizUrl>newmessage</@ofbizUrl>" name="ecomm_sent_mess${index}">
<input name="communicationEventId" value="${communicationEvent.communicationEventId}" type="hidden"/>
</form>
<a href="javascript:document.ecomm_sent_mess${index}.submit()">${uiLabelMap.PartyReply}</a>
</#if>
</td>
</tr>
</#macro>
<div class="screenlet">
<div class="screenlet-title-bar">
<div class="boxlink">
<#if parameters.showSent! == "true">
<a href="<@ofbizUrl>messagelist</@ofbizUrl>" class="submenutextright">${uiLabelMap.EcommerceViewReceivedOnly}</a>
<#else>
<a href="<@ofbizUrl>messagelist?showSent=true</@ofbizUrl>" class="submenutextright">${uiLabelMap.EcommerceViewSent}</a>
</#if>
</div>
<div class="h3">${uiLabelMap.CommonMessages}</div>
</div>
<div class="screenlet-body">
<table width="100%" border="0" cellpadding="1">
<#if (!receivedCommunicationEvents?has_content && !sentCommunicationEvents?has_content)>
<tr><td><div>${uiLabelMap.EcommerceNoMessages}.</div></td></tr>
<#else>
<tr>
<td><div class="tableheadtext">${uiLabelMap.CommonFrom}</div></td>
<td><div class="tableheadtext">${uiLabelMap.CommonTo}</div></td>
<td><div class="tableheadtext">${uiLabelMap.EcommerceSubject}</div></td>
<td><div class="tableheadtext">${uiLabelMap.EcommerceSentDate}</div></td>
<td>&nbsp;</td>
</tr>
<tr><td colspan="5"><hr /></td></tr>
<#list receivedCommunicationEvents! as receivedCommunicationEvent>
<@showMessage communicationEvent=receivedCommunicationEvent isSentMessage=false index=receivedCommunicationEvent_index/>
</#list>
<#list sentCommunicationEvents! as sentCommunicationEvent>
<@showMessage communicationEvent=sentCommunicationEvent isSentMessage=true index=sentCommunicationEvent_index/>
</#list>
</#if>
</table>
<div class="screenlet-title-bar">
<div class="boxlink">
<#if parameters.showSent! == "true">
<a href="<@ofbizUrl>messagelist</@ofbizUrl>" class="submenutextright">
${uiLabelMap.EcommerceViewReceivedOnly}
</a>
<#else>
<a href="<@ofbizUrl>messagelist?showSent=true</@ofbizUrl>" class="submenutextright">
${uiLabelMap.EcommerceViewSent}
</a>
</#if>
</div>
<div class="h3">${uiLabelMap.CommonMessages}</div>
</div>
<div class="screenlet-body">
<table width="100%" border="0" cellpadding="1">
<#if (!receivedCommunicationEvents?has_content && !sentCommunicationEvents?has_content)>
<tr>
<td>
<div>${uiLabelMap.EcommerceNoMessages}.</div>
</td>
</tr>
<#else>
<tr>
<td>
<div class="tableheadtext">${uiLabelMap.CommonFrom}</div>
</td>
<td>
<div class="tableheadtext">${uiLabelMap.CommonTo}</div>
</td>
<td>
<div class="tableheadtext">${uiLabelMap.EcommerceSubject}</div>
</td>
<td>
<div class="tableheadtext">${uiLabelMap.EcommerceSentDate}</div>
</td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="5">
<hr/>
</td>
</tr>
<#list receivedCommunicationEvents! as receivedCommunicationEvent>
<@showMessage communicationEvent=receivedCommunicationEvent
isSentMessage=false index=receivedCommunicationEvent_index/>
</#list>
<#list sentCommunicationEvents! as sentCommunicationEvent>
<@showMessage communicationEvent=sentCommunicationEvent isSentMessage=true index=sentCommunicationEvent_index/>
</#list>
</#if>
</table>
</div>
</div>
@@ -22,24 +22,26 @@ under the License.
<select name="contactListId" class="selectBox" style="width:134px">
<#list publicEmailContactLists as publicEmailContactList>
<#assign publicContactMechType = publicEmailContactList.contactList.getRelatedOne("ContactMechType", true)!>
<option value="${publicEmailContactList.contactList.contactListId}">${publicEmailContactList.contactListType.description!} - ${publicEmailContactList.contactList.contactListName!}</option>
<option value="${publicEmailContactList.contactList.contactListId}">
${publicEmailContactList.contactListType.description!}- ${publicEmailContactList.contactList.contactListName!}
</option>
</#list>
</select>
</#macro>
<script type="text/javascript" language="JavaScript">
function unsubscribe() {
var form = document.getElementById("signUpForContactListForm");
form.action = "<@ofbizUrl>unsubscribeContactListParty</@ofbizUrl>"
document.getElementById("statusId").value = "CLPT_UNSUBS_PENDING";
form.submit();
}
function unsubscribeByContactMech() {
var form = document.getElementById("signUpForContactListForm");
form.action = "<@ofbizUrl>unsubscribeContactListPartyContachMech</@ofbizUrl>"
document.getElementById("statusId").value = "CLPT_UNSUBS_PENDING";
form.submit();
}
function unsubscribe() {
var form = document.getElementById("signUpForContactListForm");
form.action = "<@ofbizUrl>unsubscribeContactListParty</@ofbizUrl>"
document.getElementById("statusId").value = "CLPT_UNSUBS_PENDING";
form.submit();
}
function unsubscribeByContactMech() {
var form = document.getElementById("signUpForContactListForm");
form.action = "<@ofbizUrl>unsubscribeContactListPartyContachMech</@ofbizUrl>"
document.getElementById("statusId").value = "CLPT_UNSUBS_PENDING";
form.submit();
}
</script>
<div id="miniSignUpForContactList" class="screenlet">
@@ -54,7 +56,8 @@ under the License.
<#-- The visitor potentially has an account and party id -->
<#if userLogin?has_content && userLogin.userLoginId != "anonymous">
<#-- They are logged in so lets present the form to sign up with their email address -->
<form method="post" action="<@ofbizUrl>createContactListParty</@ofbizUrl>" name="signUpForContactListForm" id="signUpForContactListForm">
<form method="post" action="<@ofbizUrl>createContactListParty</@ofbizUrl>" name="signUpForContactListForm"
id="signUpForContactListForm">
<fieldset>
<#assign contextPath = request.getContextPath()>
<input type="hidden" name="baseLocation" value="${contextPath}"/>
@@ -68,25 +71,40 @@ under the License.
<label for="preferredContactMechId">${uiLabelMap.CommonEmail} *</label>
<select id="preferredContactMechId" name="preferredContactMechId" class="selectBox">
<#list partyAndContactMechList as partyAndContactMech>
<option value="${partyAndContactMech.contactMechId}"><#if partyAndContactMech.infoString?has_content>${partyAndContactMech.infoString}<#elseif partyAndContactMech.tnContactNumber?has_content>${partyAndContactMech.tnCountryCode!}-${partyAndContactMech.tnAreaCode!}-${partyAndContactMech.tnContactNumber}<#elseif partyAndContactMech.paAddress1?has_content>${partyAndContactMech.paAddress1}, ${partyAndContactMech.paAddress2!}, ${partyAndContactMech.paCity!}, ${partyAndContactMech.paStateProvinceGeoId!}, ${partyAndContactMech.paPostalCode!}, ${partyAndContactMech.paPostalCodeExt!} ${partyAndContactMech.paCountryGeoId!}</#if></option>
<option value="${partyAndContactMech.contactMechId}">
<#if partyAndContactMech.infoString?has_content>
${partyAndContactMech.infoString}
<#elseif partyAndContactMech.tnContactNumber?has_content>
${partyAndContactMech.tnCountryCode!}-${partyAndContactMech.tnAreaCode!}
-${partyAndContactMech.tnContactNumber}
<#elseif partyAndContactMech.paAddress1?has_content>
${partyAndContactMech.paAddress1}, ${partyAndContactMech.paAddress2!}, ${partyAndContactMech.paCity!}
, ${partyAndContactMech.paStateProvinceGeoId!}, ${partyAndContactMech.paPostalCode!}
, ${partyAndContactMech.paPostalCodeExt!} ${partyAndContactMech.paCountryGeoId!}
</#if>
</option>
</#list>
</select>
</div>
<div>
<input type="submit" value="${uiLabelMap.EcommerceSubscribe}"/>
<input type="button" value="${uiLabelMap.EcommerceUnsubscribe}" onclick="javascript:unsubscribeByContactMech();"/>
<input type="button" value="${uiLabelMap.EcommerceUnsubscribe}"
onclick="javascript:unsubscribeByContactMech();"/>
</div>
</fieldset>
</form>
<#else>
<#-- Not logged in so ask them to log in and then sign up or clear the user association -->
<p>${uiLabelMap.EcommerceSignUpForContactListLogIn}</p>
<p><a href="<@ofbizUrl>${checkLoginUrl}</@ofbizUrl>">${uiLabelMap.CommonLogin}</a> ${sessionAttributes.autoName}</p>
<p>
<a href="<@ofbizUrl>${checkLoginUrl}</@ofbizUrl>">${uiLabelMap.CommonLogin}</a> ${sessionAttributes.autoName}
</p>
<p>(${uiLabelMap.CommonNotYou}? <a href="<@ofbizUrl>autoLogout</@ofbizUrl>">${uiLabelMap.CommonClickHere}</a>)</p>
</#if>
<#else>
<#-- There is no party info so just offer an anonymous (non-partyId) related newsletter sign up -->
<form method="post" action="<@ofbizUrl>signUpForContactList</@ofbizUrl>" name="signUpForContactListForm" id="signUpForContactListForm">
<form method="post" action="<@ofbizUrl>signUpForContactList</@ofbizUrl>" name="signUpForContactListForm"
id="signUpForContactListForm">
<fieldset>
<#assign contextPath = request.getContextPath()>
<input type="hidden" name="baseLocation" value="${contextPath}"/>
+221 -167
View File
@@ -20,46 +20,46 @@ under the License.
<#if getUsername>
<script type="text/javascript">
//<![CDATA[
lastFocusedName = null;
function setLastFocused(formElement) {
lastFocusedName = formElement.name;
document.write.lastFocusedName;
}
function clickUsername() {
if (document.getElementById('UNUSEEMAIL').checked) {
if (lastFocusedName == "UNUSEEMAIL") {
jQuery('#PASSWORD').focus();
} else if (lastFocusedName == "PASSWORD") {
jQuery('#UNUSEEMAIL').focus();
} else {
jQuery('#PASSWORD').focus();
}
}
}
function changeEmail() {
if (document.getElementById('UNUSEEMAIL').checked) {
document.getElementById('USERNAME').value = jQuery('#CUSTOMER_EMAIL').val();
}
}
function setEmailUsername() {
if (document.getElementById('UNUSEEMAIL').checked) {
document.getElementById('USERNAME').value = jQuery('#CUSTOMER_EMAIL').val();
// don't disable, make the browser not submit the field: document.getElementById('USERNAME').disabled=true;
} else {
document.getElementById('USERNAME').value='';
// document.getElementById('USERNAME').disabled=false;
}
}
function hideShowUsaStates() {
var customerStateElement = document.getElementById('newuserform_stateProvinceGeoId');
var customerCountryElement = document.getElementById('newuserform_countryGeoId');
if (customerCountryElement.value == "USA" || customerCountryElement.value == "UMI") {
customerStateElement.style.display = "block";
} else {
customerStateElement.style.display = "none";
}
}
//]]>
lastFocusedName = null;
function setLastFocused(formElement) {
lastFocusedName = formElement.name;
document.write.lastFocusedName;
}
function clickUsername() {
if (document.getElementById('UNUSEEMAIL').checked) {
if (lastFocusedName == "UNUSEEMAIL") {
jQuery('#PASSWORD').focus();
} else if (lastFocusedName == "PASSWORD") {
jQuery('#UNUSEEMAIL').focus();
} else {
jQuery('#PASSWORD').focus();
}
}
}
function changeEmail() {
if (document.getElementById('UNUSEEMAIL').checked) {
document.getElementById('USERNAME').value = jQuery('#CUSTOMER_EMAIL').val();
}
}
function setEmailUsername() {
if (document.getElementById('UNUSEEMAIL').checked) {
document.getElementById('USERNAME').value = jQuery('#CUSTOMER_EMAIL').val();
// don't disable, make the browser not submit the field: document.getElementById('USERNAME').disabled=true;
} else {
document.getElementById('USERNAME').value = '';
// document.getElementById('USERNAME').disabled=false;
}
}
function hideShowUsaStates() {
var customerStateElement = document.getElementById('newuserform_stateProvinceGeoId');
var customerCountryElement = document.getElementById('newuserform_countryGeoId');
if (customerCountryElement.value == "USA" || customerCountryElement.value == "UMI") {
customerStateElement.style.display = "block";
} else {
customerStateElement.style.display = "none";
}
}
//]]>
</script>
</#if>
@@ -71,83 +71,87 @@ will generally always be reserved for the logo at the top of the page.
<h2>${uiLabelMap.PartyRequestNewAccount}
<span>
${uiLabelMap.PartyAlreadyHaveAccount}, <a href='<@ofbizUrl>checkLogin/main</@ofbizUrl>'>${uiLabelMap.CommonLoginHere}</a>
${uiLabelMap.PartyAlreadyHaveAccount}, <a
href='<@ofbizUrl>checkLogin/main</@ofbizUrl>'>${uiLabelMap.CommonLoginHere}</a>
</span>
</h2>
<#macro fieldErrors fieldName>
<#if errorMessageList?has_content>
<#assign fieldMessages = Static["org.apache.ofbiz.base.util.MessageString"].getMessagesForField(fieldName, true, errorMessageList)>
<ul>
<#list fieldMessages as errorMsg>
<li class="errorMessage">${errorMsg}</li>
</#list>
</ul>
<#assign fieldMessages =
Static["org.apache.ofbiz.base.util.MessageString"].getMessagesForField(fieldName, true, errorMessageList)>
<ul>
<#list fieldMessages as errorMsg>
<li class="errorMessage">${errorMsg}</li>
</#list>
</ul>
</#if>
</#macro>
<#macro fieldErrorsMulti fieldName1 fieldName2 fieldName3 fieldName4>
<#if errorMessageList?has_content>
<#assign fieldMessages = Static["org.apache.ofbiz.base.util.MessageString"].getMessagesForField(fieldName1, fieldName2, fieldName3, fieldName4, true, errorMessageList)>
<ul>
<#list fieldMessages as errorMsg>
<li class="errorMessage">${errorMsg}</li>
</#list>
</ul>
<#assign fieldMessages =
Static["org.apache.ofbiz.base.util.MessageString"].getMessagesForField(fieldName1, fieldName2,
fieldName3, fieldName4, true, errorMessageList)>
<ul>
<#list fieldMessages as errorMsg>
<li class="errorMessage">${errorMsg}</li>
</#list>
</ul>
</#if>
</#macro>
&nbsp;<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonCancel}</a>
&nbsp;<a href="javascript:document.getElementById('newuserform').submit()" class="button">${uiLabelMap.CommonSave}</a>
&nbsp;<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonCancel}</a>
&nbsp;<a href="javascript:document.getElementById('newuserform').submit()" class="button">${uiLabelMap.CommonSave}</a>
<form method="post" action="<@ofbizUrl>createcustomer${previousParams}</@ofbizUrl>" id="newuserform" name="newuserform">
<#----------------------------------------------------------------------
If you need to include a brief explanation of the form, or certain
elements in the form (such as explaining asterisks denote REQUIRED),
then you should use a <p></p> tag with a class name of "desc"
----------------------------------------------------------------------->
<#----------------------------------------------------------------------
If you need to include a brief explanation of the form, or certain
elements in the form (such as explaining asterisks denote REQUIRED),
then you should use a <p></p> tag with a class name of "desc"
----------------------------------------------------------------------->
<p class="desc">${uiLabelMap.CommonFieldsMarkedAreRequired}</p>
<#----------------------------------------------------------------------
There are two types of fieldsets, regular (full width) fielsets, and
column (half width) fieldsets. If you want to group two sets of inputs
side by side in two columns, give each fieldset a class name of "col"
----------------------------------------------------------------------->
<#----------------------------------------------------------------------
There are two types of fieldsets, regular (full width) fielsets, and
column (half width) fieldsets. If you want to group two sets of inputs
side by side in two columns, give each fieldset a class name of "col"
----------------------------------------------------------------------->
<fieldset class="col">
<legend>${uiLabelMap.PartyFullName}</legend>
<input type="hidden" name="emailProductStoreId" value="${productStoreId}"/>
<#----------------------------------------------------------------------
Each input row should be enclosed in a <div></div>.
This will ensure than each input field clears the one
above it. Alternately, if you want several inputs to float next to
each other, you can enclose them in a table as illustrated below for
the phone numbers, or you can enclose each label/input pair in a span
<#----------------------------------------------------------------------
Each input row should be enclosed in a <div></div>.
This will ensure than each input field clears the one
above it. Alternately, if you want several inputs to float next to
each other, you can enclose them in a table as illustrated below for
the phone numbers, or you can enclose each label/input pair in a span
Example:
<div>
<span>
<input type="text" name="expMonth" value=""/>
<label for="expMonth">Exp. Month</label>
</span>
<span>
<input type="text" name="expYear" value=""/>
<label for="expYear">Exp. Year</label>
</span>
</div>
----------------------------------------------------------------------->
Example:
<div>
<span>
<input type="text" name="expMonth" value=""/>
<label for="expMonth">Exp. Month</label>
</span>
<span>
<input type="text" name="expYear" value=""/>
<label for="expYear">Exp. Year</label>
</span>
</div>
----------------------------------------------------------------------->
<div>
<label for="USER_TITLE">${uiLabelMap.CommonTitle}</label>
<@fieldErrors fieldName="USER_TITLE"/>
<@fieldErrors fieldName="USER_TITLE"/>
<select name="USER_TITLE" id="USER_TITLE">
<#if requestParameters.USER_TITLE?has_content >
<option>${requestParameters.USER_TITLE}</option>
<option value="${requestParameters.USER_TITLE}"> -- </option>
<#else>
<option value="">${uiLabelMap.CommonSelectOne}</option>
</#if>
<#if requestParameters.USER_TITLE?has_content >
<option>${requestParameters.USER_TITLE}</option>
<option value="${requestParameters.USER_TITLE}"> --</option>
<#else>
<option value="">${uiLabelMap.CommonSelectOne}</option>
</#if>
<option>${uiLabelMap.CommonTitleMr}</option>
<option>${uiLabelMap.CommonTitleMrs}</option>
<option>${uiLabelMap.CommonTitleMs}</option>
@@ -157,26 +161,27 @@ will generally always be reserved for the logo at the top of the page.
<div>
<label for="USER_FIRST_NAME">${uiLabelMap.PartyFirstName}*</label>
<@fieldErrors fieldName="USER_FIRST_NAME"/>
<input type="text" name="USER_FIRST_NAME" id="USER_FIRST_NAME" value="${requestParameters.USER_FIRST_NAME!}" />
<@fieldErrors fieldName="USER_FIRST_NAME"/>
<input type="text" name="USER_FIRST_NAME" id="USER_FIRST_NAME" value="${requestParameters.USER_FIRST_NAME!}"/>
</div>
<div>
<label for="USER_MIDDLE_NAME">${uiLabelMap.PartyMiddleInitial}</label>
<@fieldErrors fieldName="USER_MIDDLE_NAME"/>
<input type="text" name="USER_MIDDLE_NAME" id="USER_MIDDLE_NAME" value="${requestParameters.USER_MIDDLE_NAME!}" />
<@fieldErrors fieldName="USER_MIDDLE_NAME"/>
<input type="text" name="USER_MIDDLE_NAME" id="USER_MIDDLE_NAME" value="${requestParameters.USER_MIDDLE_NAME!}"/>
</div>
<div>
<label for="USER_LAST_NAME">${uiLabelMap.PartyLastName}*</label>
<@fieldErrors fieldName="USER_LAST_NAME"/>
<input type="text" name="USER_LAST_NAME" id="USER_LAST_NAME" value="${requestParameters.USER_LAST_NAME!}" />
<@fieldErrors fieldName="USER_LAST_NAME"/>
<input type="text" name="USER_LAST_NAME" id="USER_LAST_NAME" value="${requestParameters.USER_LAST_NAME!}"/>
</div>
<div>
<label for="USER_SUFFIX">${uiLabelMap.PartySuffix}</label>
<@fieldErrors fieldName="USER_SUFFIX"/>
<input type="text" class='inputBox' name="USER_SUFFIX" id="USER_SUFFIX" value="${requestParameters.USER_SUFFIX!}" />
<@fieldErrors fieldName="USER_SUFFIX"/>
<input type="text" class='inputBox' name="USER_SUFFIX" id="USER_SUFFIX"
value="${requestParameters.USER_SUFFIX!}"/>
</div>
</fieldset>
@@ -185,64 +190,69 @@ will generally always be reserved for the logo at the top of the page.
<legend>${uiLabelMap.PartyShippingAddress}</legend>
<div>
<label for="CUSTOMER_ADDRESS1">${uiLabelMap.PartyAddressLine1}*</label>
<@fieldErrors fieldName="CUSTOMER_ADDRESS1"/>
<input type="text" name="CUSTOMER_ADDRESS1" id="CUSTOMER_ADDRESS1" value="${requestParameters.CUSTOMER_ADDRESS1!}" />
<@fieldErrors fieldName="CUSTOMER_ADDRESS1"/>
<input type="text" name="CUSTOMER_ADDRESS1" id="CUSTOMER_ADDRESS1"
value="${requestParameters.CUSTOMER_ADDRESS1!}"/>
</div>
<div>
<label for="CUSTOMER_ADDRESS2">${uiLabelMap.PartyAddressLine2}</label>
<@fieldErrors fieldName="CUSTOMER_ADDRESS2"/>
<input type="text" name="CUSTOMER_ADDRESS2" id="CUSTOMER_ADDRESS2" value="${requestParameters.CUSTOMER_ADDRESS2!}" />
<@fieldErrors fieldName="CUSTOMER_ADDRESS2"/>
<input type="text" name="CUSTOMER_ADDRESS2" id="CUSTOMER_ADDRESS2"
value="${requestParameters.CUSTOMER_ADDRESS2!}"/>
</div>
<div>
<label for="CUSTOMER_CITY">${uiLabelMap.PartyCity}*</label>
<@fieldErrors fieldName="CUSTOMER_CITY"/>
<input type="text" name="CUSTOMER_CITY" id="CUSTOMER_CITY" value="${requestParameters.CUSTOMER_CITY!}" />
<@fieldErrors fieldName="CUSTOMER_CITY"/>
<input type="text" name="CUSTOMER_CITY" id="CUSTOMER_CITY" value="${requestParameters.CUSTOMER_CITY!}"/>
</div>
<div>
<label for="CUSTOMER_POSTAL_CODE">${uiLabelMap.PartyZipCode}*</label>
<@fieldErrors fieldName="CUSTOMER_POSTAL_CODE"/>
<input type="text" name="CUSTOMER_POSTAL_CODE" id="CUSTOMER_POSTAL_CODE" value="${requestParameters.CUSTOMER_POSTAL_CODE!}" />
<@fieldErrors fieldName="CUSTOMER_POSTAL_CODE"/>
<input type="text" name="CUSTOMER_POSTAL_CODE" id="CUSTOMER_POSTAL_CODE"
value="${requestParameters.CUSTOMER_POSTAL_CODE!}"/>
</div>
<div>
<label for="customerCountry">${uiLabelMap.CommonCountry}*</label>
<@fieldErrors fieldName="CUSTOMER_COUNTRY"/>
<select name="CUSTOMER_COUNTRY" id="newuserform_countryGeoId">
${screens.render("component://common/widget/CommonScreens.xml#countries")}
<#assign defaultCountryGeoId = Static["org.apache.ofbiz.entity.util.EntityUtilProperties"].getPropertyValue("general", "country.geo.id.default", delegator)>
<option selected="selected" value="${defaultCountryGeoId}">
<#assign countryGeo = delegator.findOne("Geo",Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("geoId",defaultCountryGeoId), false)>
${countryGeo.get("geoName",locale)}
</option>
</select>
<div/>
<label for="customerCountry">${uiLabelMap.CommonCountry}*</label>
<@fieldErrors fieldName="CUSTOMER_COUNTRY"/>
<select name="CUSTOMER_COUNTRY" id="newuserform_countryGeoId">
${screens.render("component://common/widget/CommonScreens.xml#countries")}
<#assign defaultCountryGeoId =
Static["org.apache.ofbiz.entity.util.EntityUtilProperties"].getPropertyValue("general",
"country.geo.id.default", delegator)>
<option selected="selected" value="${defaultCountryGeoId}">
<#assign countryGeo = delegator.findOne("Geo",Static["org.apache.ofbiz.base.util.UtilMisc"]
.toMap("geoId",defaultCountryGeoId), false)>
${countryGeo.get("geoName",locale)}
</option>
</select>
</div>
<div>
<label for="customerState">${uiLabelMap.PartyState}*</label>
<@fieldErrors fieldName="CUSTOMER_STATE"/>
<select name="CUSTOMER_STATE" id="newuserform_stateProvinceGeoId"></select>
<label for="customerState">${uiLabelMap.PartyState}*</label>
<@fieldErrors fieldName="CUSTOMER_STATE"/>
<select name="CUSTOMER_STATE" id="newuserform_stateProvinceGeoId"></select>
<div/>
<div>
<label for="CUSTOMER_ADDRESS_ALLOW_SOL">${uiLabelMap.PartyAllowAddressSolicitation}</label>
<@fieldErrors fieldName="CUSTOMER_ADDRESS_ALLOW_SOL"/>
<select name="CUSTOMER_ADDRESS_ALLOW_SOL" id="CUSTOMER_ADDRESS_ALLOW_SOL">
<#if (((requestParameters.CUSTOMER_ADDRESS_ALLOW_SOL)!"") == "Y")><option value="Y">${uiLabelMap.CommonY}</option></#if>
<#if (((requestParameters.CUSTOMER_ADDRESS_ALLOW_SOL)!"") == "N")><option value="N">${uiLabelMap.CommonN}</option></#if>
<#if (((requestParameters.CUSTOMER_ADDRESS_ALLOW_SOL)!"") == "Y")>
<option value="Y">${uiLabelMap.CommonY}</option>
</#if>
<#if (((requestParameters.CUSTOMER_ADDRESS_ALLOW_SOL)!"") == "N")>
<option value="N">${uiLabelMap.CommonN}</option>
</#if>
<option></option>
<option value="Y">${uiLabelMap.CommonY}</option>
<option value="N">${uiLabelMap.CommonN}</option>
</select>
</div>
</fieldset>
<fieldset>
<legend>${uiLabelMap.PartyPhoneNumbers}</legend>
<table summary="Tabular form for entering multiple telecom numbers for different purposes. Each row allows user to enter telecom number for a purpose">
<table
summary="Tabular form for entering multiple telecom numbers for different purposes.
Each row allows user to enter telecom number for a purpose">
<thead>
<tr>
<th></th>
@@ -256,14 +266,24 @@ will generally always be reserved for the logo at the top of the page.
<tbody>
<tr>
<th scope="row">${uiLabelMap.PartyHomePhone}</th>
<td><input type="text" name="CUSTOMER_HOME_COUNTRY" size="5" value="${requestParameters.CUSTOMER_HOME_COUNTRY!}" /></td>
<td><input type="text" name="CUSTOMER_HOME_AREA" size="5" value="${requestParameters.CUSTOMER_HOME_AREA!}" /></td>
<td><input type="text" name="CUSTOMER_HOME_CONTACT" value="${requestParameters.CUSTOMER_HOME_CONTACT!}" /></td>
<td><input type="text" name="CUSTOMER_HOME_EXT" size="6" value="${requestParameters.CUSTOMER_HOME_EXT!}"/></td>
<td>
<input type="text" name="CUSTOMER_HOME_COUNTRY" size="5" value="${requestParameters.CUSTOMER_HOME_COUNTRY!}"/>
</td>
<td>
<input type="text" name="CUSTOMER_HOME_AREA" size="5" value="${requestParameters.CUSTOMER_HOME_AREA!}"/>
</td>
<td>
<input type="text" name="CUSTOMER_HOME_CONTACT" value="${requestParameters.CUSTOMER_HOME_CONTACT!}"/></td>
<td>
<input type="text" name="CUSTOMER_HOME_EXT" size="6" value="${requestParameters.CUSTOMER_HOME_EXT!}"/>
</td>
<td>
<select name="CUSTOMER_HOME_ALLOW_SOL">
<#if (((requestParameters.CUSTOMER_HOME_ALLOW_SOL)!"") == "Y")><option value="Y">${uiLabelMap.CommonY}</option></#if>
<#if (((requestParameters.CUSTOMER_HOME_ALLOW_SOL)!"") == "N")><option value="N">${uiLabelMap.CommonN}</option></#if>
<#if (((requestParameters.CUSTOMER_HOME_ALLOW_SOL)!"") == "Y")>
<option value="Y">${uiLabelMap.CommonY}</option></#if>
<#if (((requestParameters.CUSTOMER_HOME_ALLOW_SOL)!"") == "N")>
<option value="N">${uiLabelMap.CommonN}</option>
</#if>
<option></option>
<option value="Y">${uiLabelMap.CommonY}</option>
<option value="N">${uiLabelMap.CommonN}</option>
@@ -272,14 +292,24 @@ will generally always be reserved for the logo at the top of the page.
</tr>
<tr>
<th scope="row">${uiLabelMap.PartyBusinessPhone}</th>
<td><input type="text" name="CUSTOMER_WORK_COUNTRY" size="5" value="${requestParameters.CUSTOMER_WORK_COUNTRY!}" /></td>
<td><input type="text" name="CUSTOMER_WORK_AREA" size="5" value="${requestParameters.CUSTOMER_WORK_AREA!}" /></td>
<td><input type="text" name="CUSTOMER_WORK_CONTACT" value="${requestParameters.CUSTOMER_WORK_CONTACT!}" /></td>
<td><input type="text" name="CUSTOMER_WORK_EXT" size="6" value="${requestParameters.CUSTOMER_WORK_EXT!}" /></td>
<td>
<input type="text" name="CUSTOMER_WORK_COUNTRY" size="5" value="${requestParameters.CUSTOMER_WORK_COUNTRY!}"/>
</td>
<td>
<input type="text" name="CUSTOMER_WORK_AREA" size="5" value="${requestParameters.CUSTOMER_WORK_AREA!}"/>
</td>
<td>
<input type="text" name="CUSTOMER_WORK_CONTACT" value="${requestParameters.CUSTOMER_WORK_CONTACT!}"/>
</td>
<td>
<input type="text" name="CUSTOMER_WORK_EXT" size="6" value="${requestParameters.CUSTOMER_WORK_EXT!}"/>
</td>
<td>
<select name="CUSTOMER_WORK_ALLOW_SOL">
<#if (((requestParameters.CUSTOMER_WORK_ALLOW_SOL)!"") == "Y")><option value="Y">${uiLabelMap.CommonY}</option></#if>
<#if (((requestParameters.CUSTOMER_WORK_ALLOW_SOL)!"") == "N")><option value="N">${uiLabelMap.CommonN}</option></#if>
<#if (((requestParameters.CUSTOMER_WORK_ALLOW_SOL)!"") == "Y")>
<option value="Y">${uiLabelMap.CommonY}</option></#if>
<#if (((requestParameters.CUSTOMER_WORK_ALLOW_SOL)!"") == "N")>
<option value="N">${uiLabelMap.CommonN}</option></#if>
<option></option>
<option value="Y">${uiLabelMap.CommonY}</option>
<option value="N">${uiLabelMap.CommonN}</option>
@@ -288,14 +318,22 @@ will generally always be reserved for the logo at the top of the page.
</tr>
<tr>
<th scope="row">${uiLabelMap.PartyFaxNumber}</th>
<td><input type="text" name="CUSTOMER_FAX_COUNTRY" size="5" value="${requestParameters.CUSTOMER_FAX_COUNTRY!}" /></td>
<td><input type="text" name="CUSTOMER_FAX_AREA" size="5" value="${requestParameters.CUSTOMER_FAX_AREA!}" /></td>
<td><input type="text" name="CUSTOMER_FAX_CONTACT" value="${requestParameters.CUSTOMER_FAX_CONTACT!}" /></td>
<td>
<input type="text" name="CUSTOMER_FAX_COUNTRY" size="5" value="${requestParameters.CUSTOMER_FAX_COUNTRY!}"/>
</td>
<td>
<input type="text" name="CUSTOMER_FAX_AREA" size="5" value="${requestParameters.CUSTOMER_FAX_AREA!}"/>
</td>
<td>
<input type="text" name="CUSTOMER_FAX_CONTACT" value="${requestParameters.CUSTOMER_FAX_CONTACT!}"/>
</td>
<td></td>
<td>
<select name="CUSTOMER_FAX_ALLOW_SOL">
<#if (((requestParameters.CUSTOMER_FAX_ALLOW_SOL)!"") == "Y")><option value="Y">${uiLabelMap.CommonY}</option></#if>
<#if (((requestParameters.CUSTOMER_FAX_ALLOW_SOL)!"") == "N")><option value="N">${uiLabelMap.CommonN}</option></#if>
<#if (((requestParameters.CUSTOMER_FAX_ALLOW_SOL)!"") == "Y")>
<option value="Y">${uiLabelMap.CommonY}</option></#if>
<#if (((requestParameters.CUSTOMER_FAX_ALLOW_SOL)!"") == "N")>
<option value="N">${uiLabelMap.CommonN}</option></#if>
<option></option>
<option value="Y">${uiLabelMap.CommonY}</option>
<option value="N">${uiLabelMap.CommonN}</option>
@@ -304,14 +342,23 @@ will generally always be reserved for the logo at the top of the page.
</tr>
<tr>
<th scope="row">${uiLabelMap.PartyMobilePhone}</th>
<td><input type="text" name="CUSTOMER_MOBILE_COUNTRY" size="5" value="${requestParameters.CUSTOMER_MOBILE_COUNTRY!}" /></td>
<td><input type="text" name="CUSTOMER_MOBILE_AREA" size="5" value="${requestParameters.CUSTOMER_MOBILE_AREA!}" /></td>
<td><input type="text" name="CUSTOMER_MOBILE_CONTACT" value="${requestParameters.CUSTOMER_MOBILE_CONTACT!}" /></td>
<td>
<input type="text" name="CUSTOMER_MOBILE_COUNTRY" size="5"
value="${requestParameters.CUSTOMER_MOBILE_COUNTRY!}"/>
</td>
<td>
<input type="text" name="CUSTOMER_MOBILE_AREA" size="5" value="${requestParameters.CUSTOMER_MOBILE_AREA!}"/>
</td>
<td>
<input type="text" name="CUSTOMER_MOBILE_CONTACT" value="${requestParameters.CUSTOMER_MOBILE_CONTACT!}"/>
</td>
<td></td>
<td>
<select name="CUSTOMER_MOBILE_ALLOW_SOL">
<#if (((requestParameters.CUSTOMER_MOBILE_ALLOW_SOL)!"") == "Y")><option value="Y">${uiLabelMap.CommonY}</option></#if>
<#if (((requestParameters.CUSTOMER_MOBILE_ALLOW_SOL)!"") == "N")><option value="N">${uiLabelMap.CommonN}</option></#if>
<#if (((requestParameters.CUSTOMER_MOBILE_ALLOW_SOL)!"") == "Y")>
<option value="Y">${uiLabelMap.CommonY}</option></#if>
<#if (((requestParameters.CUSTOMER_MOBILE_ALLOW_SOL)!"") == "N")>
<option value="N">${uiLabelMap.CommonN}</option></#if>
<option></option>
<option value="Y">${uiLabelMap.CommonY}</option>
<option value="N">${uiLabelMap.CommonN}</option>
@@ -325,15 +372,18 @@ will generally always be reserved for the logo at the top of the page.
<fieldset class="col">
<legend>${uiLabelMap.PartyEmailAddress}</legend>
<div>
<label for= "CUSTOMER_EMAIL">${uiLabelMap.PartyEmailAddress}*</label>
<label for="CUSTOMER_EMAIL">${uiLabelMap.PartyEmailAddress}*</label>
<@fieldErrors fieldName="CUSTOMER_EMAIL"/>
<input type="text" name="CUSTOMER_EMAIL" id="CUSTOMER_EMAIL" value="${requestParameters.CUSTOMER_EMAIL!}" onchange="changeEmail()" onkeyup="changeEmail()" />
<input type="text" name="CUSTOMER_EMAIL" id="CUSTOMER_EMAIL" value="${requestParameters.CUSTOMER_EMAIL!}"
onchange="changeEmail()" onkeyup="changeEmail()"/>
</div>
<div>
<label for="CUSTOMER_EMAIL_ALLOW_SOL">${uiLabelMap.PartyAllowSolicitation}</label>
<select name="CUSTOMER_EMAIL_ALLOW_SOL" id="CUSTOMER_EMAIL_ALLOW_SOL">
<#if (((requestParameters.CUSTOMER_EMAIL_ALLOW_SOL)!"") == "Y")><option value="Y">${uiLabelMap.CommonY}</option></#if>
<#if (((requestParameters.CUSTOMER_EMAIL_ALLOW_SOL)!"") == "N")><option value="N">${uiLabelMap.CommonN}</option></#if>
<#if (((requestParameters.CUSTOMER_EMAIL_ALLOW_SOL)!"") == "Y")>
<option value="Y">${uiLabelMap.CommonY}</option></#if>
<#if (((requestParameters.CUSTOMER_EMAIL_ALLOW_SOL)!"") == "N")>
<option value="N">${uiLabelMap.CommonN}</option></#if>
<option></option>
<option value="Y">${uiLabelMap.CommonY}</option>
<option value="N">${uiLabelMap.CommonN}</option>
@@ -348,7 +398,8 @@ will generally always be reserved for the logo at the top of the page.
<#if !requestParameters.preferredUsername?has_content>
<div class="form-row inline">
<label for="UNUSEEMAIL">
<input type="checkbox" class="checkbox" name="UNUSEEMAIL" id="UNUSEEMAIL" value="on" onclick="setEmailUsername();" onfocus="setLastFocused(this);"/> ${uiLabelMap.EcommerceUseEmailAddress}
<input type="checkbox" class="checkbox" name="UNUSEEMAIL" id="UNUSEEMAIL" value="on"
onclick="setEmailUsername();" onfocus="setLastFocused(this);"/> ${uiLabelMap.EcommerceUseEmailAddress}
</label>
</div>
</#if>
@@ -356,10 +407,12 @@ will generally always be reserved for the logo at the top of the page.
<div>
<label for="USERNAME">${uiLabelMap.CommonUsername}*</label>
<#if requestParameters.preferredUsername?has_content>
<input type="text" name="showUserName" id="showUserName" value="${requestParameters.USERNAME!}" disabled="disabled"/>
<input type="hidden" name="USERNAME" id="USERNAME" value="${requestParameters.USERNAME!}"/>
<input type="text" name="showUserName" id="showUserName" value="${requestParameters.USERNAME!}"
disabled="disabled"/>
<input type="hidden" name="USERNAME" id="USERNAME" value="${requestParameters.USERNAME!}"/>
<#else>
<input type="text" name="USERNAME" id="USERNAME" value="${requestParameters.USERNAME!}" onfocus="clickUsername();" onchange="changeEmail();"/>
<input type="text" name="USERNAME" id="USERNAME" value="${requestParameters.USERNAME!}"
onfocus="clickUsername();" onchange="changeEmail();"/>
</#if>
</div>
</#if>
@@ -383,7 +436,8 @@ will generally always be reserved for the logo at the top of the page.
<div>
<label for="PASSWORD_HINT">${uiLabelMap.PartyPasswordHint}</label>
<@fieldErrors fieldName="PASSWORD_HINT"/>
<input type="text" class='inputBox' name="PASSWORD_HINT" id="PASSWORD_HINT" value="${requestParameters.PASSWORD_HINT!}" maxlength="100"/>
<input type="text" class='inputBox' name="PASSWORD_HINT" id="PASSWORD_HINT"
value="${requestParameters.PASSWORD_HINT!}" maxlength="100"/>
</div>
<#else>
<div>
@@ -399,13 +453,13 @@ and a tags acting as submit buttons, all button actions should have a
class name of "button". No other class names should be used to style
button actions.
------------------------------------------------------------------------------->
<div class="buttons">
&nbsp;<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonCancel}</a>
&nbsp;<a href="javascript:document.getElementById('newuserform').submit()" class="button">${uiLabelMap.CommonSave}</a>
<div class="buttons">&nbsp;
<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonCancel}</a>&nbsp;
<a href="javascript:document.getElementById('newuserform').submit()" class="button">${uiLabelMap.CommonSave}</a>
</div>
<script type="text/javascript">
//<![CDATA[
hideShowUsaStates();
hideShowUsaStates();
//]]>
</script>
+96 -80
View File
@@ -18,93 +18,109 @@ under the License.
-->
<div class="screenlet">
<div class="screenlet-title-bar">
<div class="boxlink">
<#if showMessageLinks?default("false")?upper_case == "TRUE">
<a href="<@ofbizUrl>messagelist</@ofbizUrl>" class="submenutextright">${uiLabelMap.EcommerceViewList}</a>
</#if>
</div>
<div class="h3">${pageHeader}</div>
<div class="screenlet-title-bar">
<div class="boxlink">
<#if showMessageLinks?default("false")?upper_case == "TRUE">
<a href="<@ofbizUrl>messagelist</@ofbizUrl>" class="submenutextright">${uiLabelMap.EcommerceViewList}</a>
</#if>
</div>
<div class="screenlet-body">
<form name="contactus" method="post" action="<@ofbizUrl>${submitRequest}</@ofbizUrl>" style="margin: 0;">
<input type="hidden" name="partyIdFrom" value="${userLogin.partyId}"/>
<input type="hidden" name="contactMechTypeId" value="WEB_ADDRESS"/>
<input type="hidden" name="communicationEventTypeId" value="WEB_SITE_COMMUNICATI"/>
<#if productStore?has_content>
<input type="hidden" name="partyIdTo" value="${productStore.payToPartyId!}"/>
<div class="h3">${pageHeader}</div>
</div>
<div class="screenlet-body">
<form name="contactus" method="post" action="<@ofbizUrl>${submitRequest}</@ofbizUrl>" style="margin: 0;">
<input type="hidden" name="partyIdFrom" value="${userLogin.partyId}"/>
<input type="hidden" name="contactMechTypeId" value="WEB_ADDRESS"/>
<input type="hidden" name="communicationEventTypeId" value="WEB_SITE_COMMUNICATI"/>
<#if productStore?has_content>
<input type="hidden" name="partyIdTo" value="${productStore.payToPartyId!}"/>
</#if>
<input type="hidden" name="note"
value="${Static["org.apache.ofbiz.base.util.UtilHttp"].getFullRequestUrl(request)}"/>
<#if message?has_content>
<input type="hidden" name="parentCommEventId" value="${communicationEvent.communicationEventId}"/>
<#if (communicationEvent.origCommEventId?? && communicationEvent.origCommEventId?length > 0)>
<#assign orgComm = communicationEvent.origCommEventId>
<#else>
<#assign orgComm = communicationEvent.communicationEventId>
</#if>
<input type="hidden" name="note" value="${Static["org.apache.ofbiz.base.util.UtilHttp"].getFullRequestUrl(request)}"/>
<#if message?has_content>
<input type="hidden" name="parentCommEventId" value="${communicationEvent.communicationEventId}"/>
<#if (communicationEvent.origCommEventId?? && communicationEvent.origCommEventId?length > 0)>
<#assign orgComm = communicationEvent.origCommEventId>
<#else>
<#assign orgComm = communicationEvent.communicationEventId>
</#if>
<input type="hidden" name="origCommEventId" value="${orgComm}"/>
</#if>
<table width="100%" border='0' cellspacing='0' cellpadding='0' class='boxbottom'>
<input type="hidden" name="origCommEventId" value="${orgComm}"/>
</#if>
<table width="100%" border='0' cellspacing='0' cellpadding='0' class='boxbottom'>
<tr>
<td colspan="3">&nbsp;</td>
</tr>
<tr>
<td width="5">&nbsp;</td>
<td align="right">
<div class="tableheadtext">${uiLabelMap.CommonFrom}:</div>
</td>
<td>
<div>&nbsp;${sessionAttributes.autoName!} [${userLogin.partyId}] (${uiLabelMap.CommonNotYou}?&nbsp;<a
href="<@ofbizUrl>autoLogout</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonClickHere}</a>)
</div>
</td>
</tr>
<#if partyIdTo?has_content>
<#assign partyToName =
Static["org.apache.ofbiz.party.party.PartyHelper"].getPartyName(delegator, partyIdTo, true)>
<input type="hidden" name="partyIdTo" value="${partyIdTo}"/>
<tr>
<td colspan="3">&nbsp;</td>
</tr>
<tr>
<td width="5">&nbsp;</td>
<td align="right"><div class="tableheadtext">${uiLabelMap.CommonFrom}:</div></td>
<td><div>&nbsp;${sessionAttributes.autoName!} [${userLogin.partyId}] (${uiLabelMap.CommonNotYou}?&nbsp;<a href="<@ofbizUrl>autoLogout</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonClickHere}</a>)</div></td>
</tr>
<#if partyIdTo?has_content>
<#assign partyToName = Static["org.apache.ofbiz.party.party.PartyHelper"].getPartyName(delegator, partyIdTo, true)>
<input type="hidden" name="partyIdTo" value="${partyIdTo}"/>
<tr>
<td colspan="3">&nbsp;</td>
</tr>
<tr>
<td width="5">&nbsp;</td>
<td align="right"><div class="tableheadtext">${uiLabelMap.CommonTo}:</div></td>
<td><div>&nbsp;${partyToName}</div></td>
</tr>
</#if>
<tr>
<td colspan="3">&nbsp;</td>
</tr>
<#assign defaultSubject = (communicationEvent.subject)?default("")>
<#if (defaultSubject?length == 0)>
<#assign replyPrefix = "RE: ">
<#if parentEvent?has_content>
<#if !parentEvent.subject?default("")?upper_case?starts_with(replyPrefix)>
<#assign defaultSubject = replyPrefix>
</#if>
<#assign defaultSubject = defaultSubject + parentEvent.subject?default("")>
</#if>
</#if>
<tr>
<td width="5">&nbsp;</td>
<td align="right"><div class="tableheadtext">${uiLabelMap.EcommerceSubject}:</div></td>
<td><input type="input" class="inputBox" name="subject" size="20" value="${defaultSubject}"/>
</tr>
<tr>
<td colspan="3">&nbsp;</td>
</tr>
<tr>
<td width="5">&nbsp;</td>
<td align="right"><div class="tableheadtext">${uiLabelMap.CommonMessage}:</div></td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
<td colspan="2">
<textarea name="content" class="textAreaBox" cols="40" rows="5"></textarea>
<td align="right">
<div class="tableheadtext">${uiLabelMap.CommonTo}:</div>
</td>
<td>
<div>&nbsp;${partyToName}</div>
</td>
</tr>
<tr>
<td colspan="3">&nbsp;</td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
<td><input type="submit" class="smallSubmit" value="${uiLabelMap.CommonSend}"/></td>
</tr>
</table>
</form>
</div>
</#if>
<tr>
<td colspan="3">&nbsp;</td>
</tr>
<#assign defaultSubject = (communicationEvent.subject)?default("")>
<#if (defaultSubject?length == 0)>
<#assign replyPrefix = "RE: ">
<#if parentEvent?has_content>
<#if !parentEvent.subject?default("")?upper_case?starts_with(replyPrefix)>
<#assign defaultSubject = replyPrefix>
</#if>
<#assign defaultSubject = defaultSubject + parentEvent.subject?default("")>
</#if>
</#if>
<tr>
<td width="5">&nbsp;</td>
<td align="right">
<div class="tableheadtext">${uiLabelMap.EcommerceSubject}:</div>
</td>
<td><input type="input" class="inputBox" name="subject" size="20" value="${defaultSubject}"/>
</tr>
<tr>
<td colspan="3">&nbsp;</td>
</tr>
<tr>
<td width="5">&nbsp;</td>
<td align="right">
<div class="tableheadtext">${uiLabelMap.CommonMessage}:</div>
</td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
<td colspan="2">
<textarea name="content" class="textAreaBox" cols="40" rows="5"></textarea>
</td>
</tr>
<tr>
<td colspan="3">&nbsp;</td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
<td><input type="submit" class="smallSubmit" value="${uiLabelMap.CommonSend}"/></td>
</tr>
</table>
</form>
</div>
</div>
@@ -18,45 +18,61 @@ under the License.
-->
<div id="serialized-inventory-summary" class="screenlet">
<div class="screenlet-title-bar">
<span class="h3">${uiLabelMap.ProductSerializedInventorySummary}</span>
</div>
<div class="screenlet-body">
<table width="100%" cellspacing="0" cellpadding="2">
<thead>
<tr class="header-row">
<td><div class="tableheadtext">${uiLabelMap.ProductInventoryItemId}</div></td>
<td><div class="tableheadtext">${uiLabelMap.ProductProductName}</div></td>
<td><div class="tableheadtext">${uiLabelMap.ProductSerialNumber}</div></td>
<td><div class="tableheadtext">${uiLabelMap.ProductSoftIdentifier}</div></td>
<td><div class="tableheadtext">${uiLabelMap.ProductActivationNumber}</div></td>
<td><div class="tableheadtext">${uiLabelMap.ProductActivationNumber} ${uiLabelMap.CommonValidThruDate}</div></td>
</tr>
</thead>
<tbody>
<#list inventoryItemList as inventoryItem>
<#assign product = inventoryItem.getRelatedOne('Product', false)!>
<tr>
<td>${inventoryItem.inventoryItemId}</td>
<td>
<#if product?has_content>
<#if product.isVariant?default('N') == 'Y'>
<#assign product = Static['org.apache.ofbiz.product.product.ProductWorker'].getParentProduct(product.productId, delegator)!>
</#if>
<#if product?has_content>
<#assign productName = Static['org.apache.ofbiz.product.product.ProductContentWrapper'].getProductContentAsText(product, 'PRODUCT_NAME', request, "html")!>
<a href="<@ofbizUrl>product?product_id=${product.productId}</@ofbizUrl>" class="linktext">${productName?default(product.productId)}</a>
</#if>
</#if>
</td>
<td>${inventoryItem.serialNumber!}</td>
<td>${inventoryItem.softIdentifier!}</td>
<td>${inventoryItem.activationNumber!}</td>
<td>${inventoryItem.activationValidThru!}</td>
</tr>
</#list>
</tbody>
</table>
</div>
<div class="screenlet-title-bar">
<span class="h3">${uiLabelMap.ProductSerializedInventorySummary}</span>
</div>
<div class="screenlet-body">
<table width="100%" cellspacing="0" cellpadding="2">
<thead>
<tr class="header-row">
<td>
<div class="tableheadtext">${uiLabelMap.ProductInventoryItemId}</div>
</td>
<td>
<div class="tableheadtext">${uiLabelMap.ProductProductName}</div>
</td>
<td>
<div class="tableheadtext">${uiLabelMap.ProductSerialNumber}</div>
</td>
<td>
<div class="tableheadtext">${uiLabelMap.ProductSoftIdentifier}</div>
</td>
<td>
<div class="tableheadtext">${uiLabelMap.ProductActivationNumber}</div>
</td>
<td>
<div class="tableheadtext">${uiLabelMap.ProductActivationNumber} ${uiLabelMap.CommonValidThruDate}</div>
</td>
</tr>
</thead>
<tbody>
<#list inventoryItemList as inventoryItem>
<#assign product = inventoryItem.getRelatedOne('Product', false)!>
<tr>
<td>${inventoryItem.inventoryItemId}</td>
<td>
<#if product?has_content>
<#if product.isVariant?default('N') == 'Y'>
<#assign product = Static['org.apache.ofbiz.product.product.ProductWorker']
.getParentProduct(product.productId, delegator)!>
</#if>
<#if product?has_content>
<#assign productName = Static['org.apache.ofbiz.product.product.ProductContentWrapper']
.getProductContentAsText(product, 'PRODUCT_NAME', request, "html")!>
<a href="<@ofbizUrl>product?product_id=${product.productId}</@ofbizUrl>" class="linktext">
${productName?default(product.productId)}
</a>
</#if>
</#if>
</td>
<td>${inventoryItem.serialNumber!}</td>
<td>${inventoryItem.softIdentifier!}</td>
<td>${inventoryItem.activationNumber!}</td>
<td>${inventoryItem.activationValidThru!}</td>
</tr>
</#list>
</tbody>
</table>
</div>
</div>
@@ -18,44 +18,63 @@ under the License.
-->
<div id="subscription-summary" class="screenlet">
<div class="screenlet-title-bar">
<span class="h3">${uiLabelMap.ProductSubscriptions}</span>
</div>
<div class="screenlet-body">
<table width="100%" cellspacing="0" cellpadding="2">
<thead>
<tr class="header-row">
<td><div class="tableheadtext">${uiLabelMap.ProductSubscription} ${uiLabelMap.CommonId}</div></td>
<td><div class="tableheadtext">${uiLabelMap.ProductSubscription} ${uiLabelMap.CommonType}</div></td>
<td><div class="tableheadtext">${uiLabelMap.CommonDescription}</div></td>
<td><div class="tableheadtext">${uiLabelMap.ProductProductName}</div></td>
<td><div class="tableheadtext">${uiLabelMap.CommonFromDate}</div></td>
<td><div class="tableheadtext">${uiLabelMap.CommonThruDate}</div></td>
</tr>
<tr><td colspan="6"><hr /></td></tr>
</thead>
<tbody>
<#list subscriptionList as subscription>
<tr>
<td>${subscription.subscriptionId}</td>
<td>
<#assign subscriptionType = subscription.getRelatedOne('SubscriptionType', false)!>
<div class="screenlet-title-bar">
<span class="h3">${uiLabelMap.ProductSubscriptions}</span>
</div>
<div class="screenlet-body">
<table width="100%" cellspacing="0" cellpadding="2">
<thead>
<tr class="header-row">
<td>
<div class="tableheadtext">${uiLabelMap.ProductSubscription} ${uiLabelMap.CommonId}</div>
</td>
<td>
<div class="tableheadtext">${uiLabelMap.ProductSubscription} ${uiLabelMap.CommonType}</div>
</td>
<td>
<div class="tableheadtext">${uiLabelMap.CommonDescription}</div>
</td>
<td>
<div class="tableheadtext">${uiLabelMap.ProductProductName}</div>
</td>
<td>
<div class="tableheadtext">${uiLabelMap.CommonFromDate}</div>
</td>
<td>
<div class="tableheadtext">${uiLabelMap.CommonThruDate}</div>
</td>
</tr>
<tr>
<td colspan="6">
<hr/>
</td>
</tr>
</thead>
<tbody>
<#list subscriptionList as subscription>
<tr>
<td>${subscription.subscriptionId}</td>
<td>
<#assign subscriptionType = subscription.getRelatedOne('SubscriptionType', false)!>
${(subscriptionType.description)?default(subscription.subscriptionTypeId?default('N/A'))}
</td>
<td>${subscription.description!}</td>
<td>
<#assign product = subscription.getRelatedOne('Product', false)!>
<#if product?has_content>
<#assign productName = Static['org.apache.ofbiz.product.product.ProductContentWrapper'].getProductContentAsText(product, 'PRODUCT_NAME', request, "html")!>
<a href="<@ofbizUrl>product?product_id=${product.productId}</@ofbizUrl>" class="linktext">${productName?default(product.productId)}</a>
</#if>
</td>
<td>${subscription.fromDate!}</td>
<td>${subscription.thruDate!}</td>
</tr>
</#list>
</tbody>
</table>
</div>
</td>
<td>${subscription.description!}</td>
<td>
<#assign product = subscription.getRelatedOne('Product', false)!>
<#if product?has_content>
<#assign productName = Static['org.apache.ofbiz.product.product.ProductContentWrapper']
.getProductContentAsText(product, 'PRODUCT_NAME', request, "html")!>
<a href="<@ofbizUrl>product?product_id=${product.productId}</@ofbizUrl>" class="linktext">
${productName?default(product.productId)}
</a>
</#if>
</td>
<td>${subscription.fromDate!}</td>
<td>${subscription.thruDate!}</td>
</tr>
</#list>
</tbody>
</table>
</div>
</div>
@@ -20,28 +20,36 @@ under the License.
<div id="billToServerError" class="errorMessage"></div>
<form id="editBillToPostalAddress" method="post" action="">
<fieldset>
<input type="hidden" name="setBillingPurpose" value="Y" />
<input type="hidden" name="contactMechId" value="${billToContactMechId!}" />
<input type="hidden" name="setBillingPurpose" value="Y"/>
<input type="hidden" name="contactMechId" value="${billToContactMechId!}"/>
<#assign productStoreId = Static["org.apache.ofbiz.product.store.ProductStoreWorker"].getProductStoreId(request) />
<input type="hidden" name="productStoreId" value="${productStoreId!}" />
<input type="hidden" name="productStoreId" value="${productStoreId!}"/>
<div>
<label for="billToAddress1">${uiLabelMap.PartyAddressLine1}*</label>
<input type="text" class="required" name="address1" id="billToAddress1" value="${billToAddress1!}" maxlength="30" />
<span id="advice-required-billToAddress1" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
<input type="text" class="required" name="address1" id="billToAddress1" value="${billToAddress1!}"
maxlength="30"/>
<span id="advice-required-billToAddress1" style="display: none" class="errorMessage">
(${uiLabelMap.CommonRequired})
</span>
</div>
<div>
<label for="billToAddress2">${uiLabelMap.PartyAddressLine2}</label>
<input type="text" name="address2" id="billToAddress2" value="${billToAddress2!}" maxlength="30" />
<input type="text" name="address2" id="billToAddress2" value="${billToAddress2!}" maxlength="30"/>
</div>
<div>
<label for="billToCity">${uiLabelMap.PartyCity}*</label>
<input type="text" class="required" name="city" id="billToCity" value="${billToCity!}" maxlength="30" />
<span id="advice-required-billToCity" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
<input type="text" class="required" name="city" id="billToCity" value="${billToCity!}" maxlength="30"/>
<span id="advice-required-billToCity" style="display: none" class="errorMessage">
(${uiLabelMap.CommonRequired})
</span>
</div>
<div>
<label for="billToPostalCode">${uiLabelMap.PartyZipCode}*</label>
<input type="text" class="required" name="postalCode" id="billToPostalCode" value="${billToPostalCode!}" maxlength="10" />
<span id="advice-required-billToPostalCode" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
<input type="text" class="required" name="postalCode" id="billToPostalCode" value="${billToPostalCode!}"
maxlength="10"/>
<span id="advice-required-billToPostalCode" style="display: none" class="errorMessage">
(${uiLabelMap.CommonRequired})
</span>
</div>
<div>
<label for="billToCountryGeoId">${uiLabelMap.CommonCountry}*</label>
@@ -51,13 +59,22 @@ under the License.
</#if>
${screens.render("component://common/widget/CommonScreens.xml#countries")}
</select>
<span id="advice-required-billToCountryGeoId" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
<span id="advice-required-billToCountryGeoId" style="display: none" class="errorMessage">
(${uiLabelMap.CommonRequired})
</span>
</div>
<div id="billToStates">
<label for="billToStateProvinceGeoId">${uiLabelMap.PartyState}*<span id="advice-required-billToStateProvinceGeoId" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span></label>
<label for="billToStateProvinceGeoId">
${uiLabelMap.PartyState}*
<span id="advice-required-billToStateProvinceGeoId" style="display: none" class="errorMessage">
(${uiLabelMap.CommonRequired})
</span>
</label>
<select name="stateProvinceGeoId" id="billToStateProvinceGeoId">
<#if billToStateProvinceGeoId?has_content>
<option value='${billToStateProvinceGeoId!}'>${billToStateProvinceGeo!(billToStateProvinceGeoId!)}</option>
<option value='${billToStateProvinceGeoId!}'>
${billToStateProvinceGeo!(billToStateProvinceGeoId!)}
</option>
<#else>
<option value="_NA_">${uiLabelMap.PartyNoState}</option>
</#if>
@@ -69,23 +86,33 @@ under the License.
<span id="advice-required-billToCountryCode" style="display:none" class="errorMessage"></span>
<span id="advice-required-billToAreaCode" style="display:none" class="errorMessage"></span>
<span id="advice-required-billToContactNumber" style="display:none" class="errorMessage"></span>
<span id="billToPhoneRequired" style="display: none;" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
<input type="hidden" name="phoneContactMechId" value="${billToTelecomNumber.contactMechId!}" />
<input type="text" name="countryCode" id="billToCountryCode" class="required" value="${billToTelecomNumber.countryCode!}" size="3" maxlength="3" />
- <input type="text" name="areaCode" id="billToAreaCode" class="required" value="${billToTelecomNumber.areaCode!}" size="3" maxlength="3" />
- <input type="text" name="contactNumber" id="billToContactNumber" class="required" value="${contactNumber?default("${billToTelecomNumber.contactNumber!}")}" size="6" maxlength="7" />
- <input type="text" name="extension" value="${extension?default("${billToExtension!}")}" size="3" maxlength="3" />
<span id="billToPhoneRequired" style="display: none;" class="errorMessage">
(${uiLabelMap.CommonRequired})
</span>
<input type="hidden" name="phoneContactMechId" value="${billToTelecomNumber.contactMechId!}"/>
<input type="text" name="countryCode" id="billToCountryCode" class="required"
value="${billToTelecomNumber.countryCode!}" size="3" maxlength="3"/>
- <input type="text" name="areaCode" id="billToAreaCode" class="required"
value="${billToTelecomNumber.areaCode!}" size="3" maxlength="3"/>
- <input type="text" name="contactNumber" id="billToContactNumber" class="required"
value="${contactNumber?default("${billToTelecomNumber.contactNumber!}")}" size="6" maxlength="7"/>
- <input type="text" name="extension"
value="${extension?default("${billToExtension!}")}" size="3" maxlength="3"/>
</div>
</#if>
<div class="inline">
<label for="setShippingPurposeForBilling">${uiLabelMap.EcommerceMyDefaultShippingAddress}</label>
<input type="checkbox" name="setShippingPurpose" id="setShippingPurposeForBilling" value="Y" <#if setShippingPurpose??>checked="checked"</#if> />
<input type="checkbox" name="setShippingPurpose" id="setShippingPurposeForBilling" value="Y"
<#if setShippingPurpose??>checked="checked"</#if>/>
</div>
<#--
<div>
<a name="submitEditBillToPostalAddress" id="submitEditBillToPostalAddress" class="button" onclick="updatePartyBillToPostalAddress('submitEditBillToPostalAddress')">${uiLabelMap.CommonSubmit}</a>
<a class="popup_closebox button" href="javascript:void(0);">${uiLabelMap.CommonClose}</a>
</div>
-->
<#--
<div>
<a name="submitEditBillToPostalAddress" id="submitEditBillToPostalAddress" class="button"
onclick="updatePartyBillToPostalAddress('submitEditBillToPostalAddress')">
${uiLabelMap.CommonSubmit}
</a>
<a class="popup_closebox button" href="javascript:void(0);">${uiLabelMap.CommonClose}</a>
</div>
-->
</fieldset>
</form>
@@ -18,68 +18,88 @@ under the License.
-->
<div id="serverError_${contactMech.contactMechId}" class="errorMessage"></div>
<#assign postalAddress = delegator.findOne("PostalAddress", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("contactMechId", contactMech.contactMechId), true) />
<#assign postalAddress = delegator.findOne("PostalAddress",
Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("contactMechId", contactMech.contactMechId), true) />
<form id="editPostalAddress_${contactMech.contactMechId}" method="post" action="">
<fieldset>
<input type="hidden" name="contactMechId" value="${postalAddress.contactMechId!}" />
<input type="hidden" name="contactMechId" value="${postalAddress.contactMechId!}"/>
<#assign productStoreId = Static["org.apache.ofbiz.product.store.ProductStoreWorker"].getProductStoreId(request) />
<input type="hidden" name="productStoreId" value="${productStoreId!}" />
<div>
<label for="address1_${contactMech.contactMechId}">${uiLabelMap.PartyAddressLine1}*</label>
<input type="text" class="required" name="address1" id="address1_${contactMech.contactMechId}" value="${postalAddress.address1!}" maxlength="30" />
<span id="advice-required-address1_${contactMech.contactMechId}" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
</div>
<div>
<label for="additionalAddress2_${contactMech.contactMechId}">${uiLabelMap.PartyAddressLine2}</label>
<input type="text" name="address2" id="additionalAddress2_${contactMech.contactMechId}" value="${postalAddress.address2!}" maxlength="30" />
</div>
<div>
<label for="city_${contactMech.contactMechId}">${uiLabelMap.PartyCity}*</label>
<input type="text" class="required" name="city" id="city_${contactMech.contactMechId}" value="${postalAddress.city!}" maxlength="30" />
<span id="advice-required-city_${contactMech.contactMechId}" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
</div>
<div>
<label for="postalCode_${contactMech.contactMechId}">${uiLabelMap.PartyZipCode}*</label>
<input type="text" class="required" name="postalCode" id="postalCode_${contactMech.contactMechId}" value="${postalAddress.postalCode!}" maxlength="10" />
<span id="advice-required-postalCode_${contactMech.contactMechId}" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
</div>
<div>
<label for="countryGeoId_${contactMech.contactMechId}">${uiLabelMap.CommonCountry}*</label>
<select name="countryGeoId" id="countryGeoId_${contactMech.contactMechId}" class="required">
<#if postalAddress.countryGeoId??>
<#assign geo = delegator.findOne("Geo", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("geoId", postalAddress.countryGeoId), true) />
<option value="${postalAddress.countryGeoId}">${geo.geoName!(postalAddress.countryGeoId)}</option>
</#if>
${screens.render("component://common/widget/CommonScreens.xml#countries")}
</select>
<span id="advice-required-countryGeoId_${contactMech.contactMechId}" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
</div>
<div id="states_${contactMech.contactMechId}">
<label for="stateProvinceGeoId_${contactMech.contactMechId}">${uiLabelMap.PartyState}*</label>
<select name="stateProvinceGeoId" id="stateProvinceGeoId_${contactMech.contactMechId}">
<#if postalAddress.stateProvinceGeoId??>
<#assign geo = delegator.findOne("Geo", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("geoId", postalAddress.stateProvinceGeoId), true) />
<option value="${postalAddress.stateProvinceGeoId}">${geo.geoName!(postalAddress.stateProvinceGeoId)}</option>
<#else>
<option value="_NA_">${uiLabelMap.PartyNoState}</option>
</#if>
</select>
<span id="advice-required-stateProvinceGeoId_${contactMech.contactMechId}" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
</div>
<div class="inline">
<label for="setBillingPurposeForPostalAddress">${uiLabelMap.EcommerceMyDefaultBillingAddress}</label>
<input type="checkbox" name="setBillingPurpose" id="setBillingPurposeForPostalAddress" value="Y" <#if setBillingPurpose??>checked="checked"</#if> />
</div>
<div class="inline">
<label for="setShippingPurposeForPostalAddress">${uiLabelMap.EcommerceMyDefaultShippingAddress}</label>
<input type="checkbox" name="setShippingPurpose" id="setShippingPurposeForPostalAddress" value="Y" <#if setShippingPurpose??>checked="checked"</#if> />
</div>
<#--
<div>
<a name="submitEditPostalAddress_${contactMech.contactMechId}" id="submitEditPostalAddress_${contactMech.contactMechId}" class="button" onclick="updatePartyPostalAddress('submitEditPostalAddress_${contactMech.contactMechId}')">${uiLabelMap.CommonSubmit}</a>
<a href="javascript:void(0);" class="popup_closebox button">${uiLabelMap.CommonClose}</a>
</div>
-->
<input type="hidden" name="productStoreId" value="${productStoreId!}"/>
<div>
<label for="address1_${contactMech.contactMechId}">${uiLabelMap.PartyAddressLine1}*</label>
<input type="text" class="required" name="address1" id="address1_${contactMech.contactMechId}"
value="${postalAddress.address1!}" maxlength="30"/>
<span id="advice-required-address1_${contactMech.contactMechId}" style="display: none"
class="errorMessage">(${uiLabelMap.CommonRequired})</span>
</div>
<div>
<label for="additionalAddress2_${contactMech.contactMechId}">${uiLabelMap.PartyAddressLine2}</label>
<input type="text" name="address2" id="additionalAddress2_${contactMech.contactMechId}"
value="${postalAddress.address2!}" maxlength="30"/>
</div>
<div>
<label for="city_${contactMech.contactMechId}">${uiLabelMap.PartyCity}*</label>
<input type="text" class="required" name="city" id="city_${contactMech.contactMechId}"
value="${postalAddress.city!}" maxlength="30"/>
<span id="advice-required-city_${contactMech.contactMechId}" style="display: none"
class="errorMessage">(${uiLabelMap.CommonRequired})</span>
</div>
<div>
<label for="postalCode_${contactMech.contactMechId}">${uiLabelMap.PartyZipCode}*</label>
<input type="text" class="required" name="postalCode" id="postalCode_${contactMech.contactMechId}"
value="${postalAddress.postalCode!}" maxlength="10"/>
<span id="advice-required-postalCode_${contactMech.contactMechId}" style="display: none"
class="errorMessage">(${uiLabelMap.CommonRequired})</span>
</div>
<div>
<label for="countryGeoId_${contactMech.contactMechId}">${uiLabelMap.CommonCountry}*</label>
<select name="countryGeoId" id="countryGeoId_${contactMech.contactMechId}" class="required">
<#if postalAddress.countryGeoId??>
<#assign geo = delegator.findOne("Geo", Static["org.apache.ofbiz.base.util.UtilMisc"]
.toMap("geoId", postalAddress.countryGeoId), true) />
<option value="${postalAddress.countryGeoId}">${geo.geoName!(postalAddress.countryGeoId)}</option>
</#if>
${screens.render("component://common/widget/CommonScreens.xml#countries")}
</select>
<span id="advice-required-countryGeoId_${contactMech.contactMechId}" style="display: none"
class="errorMessage">(${uiLabelMap.CommonRequired})</span>
</div>
<div id="states_${contactMech.contactMechId}">
<label for="stateProvinceGeoId_${contactMech.contactMechId}">${uiLabelMap.PartyState}*</label>
<select name="stateProvinceGeoId" id="stateProvinceGeoId_${contactMech.contactMechId}">
<#if postalAddress.stateProvinceGeoId??>
<#assign geo = delegator.findOne("Geo", Static["org.apache.ofbiz.base.util.UtilMisc"]
.toMap("geoId", postalAddress.stateProvinceGeoId), true) />
<option value="${postalAddress.stateProvinceGeoId}">
${geo.geoName!(postalAddress.stateProvinceGeoId)}
</option>
<#else>
<option value="_NA_">${uiLabelMap.PartyNoState}</option>
</#if>
</select>
<span id="advice-required-stateProvinceGeoId_${contactMech.contactMechId}" style="display: none"
class="errorMessage">(${uiLabelMap.CommonRequired})</span>
</div>
<div class="inline">
<label for="setBillingPurposeForPostalAddress">${uiLabelMap.EcommerceMyDefaultBillingAddress}</label>
<input type="checkbox" name="setBillingPurpose" id="setBillingPurposeForPostalAddress" value="Y"
<#if setBillingPurpose??>checked="checked"</#if>/>
</div>
<div class="inline">
<label for="setShippingPurposeForPostalAddress">${uiLabelMap.EcommerceMyDefaultShippingAddress}</label>
<input type="checkbox" name="setShippingPurpose" id="setShippingPurposeForPostalAddress" value="Y"
<#if setShippingPurpose??>checked="checked"</#if>/>
</div>
<#--
<div>
<a name="submitEditPostalAddress_${contactMech.contactMechId}"
id="submitEditPostalAddress_${contactMech.contactMechId}" class="button"
onclick="updatePartyPostalAddress('submitEditPostalAddress_${contactMech.contactMechId}')">
${uiLabelMap.CommonSubmit}
</a>
<a href="javascript:void(0);" class="popup_closebox button">${uiLabelMap.CommonClose}</a>
</div>
-->
</fieldset>
</form>
@@ -23,46 +23,64 @@ under the License.
<fieldset class="left center">
<input type="hidden" name="emailContactMechPurposeTypeId" value="PRIMARY_EMAIL" />
<input type="hidden" name="emailContactMechId" value="${emailContactMechId!}" />
<h3>${uiLabelMap.PartyContactInformation}</h3>
<div>
<label for="firstName">${uiLabelMap.PartyFirstName}*<span id="advice-required-firstName" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span></label>
<input type="text" name="firstName" id="firstName" class="required" value="${firstName!}" maxlength="30" />
</div>
<div>
<label for="lastName">${uiLabelMap.PartyLastName}*<span id="advice-required-lastName" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span></label>
<input type="text" name="lastName" id="lastName" class="required" value="${lastName!}" maxlength="30" />
</div>
<div>
<label for="emailAddress">${uiLabelMap.CommonEmail}*
<span id="advice-required-emailAddress" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
<span id="advice-validate-email-emailAddress" class="errorMessage" style="display:none">${uiLabelMap.PartyEmailAddressNotFormattedCorrectly}</span>
</label>
<input type="text" class="required validate-email" name="emailAddress" id="emailAddress" value="${emailAddress!}" maxlength="255" />
</div>
<h3>${uiLabelMap.PartyContactInformation}</h3>
<div>
<label for="firstName">
${uiLabelMap.PartyFirstName}*
<span id="advice-required-firstName" style="display: none" class="errorMessage">
(${uiLabelMap.CommonRequired})
</span>
</label>
<input type="text" name="firstName" id="firstName" class="required" value="${firstName!}" maxlength="30" />
</div>
<div>
<label for="lastName">
${uiLabelMap.PartyLastName}*
<span id="advice-required-lastName" style="display: none" class="errorMessage">
(${uiLabelMap.CommonRequired})
</span>
</label>
<input type="text" name="lastName" id="lastName" class="required" value="${lastName!}" maxlength="30" />
</div>
<div>
<label for="emailAddress">${uiLabelMap.CommonEmail}*
<span id="advice-required-emailAddress" style="display: none" class="errorMessage">
(${uiLabelMap.CommonRequired})
</span>
<span id="advice-validate-email-emailAddress" class="errorMessage" style="display:none">
${uiLabelMap.PartyEmailAddressNotFormattedCorrectly}
</span>
</label>
<input type="text" class="required validate-email" name="emailAddress" id="emailAddress"
value="${emailAddress!}" maxlength="255" />
</div>
</fieldset>
<fieldset class="center right">
<h3>${uiLabelMap.EcommerceAccountInformation}</h3>
<div>
<label for="userLoginId">${uiLabelMap.CommonUsername}*</label>
<input type="text" name="userLoginId" id="userLoginId" value="${userLogin.userLoginId!}" maxlength="255" <#if userLogin.userLoginId??>disabled="disabled"</#if> />
</div>
<div>
<label for="currentPassword">${uiLabelMap.CommonCurrentPassword}*</label>
<input type="password" name="currentPassword" id="currentPassword" value="" maxlength="16" />
</div>
<div>
<label for="newPassword">${uiLabelMap.CommonNewPassword}*</label>
<input type="password" name="newPassword" id="newPassword" value="" maxlength="16" />
</div>
<div>
<label for="newPasswordVerify">${uiLabelMap.CommonNewPasswordVerify}*</label>
<input type="password" name="newPasswordVerify" id="newPasswordVerify" value="" maxlength="16" />
</div>
<h3>${uiLabelMap.EcommerceAccountInformation}</h3>
<div>
<label for="userLoginId">${uiLabelMap.CommonUsername}*</label>
<input type="text" name="userLoginId" id="userLoginId" value="${userLogin.userLoginId!}"
maxlength="255" <#if userLogin.userLoginId??>disabled="disabled"</#if> />
</div>
<div>
<label for="currentPassword">${uiLabelMap.CommonCurrentPassword}*</label>
<input type="password" name="currentPassword" id="currentPassword" value="" maxlength="16" />
</div>
<div>
<label for="newPassword">${uiLabelMap.CommonNewPassword}*</label>
<input type="password" name="newPassword" id="newPassword" value="" maxlength="16" />
</div>
<div>
<label for="newPasswordVerify">${uiLabelMap.CommonNewPasswordVerify}*</label>
<input type="password" name="newPasswordVerify" id="newPasswordVerify" value="" maxlength="16" />
</div>
</fieldset>
<div>
<input type="submit" id="submitEditUserForm" class="button" vlaue="${uiLabelMap.CommonSubmit}">
<a id="cancelEditUserForm" href="<@ofbizUrl>viewprofile</@ofbizUrl>" class="button">${uiLabelMap.CommonCancel}</a>
<a id="cancelEditUserForm" href="<@ofbizUrl>viewprofile</@ofbizUrl>" class="button">
${uiLabelMap.CommonCancel}
</a>
</div>
</form>
</div>
@@ -20,28 +20,36 @@ under the License.
<div id="shipToServerError" class="errorMessage"></div>
<form id="editShipToPostalAddress" method="post" action="">
<fieldset>
<input type="hidden" name="setShippingPurpose" value="Y" />
<input type="hidden" name="contactMechId" value="${shipToContactMechId!}" />
<#assign productStoreId = Static["org.apache.ofbiz.product.store.ProductStoreWorker"].getProductStoreId(request) />
<input type="hidden" name="productStoreId" value="${productStoreId!}" />
<input type="hidden" name="setShippingPurpose" value="Y"/>
<input type="hidden" name="contactMechId" value="${shipToContactMechId!}"/>
<#assign productStoreId = Static["org.apache.ofbiz.product.store.ProductStoreWorker"]
.getProductStoreId(request) />
<input type="hidden" name="productStoreId" value="${productStoreId!}"/>
<div>
<label for="shipToAddress1">${uiLabelMap.PartyAddressLine1}*</label>
<input type="text" class="required" name="address1" id="shipToAddress1" value="${shipToAddress1!}" maxlength="30" />
<span id="advice-required-shipToAddress1" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
<input type="text" class="required" name="address1" id="shipToAddress1" value="${shipToAddress1!}"
maxlength="30"/>
<span id="advice-required-shipToAddress1" style="display: none" class="errorMessage">
(${uiLabelMap.CommonRequired})
</span>
</div>
<div>
<label for="shipToAddress2">${uiLabelMap.PartyAddressLine2}</label>
<input type="text" name="address2" id="shipToAddress2" value="${shipToAddress2!}" maxlength="30" />
<input type="text" name="address2" id="shipToAddress2" value="${shipToAddress2!}" maxlength="30"/>
</div>
<div>
<label for="shipToCity">${uiLabelMap.PartyCity}*</label>
<input type="text" class="required" name="city" id="shipToCity" value="${shipToCity!}" maxlength="30" />
<span id="advice-required-shipToCity" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
<input type="text" class="required" name="city" id="shipToCity" value="${shipToCity!}" maxlength="30"/>
<span id="advice-required-shipToCity" style="display: none" class="errorMessage">
(${uiLabelMap.CommonRequired})
</span>
</div>
<div>
<label for="shipToPostalCode">${uiLabelMap.PartyZipCode}*</label>
<input type="text" class="required" name="postalCode" id="shipToPostalCode" value="${shipToPostalCode!}" maxlength="10" />
<span id="advice-required-shipToPostalCode" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
<input type="text" class="required" name="postalCode" id="shipToPostalCode" value="${shipToPostalCode!}"
maxlength="10"/>
<span id="advice-required-shipToPostalCode" style="display: none"
class="errorMessage">(${uiLabelMap.CommonRequired})</span>
</div>
<div>
<label for="shipToCountryGeoId">${uiLabelMap.CommonCountry}*</label>
@@ -51,13 +59,22 @@ under the License.
</#if>
${screens.render("component://common/widget/CommonScreens.xml#countries")}
</select>
<span id="advice-required-shipToCountryGeoId" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
<span id="advice-required-shipToCountryGeoId" style="display: none"
class="errorMessage">(${uiLabelMap.CommonRequired})
</span>
</div>
<div id="shipToStates">
<label for="shipToStateProvinceGeoId">${uiLabelMap.PartyState}*<span id="advice-required-shipToStateProvinceGeoId" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span></label>
<label for="shipToStateProvinceGeoId">
${uiLabelMap.PartyState}*
<span id="advice-required-shipToStateProvinceGeoId" style="display: none" class="errorMessage">
(${uiLabelMap.CommonRequired})
</span>
</label>
<select name="stateProvinceGeoId" id="shipToStateProvinceGeoId">
<#if shipToStateProvinceGeoId?has_content>
<option value='${shipToStateProvinceGeoId!}'>${shipToStateProvinceGeo!(shipToStateProvinceGeoId!)}</option>
<option value='${shipToStateProvinceGeoId!}'>
${shipToStateProvinceGeo!(shipToStateProvinceGeoId!)}
</option>
<#else>
<option value="_NA_">${uiLabelMap.PartyNoState}</option>
</#if>
@@ -70,22 +87,29 @@ under the License.
<span id="advice-required-shipToAreaCode" style="display:none" class="errorMessage"></span>
<span id="advice-required-shipToContactNumber" style="display:none" class="errorMessage"></span>
<span id="shipToPhoneRequired" style="display: none;" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
<input type="hidden" name="phoneContactMechId" value="${shipToTelecomNumber.contactMechId!}" />
<input type="text" name="countryCode" id="shipToCountryCode" class="required" value="${shipToTelecomNumber.countryCode!}" size="3" maxlength="3" />
- <input type="text" name="areaCode" id="shipToAreaCode" class="required" value="${shipToTelecomNumber.areaCode!}" size="3" maxlength="3" />
- <input type="text" name="contactNumber" id="shipToContactNumber" class="required" value="${contactNumber?default("${shipToTelecomNumber.contactNumber!}")}" size="6" maxlength="7" />
- <input type="text" name="extension" value="${extension?default("${shipToExtension!}")}" size="3" maxlength="3" />
<input type="hidden" name="phoneContactMechId" value="${shipToTelecomNumber.contactMechId!}"/>
<input type="text" name="countryCode" id="shipToCountryCode" class="required"
value="${shipToTelecomNumber.countryCode!}" size="3" maxlength="3"/>
- <input type="text" name="areaCode" id="shipToAreaCode" class="required"
value="${shipToTelecomNumber.areaCode!}" size="3" maxlength="3"/>
- <input type="text" name="contactNumber" id="shipToContactNumber" class="required"
value="${contactNumber?default("${shipToTelecomNumber.contactNumber!}")}" size="6" maxlength="7"/>
- <input type="text" name="extension" value="${extension?default("${shipToExtension!}")}" size="3"
maxlength="3"/>
</div>
</#if>
<div class="inline">
<label for="setBillingPurposeForShipping">${uiLabelMap.EcommerceMyDefaultBillingAddress}</label>
<input type="checkbox" name="setBillingPurpose" id="setBillingPurposeForShipping" value="Y" <#if setBillingPurpose??>checked="checked"</#if> />
<input type="checkbox" name="setBillingPurpose" id="setBillingPurposeForShipping" value="Y"
<#if setBillingPurpose??>checked="checked"</#if>/>
</div>
<#--
<div>
<a name="submitEditShipToPostalAddress" id="submitEditShipToPostalAddress" class="button" onclick="updatePartyShipToPostalAddress('submitEditShipToPostalAddress')">${uiLabelMap.CommonSubmit}</a>
<a name="submitEditShipToPostalAddress" id="submitEditShipToPostalAddress" class="button"
onclick="updatePartyShipToPostalAddress('submitEditShipToPostalAddress')">
${uiLabelMap.CommonSubmit}</a>
<a class="popup_closebox button">${uiLabelMap.CommonClose}</a>
</div>
-->
</fieldset>
</form>
</form>
@@ -17,11 +17,11 @@ specific language governing permissions and limitations
under the License.
-->
<#assign productStoreId = Static["org.apache.ofbiz.product.store.ProductStoreWorker"].getProductStoreId(request) />
<#assign productStoreId = Static["org.apache.ofbiz.product.store.ProductStoreWorker"]
.getProductStoreId(request) />
<div class="screenlet clearfix">
<form id="refreshRequestForm" method="post" action="<@ofbizUrl>manageAddress</@ofbizUrl>">
</form>
<h3>${uiLabelMap.EcommerceAddressBook}</h3>
<div class="screenlet-body">
<#-- Add address -->
@@ -30,82 +30,95 @@ under the License.
<div id="serverError" class="errorMessage"></div>
<form id="createPostalAddressForm" method="post" action="">
<fieldset>
<input type="hidden" name="roleTypeId" value="CUSTOMER" />
<input type="hidden" name="productStoreId" value="${productStoreId!}" />
<input type="hidden" name="roleTypeId" value="CUSTOMER"/>
<input type="hidden" name="productStoreId" value="${productStoreId!}"/>
<div>
<label for="address1">${uiLabelMap.PartyAddressLine1}*
<span id="advice-required-address1" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
<span id="advice-required-address1" style="display: none" class="errorMessage">
(${uiLabelMap.CommonRequired})
</span>
</label>
<input type="text" class="required" name="address1" id="address1" value="" maxlength="30" />
<input type="text" class="required" name="address1" id="address1" value="" maxlength="30"/>
</div>
<div>
<label for="address2">${uiLabelMap.PartyAddressLine2}</label>
<input type="text" name="address2" id="address2" value="" maxlength="30" />
<input type="text" name="address2" id="address2" value="" maxlength="30"/>
</div>
<div>
<label for="city">${uiLabelMap.PartyCity}*
<span id="advice-required-city" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
<span id="advice-required-city" style="display: none"
class="errorMessage">(${uiLabelMap.CommonRequired})</span>
</label>
<input type="text" class="required" name="city" id="city" value="" maxlength="30" />
<input type="text" class="required" name="city" id="city" value="" maxlength="30"/>
</div>
<div>
<label for="postalCode">${uiLabelMap.PartyZipCode}*
<span id="advice-required-postalCode" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
<span id="advice-required-postalCode" style="display: none"
class="errorMessage">(${uiLabelMap.CommonRequired})</span>
</label>
<input type="text" class="required" name="postalCode" id="postalCode" value="" maxlength="10" />
<input type="text" class="required" name="postalCode" id="postalCode" value="" maxlength="10"/>
</div>
<div>
<label for="countryGeoId">${uiLabelMap.CommonCountry}*
<span id="advice-required-countryGeoId" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
<span id="advice-required-countryGeoId" style="display: none"
class="errorMessage">(${uiLabelMap.CommonRequired})
</span>
</label>
<select name="countryGeoId" id="countryGeoId" class="required">
<#if countryGeoId??>
<option value="${countryGeoId}">${countryGeoId}</option>
</#if>
${screens.render("component://common/widget/CommonScreens.xml#countries")}
</select>
<select name="countryGeoId" id="countryGeoId" class="required">
<#if countryGeoId??>
<option value="${countryGeoId}">${countryGeoId}</option>
</#if>
${screens.render("component://common/widget/CommonScreens.xml#countries")}
</select>
</div>
<div id="states">
<label for="stateProvinceGeoId">${uiLabelMap.PartyState}*
<span id="advice-required-stateProvinceGeoId" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
<span id="advice-required-stateProvinceGeoId" style="display: none"
class="errorMessage">(${uiLabelMap.CommonRequired})
</span>
</label>
<select name="stateProvinceGeoId" id="stateProvinceGeoId">
<select name="stateProvinceGeoId" id="stateProvinceGeoId">
<#if stateProvinceGeoId?has_content>
<option value="${stateProvinceGeoId}">${stateProvinceGeoId}</option>
<#else>
<option value="_NA_">${uiLabelMap.PartyNoState}</option>
</#if>
</select>
</select>
</div>
<div class="inline">
<label for="setBillingPurpose">${uiLabelMap.EcommerceMyDefaultBillingAddress}</label>
<input type="checkbox" name="setBillingPurpose" id="setBillingPurpose" value="Y" <#if setBillingPurpose??>checked="checked"</#if> />
<input type="checkbox" name="setBillingPurpose" id="setBillingPurpose" value="Y"
<#if setBillingPurpose??>checked="checked"</#if>/>
</div>
<div class="inline">
<label for="setShippingPurpose">${uiLabelMap.EcommerceMyDefaultShippingAddress}</label>
<input type="checkbox" name="setShippingPurpose" id="setShippingPurpose" value="Y" <#if setShippingPurpose??>checked="checked"</#if> />
<input type="checkbox" name="setShippingPurpose" id="setShippingPurpose" value="Y"
<#if setShippingPurpose??>checked="checked"</#if>/>
</div>
</fieldset>
</form>
</div>
<script type="text/javascript">
//<![CDATA[
jQuery("#displayCreateAddressForm").dialog({autoOpen: false, modal: true,
//<![CDATA[
jQuery("#displayCreateAddressForm").dialog({
autoOpen: false, modal: true,
buttons: {
'${uiLabelMap.CommonSubmit}': function() {
var createAddressForm = jQuery("#displayCreateAddressForm");
if (jQuery("#createPostalAddressForm").valid()) {
jQuery("<p>${uiLabelMap.CommonUpdatingData}</p>").insertBefore(createAddressForm);
createPartyPostalAddress();
}
},
'${uiLabelMap.CommonClose}': function() {
jQuery(this).dialog('close');
'${uiLabelMap.CommonSubmit}': function () {
var createAddressForm = jQuery("#displayCreateAddressForm");
if (jQuery("#createPostalAddressForm").valid()) {
jQuery("<p>${uiLabelMap.CommonUpdatingData}</p>").insertBefore(createAddressForm);
createPartyPostalAddress();
}
},
'${uiLabelMap.CommonClose}': function () {
jQuery(this).dialog('close');
}
}
});
jQuery("#addAddress").click(function(){jQuery("#displayCreateAddressForm").dialog("open")});
//]]>
});
jQuery("#addAddress").click(function () {
jQuery("#displayCreateAddressForm").dialog("open")
});
//]]>
</script>
</div>
@@ -113,104 +126,122 @@ under the License.
<div class="left center">
<h3>${uiLabelMap.EcommerceDefaultAddresses}</h3>
<div class="screenlet-body">
<#--===================================== Billing Address and Telecom number ===========================================-->
<#--===================================== Billing Address and Telecom number ====================================-->
<h3>${uiLabelMap.EcommercePrimaryBillingAddress}</h3>
<ul>
<#if billToContactMechId??>
<li>${billToAddress1!}</li>
<#if billToAddress2?has_content><li>${billToAddress2!}</li></#if>
<li>
<#if billToStateProvinceGeoId?has_content && billToStateProvinceGeoId != "_NA_">
${billToStateProvinceGeoId}
<#if billToContactMechId??>
<li>${billToAddress1!}</li>
<#if billToAddress2?has_content>
<li>${billToAddress2!}</li>
</#if>
${billToCity!},
${billToPostalCode!}
</li>
<li>${billToCountryGeoId!}</li>
<#if billToTelecomNumber?has_content>
<li>
${billToTelecomNumber.countryCode!}-
${billToTelecomNumber.areaCode!}-
${billToTelecomNumber.contactNumber!}
<#if billToExtension??>-${billToExtension!}</#if>
</li>
<li>
<#if billToStateProvinceGeoId?has_content && billToStateProvinceGeoId != "_NA_">
${billToStateProvinceGeoId}
</#if>
${billToCity!},
${billToPostalCode!}
</li>
<li>${billToCountryGeoId!}</li>
<#if billToTelecomNumber?has_content>
<li>
${billToTelecomNumber.countryCode!}-
${billToTelecomNumber.areaCode!}-
${billToTelecomNumber.contactNumber!}
<#if billToExtension??>-${billToExtension!}</#if>
</li>
</#if>
<li>
<a id="updateBillToPostalAddress" href="javascript:void(0)"
class="button popup_link">${uiLabelMap.CommonEdit}
</a>
</li>
<#else>
<li>${uiLabelMap.PartyPostalInformationNotFound}</li>
</#if>
<li><a id="updateBillToPostalAddress" href="javascript:void(0)" class="button popup_link">${uiLabelMap.CommonEdit}</a></li>
<#else>
<li>${uiLabelMap.PartyPostalInformationNotFound}</li>
</#if>
</ul>
<div id="displayEditBillToPostalAddress" style="display: none;">
<#include "EditBillToAddress.ftl" />
</div>
<script type="text/javascript">
//<![CDATA[
jQuery("#displayEditBillToPostalAddress").dialog({autoOpen: false, modal: true,
buttons: {
'${uiLabelMap.CommonSubmit}': function() {
var createAddressForm = jQuery("#displayEditBillToPostalAddress");
if (jQuery("#editBillToPostalAddress").valid()) {
jQuery("<p>${uiLabelMap.CommonUpdatingData}</p>").insertBefore(createAddressForm);
updatePartyBillToPostalAddress();
//<![CDATA[
jQuery("#displayEditBillToPostalAddress").dialog({
autoOpen: false, modal: true,
buttons: {
'${uiLabelMap.CommonSubmit}': function () {
var createAddressForm = jQuery("#displayEditBillToPostalAddress");
if (jQuery("#editBillToPostalAddress").valid()) {
jQuery("<p>${uiLabelMap.CommonUpdatingData}</p>").insertBefore(createAddressForm);
updatePartyBillToPostalAddress();
}
},
'${uiLabelMap.CommonClose}': function () {
jQuery(this).dialog('close');
}
}
},
'${uiLabelMap.CommonClose}': function() {
jQuery(this).dialog('close');
}
}
});
jQuery("#updateBillToPostalAddress").click(function(){jQuery("#displayEditBillToPostalAddress").dialog("open")});
//]]>
});
jQuery("#updateBillToPostalAddress").click(function () {
jQuery("#displayEditBillToPostalAddress").dialog("open")
});
//]]>
</script>
<#--===================================== Shipping Address and Telecom number ===========================================-->
<#--===================================== Shipping Address and Telecom number ===================================-->
<h3>${uiLabelMap.EcommercePrimaryShippingAddress}</h3>
<ul>
<#if shipToContactMechId??>
<li>${shipToAddress1!}</li>
<#if shipToAddress2?has_content><li>${shipToAddress2!}</li></#if>
<li>
<#if shipToStateProvinceGeoId?has_content && shipToStateProvinceGeoId != "_NA_">
${shipToStateProvinceGeoId}
<#if shipToContactMechId??>
<li>${shipToAddress1!}</li>
<#if shipToAddress2?has_content>
<li>${shipToAddress2!}</li>
</#if>
<li>
<#if shipToStateProvinceGeoId?has_content && shipToStateProvinceGeoId != "_NA_">
${shipToStateProvinceGeoId}
</#if>
${shipToCity!},
${shipToPostalCode!}
</li>
<li>${shipToCountryGeoId!}</li>
<#if shipToTelecomNumber?has_content>
<li>
${shipToTelecomNumber.countryCode!}-
${shipToTelecomNumber.areaCode!}-
${shipToTelecomNumber.contactNumber!}
<#if shipToExtension??>-${shipToExtension!}</#if>
</li>
</#if>
<li>
<a id="updateShipToPostalAddress" href="javascript:void(0)"
class="button popup_link">${uiLabelMap.CommonEdit}
</a>
</li>
<#else>
<li>${uiLabelMap.PartyPostalInformationNotFound}</li>
</#if>
${shipToCity!},
${shipToPostalCode!}
</li>
<li>${shipToCountryGeoId!}</li>
<#if shipToTelecomNumber?has_content>
<li>
${shipToTelecomNumber.countryCode!}-
${shipToTelecomNumber.areaCode!}-
${shipToTelecomNumber.contactNumber!}
<#if shipToExtension??>-${shipToExtension!}</#if>
</li>
</#if>
<li><a id="updateShipToPostalAddress" href="javascript:void(0)" class="button popup_link">${uiLabelMap.CommonEdit}</a></li>
<#else>
<li>${uiLabelMap.PartyPostalInformationNotFound}</li>
</#if>
</ul>
<div id="displayEditShipToPostalAddress" style="display: none;">
<#include "EditShipToAddress.ftl" />
</div>
<script type="text/javascript">
//<![CDATA[
jQuery("#displayEditShipToPostalAddress").dialog({autoOpen: false, modal: true,
buttons: {
'${uiLabelMap.CommonSubmit}': function() {
var createAddressForm = jQuery("#displayEditShipToPostalAddress");
if (jQuery("#editShipToPostalAddress").valid()) {
jQuery("<p>${uiLabelMap.CommonUpdatingData}</p>").insertBefore(createAddressForm);
updatePartyShipToPostalAddress('submitEditShipToPostalAddress');
}
},
'${uiLabelMap.CommonClose}': function() {
jQuery(this).dialog('close');
}
}
});
jQuery("#updateShipToPostalAddress").click(function(){jQuery("#displayEditShipToPostalAddress").dialog("open")});
//<![CDATA[
jQuery("#displayEditShipToPostalAddress").dialog({
autoOpen: false, modal: true,
buttons: {
'${uiLabelMap.CommonSubmit}': function () {
var createAddressForm = jQuery("#displayEditShipToPostalAddress");
if (jQuery("#editShipToPostalAddress").valid()) {
jQuery("<p>${uiLabelMap.CommonUpdatingData}</p>").insertBefore(createAddressForm);
updatePartyShipToPostalAddress('submitEditShipToPostalAddress');
}
},
'${uiLabelMap.CommonClose}': function () {
jQuery(this).dialog('close');
}
}
});
jQuery("#updateShipToPostalAddress").click(function () {
jQuery("#displayEditShipToPostalAddress").dialog("open")
});
//]]>
</script>
</div>
@@ -233,59 +264,69 @@ under the License.
<#include "EditPostalAddress.ftl" />
</div>
<#if postalAddress??>
<div class="form-field">
<ul>
<li>${postalAddress.address1}</li>
<#if postalAddress.address2?has_content><li>${postalAddress.address2}</li></#if>
<li>${postalAddress.city}</li>
<li>
<#if postalAddress.stateProvinceGeoId?has_content && postalAddress.stateProvinceGeoId != "_NA_">
${postalAddress.stateProvinceGeoId}
</#if>
${postalAddress.postalCode!}
</li>
<#if postalAddress.countryGeoId?has_content><li>${postalAddress.countryGeoId}</li></#if>
</ul>
<#if (!postalAddress.countryGeoId?has_content || postalAddress.countryGeoId! = "USA")>
<#assign addr1 = postalAddress.address1! />
<#if (addr1.indexOf(" ") > 0)>
<#assign addressNum = addr1.substring(0, addr1.indexOf(" ")) />
<#assign addressOther = addr1.substring(addr1.indexOf(" ")+1) />
<a target="_blank" href="#" class="linktext">(${uiLabelMap.CommonLookupWhitepages})</a>
</#if>
<div class="form-field">
<ul>
<li>${postalAddress.address1}</li>
<#if postalAddress.address2?has_content>
<li>${postalAddress.address2}</li></#if>
<li>${postalAddress.city}</li>
<li>
<#if postalAddress.stateProvinceGeoId?has_content && postalAddress.stateProvinceGeoId != "_NA_">
${postalAddress.stateProvinceGeoId}
</#if>
</div>
${postalAddress.postalCode!}
</li>
<#if postalAddress.countryGeoId?has_content>
<li>${postalAddress.countryGeoId}</li>
</#if>
</ul>
<#if (!postalAddress.countryGeoId?has_content || postalAddress.countryGeoId! = "USA")>
<#assign addr1 = postalAddress.address1! />
<#if (addr1.indexOf(" ") > 0)>
<#assign addressNum = addr1.substring(0, addr1.indexOf(" ")) />
<#assign addressOther = addr1.substring(addr1.indexOf(" ")+1) />
<a target="_blank" href="#" class="linktext">(${uiLabelMap.CommonLookupWhitepages})</a>
</#if>
</#if>
</div>
<div>
<span>
<a id="update_${contactMech.contactMechId}" href="javascript:void(0)" class="button popup_link" onclick="showState('${contactMech.contactMechId}')">${uiLabelMap.CommonEdit}</a></span>
<form id="deletePostalAddress_${contactMech.contactMechId}" method= "post" action= "<@ofbizUrl>deletePostalAddress</@ofbizUrl>">
<fieldset>
<input type= "hidden" name= "contactMechId" value= "${contactMech.contactMechId}" />
</fieldset>
</form>
<a id="update_${contactMech.contactMechId}" href="javascript:void(0)" class="button popup_link"
onclick="showState('${contactMech.contactMechId}')">${uiLabelMap.CommonEdit}
</a>
</span>
<form id="deletePostalAddress_${contactMech.contactMechId}" method="post"
action="<@ofbizUrl>deletePostalAddress</@ofbizUrl>">
<fieldset>
<input type="hidden" name="contactMechId" value="${contactMech.contactMechId}"/>
</fieldset>
</form>
</div>
<script type="text/javascript">
//<![CDATA[
jQuery("#displayEditAddressForm_${contactMech.contactMechId}").dialog({autoOpen: false, modal: true,
buttons: {
'${uiLabelMap.CommonSubmit}': function() {
var createAddressForm = jQuery("#displayEditAddressForm_${contactMech.contactMechId}");
if (jQuery("#editPostalAddress_${contactMech.contactMechId}").valid()) {
jQuery("<p>${uiLabelMap.CommonUpdatingData}</p>").insertBefore(createAddressForm);
updatePartyPostalAddress('submitEditPostalAddress_${contactMech.contactMechId}');
}
},
'${uiLabelMap.CommonClose}': function() {
jQuery(this).dialog('close');
}
}
});
jQuery("#update_${contactMech.contactMechId}").click(function(){jQuery("#displayEditAddressForm_${contactMech.contactMechId}").dialog("open")});
//]]>
//<![CDATA[
jQuery("#displayEditAddressForm_${contactMech.contactMechId}").dialog({
autoOpen: false, modal: true,
buttons: {
'${uiLabelMap.CommonSubmit}': function () {
var createAddressForm = jQuery("#displayEditAddressForm_${contactMech.contactMechId}");
if (jQuery("#editPostalAddress_${contactMech.contactMechId}").valid()) {
jQuery("<p>${uiLabelMap.CommonUpdatingData}</p>").insertBefore(createAddressForm);
updatePartyPostalAddress('submitEditPostalAddress_${contactMech.contactMechId}');
}
},
'${uiLabelMap.CommonClose}': function () {
jQuery(this).dialog('close');
}
}
});
jQuery("#update_${contactMech.contactMechId}").click(function () {
jQuery("#displayEditAddressForm_${contactMech.contactMechId}").dialog("open")
});
//]]>
</script>
<#else>
<div>
<label>${uiLabelMap.PartyPostalInformationNotFound}.</label>
<label>${uiLabelMap.PartyPostalInformationNotFound}.</label>
</div>
</#if>
</#if>
@@ -293,9 +334,9 @@ under the License.
</#list>
<#if postalAddressFlag == "N">
<div>
<label>${uiLabelMap.PartyPostalInformationNotFound}.</label>
<label>${uiLabelMap.PartyPostalInformationNotFound}.</label>
</div>
</#if>
</div>
</div>
</div>
</div>
@@ -23,152 +23,243 @@ under the License.
<form id="newUserForm" method="post" action="<@ofbizUrl>createCustomerProfile</@ofbizUrl>">
<fieldset class="left center">
<legend>${uiLabelMap.PartyContactInformation}</legend>
<input type="hidden" name="roleTypeId" value="CUSTOMER" />
<input type="hidden" name="emailContactMechPurposeTypeId" value="PRIMARY_EMAIL" />
<#assign productStoreId = Static["org.apache.ofbiz.product.store.ProductStoreWorker"].getProductStoreId(request) />
<input type="hidden" name="productStoreId" value="${productStoreId!}" />
<div>
<label for="firstName">${uiLabelMap.PartyFirstName}* <span id="advice-required-firstName" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span></label>
<input type="text" name="firstName" id="firstName" class="required" value="${parameters.firstName!}" maxlength="30" />
</div>
<div>
<label for="lastName">${uiLabelMap.PartyLastName}* <span id="advice-required-lastName" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span></label>
<input type="text" name="lastName" id="lastName" class="required" value="${parameters.lastName!}" maxlength="30" />
</div>
<div>
<label for="emailAddress">${uiLabelMap.CommonEmail}*
<span id="advice-required-emailAddress" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
</label>
<input type="text" class="required validate-email" name="emailAddress" id="emailAddress" value="${parameters.emailAddress!}" maxlength="255" />
</div>
<span id="advice-validate-email-emailAddress" class="errorMessage" style="display:none">${uiLabelMap.PartyEmailAddressNotFormattedCorrectly}</span>
<input type="hidden" name="roleTypeId" value="CUSTOMER"/>
<input type="hidden" name="emailContactMechPurposeTypeId" value="PRIMARY_EMAIL"/>
<#assign productStoreId =
Static["org.apache.ofbiz.product.store.ProductStoreWorker"].getProductStoreId(request) />
<input type="hidden" name="productStoreId" value="${productStoreId!}"/>
<div>
<label for="firstName">${uiLabelMap.PartyFirstName}*
<span id="advice-required-firstName" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
</label>
<input type="text" name="firstName" id="firstName" class="required" value="${parameters.firstName!}"
maxlength="30"/>
</div>
<div>
<label for="lastName">${uiLabelMap.PartyLastName}*
<span id="advice-required-lastName" style="display: none" class="errorMessage">
(${uiLabelMap.CommonRequired})
</span>
</label>
<input type="text" name="lastName" id="lastName" class="required" value="${parameters.lastName!}"
maxlength="30"/>
</div>
<div>
<label for="emailAddress">${uiLabelMap.CommonEmail}*
<span id="advice-required-emailAddress" style="display: none" class="errorMessage">
(${uiLabelMap.CommonRequired})
</span>
</label>
<input type="text" class="required validate-email" name="emailAddress" id="emailAddress"
value="${parameters.emailAddress!}" maxlength="255"/>
</div>
<span id="advice-validate-email-emailAddress" class="errorMessage" style="display:none">
${uiLabelMap.PartyEmailAddressNotFormattedCorrectly}
</span>
</fieldset>
<fieldset class="center right" id="userNameAndPasswordPanel">
<legend>${uiLabelMap.EcommerceAccountInformation}</legend>
<div>
<label for="username">${uiLabelMap.CommonUsername}* <span id="advice-required-username" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span></label>
<input type="text" name="username" id="username" class="required" value="${parameters.username!}" maxlength="255" />
</div>
<div>
<label for="password">${uiLabelMap.CommonPassword}* <span id="advice-required-password" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span></label>
<input type="password" name="password" id="password" class="required validate-password" value="${parameters.password!}" maxlength="16" />
<span id="advice-validate-password-password" class="errorMessage" style="display:none">${uiLabelMap["loginservices.password_may_not_equal_username"]}</span>
</div>
<div>
<label for="passwordVerify">${uiLabelMap.PartyRepeatPassword}* <span id="advice-required-passwordVerify" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span></label>
<input type="password" name="passwordVerify" id="passwordVerify" class="required validate-passwordVerify" value="${parameters.passwordVerify!}" maxlength="16" />
<span id="advice-validate-passwordVerify-passwordVerify" class="errorMessage" style="display:none">${uiLabelMap["loginservices.password_did_not_match_verify_password"]}</span>
</div>
<legend>${uiLabelMap.EcommerceAccountInformation}</legend>
<div>
<label for="username">${uiLabelMap.CommonUsername}*
<span id="advice-required-username" style="display: none" class="errorMessage">
(${uiLabelMap.CommonRequired})
</span>
</label>
<input type="text" name="username" id="username" class="required" value="${parameters.username!}"
maxlength="255"/>
</div>
<div>
<label for="password">${uiLabelMap.CommonPassword}*
<span id="advice-required-password" style="display: none" class="errorMessage">
(${uiLabelMap.CommonRequired})
</span>
</label>
<input type="password" name="password" id="password" class="required validate-password"
value="${parameters.password!}" maxlength="16"/>
<span id="advice-validate-password-password" class="errorMessage" style="display:none">
${uiLabelMap["loginservices.password_may_not_equal_username"]}
</span>
</div>
<div>
<label for="passwordVerify">${uiLabelMap.PartyRepeatPassword}*
<span id="advice-required-passwordVerify" style="display: none" class="errorMessage">
(${uiLabelMap.CommonRequired})
</span>
</label>
<input type="password" name="passwordVerify" id="passwordVerify" class="required validate-passwordVerify"
value="${parameters.passwordVerify!}" maxlength="16"/>
<span id="advice-validate-passwordVerify-passwordVerify" class="errorMessage" style="display:none">
${uiLabelMap["loginservices.password_did_not_match_verify_password"]}
</span>
</div>
</fieldset>
<fieldset class="left center">
<legend>${uiLabelMap.OrderShippingInformation}</legend>
<legend>${uiLabelMap.OrderShippingInformation}</legend>
<div>
<label for="shipToAddress1">${uiLabelMap.PartyAddressLine1}*
<span id="advice-required-shipToAddress1" style="display: none" class="errorMessage">
(${uiLabelMap.CommonRequired})
</span>
</label>
<input type="text" name="shipToAddress1" id="shipToAddress1" class="required"
value="${parameters.shipToAddress1!}"/>
</div>
<div>
<label for="shipToAddress2">${uiLabelMap.PartyAddressLine2}</label>
<input type="text" name="shipToAddress2" id="shipToAddress2" value="${parameters.shipToAddress2!}"/>
</div>
<div>
<label for="shipToCity">${uiLabelMap.CommonCity}*
<span id="advice-required-shipToCity" style="display: none" class="errorMessage">
(${uiLabelMap.CommonRequired})
</span>
</label>
<input type="text" name="shipToCity" id="shipToCity" class="required" value="${parameters.shipToCity!}"/>
</div>
<div>
<label for="shipToPostalCode">${uiLabelMap.PartyZipCode}*
<span id="advice-required-shipToPostalCode" style="display: none" class="errorMessage">
(${uiLabelMap.CommonRequired})
</span>
</label>
<input type="text" name="shipToPostalCode" id="shipToPostalCode" class="required"
value="${parameters.shipToPostalCode!}" maxlength="10"/>
</div>
<div>
<label for="shipToCountryGeoId">${uiLabelMap.CommonCountry}*
<span id="advice-required-shipToCountryGeoId" style="display: none" class="errorMessage">
(${uiLabelMap.CommonRequired})
</span>
</label>
<div>
<label for="shipToAddress1">${uiLabelMap.PartyAddressLine1}* <span id="advice-required-shipToAddress1" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span></label>
<input type="text" name="shipToAddress1" id="shipToAddress1" class="required" value="${parameters.shipToAddress1!}" />
<select name="shipToCountryGeoId" id="shipToCountryGeoId">
<#if shipToCountryGeoId??>
<option value="${shipToCountryGeoId!}">${shipToCountryProvinceGeo!(shipToCountryGeoId!)}</option>
</#if>
${screens.render("component://common/widget/CommonScreens.xml#countries")}
</select>
</div>
</div>
<div id='shipToStates'>
<label for="shipToStateProvinceGeoId">${uiLabelMap.CommonState}*
<span id="advice-required-shipToStateProvinceGeoId" style="display: none" class="errorMessage">
(${uiLabelMap.CommonRequired})
</span>
</label>
<div>
<label for="shipToAddress2">${uiLabelMap.PartyAddressLine2}</label>
<input type="text" name="shipToAddress2" id="shipToAddress2" value="${parameters.shipToAddress2!}" />
</div>
<div>
<label for="shipToCity">${uiLabelMap.CommonCity}* <span id="advice-required-shipToCity" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span></label>
<input type="text" name="shipToCity" id="shipToCity" class="required" value="${parameters.shipToCity!}" />
</div>
<div>
<label for="shipToPostalCode">${uiLabelMap.PartyZipCode}* <span id="advice-required-shipToPostalCode" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span></label>
<input type="text" name="shipToPostalCode" id="shipToPostalCode" class="required" value="${parameters.shipToPostalCode!}" maxlength="10" />
</div>
<div>
<label for="shipToCountryGeoId">${uiLabelMap.CommonCountry}* <span id="advice-required-shipToCountryGeoId" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span></label>
<div>
<select name="shipToCountryGeoId" id="shipToCountryGeoId">
<#if shipToCountryGeoId??>
<option value="${shipToCountryGeoId!}">${shipToCountryProvinceGeo!(shipToCountryGeoId!)}</option>
</#if>
${screens.render("component://common/widget/CommonScreens.xml#countries")}
</select>
</div>
</div>
<div id='shipToStates'>
<label for="shipToStateProvinceGeoId">${uiLabelMap.CommonState}*<span id="advice-required-shipToStateProvinceGeoId" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span></label>
<div>
<select id="shipToStateProvinceGeoId" name="shipToStateProvinceGeoId">
<#if shipToStateProvinceGeoId?has_content>
<option value='${shipToStateProvinceGeoId!}'>${shipToStateProvinceGeo!(shipToStateProvinceGeoId!)}</option>
<#else>
<option value="_NA_">${uiLabelMap.PartyNoState}</option>
</#if>
</select>
</div>
</div>
<div>
<label>${uiLabelMap.PartyPhoneNumber}*</label>
<span id="advice-required-shipToCountryCode" style="display:none" class="errorMessage"></span>
<span id="advice-required-shipToAreaCode" style="display:none" class="errorMessage"></span>
<span id="advice-required-shipToContactNumber" style="display:none" class="errorMessage"></span>
<span id="shipToPhoneRequired" style="display: none;" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
<input type="text" name="shipToCountryCode" id="shipToCountryCode" value="${parameters.shipToCountryCode!}" size="3" maxlength="3" />
- <input type="text" name="shipToAreaCode" id="shipToAreaCode" value="${parameters.shipToAreaCode!}" size="3" maxlength="3" />
- <input type="text" name="shipToContactNumber" id="shipToContactNumber" value="${contactNumber?default("${parameters.shipToContactNumber!}")}" size="6" maxlength="7" />
- <input type="text" name="shipToExtension" id="shipToExtension" value="${extension?default("${parameters.shipToExtension!}")}" size="3" maxlength="3" />
</div>
<div class="inline">
<input type="checkbox" class="checkbox" name="useShippingAddressForBilling" id="useShippingAddressForBilling" value="Y" <#if parameters.useShippingAddressForBilling?has_content && parameters.useShippingAddressForBilling?default("")=="Y">checked="checked"</#if> />
<label for="useShippingAddressForBilling">${uiLabelMap.FacilityBillingAddressSameShipping}</label>
<select id="shipToStateProvinceGeoId" name="shipToStateProvinceGeoId">
<#if shipToStateProvinceGeoId?has_content>
<option value='${shipToStateProvinceGeoId!}'>
${shipToStateProvinceGeo!(shipToStateProvinceGeoId!)}
</option>
<#else>
<option value="_NA_">${uiLabelMap.PartyNoState}</option>
</#if>
</select>
</div>
</div>
<div>
<label>${uiLabelMap.PartyPhoneNumber}*</label>
<span id="advice-required-shipToCountryCode" style="display:none" class="errorMessage"></span>
<span id="advice-required-shipToAreaCode" style="display:none" class="errorMessage"></span>
<span id="advice-required-shipToContactNumber" style="display:none" class="errorMessage"></span>
<span id="shipToPhoneRequired" style="display: none;" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
<input type="text" name="shipToCountryCode" id="shipToCountryCode" value="${parameters.shipToCountryCode!}"
size="3" maxlength="3"/>
- <input type="text" name="shipToAreaCode" id="shipToAreaCode" value="${parameters.shipToAreaCode!}" size="3"
maxlength="3"/>
- <input type="text" name="shipToContactNumber" id="shipToContactNumber"
value="${contactNumber?default("${parameters.shipToContactNumber!}")}" size="6" maxlength="7"/>
- <input type="text" name="shipToExtension" id="shipToExtension"
value="${extension?default("${parameters.shipToExtension!}")}" size="3" maxlength="3"/>
</div>
<div class="inline">
<input type="checkbox" class="checkbox" name="useShippingAddressForBilling" id="useShippingAddressForBilling"
value="Y" <#if parameters.useShippingAddressForBilling?has_content &&
parameters.useShippingAddressForBilling?default("")=="Y">checked="checked"</#if>/>
<label for="useShippingAddressForBilling">${uiLabelMap.FacilityBillingAddressSameShipping}</label>
</div>
</fieldset>
<fieldset class="center right" id="billingAddress">
<legend>${uiLabelMap.PageTitleBillingInformation}</legend>
<div>
<label for="billToAddress1">${uiLabelMap.PartyAddressLine1}* <span id="advice-required-billToAddress1" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span></label>
<input type="text" name="billToAddress1" id="billToAddress1" class="required" value="${parameters.billToAddress1!}" />
</div>
<div>
<label for="billToAddress2">${uiLabelMap.PartyAddressLine2}</label>
<input type="text" name="billToAddress2" id="billToAddress2" value="${parameters.billToAddress2!}" />
</div>
<div>
<label for="billToCity">${uiLabelMap.CommonCity}*<span id="advice-required-billToCity" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span></label>
<input type="text" name="billToCity" id="billToCity" class="required" value="${parameters.billToCity!}" />
</div>
<div>
<label for="billToPostalCode">${uiLabelMap.PartyZipCode}* <span id="advice-required-billToPostalCode" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span></label>
<input type="text" name="billToPostalCode" id="billToPostalCode" class="required" value="${parameters.billToPostalCode!}" maxlength="10" />
</div>
<div>
<label for="billToCountryGeoId">${uiLabelMap.CommonCountry}* <span id="advice-required-billToCountryGeoId" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span></label>
<select name="billToCountryGeoId" id="billToCountryGeoId" class='required selectBox'>
<#if billToCountryGeoId??>
<option value='${billToCountryGeoId!}'>${billToCountryProvinceGeo!(billToCountryGeoId!)}</option>
</#if>
${screens.render("component://common/widget/CommonScreens.xml#countries")}
</select>
</div>
<div id='billToStates'>
<label for="billToStateProvinceGeoId">${uiLabelMap.CommonState}*<span id="advice-required-billToStateProvinceGeoId" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span></label>
<div>
<select id="billToStateProvinceGeoId" name="billToStateProvinceGeoId">
<#if billToStateProvinceGeoId?has_content>
<option value='${billToStateProvinceGeoId!}'>${billToStateProvinceGeo!(billToStateProvinceGeoId!)}</option>
<#else>
<option value="_NA_">${uiLabelMap.PartyNoState}</option>
</#if>
</select>
</div>
</div>
<div>
<label>${uiLabelMap.PartyPhoneNumber}*</label>
<span id="advice-required-billToCountryCode" style="display:none" class="errorMessage"></span>
<span id="advice-required-billToAreaCode" style="display:none" class="errorMessage"></span>
<span id="advice-required-billToContactNumber" style="display:none" class="errorMessage"></span>
<span id="billToPhoneRequired" style="display: none;" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
<input type="text" name="billToCountryCode" id="billToCountryCode" value="${parameters.billToCountryCode!}" size="3" maxlength="3"/>
- <input type="text" name="billToAreaCode" id="billToAreaCode" value="${parameters.billToAreaCode!}" size="3" maxlength="3"/>
- <input type="text" name="billToContactNumber" id="billToContactNumber" value="${contactNumber?default("${parameters.billToContactNumber!}")}" size="6" maxlength="7"/>
- <input type="text" name="billToExtension" id="billToExtension" value="${extension?default("${parameters.billToExtension!}")}" size="3" maxlength="3"/>
</div>
<legend>${uiLabelMap.PageTitleBillingInformation}</legend>
<div>
<label for="billToAddress1">${uiLabelMap.PartyAddressLine1}*
<span id="advice-required-billToAddress1" style="display: none" class="errorMessage">
(${uiLabelMap.CommonRequired})
</span>
</label>
<input type="text" name="billToAddress1" id="billToAddress1" class="required"
value="${parameters.billToAddress1!}"/>
</div>
<div>
<label for="billToAddress2">${uiLabelMap.PartyAddressLine2}</label>
<input type="text" name="billToAddress2" id="billToAddress2" value="${parameters.billToAddress2!}"/>
</div>
<div>
<label for="billToCity">${uiLabelMap.CommonCity}*
<span id="advice-required-billToCity" style="display: none" class="errorMessage">
(${uiLabelMap.CommonRequired})
</span>
</label>
<input type="text" name="billToCity" id="billToCity" class="required" value="${parameters.billToCity!}"/>
</div>
<div>
<label for="billToPostalCode">${uiLabelMap.PartyZipCode}*
<span id="advice-required-billToPostalCode" style="display: none" class="errorMessage">
(${uiLabelMap.CommonRequired})
</span>
</label>
<input type="text" name="billToPostalCode" id="billToPostalCode" class="required"
value="${parameters.billToPostalCode!}" maxlength="10"/>
</div>
<div>
<label for="billToCountryGeoId">${uiLabelMap.CommonCountry}*
<span id="advice-required-billToCountryGeoId" style="display: none" class="errorMessage">
(${uiLabelMap.CommonRequired})
</span>
</label>
<select name="billToCountryGeoId" id="billToCountryGeoId" class='required selectBox'>
<#if billToCountryGeoId??>
<option value='${billToCountryGeoId!}'>${billToCountryProvinceGeo!(billToCountryGeoId!)}</option>
</#if>
${screens.render("component://common/widget/CommonScreens.xml#countries")}
</select>
</div>
<div id='billToStates'>
<label for="billToStateProvinceGeoId">${uiLabelMap.CommonState}*
<span id="advice-required-billToStateProvinceGeoId" style="display: none" class="errorMessage">
(${uiLabelMap.CommonRequired})
</span>
</label>
<div>
<select id="billToStateProvinceGeoId" name="billToStateProvinceGeoId">
<#if billToStateProvinceGeoId?has_content>
<option value='${billToStateProvinceGeoId!}'>
${billToStateProvinceGeo!(billToStateProvinceGeoId!)}
</option>
<#else>
<option value="_NA_">${uiLabelMap.PartyNoState}</option>
</#if>
</select>
</div>
</div>
<div>
<label>${uiLabelMap.PartyPhoneNumber}*</label>
<span id="advice-required-billToCountryCode" style="display:none" class="errorMessage"></span>
<span id="advice-required-billToAreaCode" style="display:none" class="errorMessage"></span>
<span id="advice-required-billToContactNumber" style="display:none" class="errorMessage"></span>
<span id="billToPhoneRequired" style="display: none;" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
<input type="text" name="billToCountryCode" id="billToCountryCode" value="${parameters.billToCountryCode!}"
size="3" maxlength="3"/>
- <input type="text" name="billToAreaCode" id="billToAreaCode" value="${parameters.billToAreaCode!}" size="3"
maxlength="3"/>
- <input type="text" name="billToContactNumber" id="billToContactNumber"
value="${contactNumber?default("${parameters.billToContactNumber!}")}" size="6" maxlength="7"/>
- <input type="text" name="billToExtension" id="billToExtension"
value="${extension?default("${parameters.billToExtension!}")}" size="3" maxlength="3"/>
</div>
</fieldset>
<div><a id="submitNewUserForm" href="javascript:void(0);" class="button">${uiLabelMap.CommonSubmit}</a></div>
</form>
</div>
</div>
</div>
@@ -39,65 +39,65 @@ under the License.
<div class="left center">
<h3>${uiLabelMap.EcommercePrimaryShippingAddress}</h3>
<ul>
<#if shipToContactMechId??>
<li>${shipToAddress1!}</li>
<#if shipToAddress2?has_content><li>${shipToAddress2!}</li></#if>
<li>
<ul>
<#if shipToContactMechId??>
<li>${shipToAddress1!}</li>
<#if shipToAddress2?has_content><li>${shipToAddress2!}</li></#if>
<li>
<#if shipToStateProvinceGeoId?has_content && shipToStateProvinceGeoId != "_NA_">
${shipToStateProvinceGeoId}
</#if>
${shipToCity!},
${shipToPostalCode!}
<ul>
<li>
<#if shipToStateProvinceGeoId?has_content && shipToStateProvinceGeoId != "_NA_">
${shipToStateProvinceGeoId}
</#if>
${shipToCity!},
${shipToPostalCode!}
</li>
<li>${shipToCountryGeoId!}</li>
</ul>
</li>
<li>${shipToCountryGeoId!}</li>
</ul>
</li>
<#if shipToTelecomNumber?has_content>
<li>
${shipToTelecomNumber.countryCode!}-
${shipToTelecomNumber.areaCode!}-
${shipToTelecomNumber.contactNumber!}
<#if shipToExtension??>-${shipToExtension!}</#if>
</li>
<#if shipToTelecomNumber?has_content>
<li>
${shipToTelecomNumber.countryCode!}-
${shipToTelecomNumber.areaCode!}-
${shipToTelecomNumber.contactNumber!}
<#if shipToExtension??>-${shipToExtension!}</#if>
</li>
</#if>
<#else>
<li>${uiLabelMap.PartyPostalInformationNotFound}</li>
</#if>
<#else>
<li>${uiLabelMap.PartyPostalInformationNotFound}</li>
</#if>
</ul>
</div>
<div class="right center">
<h3>${uiLabelMap.EcommercePrimaryBillingAddress}</h3>
<ul>
<#if billToContactMechId??>
<li>${billToAddress1!}</li>
<#if billToAddress2?has_content><li>${billToAddress2!}</li></#if>
<li>
<ul>
<#if billToContactMechId??>
<li>${billToAddress1!}</li>
<#if billToAddress2?has_content><li>${billToAddress2!}</li></#if>
<li>
<#if billToStateProvinceGeoId?has_content && billToStateProvinceGeoId != "_NA_">
${billToStateProvinceGeoId}
</#if>
${billToCity!},
${billToPostalCode!}
<ul>
<li>
<#if billToStateProvinceGeoId?has_content && billToStateProvinceGeoId != "_NA_">
${billToStateProvinceGeoId}
</#if>
${billToCity!},
${billToPostalCode!}
</li>
<li>${billToCountryGeoId!}</li>
</ul>
</li>
<li>${billToCountryGeoId!}</li>
</ul>
</li>
<#if billToTelecomNumber?has_content>
<li>
${billToTelecomNumber.countryCode!}-
${billToTelecomNumber.areaCode!}-
${billToTelecomNumber.contactNumber!}
<#if billToExtension??>-${billToExtension!}</#if>
</li>
<#if billToTelecomNumber?has_content>
<li>
${billToTelecomNumber.countryCode!}-
${billToTelecomNumber.areaCode!}-
${billToTelecomNumber.contactNumber!}
<#if billToExtension??>-${billToExtension!}</#if>
</li>
</#if>
<#else>
<li>${uiLabelMap.PartyPostalInformationNotFound}</li>
</#if>
<#else>
<li>${uiLabelMap.PartyPostalInformationNotFound}</li>
</#if>
</ul>
</div>
</div>
</div>
</div>
</div>
+16 -11
View File
@@ -19,23 +19,28 @@ under the License.
-->
<entity-engine-xml>
<DataSource dataSourceId="ECM" dataSourceTypeId="CONTENT_CREATION" description="Ecommerce Content"/>
<#recurse doc>
<DataSource dataSourceId="ECM" dataSourceTypeId="CONTENT_CREATION" description="Ecommerce Content"/>
<#recurse doc>
</entity-engine-xml>
<#macro contents>
<#recurse .node>
<#recurse .node>
</#macro>
<#macro content>
<#assign contentId="ECMC" + .node.@id[0]/>
<DataResource dataResourceId="${contentId}" dataResourceTypeId="ELECTRONIC_TEXT" dataTemplateTypeId="NONE" dataSourceId="ECM" mimeTypeId="text/xml"/>
<ElectronicText dataResourceId="${contentId}">
<textData><![CDATA[
${.node.content_text}
]]></textData>
</ElectronicText>
<Content contentId="${contentId}" contentTypeId="DOCUMENT" dataResourceId="${contentId}" contentName="${.node.@name[0]}" description="${.node.content_desc?html}" mimeTypeId="text/html" templateDataResourceId="TPL_XML_MB"/>
<#assign contentId="ECMC" + .node.@id[0]/>
<DataResource dataResourceId="${contentId}" dataResourceTypeId="ELECTRONIC_TEXT" dataTemplateTypeId="NONE"
dataSourceId="ECM" mimeTypeId="text/xml"/>
<ElectronicText dataResourceId="${contentId}">
<textData>
<![CDATA[
${.node.content_text}
]]>
</textData>
</ElectronicText>
<Content contentId="${contentId}" contentTypeId="DOCUMENT" dataResourceId="${contentId}"
contentName="${.node.@name[0]}" description="${.node.content_desc?html}" mimeTypeId="text/html"
templateDataResourceId="TPL_XML_MB"/>
</#macro>
<#macro @element>
+13 -11
View File
@@ -19,23 +19,25 @@ under the License.
-->
<entity-engine-xml>
<#recurse doc>
<#recurse doc>
</entity-engine-xml>
<#macro topics>
<#recurse .node>
<#recurse .node>
</#macro>
<#macro topic>
<#assign contentId="ECMT" + .node.@id[0]/>
<Content contentId="${contentId}" contentTypeId="WEB_SITE_PUB_PT" contentName="${.node.topic_heading}" description="${.node.topic_desc?html}" ownerContentId=""/>
<#assign internalName=.node.@name[0]/>
<#assign internalNameParts=internalName?split(".")/>
<#assign firstPart=internalNameParts[0] />
<#assign nowStamp=Static["org.apache.ofbiz.base.util.UtilDateTime"].nowTimestamp()/>
<#if firstPart == "WIDGETS">
<ContentAssoc contentId="CNTWIDGETS" contentIdTo="${contentId}" contentAssocTypeId="SUB_CONTENT" fromDate="${nowStamp?string("yyyy-MM-dd HH:mm:ss")}"/>
</#if>
<#assign contentId="ECMT" + .node.@id[0]/>
<Content contentId="${contentId}" contentTypeId="WEB_SITE_PUB_PT" contentName="${.node.topic_heading}"
description="${.node.topic_desc?html}" ownerContentId=""/>
<#assign internalName=.node.@name[0]/>
<#assign internalNameParts=internalName?split(".")/>
<#assign firstPart=internalNameParts[0] />
<#assign nowStamp=Static["org.apache.ofbiz.base.util.UtilDateTime"].nowTimestamp()/>
<#if firstPart == "WIDGETS">
<ContentAssoc contentId="CNTWIDGETS" contentIdTo="${contentId}" contentAssocTypeId="SUB_CONTENT"
fromDate="${nowStamp?string("yyyy-MM-dd HH:mm:ss")}"/>
</#if>
</#macro>
<#macro @element>
+13 -12
View File
@@ -19,27 +19,28 @@ under the License.
-->
<entity-engine-xml>
<#recurse doc>
<#recurse doc>
</entity-engine-xml>
<#macro topic_tree>
<#recurse .node>
<#recurse .node>
</#macro>
<#macro topic>
<#assign contentId="ECMT" + .node.@id[0]/>
<#recurse .node>
<#assign contentId="ECMT" + .node.@id[0]/>
<#recurse .node>
</#macro>
<#macro child>
<#assign contentIdTo="ECMT" + .node.@id[0]/>
<#assign assocType="SUB_CONTENT"/>
<#if .node.@type = "content">
<#assign contentIdTo="ECMC" + .node.@id[0]/>
<#assign assocType="PUBLISH_LINK"/>
</#if>
<#assign nowStamp=Static["org.apache.ofbiz.base.util.UtilDateTime"].nowTimestamp()/>
<ContentAssoc contentIdTo="${contentIdTo}" contentId="${contentId}" contentAssocTypeId="${assocType}" fromDate="${nowStamp?string("yyyy-MM-dd HH:mm:ss")}"/>
<#assign contentIdTo="ECMT" + .node.@id[0]/>
<#assign assocType="SUB_CONTENT"/>
<#if .node.@type = "content">
<#assign contentIdTo="ECMC" + .node.@id[0]/>
<#assign assocType="PUBLISH_LINK"/>
</#if>
<#assign nowStamp=Static["org.apache.ofbiz.base.util.UtilDateTime"].nowTimestamp()/>
<ContentAssoc contentIdTo="${contentIdTo}" contentId="${contentId}" contentAssocTypeId="${assocType}"
fromDate="${nowStamp?string("yyyy-MM-dd HH:mm:ss")}"/>
</#macro>
<#macro @element>
@@ -17,22 +17,22 @@ specific language governing permissions and limitations
under the License.
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
<div>
${content}
</div>
<#assign verifyUrl = baseEcommerceSecureUrl + "updateContactListPartyNoUserLogin" />
<form method="post" action="${verifyUrl}">
<fieldset>
<label>E-mail: ${emailAddress}</label>
<input type="hidden" name="contactListId" value="${contactListId}" />
<input type="hidden" name="partyId" value="${partyId}" />
<input type="hidden" name="preferredContactMechId" value="${preferredContactMechId!}" />
<input type="hidden" name="fromDate" value="${fromDate}" />
<input type="hidden" name="statusId" value="CLPT_UNSUBS_PENDING" />
<input type="hidden" name="optInVerifyCode" value="${optInVerifyCode!}" />
<input type="submit" name="submitButton" value="Click here to unsubscribe your newsletter subscription." />
</fieldset>
</form>
</body>
<body>
<div>
${content}
</div>
<#assign verifyUrl = baseEcommerceSecureUrl + "updateContactListPartyNoUserLogin" />
<form method="post" action="${verifyUrl}">
<fieldset>
<label>E-mail: ${emailAddress}</label>
<input type="hidden" name="contactListId" value="${contactListId}"/>
<input type="hidden" name="partyId" value="${partyId}"/>
<input type="hidden" name="preferredContactMechId" value="${preferredContactMechId!}"/>
<input type="hidden" name="fromDate" value="${fromDate}"/>
<input type="hidden" name="statusId" value="CLPT_UNSUBS_PENDING"/>
<input type="hidden" name="optInVerifyCode" value="${optInVerifyCode!}"/>
<input type="submit" name="submitButton" value="Click here to unsubscribe your newsletter subscription."/>
</fieldset>
</form>
</body>
</html>
@@ -17,15 +17,14 @@ specific language governing permissions and limitations
under the License.
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
<p>Hello ${partyName.firstName!} ${partyName.lastName!} ${partyName.groupName!}!</p>
<p>Successfully subscribed from ${contactList.contactListName} contact list.</p>
<body>
<p>Hello ${partyName.firstName!} ${partyName.lastName!} ${partyName.groupName!}!</p>
<p>Successfully subscribed from ${contactList.contactListName} contact list.</p>
<#assign verifyUrl = baseEcommerceSecureUrl +'updateContactListPartyNoUserLogin?contactListId='+contactListParty.contactListId+'&amp;partyId='+contactListParty.partyId+'&amp;fromDate='+contactListParty.fromDate+'&amp;statusId=CLPT_UNSUBS_PENDING&amp;optInVerifyCode='+contactListPartyStatus.optInVerifyCode+'&amp;baseLocation='+baseLocation!>
<#if (contactListParty.preferredContactMechId)??>
<#assign verifyUrl= verifyUrl+"&amp;preferredContactMechId="+contactListParty.preferredContactMechId>
</#if>
<a href="${verifyUrl}">If this was by mistake, click here to unsubscribe your subscription again.</a>
</body>
<#assign verifyUrl = baseEcommerceSecureUrl +'updateContactListPartyNoUserLogin?contactListId='+contactListParty.contactListId+'&amp;partyId='+contactListParty.partyId+'&amp;fromDate='+contactListParty.fromDate+'&amp;statusId=CLPT_UNSUBS_PENDING&amp;optInVerifyCode='+contactListPartyStatus.optInVerifyCode+'&amp;baseLocation='+baseLocation!>
<#if (contactListParty.preferredContactMechId)??>
<#assign verifyUrl= verifyUrl+"&amp;preferredContactMechId="+contactListParty.preferredContactMechId>
</#if>
<a href="${verifyUrl}">If this was by mistake, click here to unsubscribe your subscription again.</a>
</body>
</html>
@@ -27,7 +27,5 @@ under the License.
</#if>
<a href="${verifyUrl}">If this was by mistake, click here subscribe again.</a-->
</body>
</html>
@@ -16,26 +16,26 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>${title!}</title>
</head>
<body>
<#-- custom logo or text can be inserted here -->
<h1>${title!}</h1>
<#if note??><p>${note}</p></#if>
<p>Hello ${partyName.firstName!} ${partyName.lastName!} ${partyName.groupName!}!</p>
<p>We have received a request for unsubscription to the ${contactList.contactListName} contact list.</p>
<p>To complete your unsubscription click the on the following link:</p>
<#assign verifyUrl = baseEcommerceSecureUrl+'contactListOptOut?contactListId='+contactListParty.contactListId+'&amp;communicationEventId='+communicationEventId!+'&amp;partyId='+contactListParty.partyId+'&amp;fromDate='+contactListParty.fromDate+'&amp;statusId=CLPT_UNSUBSCRIBED&amp;optInVerifyCode='+contactListPartyStatus.optInVerifyCode>
<#if (contactListParty.preferredContactMechId)??>
<#assign verifyUrl= verifyUrl+"&amp;preferredContactMechId="+contactListParty.preferredContactMechId>
</#if>
<a href="${verifyUrl}">Please click here to verify your unsubscription.</a>
</body>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>${title!}</title>
</head>
<body>
<#-- custom logo or text can be inserted here -->
<h1>${title!}</h1>
<#if note??><p>${note}</p></#if>
<p>Hello ${partyName.firstName!} ${partyName.lastName!} ${partyName.groupName!}!</p>
<p>We have received a request for unsubscription to the ${contactList.contactListName} contact list.</p>
<p>To complete your unsubscription click the on the following link:</p>
<#assign verifyUrl = baseEcommerceSecureUrl+'contactListOptOut?contactListId='+contactListParty.contactListId+'&amp;communicationEventId='+communicationEventId!+'&amp;partyId='+contactListParty.partyId+'&amp;fromDate='+contactListParty.fromDate+'&amp;statusId=CLPT_UNSUBSCRIBED&amp;optInVerifyCode='+contactListPartyStatus.optInVerifyCode>
<#if (contactListParty.preferredContactMechId)??>
<#assign verifyUrl= verifyUrl+"&amp;preferredContactMechId="+contactListParty.preferredContactMechId>
</#if>
<a href="${verifyUrl}">Please click here to verify your unsubscription.</a>
</body>
</html>
@@ -16,27 +16,26 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>${title!}</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>${title!}</title>
</head>
<body>
<#-- custom logo or text can be inserted here -->
<h1>${title!}</h1>
<#if note??><p>${note}</p></#if>
<#-- custom logo or text can be inserted here -->
<h1>${title!}</h1>
<#if note??><p>${note}</p></#if>
<p>Hello ${partyName.firstName!} ${partyName.lastName!} ${partyName.groupName!}!</p>
<p>We have received a request for subscription to the ${contactList.contactListName} contact list.</p>
<p>To complete your subscription click the on the following link:</p>
<p>Hello ${partyName.firstName!} ${partyName.lastName!} ${partyName.groupName!}!</p>
<p>We have received a request for subscription to the ${contactList.contactListName} contact list.</p>
<p>To complete your subscription click the on the following link:</p>
<#assign verifyUrl = baseEcommerceSecureUrl+'/'+'updateContactListPartyNoUserLogin?contactListId='+contactListParty.contactListId+'&amp;partyId='+contactListParty.partyId+'&amp;fromDate='+contactListParty.fromDate+'&amp;statusId=CLPT_ACCEPTED&amp;optInVerifyCode='+contactListPartyStatus.optInVerifyCode+'&amp;baseLocation='+baseLocation!>
<#if (contactListParty.preferredContactMechId)??>
<#assign verifyUrl = baseEcommerceSecureUrl+'/'+'updateContactListPartyNoUserLogin?contactListId='+contactListParty.contactListId+'&amp;partyId='+contactListParty.partyId+'&amp;fromDate='+contactListParty.fromDate+'&amp;statusId=CLPT_ACCEPTED&amp;optInVerifyCode='+contactListPartyStatus.optInVerifyCode+'&amp;baseLocation='+baseLocation!>
<#if (contactListParty.preferredContactMechId)??>
<#assign verifyUrl= verifyUrl+"&amp;preferredContactMechId="+contactListParty.preferredContactMechId>
</#if>
<a href="${verifyUrl}">Please click here to verify your subscription.</a>
</#if>
<a href="${verifyUrl}">Please click here to verify your subscription.</a>
</body>
</html>
+7 -7
View File
@@ -18,11 +18,11 @@ under the License.
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head></head>
<body>
<p>The information filled by the person on contact us page is as follows:</p>
<p>${uiLabelMap.CommonName}: ${parameters.firstName!} ${parameters.lastName!}</p>
<p>${uiLabelMap.CommonEmail}: ${parameters.email!}</p>
<p>${uiLabelMap.CommonMessage}: ${parameters.message!}</p>
</body>
<head></head>
<body>
<p>The information filled by the person on contact us page is as follows:</p>
<p>${uiLabelMap.CommonName}: ${parameters.firstName!} ${parameters.lastName!}</p>
<p>${uiLabelMap.CommonEmail}: ${parameters.email!}</p>
<p>${uiLabelMap.CommonMessage}: ${parameters.message!}</p>
</body>
</html>
+7 -6
View File
@@ -17,13 +17,14 @@ specific language governing permissions and limitations
under the License.
-->
<br />
<br/>
<#if orderHeader.statusId == "ORDER_REJECTED">
${uiLabelMap.OrderEmailProblemWithYourPaymentMethod} ${orderHeader.orderId}.<br />
${uiLabelMap.OrderEmailProblemCancelledNotProcessed}<br />
${uiLabelMap.OrderEmailProblemWithYourPaymentMethod} ${orderHeader.orderId}.<br/>
${uiLabelMap.OrderEmailProblemCancelledNotProcessed}<br/>
<#elseif orderHeader.statusId == "ORDER_APPROVED">
${uiLabelMap.OrderEmailPaymentOK} ${orderHeader.orderId} ${uiLabelMap.OrderEmailAccepted}
${uiLabelMap.OrderEmailPaymentOK} ${orderHeader.orderId} ${uiLabelMap.OrderEmailAccepted}
<#else>
${uiLabelMap.OrderEmailSorry} ${orderHeader.orderId}.<br />
${uiLabelMap.OrderEmailSorry} ${orderHeader.orderId}.<br/>
</#if>
<br />${uiLabelMap.OrderEmailCustomerService} (email@email.com)<br /> <#-- Customer service email (not a variable why?) must be adapted - JLR 1/6/5 -->
<br/>${uiLabelMap.OrderEmailCustomerService} (email@email.com)
<br/> <#-- Customer service email (not a variable why?) must be adapted - JLR 1/6/5 -->
@@ -23,16 +23,17 @@ under the License.
-->
<#if recipientName??>${recipientName},</#if>
<br />
<br/>
<#-- MyCompany.com (not a variable why?) must be adapted - JLR 1/6/5 -->
${uiLabelMap.EcommerceYouHaveBeenSent} MyCompany.com <#if senderName??> ${uiLabelMap.EcommerceGiftCardFrom} ${senderName}</#if>!
<br /><br />
${uiLabelMap.EcommerceYouHaveBeenSent} MyCompany.com
<#if senderName??> ${uiLabelMap.EcommerceGiftCardFrom} ${senderName}</#if>!
<br/><br/>
<#if giftMessage?has_content>
${uiLabelMap.OrderGiftMessage}
<br /><br />
<br/><br/>
${giftMessage}
<br /><br />
<br/><br/>
</#if>
<pre>
+6 -6
View File
@@ -37,16 +37,16 @@ under the License.
<#if processResult>
<#-- success -->
<br />
<br/>
${uiLabelMap.EcommerceYourGiftCard} ${displayNumber} ${uiLabelMap.EcommerceYourGiftCardReloaded}
<br />
<br/>
${uiLabelMap.EcommerceGiftCardNewBalance} ${amount} ${uiLabelMap.CommonFrom} ${previousAmount}
<br />
<br/>
<#else>
<#-- fail -->
<br />
<br/>
${uiLabelMap.EcommerceGiftCardReloadFailed} ${responseCode}
<br />
<br/>
${uiLabelMap.EcommerceGiftCardRefunded}
<br />
<br/>
</#if>
+101 -103
View File
@@ -17,129 +17,127 @@ specific language governing permissions and limitations
under the License.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>${title!}</title>
<#-- this needs to be fully qualified to appear in email; the server must also be available -->
<style type="text/css">
html, body, div, h1, h3, a, ul,
li, table, tbody, tfoot, thead,
tr, th, td {
border:0;
margin:0;
outline:0;
padding:0;
font-size: 100%;
background:transparent;
vertical-align: baseline;
}
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>${title!}</title>
<#-- this needs to be fully qualified to appear in email; the server must also be available -->
<style type="text/css">
html, body, div, h1, h3, a, ul,
li, table, tbody, tfoot, thead,
tr, th, td {
border: 0;
margin: 0;
outline: 0;
padding: 0;
font-size: 100%;
background: transparent;
vertical-align: baseline;
}
a, body, th {
font-style: normal;
font-weight: normal;
text-decoration: none;
}
a, body, th {
font-style: normal;
font-weight: normal;
text-decoration: none;
}
body, th {
text-align: left;
}
body, th {
text-align: left;
}
ul {
list-style: none;
}
ul {
list-style: none;
}
div.screenlet {
background-color: #FFFFFF;
border: 0.1em solid #999999;
height: auto !important;
height: 1%;
margin-bottom: 1em;
}
div.screenlet {
background-color: #FFFFFF;
border: 0.1em solid #999999;
height: auto !important;
height: 1%;
margin-bottom: 1em;
}
body {
background: #D4D0C8;
font-size: 62.5%;
position: relative;
line-height: 1;
color: black;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
body {
background: #D4D0C8;
font-size: 62.5%;
position: relative;
line-height: 1;
color: black;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
h1 {
font-size: 1.6em;
font-weight: bold;
}
h1 {
font-size: 1.6em;
font-weight: bold;
}
h3 {
font-size: 1.1em;
font-weight: bold;
}
h3 {
font-size: 1.1em;
font-weight: bold;
}
/* IE7 fix */
table {
font-size: 1em;
}
/* IE7 fix */
table {
font-size: 1em;
}
div.screenlet ul {
margin: 10px;
}
div.screenlet ul {
margin: 10px;
}
div.screenlet li {
line-height: 15px;
}
div.screenlet li {
line-height: 15px;
}
div.screenlet h3 {
background:#1C334D none repeat scroll 0 0;
color:#FFFFFF;
height:auto !important;
padding:3px 4px 4px;
}
div.screenlet h3 {
background: #1C334D none repeat scroll 0 0;
color: #FFFFFF;
height: auto !important;
padding: 3px 4px 4px;
}
.columnLeft {
width: 45%;
float: left;
margin-right: 10px;
}
.columnLeft {
width: 45%;
float: left;
margin-right: 10px;
}
.columnRight {
width: 45%;
float: left;
margin-left: 10px;
clear: none;
}
.columnRight {
width: 45%;
float: left;
margin-left: 10px;
clear: none;
}
div.screenlet table {
width: 100%;
margin: 10px;
}
div.screenlet table {
width: 100%;
margin: 10px;
}
div.screenlet table tfoot th {
text-align: right;
font-weight: bold;
}
div.screenlet table tfoot th {
text-align: right;
font-weight: bold;
}
.clearBoth {
clear: both;
}
</style>
.clearBoth {
clear: both;
}
</style>
</head>
<body>
<#-- custom logo or text can be inserted here -->
<h1>${title!}</h1>
<#if !isDemoStore?? || isDemoStore><p>${uiLabelMap.OrderDemoFrontNote}.</p></#if>
<#if note??><p>${note}</p></#if>
<#if orderHeader??>
${screens.render("component://ecommerce/widget/OrderScreens.xml#orderheader")}
<br />
${screens.render("component://ecommerce/widget/OrderScreens.xml#orderitems")}
<#else>
<h1>Order not found with ID [${orderId!}], or not allowed to view.</h1>
</#if>
<#-- custom logo or text can be inserted here -->
<h1>${title!}</h1>
<#if !isDemoStore?? || isDemoStore><p>${uiLabelMap.OrderDemoFrontNote}.</p></#if>
<#if note??><p>${note}</p></#if>
<#if orderHeader??>
${screens.render("component://ecommerce/widget/OrderScreens.xml#orderheader")}
<br/>
${screens.render("component://ecommerce/widget/OrderScreens.xml#orderitems")}
<#else>
<h1>Order not found with ID [${orderId!}], or not allowed to view.</h1>
</#if>
</body>
</html>
+9 -9
View File
@@ -18,17 +18,17 @@ under the License.
-->
<#-- ReturnHeader and a List of ReturnItem records is available to this template -->
<br />
<br/>
${uiLabelMap.EcommerceReturnRequest}
<br /><br />
<br/><br/>
<pre>
<#list returnItems as item>
<#assign returnReason = item.getRelatedOne("ReturnReason", false)!>
<#assign returnType = item.getRelatedOne("ReturnType", false)!>
${item.description?default("N/A")} - ${item.returnQuantity?string.number} @ ${item.returnPrice}
</#list>
<#list returnItems as item>
<#assign returnReason = item.getRelatedOne("ReturnReason", false)!>
<#assign returnType = item.getRelatedOne("ReturnType", false)!>
${item.description?default("N/A")} - ${item.returnQuantity?string.number} @ ${item.returnPrice}
</#list>
</pre>
<br /><br />
<br/><br/>
${uiLabelMap.EcommerceReturnRequestAccepted} ${returnHeader.returnId}
<br /><br />
<br/><br/>
@@ -18,46 +18,52 @@ under the License.
-->
<#if baseEcommerceSecureUrl??><#assign urlPrefix = baseEcommerceSecureUrl/></#if>
<#if shipment?has_content>
<div class="screenlet">
<div class="screenlet-title-bar">
<div class="h3">${title!}<br /><br /></div>
</div>
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td><b>${uiLabelMap.OrderTrackingNumber}</b></td>
</tr>
<#list orderShipmentInfoSummaryList as orderShipmentInfoSummary>
<#if shipment?has_content>
<div class="screenlet">
<div class="screenlet-title-bar">
<div class="h3">${title!}<br/><br/></div>
</div>
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td>
Code: ${orderShipmentInfoSummary.trackingCode?default("[Not Yet Known]")}
<#if orderShipmentInfoSummary.carrierPartyId?has_content>(${uiLabelMap.ProductCarrier}: ${orderShipmentInfoSummary.carrierPartyId})</#if>
</td>
<td><b>${uiLabelMap.OrderTrackingNumber}</b></td>
</tr>
</#list>
</tbody>
</table>
<br />
<div class="screenlet-title-bar">
<div class="h3"><b>${uiLabelMap.EcommerceShipmentItems}</b></div>
</div>
<div class="screenlet-body">
<table width="100%" border="0" cellpadding="0">
<tr valign="bottom">
<td width="35%"><span class="tableheadtext"><b>${uiLabelMap.OrderProduct}</b></span></td>
<td width="10%" align="right"><span class="tableheadtext"><b>${uiLabelMap.OrderQuantity}</b></span></td>
</tr>
<tr><td colspan="10"><hr /></td></tr>
<#list shipmentItems as shipmentItem>
<#assign productId = shipmentItem.productId>
<#assign product = shipmentItem.getRelatedOne("Product", false)>
<tr>
<td colspan="1" valign="top"> ${productId!} - ${product.internalName!}</td>
<td align="right" valign="top"> ${shipmentItem.quantity!}</td>
</tr>
</#list>
<tr><td colspan="10"><hr /></td></tr>
</table>
</div>
</#if>
<#list orderShipmentInfoSummaryList as orderShipmentInfoSummary>
<tr>
<td>
Code: ${orderShipmentInfoSummary.trackingCode?default("[Not Yet Known]")}
<#if orderShipmentInfoSummary.carrierPartyId?has_content>(${uiLabelMap.ProductCarrier}
: ${orderShipmentInfoSummary.carrierPartyId})
</#if>
</td>
</tr>
</#list>
</tbody>
</table>
<br/>
<div class="screenlet-title-bar">
<div class="h3"><b>${uiLabelMap.EcommerceShipmentItems}</b></div>
</div>
<div class="screenlet-body">
<table width="100%" border="0" cellpadding="0">
<tr valign="bottom">
<td width="35%"><span class="tableheadtext"><b>${uiLabelMap.OrderProduct}</b></span></td>
<td width="10%" align="right"><span class="tableheadtext"><b>${uiLabelMap.OrderQuantity}</b></span></td>
</tr>
<tr>
<td colspan="10"><hr/></td>
</tr>
<#list shipmentItems as shipmentItem>
<#assign productId = shipmentItem.productId>
<#assign product = shipmentItem.getRelatedOne("Product", false)>
<tr>
<td colspan="1" valign="top"> ${productId!} - ${product.internalName!}</td>
<td align="right" valign="top"> ${shipmentItem.quantity!}</td>
</tr>
</#list>
<tr>
<td colspan="10"><hr/></td>
</tr>
</table>
</div>
</#if>
+7 -7
View File
@@ -19,12 +19,12 @@ under the License.
<html>
<head></head>
<body>
${sendTo},
<br />
${sendFrom} ${uiLabelMap.EcommerceFollowingMessage}
<br /><br />
<b>${message}</b>
<br /><br />
<a href="${pageUrl}">${pageUrl}</a>
${sendTo},
<br />
${sendFrom} ${uiLabelMap.EcommerceFollowingMessage}
<br /><br />
<b>${message}</b>
<br /><br />
<a href="${pageUrl}">${pageUrl}</a>
</body>
</html>
+163 -143
View File
@@ -18,178 +18,198 @@ under the License.
-->
<#macro renderBlog contentId="" targetPurpose="" stdWrapId="">
<#if contentId?has_content>
<#if contentId?has_content>
<#assign contentIdx = contentId/>
</#if>
<#assign viewIdx = "" />
<#if requestParameters.viewIndex?has_content>
<#assign viewIdx = requestParameters.viewIndex! />
</#if>
<#assign viewSz = "" />
<#if requestParameters.viewSize?has_content>
<#assign viewSz = requestParameters.viewSize! />
</#if>
<#assign sz=0/>
<table border="0">
<@loopSubContent contentId=contentIdx viewIndex=viewIdx viewSize=viewSz contentAssocTypeId="PUBLISH_LINK"
pickWhen="purposes.contains(\"ARTICLE\") && \"CTNT_PUBLISHED\".equals(content.get(\"statusId\"))"
returnAfterPickWhen="purposes.contains(\"ARTICLE\")"
followWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"never follow\")">
<#assign thisNodeTrailCsv=nodeTrailCsv!/>
<#assign thisSubContentId=subContentId!/>
<#assign thisNode=globalNodeTrail?last/>
<#if thisNode?has_content>
<#assign thisOwnerContentId=thisNode.value.ownerContentId!/>
</#if>
<#assign viewIdx = "" />
<#if requestParameters.viewIndex?has_content>
<#assign viewIdx = requestParameters.viewIndex! />
</#if>
<#assign viewSz = "" />
<#if requestParameters.viewSize?has_content>
<#assign viewSz = requestParameters.viewSize! />
</#if>
<#assign userLoginId=""/>
<#if content?has_content && content.createdByUserLogin?has_content>
<#assign userLoginId=content.createdByUserLogin/>
</#if>
<#assign authorName=Static["org.apache.ofbiz.content.ContentManagementWorker"].getUserName(request,userLoginId!)/>
<#assign sz=0/>
<table border="0">
<@loopSubContent contentId=contentIdx viewIndex=viewIdx viewSize=viewSz contentAssocTypeId="PUBLISH_LINK"
pickWhen="purposes.contains(\"ARTICLE\") && \"CTNT_PUBLISHED\".equals(content.get(\"statusId\"))"
returnAfterPickWhen="purposes.contains(\"ARTICLE\")"
followWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"never follow\")">
<#assign thisNodeTrailCsv=nodeTrailCsv!/>
<#assign thisSubContentId=subContentId!/>
<#assign thisNode=globalNodeTrail?last/>
<#if thisNode?has_content>
<#assign thisOwnerContentId=thisNode.value.ownerContentId!/>
</#if>
<tr>
<td width="40px">&nbsp;</td>
<td class="blogtext" >
<div>
by:<#if authorName?has_content>${authorName!}
<#else>
<#if content?has_content>${content.createdByUserLogin!}</#if>
</#if>
&nbsp;
<#if thisNode?? && thisNode.fromDate??>
<#assign nowTime = thisNode.fromDate?string />
<#assign shortTime = ""/>
<#if nowTime?has_content>
<#assign lastColon=nowTime?last_index_of(":") - 1/>
<#assign shortTime=nowTime[0..lastColon]/>
<#assign userLoginId=""/>
<#if content?has_content && content.createdByUserLogin?has_content>
<#assign userLoginId=content.createdByUserLogin/>
</#if>
<#assign authorName=Static["org.apache.ofbiz.content.ContentManagementWorker"].getUserName(request,userLoginId!)/>
<tr>
<td width="40px">&nbsp;</td>
<td class="blogtext">
<div>
by:<#if authorName?has_content>${authorName!}
<#else>
<#if content?has_content>${content.createdByUserLogin!}</#if>
</#if>
${shortTime!}
</#if>
</div>
</td>
<td >
<#if content?has_content>${content.contentName!}</#if>
--
<#if content?has_content>${content.description!}</#if>
</td>
<td width="40px" valign="bottom">
<a class="tabButton" href="<@ofbizUrl>showforumarticle?contentId=${thisSubContentId}&amp;nodeTrailCsv=${thisNodeTrailCsv!}&amp;forumId=${contentIdx!}</@ofbizUrl>" >${uiLabelMap.CommonView}</a>
</td>
<@checkPermission mode="equals" entityOperation="_UPDATE" subContentId=content.contentId targetOperation="CONTENT_UPDATE" contentPurposeList="ARTICLE">
<td width="40px" valign="bottom">
<a class="tabButton" style="height:14pt;" href="<@ofbizUrl>editforumarticle?contentIdTo=${content.contentId}&amp;nodeTrailCsv=${contentIdx!},${content.contentId}</@ofbizUrl>" >${uiLabelMap.CommonEdit}</a>
</td>
</@checkPermission>
</tr>
<#assign sz=listSize/>
</@loopSubContent>
<#if sz == 0 >
<tr><td align="center">${uiLabelMap.CommonNoRecordFound}</td></tr>
</#if>
<@wrapSubContentCache subContentId=contentIdx wrapTemplateId=stdWrapId contentPurposeList="ARTICLE">
</@wrapSubContentCache>
</table>
<table border="0" class="summary">
<#assign targOp="HAS_USER_ROLE"/>
<#assign pageTargOp=targetOperation!/>
<#if pageTargOp?has_content>
<#assign targOp=pageTargOp/>
</#if>
<@checkPermission mode="equals" entityOperation="_CREATE" subContentId=contentDept statusId="CTNT_PUBLISHED" targetOperation=targOp contentPurposeList="ARTICLE" quickCheckContentId=contentIdx>
<tr><td align="right">
<a class="tabButton" style="height:14pt;" href="<@ofbizUrl>createforumarticle?forumId=${contentIdx!}&amp;nodeTrailCsv=${contentIdx!}</@ofbizUrl>" >${uiLabelMap.ProductNewArticle}</a>
</td></tr>
</@checkPermission>
<@checkPermission mode="not-equals" entityOperation="_CREATE" subContentId=contentDept statusId="CTNT_PUBLISHED" targetOperation=targOp contentPurposeList="ARTICLE" quickCheckContentId=contentIdx>
<tr><td align="right">
${uiLabelMap.EcommerceLoggedToPost}
</td></tr>
</@checkPermission>
</table>
<#--
<@checkPermission mode="not-equals" entityOperation="_CREATE" subContentId=contentIdx statusId="CTNT_PUBLISHED" targetOperation="HAS_USER_ROLE" contentPurposeList="ARTICLE">
${permissionErrorMsg!}
</@checkPermission>
-->
&nbsp;
<#if thisNode?? && thisNode.fromDate??>
<#assign nowTime = thisNode.fromDate?string />
<#assign shortTime = ""/>
<#if nowTime?has_content>
<#assign lastColon=nowTime?last_index_of(":") - 1/>
<#assign shortTime=nowTime[0..lastColon]/>
</#if>
${shortTime!}
</#if>
</div>
</td>
<td>
<#if content?has_content>${content.contentName!}</#if>
--
<#if content?has_content>${content.description!}</#if>
</td>
<td width="40px" valign="bottom">
<a class="tabButton"
href="<@ofbizUrl>showforumarticle?contentId=${thisSubContentId}&amp;nodeTrailCsv=${thisNodeTrailCsv!}&amp;forumId=${contentIdx!}</@ofbizUrl>">${uiLabelMap.CommonView}</a>
</td>
<@checkPermission mode="equals" entityOperation="_UPDATE" subContentId=content.contentId targetOperation="CONTENT_UPDATE" contentPurposeList="ARTICLE">
<td width="40px" valign="bottom">
<a class="tabButton" style="height:14pt;"
href="<@ofbizUrl>editforumarticle?contentIdTo=${content.contentId}&amp;nodeTrailCsv=${contentIdx!},${content.contentId}</@ofbizUrl>">${uiLabelMap.CommonEdit}</a>
</td>
</@checkPermission>
</tr>
<#assign sz=listSize/>
</@loopSubContent>
<#if sz == 0 >
<tr>
<td align="center">${uiLabelMap.CommonNoRecordFound}</td>
</tr>
</#if>
<@wrapSubContentCache subContentId=contentIdx wrapTemplateId=stdWrapId contentPurposeList="ARTICLE">
</@wrapSubContentCache>
</table>
<table border="0" class="summary">
<#assign targOp="HAS_USER_ROLE"/>
<#assign pageTargOp=targetOperation!/>
<#if pageTargOp?has_content>
<#assign targOp=pageTargOp/>
</#if>
<@checkPermission mode="equals" entityOperation="_CREATE" subContentId=contentDept statusId="CTNT_PUBLISHED"
targetOperation=targOp contentPurposeList="ARTICLE" quickCheckContentId=contentIdx>
<tr>
<td align="right">
<a class="tabButton" style="height:14pt;"
href="<@ofbizUrl>createforumarticle?forumId=${contentIdx!}&amp;nodeTrailCsv=${contentIdx!}</@ofbizUrl>">
${uiLabelMap.ProductNewArticle}
</a>
</td>
</tr>
</@checkPermission>
<@checkPermission mode="not-equals" entityOperation="_CREATE" subContentId=contentDept statusId="CTNT_PUBLISHED"
targetOperation=targOp contentPurposeList="ARTICLE" quickCheckContentId=contentIdx>
<tr>
<td align="right">
${uiLabelMap.EcommerceLoggedToPost}
</td>
</tr>
</@checkPermission>
</table>
<#--
<@checkPermission mode="not-equals" entityOperation="_CREATE" subContentId=contentIdx statusId="CTNT_PUBLISHED"
targetOperation="HAS_USER_ROLE" contentPurposeList="ARTICLE">
${permissionErrorMsg!}
</@checkPermission>
-->
</#macro>
<#macro renderAncestryPath trail startIndex=0 endIndexOffset=0 buttonTitle="${uiLabelMap.CommonBackTo}">
<#local indent = "">
<#local csv = "">
<#local counter = 0>
<#local len = trail?size>
<table border="0" cellspacing="4">
<#local indent = "">
<#local csv = "">
<#local counter = 0>
<#local len = trail?size>
<table border="0" cellspacing="4">
<#list trail as content>
<#if counter < (len - endIndexOffset) && startIndex <= counter >
<#if 0 < counter >
<#local csv = csv + ","/>
<#local csv = csv + ","/>
</#if>
<#local csv = csv + content.contentId/>
<#if counter < len && startIndex <= counter >
<tr>
<td >
${indent}
<tr>
<td>
${indent}
<#if content.contentTypeId == "WEB_SITE_PUB_PT" >
<a class="tabButton" href="<@ofbizUrl>showforum?forumId=${content.contentId!}&amp;nodeTrailCsv=${csv}</@ofbizUrl>" >${uiLabelMap.CommonBackTo}</a> &nbsp;${content.contentName!}
<a class="tabButton"
href="<@ofbizUrl>showforum?forumId=${content.contentId!}&amp;nodeTrailCsv=${csv}</@ofbizUrl>">${uiLabelMap.CommonBackTo}</a>
&nbsp;${content.contentName!}
<#else>
<a class="tabButton" href="<@ofbizUrl>showforumarticle?contentId=${content.contentId!}&amp;nodeTrailCsv=${csv}</@ofbizUrl>" >${uiLabelMap.CommonBackTo}to</a> &nbsp;${content.contentName!}
<a class="tabButton"
href="<@ofbizUrl>showforumarticle?contentId=${content.contentId!}&amp;nodeTrailCsv=${csv}</@ofbizUrl>">${uiLabelMap.CommonBackTo}
to</a> &nbsp;${content.contentName!}
</#if>
<#local indent = indent + "&nbsp;&nbsp;&nbsp;&nbsp;">
[${content.contentId!}]</td>
[${content.contentId!}]
</td>
</#if>
</tr>
</tr>
</#if>
<#local counter = counter + 1>
<#if 20 < counter > <#break/></#if>
<#if 20 < counter > <#break/></#if>
</#list>
</table>
</table>
</#macro>
<#macro nextPrev listSize requestURL queryString lowIndex=0 highIndex=10 viewSize=10 viewIndex=0 >
<#assign lowIdx=lowIndex/>
<#assign highIdx=highIndex/>
<#assign viewSz=viewSize/>
<#assign viewIdx=viewIndex/>
<#assign listSz=listSize/>
<#assign lowIdx=lowIndex/>
<#assign highIdx=highIndex/>
<#assign viewSz=viewSize/>
<#assign viewIdx=viewIndex/>
<#assign listSz=listSize/>
<#if !lowIdx?has_content><#assign lowIdx=0/></#if>
<#if !highIdx?has_content><#assign highIdx=0/></#if>
<#if !viewSz?has_content><#assign viewSz=10/></#if>
<#if !viewIdx?has_content><#assign viewIdx=10/></#if>
<#if !listSz?has_content><#assign listSz=0/></#if>
<#if !lowIdx?has_content><#assign lowIdx=0/></#if>
<#if !highIdx?has_content><#assign highIdx=0/></#if>
<#if !viewSz?has_content><#assign viewSz=10/></#if>
<#if !viewIdx?has_content><#assign viewIdx=10/></#if>
<#if !listSz?has_content><#assign listSz=0/></#if>
<#if queryString?has_content>
<#if queryString?has_content>
<#assign queryString = Static["org.apache.ofbiz.base.util.UtilHttp"].stripViewParamsFromQueryString(queryString)/>
</#if>
</#if>
<#assign lowIdxShow = lowIdx + 1 />
<#if highIdx < lowIdxShow >
<#assign lowIdxShow = highIdx/>
</#if>
<table border="0" >
<tr><td>
<#if 0 < listSz?number>
<#if 0 < viewIdx?number>
<a href="${requestURL}?${queryString}&amp;viewSz=${viewSz}&amp;viewIdx=${viewIdx?number-1}" class="submenutext">${uiLabelMap.CommonPrevious}</a>
<#else>
<span class="submenutextdisabled">${uiLabelMap.CommonPrevious}</span>
</#if>
<#if 0 < listSz>
<span class="submenutextinfo">${lowIdxShow} - ${highIdx!} ${uiLabelMap.CommonOf} ${listSz!}</span>
</#if>
<#if highIdx!?number < listSz!?number>
<a href="${requestURL}?${queryString!}&amp;viewSz=${viewSz!}&amp;viewIdx=${viewIdx!?number+1}" class="submenutextright">${uiLabelMap.CommonNext}</a>
<#else>
<span class="submenutextrightdisabled">${uiLabelMap.CommonNext}</span>
</#if>
</#if>
</td></tr>
</table>
<#assign lowIdxShow = lowIdx + 1 />
<#if highIdx < lowIdxShow >
<#assign lowIdxShow = highIdx/>
</#if>
<table border="0">
<tr>
<td>
<#if 0 < listSz?number>
<#if 0 < viewIdx?number>
<a href="${requestURL}?${queryString}&amp;viewSz=${viewSz}&amp;viewIdx=${viewIdx?number-1}"
class="submenutext">${uiLabelMap.CommonPrevious}</a>
<#else>
<span class="submenutextdisabled">${uiLabelMap.CommonPrevious}</span>
</#if>
<#if 0 < listSz>
<span class="submenutextinfo">${lowIdxShow} - ${highIdx!} ${uiLabelMap.CommonOf} ${listSz!}</span>
</#if>
<#if highIdx!?number < listSz!?number>
<a href="${requestURL}?${queryString!}&amp;viewSz=${viewSz!}&amp;viewIdx=${viewIdx!?number+1}"
class="submenutextright">${uiLabelMap.CommonNext}</a>
<#else>
<span class="submenutextrightdisabled">${uiLabelMap.CommonNext}</span>
</#if>
</#if>
</td>
</tr>
</table>
</#macro>
+31 -23
View File
@@ -22,27 +22,35 @@ under the License.
<#assign highIndex = viewIndex?int * viewSize?int + viewSize>
<#--<br />== viewIndex: ${viewIndex} ==viewSize: ${viewSize} ==lowIndex: ${lowIndex}== highIndex: ${highIndex} == ListSize: ${listSize}-->
<#if forumMessages?has_content && forumMessages?size gt 0>
<#assign listSize = forumMessages?size/>
<#if highIndex gt listSize><#assign highIndex = listSize></#if>
<div class="product-prevnext">
<#assign r = listSize / viewSize />
<#assign viewIndexMax = Static["java.lang.Math"].ceil(r)>
<select name="pageSelect" class="selectBox" onchange="window.location=this[this.selectedIndex].value;">
<option value="#">${uiLabelMap.CommonPage} ${viewIndex?int+1} ${uiLabelMap.CommonOf} ${viewIndexMax}</option>
<#list 1..viewIndexMax as curViewNum>
<option value="<@ofbizUrl>showforum?forumId=${parameters.forumId}&amp;VIEW_SIZE=${viewSize}&amp;VIEW_INDEX=${curViewNum?int-1}</@ofbizUrl>">${uiLabelMap.CommonGotoPage} ${curViewNum}</option>
</#list>
</select>
<b>
<#if (viewIndex?int >0)>
<a href="<@ofbizUrl>showforum?forumId=${parameters.forumId}&amp;VIEW_SIZE=${viewSize}&amp;VIEW_INDEX=${viewIndex?int-1}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonPrevious}</a> |
</#if>
<#if (listSize?int > 0)>
<span>${lowIndex} - ${highIndex} ${uiLabelMap.CommonOf} ${listSize}</span>
</#if>
<#if highIndex?int < listSize?int>
| <a href="<@ofbizUrl>showforum?forumId=${parameters.forumId}&amp;VIEW_SIZE=${viewSize}&amp;VIEW_INDEX=${viewIndex?int+1}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonNext}</a>
</#if>
</b>
</div>
<#assign listSize = forumMessages?size/>
<#if highIndex gt listSize><#assign highIndex = listSize></#if>
<div class="product-prevnext">
<#assign r = listSize / viewSize />
<#assign viewIndexMax = Static["java.lang.Math"].ceil(r)>
<select name="pageSelect" class="selectBox" onchange="window.location=this[this.selectedIndex].value;">
<option value="#">${uiLabelMap.CommonPage} ${viewIndex?int+1} ${uiLabelMap.CommonOf} ${viewIndexMax}</option>
<#list 1..viewIndexMax as curViewNum>
<option
value="<@ofbizUrl>showforum?forumId=${parameters.forumId}&amp;VIEW_SIZE=${viewSize}&amp;VIEW_INDEX=${curViewNum?int-1}</@ofbizUrl>">
${uiLabelMap.CommonGotoPage} ${curViewNum}
</option>
</#list>
</select>
<b>
<#if (viewIndex?int >0)>
<a href="<@ofbizUrl>showforum?forumId=${parameters.forumId}&amp;VIEW_SIZE=${viewSize}&amp;VIEW_INDEX=${viewIndex?int-1}</@ofbizUrl>"
class="buttontext">
${uiLabelMap.CommonPrevious}
</a> |
</#if>
<#if (listSize?int > 0)>
<span>${lowIndex} - ${highIndex} ${uiLabelMap.CommonOf} ${listSize}</span>
</#if>
<#if highIndex?int < listSize?int>
| <a
href="<@ofbizUrl>showforum?forumId=${parameters.forumId}&amp;VIEW_SIZE=${viewSize}&amp;VIEW_INDEX=${viewIndex?int+1}</@ofbizUrl>"
class="buttontext">${uiLabelMap.CommonNext}</a>
</#if>
</b>
</div>
</#if>
+6 -5
View File
@@ -26,11 +26,12 @@ under the License.
</div>
<div class="screenlet-body">
<ul class="browsecategorylist">
<#list forums as forum>
<li class="browsecategorytext">
<a href="<@ofbizUrl>showforum?forumId=${forum.contentId}</@ofbizUrl>" class="browsecategorybutton">${forum.contentName!forum.contentId}</a>
</li>
</#list>
<#list forums as forum>
<li class="browsecategorytext">
<a href="<@ofbizUrl>showforum?forumId=${forum.contentId}</@ofbizUrl>"
class="browsecategorybutton">${forum.contentName!forum.contentId}</a>
</li>
</#list>
</ul>
</div>
</div>
+40 -34
View File
@@ -16,38 +16,44 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<#-- Thread content id equals contentId if contentAssocTypeId equals PUBLISH_LINK, else threadContentId = ownerContentId -->
<#assign threadContentId = forumMessage.contentId/>
<#if forumMessage.caContentAssocTypeId == "RESPONSE">
<#assign threadContentId = forumMessage.ownerContentId!/>
<#-- Thread content id equals contentId if contentAssocTypeId equals PUBLISH_LINK, else threadContentId = ownerContentId -->
<#assign threadContentId = forumMessage.contentId/>
<#if forumMessage.caContentAssocTypeId == "RESPONSE">
<#assign threadContentId = forumMessage.ownerContentId!/>
</#if>
<#if rsp??>
<#assign contentId = rsp.contentId>
<#else>
<#assign contentId = forumMessage.contentId>
</#if>
<div class="tableheadtext">
${uiLabelMap.CommonTitle} : ${forumMessage.contentName!} ${uiLabelMap.CommonBy}:${forumMessage.createdByUserLogin!}
${uiLabelMap.CommonAt}: ${(forumMessage.createdDate.toString().substring(0,16))!}
<a href="ViewForumMessage?forumId=${parameters.forumId}&amp;responseContentId=${forumMessage.contentId}&amp;threadContentId=${threadContentId!}"
class="buttontext">${uiLabelMap.CommonView}</a>
</div>
<div class="tableheadtext">
${forumMessage.description!}
</div>
<#--
<#assign result = dispatcher.runSync("getPublicForumMessage", Static["org.apache.ofbiz.base.util.UtilMisc"]
.toMap("contentId", contentId, "userLogin", userLogin))/>
<#if (result.resultData)??>
<div class="tableheadtext">
${uiLabelMap.CommonTitle}: ${result.resultData.content.description!}
${uiLabelMap.CommonBy}:${result.resultData.content.createdByUserLogin} ${uiLabelMap.CommonAt}:
${result.resultData.content.createdDate.toString().substring(0,16)}
<a href="addForumMessage?forumId=${parameters.forumId}&amp;forumMessageIdTo=${result.resultData.content.contentId}&amp;threadView=${parameters.threadView!}"
class="buttontext">${uiLabelMap.PartyReply}</a>
</div>
<div>
<#if result.resultData.electronicText??>
${result.resultData.electronicText.textData}
</#if>
<#if rsp??>
<#assign contentId = rsp.contentId>
<#else>
<#assign contentId = forumMessage.contentId>
</#if>
<div class="tableheadtext">
${uiLabelMap.CommonTitle}: ${forumMessage.contentName!} ${uiLabelMap.CommonBy}:${forumMessage.createdByUserLogin!} ${uiLabelMap.CommonAt}: ${(forumMessage.createdDate.toString().substring(0,16))!}
<a href="ViewForumMessage?forumId=${parameters.forumId}&amp;responseContentId=${forumMessage.contentId}&amp;threadContentId=${threadContentId!}" class="buttontext">${uiLabelMap.CommonView}</a>
</div>
<div class="tableheadtext">
${forumMessage.description!}
</div>
<#--
<#assign result = dispatcher.runSync("getPublicForumMessage", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("contentId", contentId, "userLogin", userLogin))/>
<#if (result.resultData)??>
<div class="tableheadtext">
${uiLabelMap.CommonTitle}: ${result.resultData.content.description!} ${uiLabelMap.CommonBy}:${result.resultData.content.createdByUserLogin} ${uiLabelMap.CommonAt}: ${result.resultData.content.createdDate.toString().substring(0,16)}
<a href="addForumMessage?forumId=${parameters.forumId}&amp;forumMessageIdTo=${result.resultData.content.contentId}&amp;threadView=${parameters.threadView!}" class="buttontext">${uiLabelMap.PartyReply}</a>
</div>
<div>
<#if result.resultData.electronicText??>
${result.resultData.electronicText.textData}
</#if>
</div>
<hr />
<#else>
<div> ${result.errorMessage!}</div>
</#if>
-->
</div>
<hr />
<#else>
<div> ${result.errorMessage!}</div>
</#if>
-->
+1 -1
View File
@@ -18,5 +18,5 @@ under the License.
-->
<#list forumMessages! as forumMessage>
<#include "MessageDisplay.ftl">
<#include "MessageDisplay.ftl">
</#list>
+132 -119
View File
@@ -18,143 +18,156 @@ under the License.
-->
<#import "BlogLib.ftl" as blog/>
<div class="screenlet" >
<h1>{${uiLabelMap.EcommerceFromSite}</h1><br />
<div>
<@blog.renderAncestryPath trail=ancestorList?default([]) endIndexOffset=1 />
<#-- Do this so that we don't have to find the content twice (again in renderSubContent) -->
<#assign lastNode = globalNodeTrail!?last/>
<#if lastNode?has_content>
<#assign subContent=lastNode.value/>
<#else>
<#assign subContent = delegator.findOne("Content", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("contentId", subContentId), true)/>
<#assign dummy = globalNodeTrail.add(lastNode)/>
</#if>
<br />
<h1>${uiLabelMap.EcommerceContentFor} [${subContentId}] ${subContent.contentName!} - ${subContent.description!}:</h1><br />
<div class="screenlet">
<h1>{${uiLabelMap.EcommerceFromSite}</h1><br/>
<div>
<@blog.renderAncestryPath trail=ancestorList?default([]) endIndexOffset=1 />
<#-- Do this so that we don't have to find the content twice (again in renderSubContent) -->
<#assign lastNode = globalNodeTrail!?last/>
<#if lastNode?has_content>
<#assign subContent=lastNode.value/>
<#else>
<#assign subContent = delegator.findOne("Content", Static["org.apache.ofbiz.base.util.UtilMisc"]
.toMap("contentId", subContentId), true)/>
<#assign dummy = globalNodeTrail.add(lastNode)/>
</#if>
<br/>
<h1>${uiLabelMap.EcommerceContentFor} [${subContentId}] ${subContent.contentName!}
- ${subContent.description!}:</h1><br/>
<#assign thisContentId=subContentId!>
<#if !thisContentId?has_content>
<#assign thisContentId=contentId!>
</#if>
<table border="0" width="100%" class="blogtext">
<tr>
<td width="40">&nbsp;</td>
<td>
<@renderSubContentCache subContentId=thisContentId />
</td>
<td width="40" valign="bottom">
<@checkPermission subContentId=subContentId targetOperation="HAS_USER_ROLE" contentPurposeList="RESPONSE" >
<a class="tabButton" href="<@ofbizUrl>createforumresponse?contentIdTo=${subContentId}&amp;nodeTrailCsv=${nodeTrailCsv!}</@ofbizUrl>" >${uiLabelMap.EcommerceRespond}</a>
</@checkPermission>
<br />
<#assign thisContentId=subContentId!>
<#if !thisContentId?has_content>
<#assign thisContentId=contentId!>
</#if>
<table border="0" width="100%" class="blogtext">
<tr>
<td width="40">&nbsp;</td>
<td>
<@renderSubContentCache subContentId=thisContentId />
</td>
<td width="40" valign="bottom">
<@checkPermission subContentId=subContentId targetOperation="HAS_USER_ROLE" contentPurposeList="RESPONSE" >
<a class="tabButton"
href="<@ofbizUrl>createforumresponse?contentIdTo=${subContentId}&amp;nodeTrailCsv=${nodeTrailCsv!}</@ofbizUrl>">
${uiLabelMap.EcommerceRespond}
</a>
</@checkPermission>
<br/>
</td>
</tr>
</table>
<hr/>
<#--
<@checkPermission mode="not-equals" subContentId=subContentId targetOperation="CONTENT_CREATE|CONTENT_RESPOND"
contentPurposeList="RESPONSE" >
${permissionErrorMsg!}
</@checkPermission>
-->
</td>
</tr>
</table>
<hr />
<#--
<@checkPermission mode="not-equals" subContentId=subContentId targetOperation="CONTENT_CREATE|CONTENT_RESPOND" contentPurposeList="RESPONSE" >
${permissionErrorMsg!}
</@checkPermission>
-->
<table border="0" width="100%" class="tableheadtext">
<!-- Note that the "...When" arguments in the loopSubContent must be compatible with those in
any embedded transformSubContent, because it will assume that the first node has already
had its conditions checked.
It is not convenient to have the traverseSubContent check or recheck the first node
because the associated ContentAssoc entity is not known.
-->
<h1>${uiLabelMap.EcommerceResponses}</h1><br />
<@loopSubContent contentAssocTypeId="RESPONSE" contentId=subContentId mapKey=""
pickWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"RESPONSE\") && mapKey == null"
followWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"RESPONSE\")">
<@traverseSubContentCache contentAssocTypeId="RESPONSE"
pickWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"RESPONSE\")"
followWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"RESPONSE\")"
wrapTemplateId="">
<#assign indentStr=indent?default("0")/>
<#assign indent=indentStr?number/>
<#if 1 < indent >
<#assign fillRange=1..indent/>
<#assign indentFill=""/>
<#list fillRange as i>
<table border="0" width="100%" class="tableheadtext">
<!-- Note that the "...When" arguments in the loopSubContent must be compatible with those in
any embedded transformSubContent, because it will assume that the first node has already
had its conditions checked.
It is not convenient to have the traverseSubContent check or recheck the first node
because the associated ContentAssoc entity is not known.
-->
<h1>${uiLabelMap.EcommerceResponses}</h1><br/>
<@loopSubContent contentAssocTypeId="RESPONSE" contentId=subContentId mapKey=""
pickWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"RESPONSE\") && mapKey == null"
followWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"RESPONSE\")">
<@traverseSubContentCache contentAssocTypeId="RESPONSE"
pickWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"RESPONSE\")"
followWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"RESPONSE\")"
wrapTemplateId="">
<#assign indentStr=indent?default("0")/>
<#assign indent=indentStr?number/>
<#if 1 < indent >
<#assign fillRange=1..indent/>
<#assign indentFill=""/>
<#list fillRange as i>
<#assign indentFill = indentFill + "&nbsp;&nbsp;&nbsp;&nbsp;" />
</#list>
<#assign thisContentId = ""/>
<#if nodeTrailCsv??>
</#list>
<#assign thisContentId = ""/>
<#if nodeTrailCsv??>
<#assign idList = nodeTrailCsv?split(",")/>
<#if 0 < idList?size >
<#assign thisContentId = idList?last>
<#assign thisContentId = idList?last>
</#if>
</#if>
<#if content??>
<tr>
<td>
${indentFill}
<a class="tabButton"
href="<@ofbizUrl>ViewBlog?contentId=${thisContentId}&amp;nodeTrailCsv=${nodeTrailCsv!}</@ofbizUrl>">
${uiLabelMap.CommonView}
</a>
${content.contentId!}-${content.description!}<br/>
</td>
</tr>
</#if>
</#if>
<#if content??>
<tr>
<td>
${indentFill}
<a class="tabButton" href="<@ofbizUrl>ViewBlog?contentId=${thisContentId}&amp;nodeTrailCsv=${nodeTrailCsv!}</@ofbizUrl>" >${uiLabelMap.CommonView}</a>
${content.contentId!}-${content.description!}<br />
</td>
</tr>
</#if>
</#if>
</@traverseSubContentCache>
</@loopSubContent>
</@traverseSubContentCache>
</@loopSubContent>
<#--
<@wrapSubContentCache subContentId=subContentId wrapTemplateId="WRAP_NEXT_PREV" >
</@wrapSubContentCache >
-->
<#--
<@wrapSubContentCache subContentId=subContentId wrapTemplateId="WRAP_NEXT_PREV" >
</@wrapSubContentCache >
-->
</table>
</div>
</table>
</div>
</div>
<#-- not used, will be deleted -->
<#macro getCurrentContent >
<#assign globalNodeTrail=globalNodeTrail/>
<#if globalNodeTrail??>
<#assign currentNode=globalNodeTrail?last/>
<#if currentNode??>
<#assign currentValue=currentNode.value/>
<#if currentValue??>
<@wrapSubContentCache subContentId=currentValue.contentId wrapTemplateId="WRAP_ARTICLE" >
<@traverseSubContentCache contentAssocTypeId="SUB_CONTENT"
pickWhen="mapKey != null && mapKey.equals(\"ARTICLE\")"
returnAfterPickWhen="mapKey != null && mapKey.equals(\"ARTICLE\")"
followWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"_never_\")"
wrapTemplateId=""
>
<#assign description=currentValue.description?default("No description")/>
${uiLabelMap.CommonDescription}[${currentValue.contentId!}]:${description}
<a class="tabButton" href="<@ofbizUrl>ViewBlog?contentId=${thisContentId}&amp;nodeTrailCsv=${nodeTrailCsv!}</@ofbizUrl>" >${uiLabelMap.CommonView}</a>
</@traverseSubContentCache >
</@wrapSubContentCache>
</#if>
</#if>
<#assign globalNodeTrail=globalNodeTrail/>
<#if globalNodeTrail??>
<#assign currentNode=globalNodeTrail?last/>
<#if currentNode??>
<#assign currentValue=currentNode.value/>
<#if currentValue??>
<@wrapSubContentCache subContentId=currentValue.contentId wrapTemplateId="WRAP_ARTICLE" >
<@traverseSubContentCache contentAssocTypeId="SUB_CONTENT"
pickWhen="mapKey != null && mapKey.equals(\"ARTICLE\")"
returnAfterPickWhen="mapKey != null && mapKey.equals(\"ARTICLE\")"
followWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"_never_\")"
wrapTemplateId="">
<#assign description=currentValue.description?default("No description")/>
${uiLabelMap.CommonDescription}[${currentValue.contentId!}]:${description}
<a class="tabButton"
href="<@ofbizUrl>ViewBlog?contentId=${thisContentId}&amp;nodeTrailCsv=${nodeTrailCsv!}</@ofbizUrl>">
${uiLabelMap.CommonView}
</a>
</@traverseSubContentCache >
</@wrapSubContentCache>
</#if>
</#if>
</#if>
</#macro>
<#macro renderSiteAncestryPath trail startIndex=0 >
<#assign indent = "">
<#assign csv = "">
<#assign counter = 0>
<#assign len = trail?size>
<table border="0" cellspacing="4">
<#assign indent = "">
<#assign csv = "">
<#assign counter = 0>
<#assign len = trail?size>
<table border="0" cellspacing="4">
<#list trail as webSitePublishPoint>
<#if counter < len && startIndex <= counter >
<tr>
<td >
${indent}
<a class="tabButton" href="<@ofbizUrl>main?pubPt=${webSitePublishPoint.contentId!}</@ofbizUrl>" >${uiLabelMap.CommonBackTo}</a> &nbsp;${webSitePublishPoint.templateTitle!}
<#assign indent = indent + "&nbsp;&nbsp;&nbsp;&nbsp;">
[${webSitePublishPoint.contentId!}]</td>
</#if>
</tr>
<#assign counter = counter + 1>
<#if 20 < counter > <#break/></#if>
<#if counter < len && startIndex <= counter >
<tr>
<td>
${indent}
<a class="tabButton"
href="<@ofbizUrl>main?pubPt=${webSitePublishPoint.contentId!}</@ofbizUrl>">${uiLabelMap.CommonBackTo}</a>
&nbsp;${webSitePublishPoint.templateTitle!}
<#assign indent = indent + "&nbsp;&nbsp;&nbsp;&nbsp;">
[${webSitePublishPoint.contentId!}]
</td>
</#if>
</tr>
<#assign counter = counter + 1>
<#if 20 < counter > <#break/></#if>
</#list>
</table>
</table>
</#macro>
+33 -29
View File
@@ -18,36 +18,40 @@ under the License.
-->
<#if requestAttributes._ERROR_MESSAGE_??>
<br /><div class='errorMessage'>${requestAttributes._ERROR_MESSAGE_}</div><br />
<br/>
<div class='errorMessage'>${requestAttributes._ERROR_MESSAGE_}</div><br/>
<#else>
<#if trailList??>
<#assign indent = "">
<#assign csv = "">
<#assign counter = 1>
<#assign len = trailList?size>
<#list trailList as pair>
<#if 0 < csv?length >
<#assign csv = csv + ","/>
</#if>
<#assign csv = csv + pair[0]!/>
<#if counter < len>
${indent}
${pair[0]!} - ${pair[1]!}
<a class="tabButton" href="<@ofbizUrl>ViewBlog?contentId=${pair[0]!}&nodeTrailCsv=${csv!}"></@ofbizUrl>${uiLabelMap.CommonView}</a> <br />
<#assign indent = indent + "&nbsp;&nbsp;&nbsp;&nbsp;">
<#else>
<u>${uiLabelMap.EcommerceAddResponseFor}${pair[0]!} - ${pair[1]!}:</u><br />
</#if>
<#assign counter = counter + 1>
</#list>
<#if trailList??>
<#assign indent = "">
<#assign csv = "">
<#assign counter = 1>
<#assign len = trailList?size>
<#list trailList as pair>
<#if 0 < csv?length >
<#assign csv = csv + ","/>
</#if>
<#assign csv = csv + pair[0]!/>
<#if counter < len>
${indent}
${pair[0]!} - ${pair[1]!}
<a class="tabButton" href="<@ofbizUrl>ViewBlog?contentId=${pair[0]!}&nodeTrailCsv=${csv!}"></@ofbizUrl>
${uiLabelMap.CommonView}
</a>
<br/>
<#assign indent = indent + "&nbsp;&nbsp;&nbsp;&nbsp;">
<#else>
<#if dataResourceId??>
<br />
<img src="<@ofbizUrl>img?imgId=${dataResourceId}</@ofbizUrl>" alt=""/>
</#if>
<br />
<u>${uiLabelMap.EcommerceAddResponseFor}${pair[0]!} - ${pair[1]!}:</u><br/>
</#if>
<#assign counter = counter + 1>
</#list>
<#if dataResourceId??>
<br/>
<img src="<@ofbizUrl>img?imgId=${dataResourceId}</@ofbizUrl>" alt=""/>
</#if>
${singleWrapper.renderFormString()}
<br />
<br/>
</#if>
${singleWrapper.renderFormString()}
<br/>
</#if>
+20 -15
View File
@@ -19,20 +19,25 @@ under the License.
<#assign nowTimestamp = Static["org.apache.ofbiz.base.util.UtilDateTime"].nowTimestamp()>
<br />
<div class="footer">
<div>
<a href="http://jigsaw.w3.org/css-validator/"><img style="border:0;width:88px;height:31px" src="<@ofbizContentUrl>/images/vcss.gif</@ofbizContentUrl>" alt="Valid CSS!"/></a>
<a href="http://validator.w3.org/check?uri=referer"><img style="border:0;width:88px;height:31px" src="<@ofbizContentUrl>/images/valid-xhtml10.png</@ofbizContentUrl>" alt="Valid XHTML 1.0!"/></a>
</div>
<br />
<div>
<a href="http://ofbiz.apache.org">${uiLabelMap.EcommerceAboutUs}</a>
<div>Copyright (c) 2001-${nowTimestamp?string("yyyy")} The Apache Software Foundation - <a href="http://www.apache.org">www.apache.org</a></div>
<div>Powered by <a href="http://ofbiz.apache.org">Apache OFBiz</a></div>
</div>
<br />
<div><a href="<@ofbizUrl>policies</@ofbizUrl>">${uiLabelMap.EcommerceSeeStorePoliciesHere}</a></div>
<br/>
<div class="footer">
<div>
<a href="http://jigsaw.w3.org/css-validator/">
<img style="border:0;width:88px;height:31px" src="<@ofbizContentUrl>/images/vcss.gif</@ofbizContentUrl>" alt="Valid CSS!"/>
</a>
<a href="http://validator.w3.org/check?uri=referer">
<img style="border:0;width:88px;height:31px"src="<@ofbizContentUrl>/images/valid-xhtml10.png</@ofbizContentUrl>" alt="Valid XHTML 1.0!"/>
</a>
</div>
<br/>
<div>
<a href="http://ofbiz.apache.org">${uiLabelMap.EcommerceAboutUs}</a>
<div>Copyright (c) 2001-${nowTimestamp?string("yyyy")} The Apache Software Foundation -
<a href="http://www.apache.org">www.apache.org</a>
</div>
<div>Powered by <a href="http://ofbiz.apache.org">Apache OFBiz</a></div>
</div>
<br/>
<div><a href="<@ofbizUrl>policies</@ofbizUrl>">${uiLabelMap.EcommerceSeeStorePoliciesHere}</a></div>
</div>
+76 -59
View File
@@ -18,64 +18,81 @@ under the License.
-->
<div id="ecom-header">
<div id="left">
<#if sessionAttributes.overrideLogo??>
<img src="<@ofbizContentUrl>${sessionAttributes.overrideLogo}</@ofbizContentUrl>" alt="Logo"/>
<#elseif catalogHeaderLogo??>
<img src="<@ofbizContentUrl>${catalogHeaderLogo}</@ofbizContentUrl>" alt="Logo"/>
<#elseif layoutSettings.VT_HDR_IMAGE_URL?has_content>
<img src="<@ofbizContentUrl>${layoutSettings.VT_HDR_IMAGE_URL.get(0)}</@ofbizContentUrl>" alt="Logo"/>
</#if>
</div>
<div id="right">
${screens.render("component://ecommerce/widget/CartScreens.xml#microcart")}
</div>
<div id="middle">
<#if !productStore??>
<h2>${uiLabelMap.EcommerceNoProductStore}</h2>
</#if>
<#if (productStore.title)??><div id="company-name">${productStore.title}</div></#if>
<#if (productStore.subtitle)??><div id="company-subtitle">${productStore.subtitle}</div></#if>
<div id="welcome-message">
<#if sessionAttributes.autoName?has_content>
${uiLabelMap.CommonWelcome}&nbsp;${sessionAttributes.autoName?html}!
(${uiLabelMap.CommonNotYou}?&nbsp;<a href="<@ofbizUrl>autoLogout</@ofbizUrl>" class="linktext">${uiLabelMap.CommonClickHere}</a>)
<#else>
${uiLabelMap.CommonWelcome}!
</#if>
</div>
</div>
<div id="ecom-header">
<div id="left">
<#if sessionAttributes.overrideLogo??>
<img src="<@ofbizContentUrl>${sessionAttributes.overrideLogo}</@ofbizContentUrl>" alt="Logo"/>
<#elseif catalogHeaderLogo??>
<img src="<@ofbizContentUrl>${catalogHeaderLogo}</@ofbizContentUrl>" alt="Logo"/>
<#elseif layoutSettings.VT_HDR_IMAGE_URL?has_content>
<img src="<@ofbizContentUrl>${layoutSettings.VT_HDR_IMAGE_URL.get(0)}</@ofbizContentUrl>" alt="Logo"/>
</#if>
</div>
<div id="right">
${screens.render("component://ecommerce/widget/CartScreens.xml#microcart")}
</div>
<div id="middle">
<#if !productStore??>
<h2>${uiLabelMap.EcommerceNoProductStore}</h2>
</#if>
<#if (productStore.title)??>
<div id="company-name">${productStore.title}</div>
</#if>
<#if (productStore.subtitle)??>
<div id="company-subtitle">${productStore.subtitle}</div>
</#if>
<div id="welcome-message">
<#if sessionAttributes.autoName?has_content>
${uiLabelMap.CommonWelcome}&nbsp;${sessionAttributes.autoName?html}!
(${uiLabelMap.CommonNotYou}?&nbsp;
<a href="<@ofbizUrl>autoLogout</@ofbizUrl>" class="linktext">${uiLabelMap.CommonClickHere}</a>)
<#else>
${uiLabelMap.CommonWelcome}!
</#if>
</div>
</div>
</div>
<div id="ecom-header-bar">
<ul id="left-links">
<#if userLogin?has_content && userLogin.userLoginId != "anonymous">
<li id="header-bar-logout"><a href="<@ofbizUrl>logout</@ofbizUrl>">${uiLabelMap.CommonLogout}</a></li>
<#else>
<li id="header-bar-login"><a href="<@ofbizUrl>${checkLoginUrl}</@ofbizUrl>">${uiLabelMap.CommonLogin}</a></li>
<li id="header-bar-register"><a href="<@ofbizUrl>newcustomer</@ofbizUrl>">${uiLabelMap.EcommerceRegister}</a></li>
</#if>
<li id="header-bar-contactus">
<#if userLogin?has_content && userLogin.userLoginId != "anonymous">
<a href="<@ofbizUrl>contactus</@ofbizUrl>">${uiLabelMap.CommonContactUs}</a></li>
<#else>
<a href="<@ofbizUrl>AnonContactus</@ofbizUrl>">${uiLabelMap.CommonContactUs}</a></li>
</#if>
<li id="header-bar-main"><a href="<@ofbizUrl>main</@ofbizUrl>">${uiLabelMap.CommonMain}</a></li>
</ul>
<ul id="right-links">
<!-- NOTE: these are in reverse order because they are stacked right to left instead of left to right -->
<#if !userLogin?has_content || (userLogin.userLoginId)! != "anonymous">
<li id="header-bar-viewprofile"><a href="<@ofbizUrl>viewprofile</@ofbizUrl>">${uiLabelMap.CommonProfile}</a></li>
<li id="header-bar-ListMessages"><a href="<@ofbizUrl>messagelist</@ofbizUrl>">${uiLabelMap.CommonMessages}</a></li>
<li id="header-bar-ListQuotes"><a href="<@ofbizUrl>ListQuotes</@ofbizUrl>">${uiLabelMap.OrderOrderQuotes}</a></li>
<li id="header-bar-ListRequests"><a href="<@ofbizUrl>ListRequests</@ofbizUrl>">${uiLabelMap.OrderRequests}</a></li>
<li id="header-bar-editShoppingList"><a href="<@ofbizUrl>editShoppingList</@ofbizUrl>">${uiLabelMap.EcommerceShoppingLists}</a></li>
<li id="header-bar-orderhistory"><a href="<@ofbizUrl>orderhistory</@ofbizUrl>">${uiLabelMap.EcommerceOrderHistory}</a></li>
</#if>
<#if catalogQuickaddUse>
<li id="header-bar-quickadd"><a href="<@ofbizUrl>quickadd</@ofbizUrl>">${uiLabelMap.CommonQuickAdd}</a></li>
</#if>
</ul>
</div>
<div id="ecom-header-bar">
<ul id="left-links">
<#if userLogin?has_content && userLogin.userLoginId != "anonymous">
<li id="header-bar-logout"><a href="<@ofbizUrl>logout</@ofbizUrl>">${uiLabelMap.CommonLogout}</a></li>
<#else>
<li id="header-bar-login"><a href="<@ofbizUrl>${checkLoginUrl}</@ofbizUrl>">${uiLabelMap.CommonLogin}</a></li>
<li id="header-bar-register"><a href="<@ofbizUrl>newcustomer</@ofbizUrl>">${uiLabelMap.EcommerceRegister}</a></li>
</#if>
<li id="header-bar-contactus">
<#if userLogin?has_content && userLogin.userLoginId != "anonymous">
<a href="<@ofbizUrl>contactus</@ofbizUrl>">${uiLabelMap.CommonContactUs}</a></li>
<#else>
<a href="<@ofbizUrl>AnonContactus</@ofbizUrl>">${uiLabelMap.CommonContactUs}</a></li>
</#if>
<li id="header-bar-main"><a href="<@ofbizUrl>main</@ofbizUrl>">${uiLabelMap.CommonMain}</a></li>
</ul>
<ul id="right-links">
<!-- NOTE: these are in reverse order because they are stacked right to left instead of left to right -->
<#if !userLogin?has_content || (userLogin.userLoginId)! != "anonymous">
<li id="header-bar-viewprofile">
<a href="<@ofbizUrl>viewprofile</@ofbizUrl>">${uiLabelMap.CommonProfile}</a>
</li>
<li id="header-bar-ListMessages">
<a href="<@ofbizUrl>messagelist</@ofbizUrl>">${uiLabelMap.CommonMessages}</a>
</li>
<li id="header-bar-ListQuotes">
<a href="<@ofbizUrl>ListQuotes</@ofbizUrl>">${uiLabelMap.OrderOrderQuotes}</a>
</li>
<li id="header-bar-ListRequests">
<a href="<@ofbizUrl>ListRequests</@ofbizUrl>">${uiLabelMap.OrderRequests}</a>
</li>
<li id="header-bar-editShoppingList">
<a href="<@ofbizUrl>editShoppingList</@ofbizUrl>">${uiLabelMap.EcommerceShoppingLists}</a>
</li>
<li id="header-bar-orderhistory">
<a href="<@ofbizUrl>orderhistory</@ofbizUrl>">${uiLabelMap.EcommerceOrderHistory}</a>
</li>
</#if>
<#if catalogQuickaddUse>
<li id="header-bar-quickadd"><a href="<@ofbizUrl>quickadd</@ofbizUrl>">${uiLabelMap.CommonQuickAdd}</a></li>
</#if>
</ul>
</div>
+28 -19
View File
@@ -19,40 +19,47 @@ under the License.
<#assign docLangAttr = locale.toString()?replace("_", "-")>
<#assign langDir = "ltr">
<#if "ar.iw"?contains(docLangAttr?substring(0, 2))>
<#assign langDir = "rtl">
<#assign langDir = "rtl">
</#if>
<html lang="${docLangAttr}" dir="${langDir}" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title><#if title?has_content>${title}<#elseif titleProperty?has_content>${uiLabelMap.get(titleProperty)}</#if>: ${(productStore.storeName)!}</title>
<title><#if title?has_content>${title}<#elseif titleProperty?has_content>${uiLabelMap.get(titleProperty)}</#if>
: ${(productStore.storeName)!}
</title>
<#if layoutSettings.VT_SHORTCUT_ICON?has_content>
<#assign shortcutIcon = layoutSettings.VT_SHORTCUT_ICON.get(0)/>
<#elseif layoutSettings.shortcutIcon?has_content>
<#assign shortcutIcon = layoutSettings.shortcutIcon/>
</#if>
<#if shortcutIcon?has_content>
<link rel="shortcut icon" href="<@ofbizContentUrl>${StringUtil.wrapString(shortcutIcon)}</@ofbizContentUrl>" />
<link rel="shortcut icon" href="<@ofbizContentUrl>${StringUtil.wrapString(shortcutIcon)}</@ofbizContentUrl>"/>
</#if>
<#if layoutSettings.styleSheets?has_content>
<#--layoutSettings.styleSheets is a list of style sheets. So, you can have a user-specified "main" style sheet, AND a component style sheet.-->
<#--layoutSettings.styleSheets is a list of style sheets. So, you can have a user-specified "main" style sheet,
AND a component style sheet.-->
<#list layoutSettings.styleSheets as styleSheet>
<link rel="stylesheet" href="<@ofbizContentUrl>${StringUtil.wrapString(styleSheet)}</@ofbizContentUrl>" type="text/css"/>
<link rel="stylesheet" href="<@ofbizContentUrl>${StringUtil.wrapString(styleSheet)}</@ofbizContentUrl>"
type="text/css"/>
</#list>
</#if>
<#if layoutSettings.VT_STYLESHEET?has_content>
<#list layoutSettings.VT_STYLESHEET as styleSheet>
<link rel="stylesheet" href="<@ofbizContentUrl>${StringUtil.wrapString(styleSheet)}</@ofbizContentUrl>" type="text/css"/>
<link rel="stylesheet" href="<@ofbizContentUrl>${StringUtil.wrapString(styleSheet)}</@ofbizContentUrl>"
type="text/css"/>
</#list>
</#if>
<#if layoutSettings.rtlStyleSheets?has_content && langDir == "rtl">
<#--layoutSettings.rtlStyleSheets is a list of rtl style sheets.-->
<#--layoutSettings.rtlStyleSheets is a list of rtl style sheets.-->
<#list layoutSettings.rtlStyleSheets as styleSheet>
<link rel="stylesheet" href="<@ofbizContentUrl>${StringUtil.wrapString(styleSheet)}</@ofbizContentUrl>" type="text/css"/>
<link rel="stylesheet" href="<@ofbizContentUrl>${StringUtil.wrapString(styleSheet)}</@ofbizContentUrl>"
type="text/css"/>
</#list>
</#if>
<#if layoutSettings.VT_RTL_STYLESHEET?has_content && langDir == "rtl">
<#list layoutSettings.VT_RTL_STYLESHEET as styleSheet>
<link rel="stylesheet" href="<@ofbizContentUrl>${StringUtil.wrapString(styleSheet)}</@ofbizContentUrl>" type="text/css"/>
<link rel="stylesheet" href="<@ofbizContentUrl>${StringUtil.wrapString(styleSheet)}</@ofbizContentUrl>"
type="text/css"/>
</#list>
</#if>
<#-- Append CSS for catalog -->
@@ -65,17 +72,19 @@ under the License.
</#if>
<#if layoutSettings.VT_HDR_JAVASCRIPT?has_content>
<#list layoutSettings.VT_HDR_JAVASCRIPT as javaScript>
<script type="text/javascript" src="<@ofbizContentUrl>${StringUtil.wrapString(javaScript)}</@ofbizContentUrl>"></script>
<script type="text/javascript"
src="<@ofbizContentUrl>${StringUtil.wrapString(javaScript)}</@ofbizContentUrl>"></script>
</#list>
</#if>
<#if layoutSettings.javaScripts?has_content>
<#--layoutSettings.javaScripts is a list of java scripts. -->
<#-- use a Set to make sure each javascript is declared only once, but iterate the list to maintain the correct order -->
<#--layoutSettings.javaScripts is a list of java scripts. -->
<#-- use a Set to make sure each javascript is declared only once, but iterate the list to maintain the correct order -->
<#assign javaScriptsSet = Static["org.apache.ofbiz.base.util.UtilMisc"].toSet(layoutSettings.javaScripts)/>
<#list layoutSettings.javaScripts as javaScript>
<#if javaScriptsSet.contains(javaScript)>
<#assign nothing = javaScriptsSet.remove(javaScript)/>
<script type="text/javascript" src="<@ofbizContentUrl>${StringUtil.wrapString(javaScript)}</@ofbizContentUrl>"></script>
<script type="text/javascript"
src="<@ofbizContentUrl>${StringUtil.wrapString(javaScript)}</@ofbizContentUrl>"></script>
</#if>
</#list>
</#if>
@@ -87,7 +96,7 @@ under the License.
</#if>
<#-- Meta tags if defined by the page action -->
<meta name="generator" content="Apache OFBiz - eCommerce"/>
<meta name="generator" content="Apache OFBiz - eCommerce"/>
<#if metaDescription??>
<meta name="description" content="${metaDescription}"/>
</#if>
@@ -96,11 +105,11 @@ under the License.
</#if>
<#if webAnalyticsConfigs?has_content>
<script language="JavaScript" type="text/javascript">
<#list webAnalyticsConfigs as webAnalyticsConfig>
<#if webAnalyticsConfig.webAnalyticsTypeId != "BACKEND_ANALYTICS">
${StringUtil.wrapString(webAnalyticsConfig.webAnalyticsCode!)}
</#if>
</#list>
<#list webAnalyticsConfigs as webAnalyticsConfig>
<#if webAnalyticsConfig.webAnalyticsTypeId != "BACKEND_ANALYTICS">
${StringUtil.wrapString(webAnalyticsConfig.webAnalyticsCode!)}
</#if>
</#list>
</script>
</#if>
</head>
+6 -2
View File
@@ -34,9 +34,13 @@ under the License.
<#if "ar.iw"?contains(langAttr?substring(0, 2))>
<#assign langDir = "rtl">
</#if>
<option lang="${langAttr}" dir="${langDir}" value="${availableLocale.toString()}"<#if locale.toString() = availableLocale.toString()> selected="selected"</#if>>${availableLocale.getDisplayName(availableLocale)}</option>
<option lang="${langAttr}" dir="${langDir}"
value="${availableLocale.toString()}"<#if locale.toString() = availableLocale.toString()>
selected="selected"</#if>>
${availableLocale.getDisplayName(availableLocale)}
</option>
</#list>
</select>
</form>
</div>
</div>
</div>
@@ -17,35 +17,53 @@ specific language governing permissions and limitations
under the License.
-->
<script language="javascript" type="text/javascript">
function submitForm(form) {
form.submit();
}
function submitForm(form) {
form.submit();
}
</script>
<div>
<a href="<@ofbizUrl>setCustomer</@ofbizUrl>" <#if callSubmitForm??>onclick="javascript:submitForm(document.${parameters.formNameValue!});"</#if>>Personal Info</a>
<#if (enableShippingAddress)??>
<a href="<@ofbizUrl>setShipping</@ofbizUrl>" <#if callSubmitForm??>onclick="javascript:submitForm(document.${parameters.formNameValue!});"</#if>>Shipping Address</a>
<#else>
<span class="buttontextdisabled">Shipping Address</span>
</#if>
<#if (enableShipmentMethod)??>
<a href="<@ofbizUrl>setShipOptions</@ofbizUrl>" <#if callSubmitForm??>onclick="javascript:submitForm(document.${parameters.formNameValue!});"</#if>>Shipping Options</a>
<#else>
<span class="buttontextdisabled">Shipping Options</span>
</#if>
<#if (enablePaymentOptions)??>
<a href="<@ofbizUrl>setPaymentOption</@ofbizUrl>" <#if callSubmitForm??>onclick="javascript:submitForm(document.${parameters.formNameValue!});"</#if>>Payment Options</a>
<#else>
<span class="buttontextdisabled">Payment Options</span>
</#if>
<#if (enablePaymentInformation)??>
<a href="<@ofbizUrl>setPaymentInformation?paymentMethodTypeId=${requestParameters.paymentMethodTypeId!}</@ofbizUrl>" <#if callSubmitForm??>onclick="javascript:submitForm(document.${parameters.formNameValue!});"</#if>>Payment Information</a>
<#else>
<span class="buttontextdisabled">Payment Information</span>
</#if>
<#if (enableReviewOrder)??>
<a href="<@ofbizUrl>reviewOrder</@ofbizUrl>" <#if callSubmitForm??>onclick="javascript:submitForm(document.${parameters.formNameValue!});"</#if>>Review Order</a>
<#else>
<span class="buttontextdisabled">Review Order</span>
</#if>
<a href="<@ofbizUrl>setCustomer</@ofbizUrl>"
<#if callSubmitForm??>onclick="javascript:submitForm(document.${parameters.formNameValue!});"</#if>>
Personal Info
</a>
<#if (enableShippingAddress)??>
<a href="<@ofbizUrl>setShipping</@ofbizUrl>"
<#if callSubmitForm??>onclick="javascript:submitForm(document.${parameters.formNameValue!});"</#if>>
Shipping Address
</a>
<#else>
<span class="buttontextdisabled">Shipping Address</span>
</#if>
<#if (enableShipmentMethod)??>
<a href="<@ofbizUrl>setShipOptions</@ofbizUrl>"
<#if callSubmitForm??>onclick="javascript:submitForm(document.${parameters.formNameValue!});"</#if>>
Shipping Options
</a>
<#else>
<span class="buttontextdisabled">Shipping Options</span>
</#if>
<#if (enablePaymentOptions)??>
<a href="<@ofbizUrl>setPaymentOption</@ofbizUrl>"
<#if callSubmitForm??>onclick="javascript:submitForm(document.${parameters.formNameValue!});"</#if>>
Payment Options
</a>
<#else>
<span class="buttontextdisabled">Payment Options</span>
</#if>
<#if (enablePaymentInformation)??>
<a href="<@ofbizUrl>setPaymentInformation?paymentMethodTypeId=${requestParameters.paymentMethodTypeId!}</@ofbizUrl>"
<#if callSubmitForm??>onclick="javascript:submitForm(document.${parameters.formNameValue!});"</#if>>
Payment Information
</a>
<#else>
<span class="buttontextdisabled">Payment Information</span>
</#if>
<#if (enableReviewOrder)??>
<a href="<@ofbizUrl>reviewOrder</@ofbizUrl>"
<#if callSubmitForm??>onclick="javascript:submitForm(document.${parameters.formNameValue!});"</#if>>
Review Order
</a>
<#else>
<span class="buttontextdisabled">Review Order</span>
</#if>
</div>
+15 -1
View File
@@ -17,4 +17,18 @@ specific language governing permissions and limitations
under the License.
-->
<#if shipAddr??><a href="<@ofbizUrl>setShipping</@ofbizUrl>" class="${trailClass.shipAddr}">${uiLabelMap.EcommerceChangeShippingAddress}</a><#if shipOptions??><a href="<@ofbizUrl>setShipOptions</@ofbizUrl>" class="${trailClass.shipOptions}">${uiLabelMap.EcommerceChangeShippingOptions}</a><#if billing??><a href="<@ofbizUrl>setBilling?resetType=Y</@ofbizUrl>" class="${trailClass.paymentType}">${uiLabelMap.EcommerceChangePaymentInfo}</a></#if></#if></#if>
<#if shipAddr??>
<a href="<@ofbizUrl>setShipping</@ofbizUrl>" class="${trailClass.shipAddr}">
${uiLabelMap.EcommerceChangeShippingAddress}
</a>
<#if shipOptions??>
<a href="<@ofbizUrl>setShipOptions</@ofbizUrl>" class="${trailClass.shipOptions}">
${uiLabelMap.EcommerceChangeShippingOptions}
</a>
<#if billing??>
<a href="<@ofbizUrl>setBilling?resetType=Y</@ofbizUrl>" class="${trailClass.paymentType}">
${uiLabelMap.EcommerceChangePaymentInfo}
</a>
</#if>
</#if>
</#if>
+333 -252
View File
@@ -18,276 +18,357 @@ under the License.
-->
<script language="JavaScript" type="text/javascript">
function shipBillAddr() {
function shipBillAddr() {
<#if requestParameters.singleUsePayment?default("N") == "Y">
<#assign singleUse = "&amp;singleUsePayment=Y">
<#else>
<#assign singleUse = "">
</#if>
if (document.billsetupform.useShipAddr.checked) {
window.location.replace("setBilling?createNew=Y&amp;finalizeMode=payment&amp;useGc=${requestParameters.useGc!}&amp;paymentMethodType=${paymentMethodType!}&amp;useShipAddr=Y${singleUse}");
window.location.replace("setBilling?createNew=Y&amp;finalizeMode=payment&amp;useGc=${requestParameters.useGc!}&amp;paymentMethodType=${paymentMethodType!}&amp;useShipAddr=Y${singleUse}");
} else {
window.location.replace("setBilling?createNew=Y&amp;finalizeMode=payment&amp;useGc=${requestParameters.useGc!}&amp;paymentMethodType=${paymentMethodType!}${singleUse}");
window.location.replace("setBilling?createNew=Y&amp;finalizeMode=payment&amp;useGc=${requestParameters.useGc!}&amp;paymentMethodType=${paymentMethodType!}${singleUse}");
}
}
}
</script>
<div class="screenlet">
<div class="screenlet-title-bar">
<div class="boxlink">
<#if requestParameters.singleUsePayment?default("N") != "Y">
<div>
${screens.render(anonymoustrailScreen)}
</div>
</#if>
<div class="screenlet-title-bar">
<div class="boxlink">
<#if requestParameters.singleUsePayment?default("N") != "Y">
<div>
${screens.render(anonymoustrailScreen)}
</div>
<div class='h3'>${uiLabelMap.AccountingPaymentInformation}</div>
</#if>
</div>
<div class="screenlet-body">
<#if (paymentMethodType?? && !requestParameters.resetType?has_content) || finalizeMode?default("") == "payment">
<#-- after initial screen; show detailed screens for selected type -->
<#if paymentMethodType == "CC">
<#if creditCard?has_content && postalAddress?has_content>
<form method="post" action="<@ofbizUrl>changeCreditCardAndBillingAddress</@ofbizUrl>" name="billsetupform">
<input type="hidden" name="paymentMethodId" value="${creditCard.paymentMethodId!}" />
<input type="hidden" name="contactMechId" value="${postalAddress.contactMechId!}" />
<#elseif requestParameters.useShipAddr??>
<form method="post" action="<@ofbizUrl>enterCreditCard</@ofbizUrl>" name="billsetupform">
<#else>
<form method="post" action="<@ofbizUrl>enterCreditCardAndBillingAddress</@ofbizUrl>" name="billsetupform">
</#if>
<div class='h3'>${uiLabelMap.AccountingPaymentInformation}</div>
</div>
<div class="screenlet-body">
<#if (paymentMethodType?? && !requestParameters.resetType?has_content) || finalizeMode?default("") == "payment">
<#-- after initial screen; show detailed screens for selected type -->
<#if paymentMethodType == "CC">
<#if creditCard?has_content && postalAddress?has_content>
<form method="post" action="<@ofbizUrl>changeCreditCardAndBillingAddress</@ofbizUrl>" name="billsetupform">
<input type="hidden" name="paymentMethodId" value="${creditCard.paymentMethodId!}"/>
<input type="hidden" name="contactMechId" value="${postalAddress.contactMechId!}"/>
<#elseif requestParameters.useShipAddr??>
<form method="post" action="<@ofbizUrl>enterCreditCard</@ofbizUrl>" name="billsetupform">
<#else>
<form method="post" action="<@ofbizUrl>enterCreditCardAndBillingAddress</@ofbizUrl>" name="billsetupform">
</#if>
</#if>
<#if paymentMethodType == "EFT">
<#if eftAccount?has_content && postalAddress?has_content>
<form method="post" action="<@ofbizUrl>changeEftAccountAndBillingAddress</@ofbizUrl>" name="billsetupform">
<input type="hidden" name="paymentMethodId" value="${eftAccount.paymentMethodId!}"/>
<input type="hidden" name="contactMechId" value="${postalAddress.contactMechId!}"/>
<#elseif requestParameters.useShipAddr??>
<form method="post" action="<@ofbizUrl>enterEftAccount</@ofbizUrl>" name="billsetupform">
<#else>
<form method="post" action="<@ofbizUrl>enterEftAccountAndBillingAddress</@ofbizUrl>" name="billsetupform">
</#if>
</#if>
<#if paymentMethodType == "GC">
<form method="post" action="<@ofbizUrl>finalizeOrder</@ofbizUrl>" name="billsetupform">
</#if>
<#if requestParameters.singleUsePayment?default("N") == "Y">
<input type="hidden" name="singleUsePayment" value="Y"/>
<input type="hidden" name="appendPayment" value="Y"/>
</#if>
<input type="hidden" name="contactMechTypeId" value="POSTAL_ADDRESS"/>
<input type="hidden" name="partyId" value="${partyId}"/>
<input type="hidden" name="paymentMethodType" value="${paymentMethodType}"/>
<input type="hidden" name="finalizeMode" value="payment"/>
<input type="hidden" name="createNew" value="Y"/>
<#if requestParameters.useShipAddr??>
<input type="hidden" name="contactMechId" value="${postalFields.contactMechId}"/>
</#if>
<table width="100%" border="0" cellpadding="1" cellspacing="0">
<#if cart.getShippingContactMechId()?? && paymentMethodType != "GC">
<tr>
<td width="26%" align="right" = valign="top">
<input type="checkbox" name="useShipAddr" value="Y" onclick="javascript:shipBillAddr();"
<#if requestParameters.useShipAddr??>checked="checked"</#if>/>
</td>
<td colspan="2" valign="center">
<div>${uiLabelMap.FacilityBillingAddressSameShipping}</div>
</td>
</tr>
<tr>
<td colspan="3">
<hr/>
</td>
</tr>
</#if>
<#if (paymentMethodType == "CC" || paymentMethodType == "EFT")>
<tr>
<td width="26%" align="right" valign="top">
<div class="tableheadtext">${uiLabelMap.PartyBillingAddress}</div>
</td>
<td width="5">&nbsp;</td>
<td width="74%">&nbsp;</td>
</tr>
${screens.render("component://ecommerce/widget/OrderScreens.xml#genericaddress")}
</#if>
<#-- credit card fields -->
<#if paymentMethodType == "CC">
<#if !creditCard?has_content>
<#assign creditCard = requestParameters>
</#if>
<#if paymentMethodType == "EFT">
<#if eftAccount?has_content && postalAddress?has_content>
<form method="post" action="<@ofbizUrl>changeEftAccountAndBillingAddress</@ofbizUrl>" name="billsetupform">
<input type="hidden" name="paymentMethodId" value="${eftAccount.paymentMethodId!}" />
<input type="hidden" name="contactMechId" value="${postalAddress.contactMechId!}" />
<#elseif requestParameters.useShipAddr??>
<form method="post" action="<@ofbizUrl>enterEftAccount</@ofbizUrl>" name="billsetupform">
<#else>
<form method="post" action="<@ofbizUrl>enterEftAccountAndBillingAddress</@ofbizUrl>" name="billsetupform">
</#if>
</#if>
<#if paymentMethodType == "GC">
<form method="post" action="<@ofbizUrl>finalizeOrder</@ofbizUrl>" name="billsetupform">
<tr>
<td colspan="3">
<hr/>
</td>
</tr>
<tr>
<td width="26%" align="right" valign="top">
<div class="tableheadtext">${uiLabelMap.AccountingCreditCardInformation}</div>
</td>
<td width="5">&nbsp;</td>
<td width="74%">&nbsp;</td>
</tr>
${screens.render("component://accounting/widget/CommonScreens.xml#creditCardFields")}
</#if>
<#-- eft fields -->
<#if paymentMethodType =="EFT">
<#if !eftAccount?has_content>
<#assign eftAccount = requestParameters>
</#if>
<tr>
<td colspan="3">
<hr/>
</td>
</tr>
<tr>
<td width="26%" align="right" valign="top">
<div class="tableheadtext">${uiLabelMap.AccountingEFTAccountInformation}</div>
</td>
<td width="5">&nbsp;</td>
<td width="74%">&nbsp;</td>
</tr>
<tr>
<td width="26%" align="right" valign="middle">
<div>${uiLabelMap.AccountingNameOnAccount}</div>
</td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="30" maxlength="60" name="nameOnAccount"
value="${eftAccount.nameOnAccount!}"/>*
</td>
</tr>
<tr>
<td width="26%" align="right" valign="middle">
<div>${uiLabelMap.AccountingCompanyNameOnAccount}</div>
</td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="30" maxlength="60" name="companyNameOnAccount"
value="${eftAccount.companyNameOnAccount!}"/>
</td>
</tr>
<tr>
<td width="26%" align="right" valign="middle">
<div>${uiLabelMap.AccountingBankName}</div>
</td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="30" maxlength="60" name="bankName"
value="${eftAccount.bankName!}"/>*
</td>
</tr>
<tr>
<td width="26%" align="right" valign="middle">
<div>${uiLabelMap.AccountingRoutingNumber}</div>
</td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="10" maxlength="30" name="routingNumber"
value="${eftAccount.routingNumber!}"/>*
</td>
</tr>
<tr>
<td width="26%" align="right" valign="middle">
<div>${uiLabelMap.AccountingAccountType}</div>
</td>
<td width="5">&nbsp;</td>
<td width="74%">
<select name="accountType" class='selectBox'>
<option>${eftAccount.accountType!}</option>
<option></option>
<option>Checking</option>
<option>Savings</option>
</select>*
</td>
</tr>
<tr>
<td width="26%" align="right" valign="middle">
<div>${uiLabelMap.AccountingAccountNumber}</div>
</td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="20" maxlength="40" name="accountNumber"
value="${eftAccount.accountNumber!}"/>*
</td>
</tr>
<tr>
<td width="26%" align="right" valign="middle">
<div>${uiLabelMap.CommonDescription}</div>
</td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="30" maxlength="60" name="description"
value="${eftAccount.description!}"/>
</td>
</tr>
</#if>
<#if requestParameters.singleUsePayment?default("N") == "Y">
<input type="hidden" name="singleUsePayment" value="Y" />
<input type="hidden" name="appendPayment" value="Y" />
</#if>
<input type="hidden" name="contactMechTypeId" value="POSTAL_ADDRESS" />
<input type="hidden" name="partyId" value="${partyId}" />
<input type="hidden" name="paymentMethodType" value="${paymentMethodType}" />
<input type="hidden" name="finalizeMode" value="payment" />
<input type="hidden" name="createNew" value="Y" />
<#if requestParameters.useShipAddr??>
<input type="hidden" name="contactMechId" value="${postalFields.contactMechId}" />
</#if>
<table width="100%" border="0" cellpadding="1" cellspacing="0">
<#if cart.getShippingContactMechId()?? && paymentMethodType != "GC">
<tr>
<td width="26%" align="right"= valign="top">
<input type="checkbox" name="useShipAddr" value="Y" onclick="javascript:shipBillAddr();" <#if requestParameters.useShipAddr??>checked="checked"</#if> />
</td>
<td colspan="2" valign="center">
<div>${uiLabelMap.FacilityBillingAddressSameShipping}</div>
</td>
</tr>
<tr>
<td colspan="3"><hr /></td>
</tr>
</#if>
<#if (paymentMethodType == "CC" || paymentMethodType == "EFT")>
<tr>
<td width="26%" align="right" valign="top"><div class="tableheadtext">${uiLabelMap.PartyBillingAddress}</div></td>
<td width="5">&nbsp;</td>
<td width="74%">&nbsp;</td>
</tr>
${screens.render("component://ecommerce/widget/OrderScreens.xml#genericaddress")}
</#if>
<#-- credit card fields -->
<#if paymentMethodType == "CC">
<#if !creditCard?has_content>
<#assign creditCard = requestParameters>
</#if>
<tr>
<td colspan="3"><hr /></td>
</tr>
<tr>
<td width="26%" align="right" valign="top"><div class="tableheadtext">${uiLabelMap.AccountingCreditCardInformation}</div></td>
<td width="5">&nbsp;</td>
<td width="74%">&nbsp;</td>
</tr>
${screens.render("component://accounting/widget/CommonScreens.xml#creditCardFields")}
</#if>
<#-- eft fields -->
<#if paymentMethodType =="EFT">
<#if !eftAccount?has_content>
<#assign eftAccount = requestParameters>
</#if>
<tr>
<td colspan="3"><hr /></td>
</tr>
<tr>
<td width="26%" align="right" valign="top"><div class="tableheadtext">${uiLabelMap.AccountingEFTAccountInformation}</div></td>
<td width="5">&nbsp;</td>
<td width="74%">&nbsp;</td>
</tr>
<tr>
<td width="26%" align="right" valign="middle"><div>${uiLabelMap.AccountingNameOnAccount}</div></td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="30" maxlength="60" name="nameOnAccount" value="${eftAccount.nameOnAccount!}" />
*</td>
</tr>
<tr>
<td width="26%" align="right" valign="middle"><div>${uiLabelMap.AccountingCompanyNameOnAccount}</div></td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="30" maxlength="60" name="companyNameOnAccount" value="${eftAccount.companyNameOnAccount!}" />
</td>
</tr>
<tr>
<td width="26%" align="right" valign="middle"><div>${uiLabelMap.AccountingBankName}</div></td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="30" maxlength="60" name="bankName" value="${eftAccount.bankName!}" />
*</td>
</tr>
<tr>
<td width="26%" align="right" valign="middle"><div>${uiLabelMap.AccountingRoutingNumber}</div></td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="10" maxlength="30" name="routingNumber" value="${eftAccount.routingNumber!}" />
*</td>
</tr>
<tr>
<td width="26%" align="right" valign="middle"><div>${uiLabelMap.AccountingAccountType}</div></td>
<td width="5">&nbsp;</td>
<td width="74%">
<select name="accountType" class='selectBox'>
<option>${eftAccount.accountType!}</option>
<option></option>
<option>Checking</option>
<option>Savings</option>
</select>
*</td>
</tr>
<tr>
<td width="26%" align="right" valign="middle"><div>${uiLabelMap.AccountingAccountNumber}</div></td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="20" maxlength="40" name="accountNumber" value="${eftAccount.accountNumber!}" />
*</td>
</tr>
<tr>
<td width="26%" align="right" valign="middle"><div>${uiLabelMap.CommonDescription}</div></td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="30" maxlength="60" name="description" value="${eftAccount.description!}" />
</td>
</tr>
</#if>
<#-- gift card fields -->
<#if requestParameters.useGc?default("") == "GC" || paymentMethodType == "GC">
<#assign giftCard = requestParameters>
<input type="hidden" name="addGiftCard" value="Y" />
<#if paymentMethodType != "GC">
<tr>
<td colspan="3"><hr /></td>
</tr>
</#if>
<tr>
<td width="26%" align="right" valign="top"><div class="tableheadtext">${uiLabelMap.AccountingGiftCardInformation}</div></td>
<td width="5">&nbsp;</td>
<td width="74%">&nbsp;</td>
</tr>
<tr>
<td width="26%" align="right" valign="middle"><div>${uiLabelMap.AccountingGiftCardNumber}</div></td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="20" maxlength="60" name="giftCardNumber" value="${giftCard.cardNumber!}" />
*</td>
</tr>
<tr>
<td width="26%" align="right" valign="middle"><div>${uiLabelMap.AccountingPINNumber}</div></td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="10" maxlength="60" name="giftCardPin" value="${giftCard.pinNumber!}" />
*</td>
</tr>
<tr>
<td width="26%" align="right" valign="middle"><div>${uiLabelMap.CommonDescription}</div></td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="30" maxlength="60" name="description" value="${giftCard.description!}" />
</td>
</tr>
<#if paymentMethodType != "GC">
<tr>
<td width="26%" align="right" valign="middle"><div>${uiLabelMap.AccountingAmountToUse}</div></td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="5" maxlength="10" name="giftCardAmount" value="${giftCard.pinNumber!}" />
*</td>
</tr>
</#if>
</#if>
<#-- gift card fields -->
<#if requestParameters.useGc?default("") == "GC" || paymentMethodType == "GC">
<#assign giftCard = requestParameters>
<input type="hidden" name="addGiftCard" value="Y"/>
<#if paymentMethodType != "GC">
<tr>
<td align="center" colspan="3">
<input type="submit" class="smallsubmit" value="Continue" />
<td colspan="3">
<hr/>
</td>
</tr>
</table>
<#else>
<#-- initial screen show a list of options -->
<form method="post" action="<@ofbizUrl>finalizeOrder</@ofbizUrl>" name="billsetupform">
<input type="hidden" name="finalizeMode" value="payment" />
<input type="hidden" name="createNew" value="Y" />
<table width="100%" border="0" cellpadding="1" cellspacing="0">
<#if productStorePaymentMethodTypeIdMap.GIFT_CARD??>
<tr>
<td width='5%' nowrap="nowrap"><input type="checkbox" name="useGc" value="GC" <#if paymentMethodType?? && paymentMethodType == "GC">checked="checked"</#if> /></td>
<td width='95%' nowrap="nowrap"><div>${uiLabelMap.AccountingCheckGiftCard}</div></td>
</tr>
<tr><td colspan="2"><hr /></td></tr>
</#if>
<#if productStorePaymentMethodTypeIdMap.EXT_OFFLINE??>
<tr>
<td width='5%' nowrap="nowrap"><input type="radio" name="paymentMethodType" value="offline" <#if paymentMethodType?? && paymentMethodType == "offline">checked="checked"</#if> /></td>
<td width='95%'nowrap="nowrap"><div>${uiLabelMap.OrderPaymentOfflineCheckMoney}</div></td>
</tr>
<tr><td colspan="2"><hr /></td></tr>
</#if>
<#if productStorePaymentMethodTypeIdMap.CREDIT_CARD??>
<tr>
<td width='5%' nowrap="nowrap"><input type="radio" name="paymentMethodType" value="CC" <#if paymentMethodType?? && paymentMethodType == "CC">checked="checked"</#if> /></td>
<td width='95%' nowrap="nowrap"><div>${uiLabelMap.AccountingVisaMastercardAmexDiscover}</div></td>
</tr>
<tr><td colspan="2"><hr /></td></tr>
</#if>
<#if productStorePaymentMethodTypeIdMap.EFT_ACCOUNT??>
<tr>
<td width='5%' nowrap="nowrap"><input type="radio" name="paymentMethodType" value="EFT" <#if paymentMethodType?? && paymentMethodType == "EFT">checked="checked"</#if> /></td>
<td width='95%' nowrap="nowrap"><div>${uiLabelMap.AccountingAHCElectronicCheck}</div></td>
</tr>
</#if>
<tr>
<td align="center" colspan="2">
<input type="submit" class="smallsubmit" value="${uiLabelMap.CommonContinue}" />
</td>
</tr>
</table>
</form>
</#if>
<tr>
<td width="26%" align="right" valign="top">
<div class="tableheadtext">${uiLabelMap.AccountingGiftCardInformation}</div>
</td>
<td width="5">&nbsp;</td>
<td width="74%">&nbsp;</td>
</tr>
<tr>
<td width="26%" align="right" valign="middle">
<div>${uiLabelMap.AccountingGiftCardNumber}</div>
</td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="20" maxlength="60" name="giftCardNumber"
value="${giftCard.cardNumber!}"/>*
</td>
</tr>
<tr>
<td width="26%" align="right" valign="middle">
<div>${uiLabelMap.AccountingPINNumber}</div>
</td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="10" maxlength="60" name="giftCardPin"
value="${giftCard.pinNumber!}"/>*
</td>
</tr>
<tr>
<td width="26%" align="right" valign="middle">
<div>${uiLabelMap.CommonDescription}</div>
</td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="30" maxlength="60" name="description"
value="${giftCard.description!}"/>
</td>
</tr>
<#if paymentMethodType != "GC">
<tr>
<td width="26%" align="right" valign="middle">
<div>${uiLabelMap.AccountingAmountToUse}</div>
</td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="5" maxlength="10" name="giftCardAmount"
value="${giftCard.pinNumber!}"/>*
</td>
</tr>
</#if>
</#if>
</div>
<tr>
<td align="center" colspan="3">
<input type="submit" class="smallsubmit" value="Continue"/>
</td>
</tr>
</table>
<#else>
<#-- initial screen show a list of options -->
<form method="post" action="<@ofbizUrl>finalizeOrder</@ofbizUrl>" name="billsetupform">
<input type="hidden" name="finalizeMode" value="payment"/>
<input type="hidden" name="createNew" value="Y"/>
<table width="100%" border="0" cellpadding="1" cellspacing="0">
<#if productStorePaymentMethodTypeIdMap.GIFT_CARD??>
<tr>
<td width='5%' nowrap="nowrap">
<input type="checkbox" name="useGc" value="GC"
<#if paymentMethodType?? && paymentMethodType == "GC">checked="checked"</#if>/>
</td>
<td width='95%' nowrap="nowrap">
<div>${uiLabelMap.AccountingCheckGiftCard}</div>
</td>
</tr>
<tr>
<td colspan="2">
<hr/>
</td>
</tr>
</#if>
<#if productStorePaymentMethodTypeIdMap.EXT_OFFLINE??>
<tr>
<td width='5%' nowrap="nowrap">
<input type="radio" name="paymentMethodType" value="offline"
<#if paymentMethodType?? && paymentMethodType == "offline">checked="checked"</#if>/>
</td>
<td width='95%' nowrap="nowrap">
<div>${uiLabelMap.OrderPaymentOfflineCheckMoney}</div>
</td>
</tr>
<tr>
<td colspan="2">
<hr/>
</td>
</tr>
</#if>
<#if productStorePaymentMethodTypeIdMap.CREDIT_CARD??>
<tr>
<td width='5%' nowrap="nowrap">
<input type="radio" name="paymentMethodType" value="CC"
<#if paymentMethodType?? && paymentMethodType == "CC">checked="checked"</#if>/>
</td>
<td width='95%' nowrap="nowrap">
<div>${uiLabelMap.AccountingVisaMastercardAmexDiscover}</div>
</td>
</tr>
<tr>
<td colspan="2">
<hr/>
</td>
</tr>
</#if>
<#if productStorePaymentMethodTypeIdMap.EFT_ACCOUNT??>
<tr>
<td width='5%' nowrap="nowrap">
<input type="radio" name="paymentMethodType" value="EFT"
<#if paymentMethodType?? && paymentMethodType == "EFT">checked="checked"</#if>/>
</td>
<td width='95%' nowrap="nowrap">
<div>${uiLabelMap.AccountingAHCElectronicCheck}</div>
</td>
</tr>
</#if>
<tr>
<td align="center" colspan="2">
<input type="submit" class="smallsubmit" value="${uiLabelMap.CommonContinue}"/>
</td>
</tr>
</table>
</form>
</#if>
</div>
</div>
+5 -1
View File
@@ -20,7 +20,11 @@ under the License.
<#if !creditCard?has_content>
<#assign creditCard = requestParameters>
</#if>
<tr><td colspan="3"><hr /></td></tr>
<tr>
<td colspan="3">
<hr/>
</td>
</tr>
${screens.render("component://accounting/widget/CommonScreens.xml#creditCardFields")}
+25 -20
View File
@@ -18,45 +18,50 @@ under the License.
-->
<script language="JavaScript" type="text/javascript">
<!--
var clicked = 0;
function processOrder() {
if (clicked == 0) {
clicked++;
//window.location.replace("<@ofbizUrl>processorder</@ofbizUrl>");
document.${parameters.formNameValue}.processButton.value="${uiLabelMap.OrderSubmittingOrder}";
document.${parameters.formNameValue}.processButton.disabled=true;
document.${parameters.formNameValue}.submit();
} else {
showErrorAlert("${uiLabelMap.CommonErrorMessage2}","${uiLabelMap.YoureOrderIsBeingProcessed}");
}
<!--
var clicked = 0;
function processOrder() {
if (clicked == 0) {
clicked++;
//window.location.replace("<@ofbizUrl>processorder</@ofbizUrl>
");
document.${parameters.formNameValue}.processButton.value = "${uiLabelMap.OrderSubmittingOrder}";
document.${parameters.formNameValue}.processButton.disabled = true;
document.${parameters.formNameValue}.submit();
} else {
showErrorAlert("${uiLabelMap.CommonErrorMessage2}", "${uiLabelMap.YoureOrderIsBeingProcessed}");
}
// -->
}
// -->
</script>
<h1>${uiLabelMap.OrderFinalCheckoutReview}</h1>
<#if !isDemoStore?? && isDemoStore><p>${uiLabelMap.OrderDemoFrontNote}.</p></#if>
<#if !isDemoStore?? && isDemoStore>
<p>${uiLabelMap.OrderDemoFrontNote}.</p>
</#if>
<#if cart?? && 0 < cart.size()>
${screens.render("component://ecommerce/widget/OrderScreens.xml#orderheader")}
<br />
<br/>
${screens.render("component://ecommerce/widget/OrderScreens.xml#orderitems")}
<table border="0" cellpadding="1" width="100%">
<tr>
<tr>
<td colspan="4">
&nbsp;
</td>
<td align="right">
<form type="post" action="<@ofbizUrl>processorder</@ofbizUrl>" name="${parameters.formNameValue}">
<#if (requestParameters.checkoutpage)?has_content>
<input type="hidden" name="checkoutpage" value="${requestParameters.checkoutpage}" />
<input type="hidden" name="checkoutpage" value="${requestParameters.checkoutpage}"/>
</#if>
<#if (requestAttributes.issuerId)?has_content>
<input type="hidden" name="issuerId" value="${requestAttributes.issuerId}" />
<input type="hidden" name="issuerId" value="${requestAttributes.issuerId}"/>
</#if>
<input type="button" name="processButton" value="${uiLabelMap.OrderSubmitOrder}" onclick="processOrder();" class="mediumSubmit" />
<input type="button" name="processButton" value="${uiLabelMap.OrderSubmitOrder}" onclick="processOrder();"
class="mediumSubmit"/>
</form>
<#-- doesn't work with Safari, seems to work with IE, Mozilla <a href="#" onclick="processOrder();" class="buttontextbig">[${uiLabelMap.OrderSubmitOrder}]&nbsp;</a> -->
<#-- doesn't work with Safari, seems to work with IE, Mozilla
<a href="#" onclick="processOrder();" class="buttontextbig">[${uiLabelMap.OrderSubmitOrder}]&nbsp;</a> -->
</td>
</tr>
</table>

Some files were not shown because too many files have changed in this diff Show More