You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ha...@apache.org on 2010/02/03 04:16:40 UTC
svn commit: r905876 [7/7] - in /ofbiz/trunk:
applications/commonext/documents/ specialpurpose/ specialpurpose/ebay/
specialpurpose/ebay/config/ specialpurpose/ebay/data/
specialpurpose/ebay/data/helpdata/ specialpurpose/ebay/entitydef/
specialpurpose/e...
Added: ofbiz/trunk/specialpurpose/ebaystore/webapp/ebaystore/store/StoreSetting.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebaystore/webapp/ebaystore/store/StoreSetting.ftl?rev=905876&view=auto
==============================================================================
--- ofbiz/trunk/specialpurpose/ebaystore/webapp/ebaystore/store/StoreSetting.ftl (added)
+++ ofbiz/trunk/specialpurpose/ebaystore/webapp/ebaystore/store/StoreSetting.ftl Wed Feb 3 03:16:07 2010
@@ -0,0 +1,490 @@
+<#--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+<script language="Javascript" type="text/javascript">
+ function countAreaChars(areaName,limit,charleft)
+ {
+ if (areaName.value.length>limit){
+ areaName.value=areaName.value.substring(0,limit);
+ }else{
+ charleft.innerHTML = (limit - areaName.value.length) + " charactors left.";
+ }
+ }
+ function retrieveThemeColorSchemeByThemeId(url,themeId,productStoreId){
+ var pars = 'themeId='+themeId+'&productStoreId='+productStoreId;
+ var myAjax = new Ajax.Request( url, {
+ method: 'get',
+ parameters: pars,
+ onLoading: function loading(){
+ $('loading').innerHTML = ' Please wait...';
+ },
+ onComplete: function retrieveThemeColorSchemeByThemeId(originalRequest){
+ if(originalRequest.responseJSON!=null){
+ var resp = eval("("+originalRequest.responseText+")");
+ if(resp.storeColorPrimary!=null)$('storePrimaryColor').value = resp.storeColorPrimary;
+ if(resp.storeColorAccent!=null)$('storeSecondaryColor').value = resp.storeColorAccent;
+ if(resp.storeColorSecondary!=null)$('storeAccentColor').value = resp.storeColorSecondary;
+
+ if(resp.storeFontTypeFontFaceValue!=null) selectOption($('storeNameFont'),resp.storeFontTypeFontFaceValue);
+ if(resp.storeFontTypeNameFaceColor!=null)$('storeNameFontColor').value = resp.storeFontTypeNameFaceColor;
+ if(resp.storeFontTypeSizeFaceValue!=null) selectOption($('storeNameFontSize'), resp.storeFontTypeSizeFaceValue);
+
+ if(resp.storeFontTypeTitleColor!=null)$('storeTitleFontColor').value = resp.storeFontTypeTitleColor;
+ if(resp.storeFontTypeFontTitleValue!=null)selectOption($('storeTitleFont'),resp.storeFontTypeFontTitleValue);
+ if(resp.storeFontSizeTitleValue!=null)selectOption($('storeTitleFontSize'),resp.storeFontSizeTitleValue);
+
+ if(resp.storeFontTypeDescColor!=null)$('storeDescFontColor').value = resp.storeFontTypeDescColor;
+ if(resp.storeFontTypeFontDescValue!=null) selectOption($('storeDescFont'),resp.storeFontTypeFontDescValue);
+ if(resp.storeDescSizeValue!=null) selectOption($('storeDescFontSize'),resp.storeDescSizeValue);
+ }
+ $('loading').innerHTML = '';
+ }
+ } );
+ }
+ function selectOption(myselect,val){
+ for (var i=0; i<myselect.options.length; i++){
+ if ( myselect.options[i].value == val){
+ myselect.options[i].selected=true;
+ break;
+ }
+
+ }
+ }
+ function switchTheme(url,themeId,productStoreId){
+ var size = document.StoreSettingForm.storeThemeType.length;
+ var selectTheme = '';
+ for(i=0;i<size;i++){
+ if(document.StoreSettingForm.storeThemeType[i].checked){
+ selectTheme = document.StoreSettingForm.storeThemeType[i].value;
+ break;
+ }
+ }
+ if(selectTheme=='Basic'){
+ //retrieve basic theme by ajax then print new select list
+ document.StoreSettingForm.storeAdvancedTheme.disabled = true;
+ document.StoreSettingForm.storeAdvancedThemeColor.disabled = true;
+
+ document.StoreSettingForm.storeBasicTheme.disabled = false;
+ document.StoreSettingForm.storePrimaryColor.disabled = false;
+ document.StoreSettingForm.storeSecondaryColor.disabled = false;
+ document.StoreSettingForm.storeAccentColor.disabled = false;
+
+ document.StoreSettingForm.storeNameFont.disabled = false;
+ document.StoreSettingForm.storeNameFontSize.disabled = false;
+ document.StoreSettingForm.storeNameFontColor.disabled = false;
+
+ document.StoreSettingForm.storeTitleFont.disabled = false;
+ document.StoreSettingForm.storeTitleFontSize.disabled = false;
+ document.StoreSettingForm.storeTitleFontColor.disabled = false;
+
+ document.StoreSettingForm.storeDescFont.disabled = false;
+ document.StoreSettingForm.storeDescFontSize.disabled = false;
+ document.StoreSettingForm.storeDescFontColor.disabled = false;
+ document.StoreSettingForm.themeType.value = "Basic";
+ }else if(selectTheme=='Advanced'){
+ document.StoreSettingForm.themeType.value = "Advanced";
+ document.StoreSettingForm.storeBasicTheme.disabled = true;
+ document.StoreSettingForm.storePrimaryColor.disabled = true;
+ document.StoreSettingForm.storeSecondaryColor.disabled = true;
+ document.StoreSettingForm.storeAccentColor.disabled = true;
+
+ document.StoreSettingForm.storeNameFont.disabled = true;
+ document.StoreSettingForm.storeNameFontSize.disabled = true;
+ document.StoreSettingForm.storeNameFontColor.disabled = true;
+
+ document.StoreSettingForm.storeTitleFont.disabled = true;
+ document.StoreSettingForm.storeTitleFontSize.disabled = true;
+ document.StoreSettingForm.storeTitleFontColor.disabled = true;
+
+ document.StoreSettingForm.storeDescFont.disabled = true;
+ document.StoreSettingForm.storeDescFontSize.disabled = true;
+ document.StoreSettingForm.storeDescFontColor.disabled = true;
+
+ document.StoreSettingForm.storeAdvancedTheme.disabled = false;
+ document.StoreSettingForm.storeAdvancedThemeColor.disabled = false;
+ }
+ }
+</script>
+
+ <#if parameters.ebayStore?has_content>
+ <#assign ebayStore = parameters.ebayStore?if_exists>
+ <#--${ebayStore}-->
+ <form name="StoreSettingForm" id="StoreSettingForm" method="post" action="<@o...@ofbizUrl>" style="margin: 0;">
+ <input type="hidden" name="themeType" value="${themeType?if_exists}"/>
+ <input type="hidden" name="storeUrl" value="${ebayStore.storeUrl?if_exists}"/>
+ <input type="hidden" name="storeLogoId" value="${ebayStore.storeLogoId?if_exists}"/>
+ <input type="hidden" name="storeLogoName" value="${ebayStore.storeLogoName?if_exists}"/>
+ <input type="hidden" name="productStoreId" value="${parameters.productStoreId?if_exists}"/>
+ <fieldset>
+ <table cellspacing="0" class="basic-table">
+ <tr>
+ <td class="label" align="right" valign="middle">${uiLabelMap.EbayStoreStoreName} :</td>
+ <td valign="middle">
+ <input type="text" name="storeName" value="${ebayStore.storeName?if_exists}" onKeyDown="countAreaChars(document.StoreSettingForm.storeName,35,document.getElementById('charsleft1'));"
+ onKeyUp="countAreaChars(document.StoreSettingForm.storeName,35,document.getElementById('charsleft1'));">
+ <div id="charsleft1"></div>
+ </td>
+ </tr>
+ <tr>
+ <td class="label" align="right" valign="middle">${uiLabelMap.EbayStoreStoreDesc} :</td>
+ <td valign="middle">
+ <textarea rows="4" cols="80" name="storeDesc"
+ onKeyDown="countAreaChars(document.StoreSettingForm.storeDesc,300,document.getElementById('charsleft2'));"
+ onKeyUp="countAreaChars(document.StoreSettingForm.storeDesc,300,document.getElementById('charsleft2'));">${ebayStore.storeDesc?if_exists}</textarea>
+ <div id="charsleft2"></div>
+ </td>
+ </tr>
+
+ <tr>
+ <td class="label" align="right" valign="middle">${uiLabelMap.EbayStoreStoreURL} :</td>
+ <td valign="middle">
+ <a href="${ebayStore.storeUrl?if_exists}" target="_blank">${ebayStore.storeUrl?if_exists}</a>
+ </td>
+ </tr>
+ <tr>
+ <td class="label" align="right" valign="middle">${uiLabelMap.EbayStoreStoreLogoURL} :</td>
+ <td valign="middle">
+ <input type="text" name="storeLogoURL" size="50" value="${ebayStore.storeLogoURL?if_exists}"/>
+ </td>
+ </tr>
+ <tr>
+ <td class="label" align="right" valign="middle"></td>
+ <td valign="middle">
+ <div onClick="javascript:switchTheme();">
+ <input type="radio" name="storeThemeType" <#if themeType?if_exists == "Basic">checked</#if> value="Basic" default> Basic Theme
+ <input type="radio" name="storeThemeType" <#if themeType?if_exists == "Advanced">checked</#if> value="Advanced"> Advanced Theme
+ </div>
+ </td>
+ </tr>
+
+ <#-- advance Theme -->
+ <tr>
+ <td class="label" align="right" valign="middle">${uiLabelMap.EbayStoreStoreAdvancedTheme} :</td>
+ <td valign="middle">
+ <select id="storeAdvancedTheme" name="storeAdvancedTheme" >
+ <#if storeAdvanceThemeOptList?has_content>
+ <#list storeAdvanceThemeOptList as storeAdvanceThemeOpt>
+ <option value="${storeAdvanceThemeOpt.storeThemeId?if_exists}"
+ <#if ebayStore.storeThemeId.equals(storeAdvanceThemeOpt.storeThemeId?if_exists)>selected</#if>>
+ ${storeAdvanceThemeOpt.storeThemeName?if_exists}</option>
+ </#list>
+ </#if>
+ </select>
+ </td>
+ </tr>
+ <#if storeAdvancedThemeColorOptList?has_content>
+ <tr>
+ <td class="label" align="right" valign="middle">${uiLabelMap.EbayStoreStoreAdvancedThemeColor} :</td>
+ <td valign="middle">
+ <select name="storeAdvancedThemeColor">
+ <#list storeAdvancedThemeColorOptList as storeAdvancedThemeColorOpt>
+ <option value="${storeAdvancedThemeColorOpt.storeColorSchemeId?if_exists}"
+ <#if ebayStore.storeColorSchemeId.equals(storeAdvancedThemeColorOpt.storeColorSchemeId?if_exists)>selected</#if>>
+ ${storeAdvancedThemeColorOpt.storeColorName?if_exists}</option>
+ </#list>
+ </select>
+ </td>
+ </tr>
+ </#if>
+
+ <#-- Basic Theme -->
+ <tr>
+ <td class="label" align="right" valign="middle">${uiLabelMap.EbayStoreStoreBasicTheme} :</td>
+ <td valign="middle">
+ <#assign currentStoreThemeIdAndSchemeId = ebayStore.storeThemeId?string+"-"+ebayStore.storeColorSchemeId?string>
+ <select id="storeBasicTheme" name="storeBasicTheme" onChange="javascript:retrieveThemeColorSchemeByThemeId('<@o...@ofbizUrl>',this.value,'${parameters.productStoreId?if_exists}');">
+ <#if storeThemeOptList?has_content>
+ <#list storeThemeOptList as storeThemeOpt>
+ <#assign storeThemeIdAndSchemeId = storeThemeOpt.storeThemeId+"-"+storeThemeOpt.storeColorSchemeId>
+ <option value="${storeThemeIdAndSchemeId?if_exists}"
+ <#if currentStoreThemeIdAndSchemeId == storeThemeIdAndSchemeId?if_exists>selected</#if>>
+ ${storeThemeOpt.storeColorSchemeName?if_exists}
+ </option>
+ </#list>
+ </#if>
+ </select>
+ <div id="loading"></div>
+ </td>
+ </tr>
+
+ <tr>
+ <td align="right" valign="middle"></td>
+ <td valign="middle"><b>${uiLabelMap.EbayStoreStoreColorTheme}</b>
+ </td>
+ </tr>
+ <tr>
+ <td class="label" align="right" valign="middle">${uiLabelMap.EbayStoreStorePrimaryColor} :</td>
+ <td valign="middle">
+ #<input type="text" id="storePrimaryColor" name="storePrimaryColor" size="10" value="${ebayStore.storeColorPrimary?if_exists}"/>
+ </td>
+ </tr>
+ <tr>
+ <td class="label" align="right" valign="middle">${uiLabelMap.EbayStoreStoreSecondColor} :</td>
+ <td valign="middle">
+ #<input type="text" id="storeSecondaryColor" name="storeSecondaryColor" size="10" value="${ebayStore.storeColorSecondary?if_exists}"/>
+ </td>
+ </tr>
+ <tr>
+ <td class="label" align="right" valign="middle">${uiLabelMap.EbayStoreStoreAccentColor} :</td>
+ <td valign="middle">
+ #<input type="text" id="storeAccentColor" name="storeAccentColor" size="10" value="${ebayStore.storeColorAccent?if_exists}"/>
+ </td>
+ </tr>
+ <tr>
+ <td align="right" valign="middle"></td>
+ <td valign="middle"><b>${uiLabelMap.EbayStoreStoreChangeFont}</b>
+ </td>
+ </tr>
+ <tr>
+ <td align="right" valign="middle"></td>
+ <td valign="middle">
+ <table width="450" >
+ <tr>
+ <td><b>Font</b></td>
+ <td><b>Font size</b></td>
+ <td><b>Font color</b></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td class="label" align="right" valign="middle">${uiLabelMap.EbayStoreStoreName} :</td>
+ <td valign="middle">
+ <#if storeFontTheme?exists>
+ <#if ebayStore.storeNameColor?exists>
+ <#assign storeFontColor = ebayStore.storeNameColor?if_exists>
+ <#else>
+ <#assign storeFontColor = storeFontTheme.storeFontTypeNameFaceColor?if_exists>
+ </#if>
+ <table width="450">
+ <tr>
+ <td>
+ <select id="storeNameFont" name="storeNameFont">
+ <#list storeFontTheme.storeFontTypeFontFaceList as storeFontTypeFontFace>
+ <option <#if storeFontTypeFontFace.storeFontValue?if_exists.equals(ebayStore.storeNameFontFace?if_exists) >selected</#if> value="${storeFontTypeFontFace.storeFontName?if_exists}">${storeFontTypeFontFace.storeFontName?if_exists}</option>
+ </#list>
+ </select>
+ </td>
+ <td>
+ <select id="storeNameFontSize" name="storeNameFontSize">
+ <#list storeFontTheme.storeFontTypeSizeFaceList as storeFontTypeSizeFace>
+ <option <#if storeFontTypeSizeFace.storeFontSizeValue?if_exists.equals(ebayStore.storeNameFontFaceSize?if_exists) >selected</#if> value="${storeFontTypeSizeFace.storeFontSizeName?if_exists}">${storeFontTypeSizeFace.storeFontSizeName?if_exists}</option>
+ </#list>
+ </select>
+ </td>
+ <td>
+ #<input id="storeNameFontColor" type="text" size="10" name="storeNameFontColor" value="${storeFontColor?if_exists}"/>
+ </td>
+ </tr>
+ </table>
+ </#if>
+ </td>
+ </tr>
+ <tr>
+ <td class="label" align="right" valign="middle">${uiLabelMap.EbayStoreStoreSectionTitle} :</td>
+ <td valign="middle">
+ <#if storeFontTheme?exists>
+ <#if ebayStore.storeTitleColor?exists>
+ <#assign storeTitleColor = ebayStore.storeTitleColor?if_exists>
+ <#else>
+ <#assign storeTitleColor = storeFontTheme.storeFontTypeTitleColor?if_exists>
+ </#if>
+ <table width="450">
+ <tr>
+ <td>
+ <select id="storeTitleFont" name="storeTitleFont">
+ <#list storeFontTheme.storeFontTypeFontTitleList as storeFontTypeFontTitle>
+ <option <#if storeFontTypeFontTitle.storeFontValue?if_exists.equals(ebayStore.storeTitleFontFace?if_exists) >selected</#if> value="${storeFontTypeFontTitle.storeFontName?if_exists}">${storeFontTypeFontTitle.storeFontName?if_exists}</option>
+ </#list>
+ </select>
+ </td>
+ <td>
+ <select id="storeTitleFontSize" name="storeTitleFontSize">
+ <#list storeFontTheme.storeFontSizeTitleList as storeFontSizeTitle>
+ <option <#if storeFontSizeTitle.storeFontSizeValue?if_exists.equals(ebayStore.storeTitleFontFaceSize?if_exists) >selected</#if> value="${storeFontSizeTitle.storeFontSizeName?if_exists}">${storeFontSizeTitle.storeFontSizeName?if_exists}</option>
+ </#list>
+ </select>
+ </td>
+ <td>
+ #<input id="storeTitleFontColor" type="text" size="10" name="storeTitleFontColor" value="${storeTitleColor?if_exists}"/>
+ </td>
+ </tr>
+ </table>
+ </#if>
+ </td>
+ </tr>
+ <tr>
+ <td class="label" align="right" valign="middle">${uiLabelMap.EbayStoreStoreDesc} :</td>
+ <td valign="middle">
+ <#if storeFontTheme?exists>
+ <#if ebayStore.storeDescColor?exists>
+ <#assign storeDescColor = ebayStore.storeDescColor?if_exists>
+ <#else>
+ <#assign storeDescColor = storeFontTheme.storeFontTypeDescColor?if_exists>
+ </#if>
+ <table width="450">
+ <tr>
+ <td>
+ <select id="storeDescFont" name="storeDescFont">
+ <#list storeFontTheme.storeFontTypeFontDescList as storeFontTypeFontDesc>
+ <option <#if storeFontTypeFontDesc.storeFontValue?if_exists.equals(ebayStore.storeDescFontFace?if_exists) >selected</#if> value="${storeFontTypeFontDesc.storeFontName?if_exists}">${storeFontTypeFontDesc.storeFontName?if_exists}</option>
+ </#list>
+ </select>
+ </td>
+ <td>
+ <select id="storeDescFontSize" name="storeDescFontSize">
+ <#list storeFontTheme.storeDescSizeList as storeDescSize>
+ <option <#if storeDescSize.storeFontSizeValue?if_exists.equals(ebayStore.storeDescSizeCode?if_exists) >selected</#if> value="${storeDescSize.storeFontSizeName?if_exists}">${storeDescSize.storeFontSizeName?if_exists}</option>
+ </#list>
+ </select>
+ </td>
+ <td>
+ #<input id="storeDescFontColor" type="text" size="10" name="storeDescFontColor" value="${storeDescColor?if_exists}"/>
+ </td>
+ </tr>
+ </table>
+ </#if>
+ </td>
+ </tr>
+
+
+ <tr>
+ <td class="label" align="right" valign="middle">${uiLabelMap.EbayStoreStoreHeaderDisplay} :</td>
+ <td valign="middle">
+ <select id="storeCustomHeaderLayout" name="storeCustomHeaderLayout">
+ <#list ebayStore.storeCustomHeaderLayoutList as storeCustomHeaderLayout>
+ <option <#if storeCustomHeaderLayout.storeCustomHeaderLayoutValue?if_exists.equals(ebayStore.storeCustomHeaderLayout?if_exists) >selected</#if> value="${storeCustomHeaderLayout.storeCustomHeaderLayoutName?if_exists}">${storeCustomHeaderLayout.storeCustomHeaderLayoutValue?if_exists}</option>
+ </#list>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td class="label" align="right" valign="middle"></td>
+ <td valign="middle">
+ <textarea rows="8" cols="40" name="storeCustomHeader">
+ ${ebayStore.storeCustomHeader?if_exists}</textarea>
+ </td>
+ </tr>
+ <tr>
+ <td class="label" align="right" valign="middle">${uiLabelMap.EbayStoreStoreHeaderStyle} :</td>
+ <td valign="middle">
+ <select id="storeHeaderStyle" name="storeHeaderStyle">
+ <#list ebayStore.storeHeaderStyleList as storeHeaderStyle>
+ <option <#if storeHeaderStyle.storeHeaderStyleValue?if_exists.equals(ebayStore.storeHeaderStyle?if_exists) >selected</#if> value="${storeHeaderStyle.storeHeaderStyleName?if_exists}">${storeHeaderStyle.storeHeaderStyleValue?if_exists}</option>
+ </#list>
+ </select>
+ </td>
+ </tr>
+ <#--tr>
+ <td class="label" align="right" valign="middle">Home Page :</td>
+ <td valign="middle">
+ <input type="text" id="homePage" name="homePage" value="${ebayStore.storeHomePage?if_exists}"/>
+ </td>
+ </tr-->
+
+ <tr>
+ <td class="label" align="right" valign="middle">${uiLabelMap.EbayStoreStoreItemListDesplay} :</td>
+ <td valign="middle">
+ <select id="storeItemLayout" name="storeItemLayout">
+ <#list ebayStore.storeItemLayoutList as storeItemLayout>
+ <option <#if storeItemLayout.storeItemLayoutValue?if_exists.equals(ebayStore.storeItemLayoutSelected?if_exists) >selected</#if> value="${storeItemLayout.storeItemLayoutName?if_exists}">${storeItemLayout.storeItemLayoutValue?if_exists}</option>
+ </#list>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td class="label" align="right" valign="middle">${uiLabelMap.EbayStoreStoreItemSortOrder} :</td>
+ <td valign="middle">
+ <select id="storeItemSortOrder" name="storeItemSortOrder">
+ <#list ebayStore.storeItemSortOrderList as storeItemSortOrder>
+ <option <#if storeItemSortOrder.storeItemSortLayoutValue?if_exists.equals(ebayStore.storeItemSortOrderSelected?if_exists) >selected</#if> value="${storeItemSortOrder.storeItemSortLayoutName?if_exists}">${storeItemSortOrder.storeItemSortLayoutValue?if_exists}</option>
+ </#list>
+ </select>
+ </td>
+ </tr>
+
+ <#--tr>
+ <td class="label" align="right" valign="middle">Custom Listing Header Display :</td>
+ <td valign="middle">
+ <select id="storeCustomListingHeaderDisplay" name="storeCustomListingHeaderDisplay">
+ <#list ebayStore.storeCustomListingHeaderDisplayList as storeCustomListingHeaderDisplay>
+ <option <#if storeCustomListingHeaderDisplay.storeCustomHeaderLayoutValue?if_exists.equals(ebayStore.storeCustomListingHeaderDisplayValue?if_exists) >selected</#if> value="${storeCustomListingHeaderDisplay.storeCustomHeaderLayoutValue?if_exists}">${storeCustomListingHeaderDisplay.storeCustomHeaderLayoutValue?if_exists}</option>
+ </#list>
+ </select>
+ </td>
+ </tr-->
+ <tr>
+ <td class="label" align="right" valign="middle">${uiLabelMap.EbayStoreStoreMerchDisplay} :</td>
+ <td valign="middle">
+ <select id="storeMerchDisplay" name="storeMerchDisplay">
+ <#list ebayStore.storeMerchDisplayList as storeMerchDisplay>
+ <option <#if storeMerchDisplay.merchDisplayCodeValue?if_exists.equals(ebayStore.storeMerchDisplay?if_exists) >selected</#if> value="${storeMerchDisplay.merchDisplayCodeName?if_exists}">${storeMerchDisplay.merchDisplayCodeValue?if_exists}</option>
+ </#list>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td class="label" align="right" valign="middle">${uiLabelMap.EbayStoreStoreSubscriptionLevel} :</td>
+ <td valign="middle">
+ <select id="storeMerchDisplay" name="storeSubscriptionDisplay">
+ <#list ebayStore.storeSubscriptionLevelList as storeSubscriptionLevel>
+ <option <#if storeSubscriptionLevel.storeSubscriptionLevelCodeValue?if_exists.equals(ebayStore.storeSubscriptionLevel?if_exists) >selected</#if> value="${storeSubscriptionLevel.storeSubscriptionLevelCodeName?if_exists}">${storeSubscriptionLevel.storeSubscriptionLevelCodeValue?if_exists}</option>
+ </#list>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td class="label" align="right" valign="middle"></td>
+ <td valign="middle">
+ <input type="submit" value="${uiLabelMap.CommonSubmit}" name="submitButton" class="smallSubmit">
+ </td>
+ </tr>
+ </table>
+ <script language="Javascript" type="text/javascript">
+ document.getElementById('charsleft1').innerHTML = (35 - document.StoreSettingForm.storeName.value.length) + " charactors left.";
+ document.getElementById('charsleft2').innerHTML = (300 - document.StoreSettingForm.storeDesc.value.length) + " charactors left.";
+ </script>
+ </fieldset>
+ </form>
+ </#if>
+
+
+ <script language="Javascript" type="text/javascript">
+
+ <#if themeType?if_exists == "Basic">
+ document.StoreSettingForm.storeAdvancedTheme.disabled = true;
+ document.StoreSettingForm.storeAdvancedThemeColor.disabled = true;
+ <#elseif themeType?if_exists == "Advanced">
+ document.StoreSettingForm.storeBasicTheme.disabled = true;
+ document.StoreSettingForm.storePrimaryColor.disabled = true;
+ document.StoreSettingForm.storeSecondaryColor.disabled = true;
+ document.StoreSettingForm.storeAccentColor.disabled = true;
+
+ document.StoreSettingForm.storeNameFont.disabled = true;
+ document.StoreSettingForm.storeNameFontSize.disabled = true;
+ document.StoreSettingForm.storeNameFontColor.disabled = true;
+
+ document.StoreSettingForm.storeTitleFont.disabled = true;
+ document.StoreSettingForm.storeTitleFontSize.disabled = true;
+ document.StoreSettingForm.storeTitleFontColor.disabled = true;
+
+ document.StoreSettingForm.storeDescFont.disabled = true;
+ document.StoreSettingForm.storeDescFontSize.disabled = true;
+ document.StoreSettingForm.storeDescFontColor.disabled = true;
+ </#if>
+</script>
Modified: ofbiz/trunk/specialpurpose/ebaystore/widget/CommonScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebaystore/widget/CommonScreens.xml?rev=905876&r1=905875&r2=905876&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ebaystore/widget/CommonScreens.xml (original)
+++ ofbiz/trunk/specialpurpose/ebaystore/widget/CommonScreens.xml Wed Feb 3 03:16:07 2010
@@ -25,6 +25,8 @@
<section>
<actions>
<property-map resource="EbayStoreUiLabels" map-name="uiLabelMap" global="true"/>
+ <property-map resource="EbayUiLabels" map-name="uiLabelMap" global="true"/>
+ <property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<set field="activeApp" value="ebaystore" global="true"/>
<set field="layoutSettings.companyName" from-field="uiLabelMap.EbayStoreCompanyName" global="true"/>
@@ -39,18 +41,83 @@
</section>
</screen>
- <screen name="main">
+ <screen name="permission-decorator">
<section>
<actions>
- <set field="tabButtonItem" value="main"></set>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
+ <section>
+ <condition>
+ <if-has-permission permission="EBAYSTORE" action="_VIEW"/>
+ </condition>
+ <widgets>
+ <container>
+ <section>
+ <condition>
+ <not><if-empty field="parameters.productStoreId"/></not>
+ </condition>
+ <actions>
+ <service service-name="getEbayStoreUser" result-map="result">
+ <field-map field-name="productStoreId" from-field="parameters.productStoreId"/>
+ </service>
+ <set field="userLoginId" from-field="result.userLoginId"/>
+ <entity-one value-field="ebayUser" entity-name="UserLogin">
+ <field-map field-name="userLoginId" from-field="result.userLoginId"/>
+ </entity-one>
+ <set field="parameters.partyId" from-field="ebayUser.partyId" global="true"/>
+ </actions>
+ <widgets>
+ <label text="${uiLabelMap.EbayAccount} : ${userLoginId}" style="h1"></label>
+ <include-menu name="EbayStoreFunctionTabBar" location="component://ebaystore/widget/EbayStoreMenus.xml"/>
+ </widgets>
+ </section>
+ </container>
+ <decorator-section-include name="body"/>
+ </widgets>
+ <fail-widgets>
+ <label style="h3">${uiLabelMap.EbayViewPermissionError}</label>
+ </fail-widgets>
+ </section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
-
+
+ <screen name="CommonEbayConfigDecorator">
+ <section>
+ <actions>
+ <set field="headerItem" value="eBayConfigurations"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <section>
+ <!-- do check for Ebay, _VIEW permission -->
+ <condition>
+ <if-has-permission permission="EBAY" action="_VIEW"/>
+ </condition>
+ <widgets>
+ <include-menu name="EbayConfigTabBar" location="component://ebay/widget/EbayMenus.xml"/>
+ <section>
+ <condition><not><if-empty field="ebayConfig"/></not>
+ </condition>
+ <widgets>
+ <include-menu name="EbayConfigSubTabBar" location="component://ebay/widget/EbayMenus.xml"/>
+ </widgets>
+ </section>
+ <decorator-section-include name="body"/>
+ </widgets>
+ <fail-widgets>
+ <label style="h3" text="${uiLabelMap.EbayViewPermissionError}"/>
+ </fail-widgets>
+ </section>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+
</screens>
\ No newline at end of file
Added: ofbiz/trunk/specialpurpose/ebaystore/widget/EbayAccountForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebaystore/widget/EbayAccountForms.xml?rev=905876&view=auto
==============================================================================
--- ofbiz/trunk/specialpurpose/ebaystore/widget/EbayAccountForms.xml (added)
+++ ofbiz/trunk/specialpurpose/ebaystore/widget/EbayAccountForms.xml Wed Feb 3 03:16:07 2010
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
+ <form name="EbayPersonalInformationForm" type="single" default-map-name="results.registrationAddress" default-table-style="basic-table">
+ <field name="firstName"><display/></field>
+ <field name="lastName"><display/></field>
+ <field name="cityName"><display/></field>
+ <field name="country"><display/></field>
+ <field name="stateOrProvince"><display/></field>
+ <field name="postalCode"><display/></field>
+ <field name="street"><display/></field>
+ <field name="street1"><display/></field>
+ <field name="street2"><display/></field>
+ <field name="phone"><display/></field>
+ <field name="email"><display description="${results.email}"/></field>
+ <field name="status"><display description="${results.status}"/></field>
+ </form>
+</forms>
\ No newline at end of file
Added: ofbiz/trunk/specialpurpose/ebaystore/widget/EbayAccountScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebaystore/widget/EbayAccountScreens.xml?rev=905876&view=auto
==============================================================================
--- ofbiz/trunk/specialpurpose/ebaystore/widget/EbayAccountScreens.xml (added)
+++ ofbiz/trunk/specialpurpose/ebaystore/widget/EbayAccountScreens.xml Wed Feb 3 03:16:07 2010
@@ -0,0 +1,36 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+ -->
+
+<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
+ <screen name="EbayPersonalInformation">
+ <section>
+ <actions>
+ <service service-name="getEbayUser" result-map="results">
+ <field-map field-name="productStoreId" from-field="parameters.productStoreId"/>
+ </service>
+ </actions>
+ <widgets>
+ <screenlet name="" title="${uiLabelMap.EbayPersonalInformation}">
+ <include-form location="component://ebay/widget/EbayAccountForms.xml" name="EbayPersonalInformationForm"/>
+ </screenlet>
+ </widgets>
+ </section>
+ </screen>
+</screens>
Added: ofbiz/trunk/specialpurpose/ebaystore/widget/EbayInventoryForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebaystore/widget/EbayInventoryForms.xml?rev=905876&view=auto
==============================================================================
--- ofbiz/trunk/specialpurpose/ebaystore/widget/EbayInventoryForms.xml (added)
+++ ofbiz/trunk/specialpurpose/ebaystore/widget/EbayInventoryForms.xml Wed Feb 3 03:16:07 2010
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+
+<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
+
+ <form name="EbayStoreFacilityList" type="single" list-name="productStoreFacilityList" target="ebayStoreInventory"
+ odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
+ <field name="productStoreId"><hidden value="${parameters.productStoreId}"/></field>
+ <field name="isFacilityId"><hidden value="Y"/></field>
+ <field name="facilityId" >
+ <drop-down current="selected" >
+ <list-options list-name="productStoreFacilityList" description="${facilityId}" key-name="facilityId"/>
+ </drop-down>
+ </field>
+ <field name="submitButton" ><submit button-type="button"/></field>
+ </form>
+
+ <form name="reserveEbayProductInventory" type="single" list-name="" target="reserveProductInventory"
+ odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
+ <field name="productStoreId"><display description="${parameters.productStoreId}"></display></field>
+ <field name="facilityId"><display description="${parameters.facilityId}"></display></field>
+ <field name="productId"><lookup target-form-name="LookupProduct"></lookup></field>
+ <field name="quantity"><text></text></field>
+ <field name="submitButton" ><submit button-type="button"/></field>
+ </form>
+
+ <form name="ListEbayProductInventoryDetail" type="multi" use-row-submit="true" target="updateEbayStoreInventory" title="" list-name="ebayProductStoreInventoryList"
+ odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
+ <field name="productStoreId"><hidden/></field>
+ <field name="facilityId"><hidden/></field>
+ <field name="folderId"><hidden value="${parameters.folderId}"/></field>
+ <field name="_rowSubmit" title="${uiLabelMap.CommonSelect}"><check/></field>
+ <field name="productId"><display></display></field>
+ <field name="productName" entry-name="productId">
+ <display-entity entity-name="Product" key-field-name="productId" description="${productName}"></display-entity>
+ </field>
+ <field name="quantityReserved"><display></display></field>
+ <field name="availableToPromiseListing"><display></display></field>
+ <field name="scheduled"><display></display></field>
+ <field name="ebayProductId"><display></display></field>
+ <field name="activeListing"><display></display></field>
+ <field name="sold"><display></display></field>
+ <field name="unSold"><display></display></field>
+ <field name="reservedDate"><display></display></field>
+ <field name="updateButton" title="${uiLabelMap.EbayUpdateInventory}"><submit button-type="button"/></field>
+ </form>
+</forms>
Added: ofbiz/trunk/specialpurpose/ebaystore/widget/EbayStoreForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebaystore/widget/EbayStoreForms.xml?rev=905876&view=auto
==============================================================================
--- ofbiz/trunk/specialpurpose/ebaystore/widget/EbayStoreForms.xml (added)
+++ ofbiz/trunk/specialpurpose/ebaystore/widget/EbayStoreForms.xml Wed Feb 3 03:16:07 2010
@@ -0,0 +1,122 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+
+value="${bsh:billingAccount != null ? org.ofbiz.accounting.payment.BillingAccountWorker.getBillingAccountBalance(billingAccount) : 0}" type="BigDecimal"/>
+-->
+
+<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
+ <form name="EbayStoreList" type="single" list-name="ebayStoreList" target="getStoreDetail"
+ odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
+ <field name="productStoreId" title="${uiLabelMap.ProductProductStore}" >
+ <drop-down current="selected" >
+ <list-options list-name="ebayStoreList" description="${storeName} [${productStoreId}]" key-name="productStoreId"/>
+ </drop-down>
+ </field>
+ <field name="submitButton" ><submit button-type="button"/></field>
+ </form>
+ <form name="EbayAccountList" type="single" list-name="ebayAccountList" target="getStoreDetail"
+ odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
+ <actions>
+ <script location="component://ebay/webapp/ebay/WEB-INF/actions/store/StoreAccount.groovy"/>
+ </actions>
+ <field name="productStoreId" title="Account" >
+ <drop-down current="selected">
+ <list-options list-name="stores" description="${firstName} ${lastName}" key-name="productStoreId"/>
+ </drop-down>
+ </field>
+ <field name="submitButton" ><submit button-type="button"/></field>
+ </form>
+ <form name="ListCurrentStores" type="single" target="exportCategoriesSelectedToEbayStore"
+ header-row-style="header-row" default-table-style="basic-table">
+ <actions>
+ <entity-and entity-name="ProductStoreCatalog" list="storeCatalog">
+ <field-map field-name="productStoreId" from-field="parameters.productStoreId"/>
+ </entity-and>
+ </actions>
+ <field name="productStoreId"><hidden value="${parameters.productStoreId}"/></field>
+ <field name="prodCatalogId">
+ <drop-down>
+ <list-options list-name="storeCatalog" key-name="prodCatalogId" description="${prodCatalogId}"/>
+ <!--entity-options entity-name="ProdCatalog" description="${catalogName}" key-field-name="prodCatalogId">
+ <entity-order-by field-name="catalogName"/>
+ </entity-options-->
+ </drop-down>
+ </field>
+ <field name="submitButton" title="${uiLabelMap.EbayExportToEbayStore}"><submit button-type="button"/></field>
+ </form>
+ <form name="NewEbayAccount" type="single" target="createEbayAccount">
+ <auto-fields-service service-name="createEbayAccount"/>
+ <field name="statusId"><hidden value="PARTY_ENABLED"/></field>
+ <field name="gender">
+ <drop-down allow-empty="true">
+ <option key="M" description="${uiLabelMap.CommonMale}"/>
+ <option key="F" description="${uiLabelMap.CommonFemale}"/>
+ </drop-down>
+ </field>
+ <field name="currentPassword"><password/></field>
+ <field name="currentPasswordVerify"><password/></field>
+ <field name="submitButton" title="${uiLabelMap.CommonCreate}"><submit button-type="button"/></field>
+ </form>
+ <!-- feedback -->
+ <form name="ItemsAwaitingFeedback" type="list" list-name="itemsAwaitingFeedbackList"
+ odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
+ <row-actions>
+ <set field="leave" value="${commentType}"/>
+ </row-actions>
+ <field name="itemID"><display description="${itemID} - ${title}"/></field>
+ <field name="userID"><display description="${userID}"/></field>
+ <field name="actions" use-when=""${commentType}" == """>
+ <hyperlink target="LeaveFeedback" description="Leave Feedback">
+ <parameter param-name="itemId" value="${itemID}"/>
+ <parameter param-name="transactionId" value="${transactionID}"/>
+ <parameter param-name="productStoreId" value="${parameters.productStoreId}"/>
+ <parameter param-name="targetUser" value="${userID}"/>
+ <parameter param-name="commentingUser" value="${commentingUser}"/>
+ <parameter param-name="role" value="${role}"/>
+ </hyperlink>
+ </field>
+ </form>
+ <form name="RecentFeedback" type="list" list-name="recentFeedbackList"
+ odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
+ <field name="contentId" title="Feedback Id"><display/></field>
+ <field name="dataResourceId" title="Comment Text">
+ <display-entity entity-name="ElectronicText" key-field-name="dataResourceId" description="${textData}"/>
+ </field>
+ <field name="commentator" title="Commentator"><display/></field>
+ <field name="createdDate"><display type="date"/></field>
+ </form>
+ <form name="EditAutomationRelistSoldItems" target="createEbayAutomaticRelistItems" type="single">
+ <alt-target use-when="job!=null" target="updateEbayAutomaticRelistItems"/>
+ <field name="jobId" use-when="job!=null"><hidden value="${job.jobId}"/></field>
+ <field name="jobId" use-when="job==null"><hidden value="${jobId}"/></field>
+ <field name="authUserLoginId"><hidden value="${userLoginId}"/></field>
+ <field name="productStoreId"><hidden value="${parameters.productStoreId}"/></field>
+ <field name="startDateTime"><date-time default-value="${job.startDateTime}"/></field>
+ <field name="finishDateTime"><date-time default-value="${job.finishDateTime}"/></field>
+ <field name="submit" use-when="job!=null" title="${uiLabelMap.CommonApply}"><submit/></field>
+ <field name="submit" use-when="job==null" title="${uiLabelMap.CommonCreate}"><submit/></field>
+ </form>
+ <!-- block out of stock items -->
+ <form name="blockItemsOutOfStock" type="single" target="runBlockItemOutOfStock">
+ <field name="productStoreId"><hidden value="${parameters.productStoreId}"/></field>
+ <field name="productStore" entry-name="parameters.productStoreId" ><display-entity entity-name="ProductStore" description="${storeName} [${productStoreId}]" key-field-name="productStoreId" ></display-entity></field>
+ <field name="submitButton" title="${uiLabelMap.BlockItemsOutOfStock}"><submit button-type="button"/></field>
+ </form>
+</forms>
\ No newline at end of file
Modified: ofbiz/trunk/specialpurpose/ebaystore/widget/EbayStoreMenus.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebaystore/widget/EbayStoreMenus.xml?rev=905876&r1=905875&r2=905876&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ebaystore/widget/EbayStoreMenus.xml (original)
+++ ofbiz/trunk/specialpurpose/ebaystore/widget/EbayStoreMenus.xml Wed Feb 3 03:16:07 2010
@@ -19,5 +19,89 @@
-->
<menus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-menu.xsd">
<menu name="EbayStoreAppBar" title="${uiLabelMap.EbayStoreApplication}" extends="CommonAppBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
+ <menu-item name="eBayConfigurations" title="${uiLabelMap.EbayConfigurations}"><link target="FindEbayConfigurations"/></menu-item>
</menu>
+ <menu name="EbaySubTabBar" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml"
+ menu-container-style="button-bar button-style-2">
+ <menu-item name="NewEbayAccount" title="New Ebay Account">
+ <link target="newEbayAccount"/>
+ </menu-item>
+ </menu>
+ <menu name="EbayStoreFunctionTabBar" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
+ <menu-item name="ebayAccount" title="${uiLabelMap.EbayStoreAccount}">
+ <link target="ebayAccount">
+ <parameter param-name="productStoreId" value="${parameters.productStoreId}"/>
+ </link>
+ </menu-item>
+ <menu-item name="ebayStoreSetting" title="${uiLabelMap.EbayStore}">
+ <link target="getStoreDetail">
+ <parameter param-name="productStoreId" value="${parameters.productStoreId}"/>
+ </link>
+ </menu-item>
+ <menu-item name="ebayExportAllCategoryToEbayStore" title="${uiLabelMap.EbayExportAllCategoryToEbayStore}">
+ <link target="exportCategoryEbayStore">
+ <parameter param-name="productStoreId" value="${parameters.productStoreId}"/>
+ </link>
+ </menu-item>
+ <menu-item name="inventory" title="${uiLabelMap.ProductProduct} ${uiLabelMap.ProductInventory}">
+ <link target="ebayStoreInventory">
+ <parameter param-name="productStoreId" value="${parameters.productStoreId}"/>
+ </link>
+ </menu-item>
+ <menu-item name="blockItemOutOfStock" title="${uiLabelMap.EbayBlockItemOutOfStock}">
+ <link target="blockItemOutOfStock">
+ <parameter param-name="productStoreId" value="${parameters.productStoreId}"/>
+ </link>
+ </menu-item>
+ <menu-item name="feedback" title="${uiLabelMap.EbayFeedback}">
+ <link target="Feedback">
+ <parameter param-name="productStoreId" value="${parameters.productStoreId}"/>
+ </link>
+ </menu-item>
+ <menu-item name="automationPreferences" title="Automation Preferences">
+ <link target="automationPreferences">
+ <parameter param-name="productStoreId" value="${parameters.productStoreId}"/>
+ </link>
+ </menu-item>
+ </menu>
+ <menu name="EbayFeedbackTabBar" selected-menuitem-context-field-name="eBayTabButtonItem" type="simple"
+ default-selected-style="selected" menu-container-style="button-bar button-style-2">
+ <menu-item name="Feedback">
+ <condition>
+ <not><if-empty field="parameters.productStoreId"/></not>
+ </condition>
+ <link target="Feedback" text="${uiLabelMap.EbayFeedback}">
+ <parameter param-name="productStoreId" value="${parameters.productStoreId}"/>
+ </link>
+ </menu-item>
+ <menu-item name="LeaveFeedback">
+ <condition>
+ <not><if-empty field="parameters.productStoreId"/></not>
+ </condition>
+ <link target="LeaveFeedback" text="${uiLabelMap.EbayLeaveFeedback}">
+ <parameter param-name="productStoreId" value="${parameters.productStoreId}"/>
+ </link>
+ </menu-item>
+ </menu>
+ <menu name="EbayFeedbackSubTabBar" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml"
+ menu-container-style="button-bar button-style-2" selected-menuitem-context-field-name="role">
+ <menu-item name="all" title="${uiLabelMap.CommonAll}">
+ <link target="LeaveFeedback">
+ <parameter param-name="productStoreId" value="${parameters.productStoreId}"/>
+ <parameter param-name="role" value="all"/>
+ </link>
+ </menu-item>
+ <menu-item name="seller" title="${uiLabelMap.EbayBoughtLeaveFeedback}">
+ <link target="LeaveFeedback">
+ <parameter param-name="productStoreId" value="${parameters.productStoreId}"/>
+ <parameter param-name="role" value="seller"/>
+ </link>
+ </menu-item>
+ <menu-item name="buyer" title="${uiLabelMap.EbaySoldLeaveFeedback}">
+ <link target="LeaveFeedback">
+ <parameter param-name="productStoreId" value="${parameters.productStoreId}"/>
+ <parameter param-name="role" value="buyer"/>
+ </link>
+ </menu-item>
+ </menu>
</menus>
\ No newline at end of file
Added: ofbiz/trunk/specialpurpose/ebaystore/widget/EbayStoreScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebaystore/widget/EbayStoreScreens.xml?rev=905876&view=auto
==============================================================================
--- ofbiz/trunk/specialpurpose/ebaystore/widget/EbayStoreScreens.xml (added)
+++ ofbiz/trunk/specialpurpose/ebaystore/widget/EbayStoreScreens.xml Wed Feb 3 03:16:07 2010
@@ -0,0 +1,450 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
+
+ <screen name="ebayStores">
+ <section>
+ <actions>
+ <set field="titleProperty" value="${uiLabelMap.EbayStore}"/>
+ <set field="headerItem" value="ebayStore"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <include-menu name="EbaySubTabBar" location="component://ebaystore/widget/EbayStoreMenus.xml"/>
+ <screenlet title="Ebay Accounts">
+ <include-form name="EbayAccountList" location="component://ebaystore/widget/EbayStoreForms.xml"/>
+ </screenlet>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="ebayStoreDetail">
+ <section>
+ <actions>
+ <set field="titleProperty" value="${uiLabelMap.EbayStoreSetting}"/>
+ <set field="headerItem" value="ebayStore"/>
+ <set field="tabButtonItem" value="ebayStoreSetting"/>
+
+ <script location="component://ebaystore/webapp/ebaystore/WEB-INF/actions/store/RetrieveStoreOptions.groovy"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <screenlet title="${uiLabelMap.EbayStoreSetting}">
+ <platform-specific>
+ <html><html-template location="component://ebaystore/webapp/ebaystore/store/StoreSetting.ftl"/></html>
+ </platform-specific>
+ </screenlet>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="exportCategoryEbayStore">
+ <section>
+ <actions>
+ <set field="titleProperty" value="EbayExportAllCategoryToEbayStore"/>
+ <set field="headerItem" value="ebayStore"/>
+ <set field="tabButtonItem" value="ebayExportAllCategoryToEbayStore"/>
+ <set field="productStoreId" value="${parameters.productStoreId}"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <screenlet title="${uiLabelMap.EbayExportAllCategoryToEbayStore}">
+ <include-form name="ListCurrentStores" location="component://ebaystore/widget/EbayStoreForms.xml"/>
+ </screenlet>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+ <!-- ebay account -->
+ <screen name="NewEbayAccount">
+ <section>
+ <actions>
+ <set field="headerItem" value="ebayStore"/>
+ <set field="tabButtonItem" value="NewEbayAccount"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <screenlet title="New Ebay Account">
+ <include-form name="NewEbayAccount" location="component://ebaystore/widget/EbayStoreForms.xml"/>
+ </screenlet>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="EbayAccount">
+ <section>
+ <actions>
+ <entity-one value-field="portalPage" entity-name="PortalPage">
+ <field-map field-name="portalPageId" value="EbayAccount"/>
+ </entity-one>
+ <entity-and entity-name="PortalPageColumn" list="portalPageColumns">
+ <field-map field-name="portalPageId" value="EbayAccount"/>
+ <order-by field-name="columnSeqId"/>
+ </entity-and>
+ <entity-and entity-name="PortalPagePortletView" list="portalPagePortlets">
+ <field-map field-name="portalPageId" value="EbayAccount"/>
+ <order-by field-name="columnSeqId"/>
+ <order-by field-name="sequenceNum"/>
+ </entity-and>
+ <set field="headerItem" value="ebayStore"/>
+ <set field="tabButtonItem" value="ebayAccount"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <platform-specific><html><html-template location="component://common/webcommon/portal/showPortalPage.ftl"/></html></platform-specific>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+ <!-- ebay feedback -->
+ <screen name="EbayFeedback">
+ <section>
+ <actions>
+ <set field="titleProperty" value="eBay Feedback"/>
+ <set field="headerItem" value="ebayStore"/>
+ <set field="tabButtonItem" value="feedback"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <section>
+ <condition>
+ <if-has-permission permission="EBAY" action="_VIEW"/>
+ </condition>
+ <widgets>
+ <include-menu location="component://ebaystore/widget/EbayStoreMenus.xml" name="EbayFeedbackTabBar"/>
+ <decorator-section-include name="body"/>
+ </widgets>
+ <fail-widgets>
+ <label style="h3">${uiLabelMap.EbayViewPermissionError}</label>
+ </fail-widgets>
+ </section>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="Feedback">
+ <section>
+ <actions>
+ <set field="titleProperty" value="eBay Feedback"/>
+ <set field="headerItem" value="ebayStore"/>
+ <set field="eBayTabButtonItem" value="Feedback"/>
+ <service service-name="loadFeedback">
+ <field-map field-name="productStoreId" from-field="parameters.productStoreId"/>
+ </service>
+ <service service-name="getItemsAwaitingFeedback" result-map="results">
+ <field-map field-name="productStoreId" from-field="parameters.productStoreId"/>
+ </service>
+ <set field="itemsAwaitingFeedbackList" from-field="results.itemsAwaitingFeedback"/>
+ <script location="component://ebaystore/webapp/ebaystore/WEB-INF/actions/feedback/FeedbackList.groovy"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="EbayFeedback" >
+ <decorator-section name="body">
+ <screenlet>
+ <screenlet navigation-form-name="ItemsAwaitingFeedback" title="Items Awaiting Feedback">
+ <include-form name="ItemsAwaitingFeedback" location="component://ebaystore/widget/EbayStoreForms.xml"/>
+ </screenlet>
+ </screenlet>
+ <screenlet>
+ <screenlet navigation-form-name="RecentFeedback" title="Recent Feedback">
+ <include-form name="RecentFeedback" location="component://ebaystore/widget/EbayStoreForms.xml"/>
+ </screenlet>
+ </screenlet>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="LeaveFeedback">
+ <section>
+ <actions>
+ <set field="titleProperty" value="eBay Feedback"/>
+ <set field="headerItem" value="ebayStore"/>
+ <set field="eBayTabButtonItem" value="LeaveFeedback"/>
+ <set field="role" from-field="parameters.role" default-value="all"/>
+ <service service-name="getItemsAwaitingFeedback" result-map="results"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="EbayFeedback" >
+ <decorator-section name="body">
+ <screenlet>
+ <screenlet title="${uiLabelMap.EbayLeaveFeedback}">
+ <include-menu location="component://ebaystore/widget/EbayStoreMenus.xml" name="EbayFeedbackSubTabBar"/>
+ <platform-specific>
+ <html><html-template location="component://ebaystore/webapp/ebaystore/feedback/LeaveFeedback.ftl"/></html>
+ </platform-specific>
+ </screenlet>
+ </screenlet>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="EbayAutomationPreferences">
+ <section>
+ <actions>
+ <set field="headerItem" value="ebayStore"/>
+ <set field="tabButtonItem" value="automationPreferences"/>
+ <service service-name="getEbayStoreUser" result-map="result">
+ <field-map field-name="productStoreId" from-field="parameters.productStoreId"/>
+ </service>
+ <set field="userLoginId" from-field="result.userLoginId"/>
+ <script location="component://ebaystore/webapp/ebaystore/WEB-INF/actions/automationPreferences/GetEbayJobsandbox.groovy"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <decorator-section-include name="body"/>
+ <include-screen name="AutomationRelistSoldItems"/>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="AutomationRelistSoldItems">
+ <section>
+ <actions>
+ <set field="headerItem" value="ebayStore"/>
+ <set field="tabButtonItem" value="automationPreferences"/>
+ </actions>
+ <widgets>
+ <screenlet title="${uiLabelMap.EbayAutomationRelistItems}">
+ <include-form name="EditAutomationRelistSoldItems" location="component://ebaystore/widget/EbayStoreForms.xml"/>
+ </screenlet>
+ </widgets>
+ </section>
+ </screen>
+ <!-- block out of stock -->
+ <screen name="blockItemOutOfStock">
+ <section>
+ <actions>
+ <set field="titleProperty" value="Block items out of stock on eBay"/>
+ <set field="headerItem" value="ebayStore"/>
+ <set field="tabButtonItem" value="blockItemOutOfStock"/>
+ <set field="productStoreId" value="${parameters.productStoreId}"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <screenlet title="${uiLabelMap.BlockItemsOutOfStock}">
+ <include-form name="blockItemsOutOfStock" location="component://ebaystore/widget/EbayStoreForms.xml"/>
+ </screenlet>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+ <!-- Store reserve inventory -->
+ <screen name="ebayStoreInventory">
+ <section>
+ <actions>
+ <set field="headerItem" value="ebayStore"/>
+ <set field="tabButtonItem" value="inventory"/>
+ <entity-and entity-name="ProductStoreFacility" list="productStoreFacilityList">
+ <field-map field-name="productStoreId" from-field="parameters.productStoreId"/>
+ </entity-and>
+ <set field="check" value="${groovy:
+ check= "false";
+ if(productStoreFacilityList!=null && productStoreFacilityList.size()== 1) check = "true";
+ return check;
+ }" type="String"/>
+ <set field="facilityId" value="${groovy:
+ if(check.equals("true")) facility = productStoreFacilityList.get(0);
+ if(facility!=null) facilityId = facility.facilityId;
+ return facilityId;}" type="String"/>
+ </actions>
+ <widgets>
+ <section>
+ <condition>
+ <if-compare field="check" operator="equals" value="true"/>
+ </condition>
+ <widgets>
+ <section>
+ <actions>
+ <set field="parameters.facilityId" value="${facilityId}"/>
+ <set field="parameters.productStoreId" from-field="parameters.productStoreId"/>
+ <service service-name="getFolderInEbayStoreInventory" result-map="result">
+ <field-map field-name="productStoreId" from-field="parameters.productStoreId"/>
+ </service>
+ <set field="parameters.folderId" value="${result.folderId}"/>
+ </actions>
+ <widgets>
+ <section>
+ <condition>
+ <not><if-empty field="parameters.folderId"/></not>
+ </condition>
+ <widgets><include-screen name="ViewInventoryItemDetail"/></widgets>
+ <fail-widgets><include-screen name="ebayStoreInventoryFail"/></fail-widgets>
+ </section>
+ </widgets>
+ </section>
+ </widgets>
+ <fail-widgets>
+ <section>
+ <actions>
+ <set field="parameters.facilityId" value="${facilityId}"/>
+ <set field="parameters.productStoreId" from-field="parameters.productStoreId"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <screenlet>
+ <include-form name="EbayStoreFacilityList" location="component://ebaystore/widget/EbayInventoryForms.xml"/>
+ </screenlet>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </fail-widgets>
+ </section>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="ebayLoadStoreInventory">
+ <section>
+ <actions>
+ <set field="headerItem" value="ebayStore"/>
+ <set field="tabButtonItem" value="inventory"/>
+ <entity-and entity-name="ProductStoreFacility" list="productStoreFacilityList">
+ <field-map field-name="productStoreId" from-field="parameters.productStoreId"/>
+ </entity-and>
+ </actions>
+ <widgets>
+ <section>
+ <widgets>
+ <section>
+ <actions>
+ <set field="facilityId" value="parameters.facilityId"/>
+ <set field="parameters.productStoreId" from-field="parameters.productStoreId"/>
+ <set field="folderId" value="parameters.folderId"/>
+ </actions>
+ <widgets><include-screen name="ViewInventoryItemDetail"/></widgets>
+ </section>
+ </widgets>
+ </section>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="ViewInventoryItemDetail">
+ <section>
+ <actions>
+ <property-map resource="WorkEffortUiLabels" map-name="uiLabelMap" global="true"/>
+ <set field="titleProperty" value="PageTitleEditInventoryItem"/>
+ <set field="headerItem" value="ebayStore"/>
+ <set field="tabButtonItem" value="inventory"/>
+
+ <set field="facilityId" from-field="parameters.facilityId"/>
+ <set field="productStoreId" from-field="parameters.productStoreId"/>
+ <entity-one entity-name="ProductStore" value-field="productStore">
+ <field-map field-name="productStoreId" from-field="productStoreId"/>
+ <select-field field-name="storeName"/>
+ </entity-one>
+ <entity-one entity-name="Facility" value-field="facility">
+ <field-map field-name="facilityId" from-field="facilityId"/>
+ <select-field field-name="facilityName"/>
+ </entity-one>
+ <entity-and entity-name="EbayProductStoreInventory" list="ebayProductStoreInventoryList">
+ <field-map field-name="productStoreId" from-field="productStoreId"/>
+ <field-map field-name="facilityId" from-field="facilityId"/>
+ </entity-and>
+ <property-map resource="ProductUiLabels" map-name="uiLabelMap"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <screenlet title="${uiLabelMap.ProductInventoryDetails} ${uiLabelMap.ProductStoreNameId} : ${productStore.storeName}[${productStore.productStoreId}] ${uiLabelMap.FacilityFacility} : ${facility.facilityName}">
+ <link target="reserveEbayProductInventory" style="buttontext" text="${uiLabelMap.EbayReserveProductInventory}">
+ <parameter param-name="productStoreId" from-field="productStoreId"/>
+ <parameter param-name="facilityId" from-field="facilityId"/>
+ </link>
+ <include-form name="ListEbayProductInventoryDetail" location="component://ebaystore/widget/EbayInventoryForms.xml"/>
+ </screenlet>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="reserveEbayProductInventory">
+ <section>
+ <actions>
+ <set field="headerItem" value="ebayStore"/>
+ <set field="tabButtonItem" value="inventory"/>
+ <set field="productStoreId" from-field="parameters.productStoreId"/>
+ <entity-one entity-name="Facility" value-field="facility">
+ <field-map field-name="facilityId" value="${parameters.facilityId}"/>
+ <select-field field-name="facilityName"/>
+ </entity-one>
+ </actions>
+ <widgets>
+ <decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <screenlet title="${uiLabelMap.EbayReserveProductFrom} : ${facility.facilityName}">
+ <include-form name="reserveEbayProductInventory" location="component://ebaystore/widget/EbayInventoryForms.xml"/>
+ </screenlet>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="ebayStoreInventoryFail">
+ <section>
+ <actions>
+ <set field="headerItem" value="ebayStore"/>
+ <set field="tabButtonItem" value="inventory"/>
+ <set field="productStoreId" from-field="parameters.productStoreId"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <screenlet title="notes">
+ <label style="label" text="Please subscribed to Selling Manager Pro before you use this function because ebay product inventory will open when you start selling manager pro on ebay site."></label>
+ <label text="- To subscribe for production site"></label>
+ <link target="link : http://pages.ebay.com/selling_manager_pro" text="http://pages.ebay.com/selling_manager_pro" target-window="_BLANK" url-mode="plain"></link>
+ <label text="- To upgrade store level sandbox site"></label>
+ <link target="link : http://k2b-bulk.sandbox.ebay.com/ws/eBayISAPI.dll?MyeBaySellingPendingListings" target-window="_BLANK" url-mode="plain" text="http://k2b-bulk.sandbox.ebay.com/ws/eBayISAPI.dll?MyeBaySellingPendingListings"></link>
+ </screenlet>
+ <screenlet title="How to upgrade sandbox store level?">
+ <label text="- Click on the link "To upgrade store level for sandbox site""></label>
+ <label text="- Go to "Selling Related links" section"></label>
+ <label text="- Click on "Edit my eBay store""></label>
+ <label text="- Page Manage my eBay store will show up"></label>
+ <label text="- Go to "Store Usage Information" section"></label>
+ <label text="- Click upgrade at "Subscription level" then select "Premium Store" and "Selling Manager Pro" then submit."></label>
+ </screenlet>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+</screens>
\ No newline at end of file