Modified: ofbiz/branches/multitenant20100310/specialpurpose/ebaystore/webapp/ebaystore/store/productsearchExport.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/multitenant20100310/specialpurpose/ebaystore/webapp/ebaystore/store/productsearchExport.ftl?rev=926987&r1=926986&r2=926987&view=diff ============================================================================== --- ofbiz/branches/multitenant20100310/specialpurpose/ebaystore/webapp/ebaystore/store/productsearchExport.ftl (original) +++ ofbiz/branches/multitenant20100310/specialpurpose/ebaystore/webapp/ebaystore/store/productsearchExport.ftl Wed Mar 24 09:23:07 2010 @@ -15,186 +15,689 @@ software distributed under the License i KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + --> +<style> + #tabs{ + margin-left: 4px; + padding: 0; + background: transparent; + voice-family: "\"}\""; + voice-family: inherit; + padding-left: 5px; + } + #tabs ul{ + font: bold 11px Arial, Verdana, sans-serif; + margin:0; + padding:0; + list-style:none; + } + #tabs li{ + display:inline; + margin:0 2px 0 0; + padding:0; + text-transform:uppercase; + } + #tabs a{ + float:left; + background:#A3BBE6;// url(images/tabs_left.gif) no-repeat left top; + margin:0 2px 0 0; + padding:0 0 1px 3px; + text-decoration:none; + } + #tabs a span{ + float:left; + display:block; + background: transparent;// url(images/tabs_right.gif) no-repeat right top; + padding:4px 9px 2px 6px; + } + #tabs a span{float:none;} + #tabs a:hover{background-color: #7E94B9;color: white;} + #tabs a:hover span{background-color: #7E94B9;} + #tabHeaderActive_ span, #tabHeaderActive_ a { background-color: #42577B; color:#fff;} + .tabContent { + clear:both; + border:2px solid #42577B; + padding-top:2px; + background-color:#FFF; + } +</style> <script language="JavaScript" type="text/javascript"> - function changeEbayDuration(value) { - var listingDuration = document.ProductsExportToEbay.listingDuration; - listingDuration.options.length = 0; - for (i = listingDuration.options.length; i >= 0; i--) { - listingDuration.options[i] = null; + + function retrieveEbayCategoryByParent(url,cateId,productStoreId,id){ + if (cateId.match('true')){ + return true; + } + if (cateId.indexOf(':')!= -1) { + cateId = cateId.substring(0,cateId.indexOf(':')); + } + var pars = 'ebayCategoryId='+cateId+'&productStoreId='+productStoreId; + var myAjax = new Ajax.Request( url, { + method: 'get', + parameters: pars, + onLoading: function loading(){ + $('loading').innerHTML = '<b>Please wait...</b>'; + } , + onComplete: function writeCategoryList(originalRequest){ + $('loading').innerHTML = ''; + if(originalRequest.responseJSON!=null){ + removeOptions($(id)); + var resp = eval("("+originalRequest.responseText+")"); + var leng = resp.size(); + for (i=0;i<leng;i++) { + if (i == 0) { + $(id).options[0] = new Option("Please select",""); + } + var optVal = resp[i].CategoryCode; + var optName = resp[i].CategoryName; + var isLeaf = resp[i].IsLeafCategory; + $(id).options[i+1] = new Option(optName,optVal+":"+isLeaf); + } + } + } + } ); + } + + function retrieveTemplateByTemGroupId(templateGroupId,productStoreId,pkCategoryId){ + var pars = 'templateGroupId='+templateGroupId+'&productStoreId='+productStoreId+'&pkCategoryId='+pkCategoryId; + var url = '<@ofbizUrl>ebayAdItemTemplate</@ofbizUrl>'; + var myAjax = new Ajax.Request( url, { + method: 'get', + parameters: pars, + onComplete: function writeItemTemplates(originalRequest){ + removeOptions('theme'); + previewPic(":http://pics.ebay.com/aw/pics/vit/None2_sample_100x120.gif"); + if(originalRequest.responseJSON!=null){ + var resp = eval("("+originalRequest.responseText+")"); + var leng = resp.size(); + var j = 0; + for (i=0;i<leng+1;i++) { + if (i == 0) { + $('theme').options[0] = new Option("Please select","_NA_"); + } else { + var optVal = resp[i].TemplateId+":"+resp[i].TemplateImageURL; + $('theme').options[i] = new Option(resp[i].TemplateName,optVal); + j++; + } + } + } + } + } ); + } + function removeOptions(id){ + var elSel = $(id); + var i; + for (i = elSel.length - 1; i>=0; i--) { + elSel.remove(i); + } } - if (value == "FixedPriceItem"){ - listingDuration.options[0] = new Option("3 ${uiLabelMap.CommonDays}","Days_3"); - listingDuration.options[1] = new Option("5 ${uiLabelMap.CommonDays}","Days_5"); - listingDuration.options[2] = new Option("7 ${uiLabelMap.CommonDays}","Days_7"); - listingDuration.options[3] = new Option("10 ${uiLabelMap.CommonDays}","Days_10"); - listingDuration.options[4] = new Option("30 ${uiLabelMap.CommonDays}","Days_30"); - listingDuration.options[5] = new Option("Good 'Til Cancelled","2147483647"); - }else{ - listingDuration.options[0] = new Option("1 ${uiLabelMap.CommonDay}","Days_1"); - listingDuration.options[1] = new Option("3 ${uiLabelMap.CommonDays}","Days_3"); - listingDuration.options[2] = new Option("5 ${uiLabelMap.CommonDays}","Days_5"); - listingDuration.options[3] = new Option("7 ${uiLabelMap.CommonDays}","Days_7"); - listingDuration.options[4] = new Option("10 ${uiLabelMap.CommonDays} ($0.40)","Days_10"); + function enabledItemTemplate(val){ + var field = "enabledTheme"; + if ($(field).checked) { + $('themeGroup').disabled = false; + $('theme').disabled = false; + } else { + $('themeGroup').disabled = true; + $('theme').disabled = true; } } + function previewPic(val) { + if (val != null) val = val.substr(val.indexOf(":")+1); + $('themeImg').src = val; + } + function toggleDisp() { + for (var i=0;i<arguments.length;i++){ + var d = $(arguments[i]); + if (d.style.display == 'none') + d.style.display = 'block'; + else + d.style.display = 'none'; + } + } + function toggleTab(num,numelems,opennum,animate) { + if ($('tabContent'+num).style.display == 'none'){ + for (var i=1;i<=numelems;i++){ + if ((opennum == null) || (opennum != i)){ + var temph = 'tabHeader_'+i; + var h = $(temph); + if (!h){ + var h = $('tabHeaderActive_'); + h.id = temph; + } + var tempc = 'tabContent'+i; + var c = $(tempc); + if(c.style.display != 'none'){ + if (animate || typeof animate == 'undefined') + Effect.toggle(tempc,'blind',{duration:0.2, queue:{scope:'menus', limit: 3}}); + else + toggleDisp(tempc); + } + } + } + var h = $('tabHeader_'+num); + if (h){ + h.id = 'tabHeaderActive_'; + } + h.blur(); + var c = $('tabContent'+num); + c.style.marginTop = '2px'; + if (animate || typeof animate == 'undefined'){ + Effect.toggle('tabContent'+num,'blind',{duration:0.2, queue:{scope:'menus', position:'end', limit: 3}}); + }else{ + toggleDisp('tabContent'+num); + } + } + } </script> -<div> - <form id="ProductsExportToEbay" method="post" action="<@ofbizUrl>exportProductsFromEbayStore</@ofbizUrl>" name="ProductsExportToEbay"> - <input type="hidden" name="productStoreId" value="${productStoreId?if_exists}"> - <input type="hidden" name="prodCatalogId" value="${parameters.SEARCH_CATALOG_ID?if_exists}"> - <input type="hidden" name="productCategoryId" value="${parameters.SEARCH_CATEGORY_ID?if_exists}"> - <#if !productIds?has_content> - <div><h2>${uiLabelMap.ProductNoResultsFound}.</h2></div> - </#if> - - <#if productIds?has_content> - <table border="0" cellpadding="2" cellspacing="0"> - <tr> - <td align="right" class="label">${uiLabelMap.CommonCountry}</td> - <td> </td> - <td> - <select name="country"> - <#if countries?exists> - <#list countries as country> - <option value="${country.geoCode}" <#if countryCode?exists && countryCode == country.geoCode>selected</#if>>${country.get("geoName",locale)}</option> - </#list> +<div class="screenlet"> + <div class="screenlet-title-bar"> + <ul> + <li class="h3">Items to export</li> + <li><a href="<@ofbizUrl>clearExpListing</@ofbizUrl>?productStoreId=${productStoreId?if_exists}">Clear Listing</a></li> + <li><a href="<@ofbizUrl>exportListingToEbay</@ofbizUrl>?productStoreId=${productStoreId?if_exists}">Export Products Listing</a></li> + </ul><br class="clear"/></div> + <div class="screenlet-body"> +<form id="ProductsExportToEbay" method="post" action="<@ofbizUrl>exportProductsFromEbayStore</@ofbizUrl>" name="ProductsExportToEbay"> + <input type="hidden" name="productStoreId" value="${productStoreId?if_exists}"/> + <table class="basic-table" cellspacing="0"> + <tr><td> + <#if addItemObj?has_content> + <div class="button-bar button-style-2"> + <br class="clear"/> + <ul> + <#assign id = 1> + <#if contentList?has_content> + <#list contentList as content> + <#if !isProductId?has_content> + <li <#if id == 1>class="selected" <#assign isProductId = content.product.productId?if_exists><#else>id="tabHeader${id}"</#if>><a href="javascript:$('ProductsExportToEbay').action = '<@ofbizUrl>exportProductListing</@ofbizUrl>?isProductId=${content.product.productId?if_exists}';$('ProductsExportToEbay').submit();">${content.product.productName?if_exists}[${content.product.productId}]</a></li> + <#else> + <li <#if isProductId?exists && isProductId?if_exists == content.product.productId?if_exists >class="selected" <#assign isProductId = content.product.productId?if_exists><#else>id="tabHeader${id}"</#if>><a href="javascript:$('ProductsExportToEbay').action = '<@ofbizUrl>exportProductListing</@ofbizUrl>?isProductId=${content.product.productId?if_exists}';$('ProductsExportToEbay').submit();">${content.product.productName?if_exists}[${content.product.productId}]</a></li> + </#if> + <#assign id = id+1> + </#list> + </#if> + </ul> + <br class="clear"/> + </div> + <#assign addItemList = addItemObj.itemListing?if_exists> + <#if addItemList?has_content> + <#list addItemList as addItemObj> + <#assign addItem = addItemObj.addItemCall?if_exists> + <#assign isSaved = addItemObj.isSaved?if_exists> + <#assign isAutoRelist = addItemObj.isAutoRelist?if_exists> + <#assign item = addItem.getItem()?if_exists> + <#assign primaryCate = item.getPrimaryCategory()?if_exists> + <#if isProductId == item.getSKU()?if_exists> + <input type="hidden" name="productId" value="${item.getSKU()?if_exists}"/> + <#assign smallImageUrl = ""> + <#if contentList?has_content> + <#list contentList as content> + <#if content.product.productId?if_exists == item.getSKU()?if_exists><#assign smallImageUrl = content.productContentWrapper.get("SMALL_IMAGE_URL")?if_exists></#if> + </#list> + </#if> + <#if !smallImageUrl?string?has_content><#assign smallImageUrl = "/images/defaultImage.jpg"></#if> + <table cellspacing="0" width="70%"> + <tr> + <td class="label">ItemID</td> + <td><input type="text" readOnly name="item" value="${item.getItemID()?if_exists}"/></td> + <td class="label">Item Fee</td> + <td> + <div> + <input type="text" readOnly name="itemFee" value="${request.getAttribute("itemFee")?if_exists}"/> + <!-- itemlisting buttons bar --> + <a href="#" onclick="javascript:document.ProductsExportToEbay.action='<@ofbizUrl>updateProductExportDetail</@ofbizUrl>';document.ProductsExportToEbay.submit();" class="buttontext">${uiLabelMap.CommonSave}</a> + <#-- request.setAttribute("isSaved")--> + <#if isSaved?exists && isSaved=="Y"> + <a href="#" class="buttontext" onclick="javascript:document.ProductsExportToEbay.action='<@ofbizUrl>verifyItem</@ofbizUrl>';document.ProductsExportToEbay.submit();">Verifly Item</a> + </#if> + <a href="#" class="buttontext" onclick="javascript:document.ProductsExportToEbay.action='<@ofbizUrl>removeProductFromListing</@ofbizUrl>';document.ProductsExportToEbay.submit();">Remove</a> + <#--a href="#" class="buttontext">Save and ${uiLabelMap.EbayExportToEbay}</a--> + <!-- end buttons bar --> + </div> + </td> + </tr> + </table> + <div class="screenlet"> + <div class="screenlet-title-bar"><ul><li class="h3">Product ${item.getSKU()?if_exists}</li></ul><br class="clear"/></div> + <div class="screenlet-body"> + <!-- ebay setting section --> + <table width="100%" cellspacing="0"> + <tr> + <td width="60%" valign="top"> + <table cellspacing="0"> + <tr> + <td class="label">SiteId</td> + <td> + <#assign site = item.getSite().value()?if_exists> + <input type="text" readOnly name="site" value="${item.getSite().name()?if_exists} [${item.getSite()?if_exists}]"/> + </td> + </tr> + <!-- set ebay category --> + <tr> + <td class="label">${uiLabelMap.FormFieldTitle_ebayCategory}</td> + <td> + <div> + <div id="loading"></div> + <select id="ebayCategory" name="ebayCategory" onchange="retrieveEbayCategoryByParent('<@ofbizUrl>retrieveEbayCategoryByParent</@ofbizUrl>',this.value,'${productStoreId}','ebayCategory')"> + <option value="">Please select</option> + <#if categories?exists> + <#if primaryCate?has_content> + <#if !primaryCate.isLeafCategory()?has_content> + <#assign leafCate = "false"> + <#else> + <#assign leafCate = "true"> + </#if> + <#assign primaryCateId = primaryCate.getCategoryID()?if_exists> + <option selected value="${primaryCate.getCategoryID()?if_exists}:${leafCate?if_exists}" >${primaryCate.getCategoryName()?if_exists}</option> + <#else> + <#list categories as csCate> + <#if !csCate.isLeafCategory()?has_content> + <#assign leafCate = "false"> + <#else> + CH_${primaryCate.getCategoryID()?if_exists}<#assign leafCate = "true"> + </#if> + <#assign primaryCateId = csCate.getCategoryID()?if_exists> + <option value="${csCate.getCategoryID()?if_exists}:${leafCate?if_exists}" >${csCate.getCategoryName()?if_exists}</option> + </#list> + </#if> + </#if> + </select> + <a class="buttontext" href="javascript:retrieveEbayCategoryByParent('<@ofbizUrl>retrieveEbayCategoryByParent</@ofbizUrl>','CH_<#if primaryCate?has_content>${primaryCate.getCategoryID()?if_exists}</#if>','${productStoreId}','ebayCategory')">${uiLabelMap.EbayChangeCategory}</a> <a class="buttontext" href="javascript:$('ProductsExportToEbay').action = '<@ofbizUrl>setSelectedCategory</@ofbizUrl>?isProductId=${isProductId?if_exists}';$('ProductsExportToEbay').submit();">${uiLabelMap.EbaySet}</a> + </div> + <input type="hidden" name="primaryCateId" value="${primaryCateId?if_exists}"/> + <div id="ebayCategory_Name">${priCateName?if_exists}</div> + </td> + </tr> + <!-- end of set category --> + <tr> + <td class="label">Title</td> + <td><input type="text" size="60" name="title" value="${item.getTitle()?if_exists}"/></td> + </tr> + <tr> + <td class="label">SKU</td> + <td><input type="text" readOnly name="sku" value="${item.getSKU()?if_exists}"/></td> + </tr> + <tr> + <td class="label">PictureURL</td> + <td> + <#assign pic = item.getPictureDetails()?if_exists> + <#assign picUrls = pic.getPictureURL()?if_exists> + <#assign picUrl = picUrls[0]?if_exists> + <input type="text" size="60" name="pictureUrl" value="${picUrl?if_exists}"/> + </td> + </tr> + <#--tr> + <td class="label">Description</td> + <input type="text" rows="3" cols="50" rows="4" name="description" size="50" value=""/> + <td><textarea name="description" style="height:88px;width:350px;"><#if item.getDescription()?exists>Description of item<#else>${item.getDescription()?if_exists}</#if></textarea></td> + </tr--> + <tr> + <td class="label">${uiLabelMap.CommonCountry}</td> + <td><input type="text" readOnly name="country" size="20" value="${item.getCountry().value()?if_exists}"/></td> + </tr> + <tr> + <td class="label">${uiLabelMap.FormFieldTitle_location}</td> + <td><input type="text" name="location" size="50" maxlength="50" value="${item.getLocation()?if_exists}" /></td> + </tr> + <tr> + <td class="label"><b>Enable auto-relist item</b></td> + <td><input type="checkbox" name="isAutoRelist" value="Y" <#if isAutoRelist == "Y">checked="checked"</#if>/></td> + </tr> + <tr> + <td class="label"></td> + <td><br /></td> + </tr> + </table> + </td> + <td width="40%" valign="top"> + <table width="100%" height="100%" id="table2" cellspacing="0"> + <tr> + <td> + <img src="<@ofbizContentUrl>${contentPathPrefix?if_exists}${smallImageUrl}</@ofbizContentUrl>" alt="Small Image"/><br /> + ${uiLabelMap.ProductProductId} : ${item.getSKU()?if_exists}<br /> + ${uiLabelMap.ProductProductName} : ${item.getTitle()?if_exists}<br /> + ${uiLabelMap.CommonDescription} : ${item.getDescription()?if_exists} + </td> + </tr> + </table> + </td> + </tr> + </table> + </div> + </div> + <!-- item specifices section --> + <#if primaryCate?has_content && primaryCate.getCategoryID()?exists && listingTypes?has_content> + <div class="screenlet"> + <div class="screenlet-title-bar"><ul><li class="h3">Item specifices</li></ul><br class="clear"/></div> + <div class="screenlet-body"> + + </div> + </div> + </#if> + <!-- Setup ad templates section --> + <#if primaryCate?has_content && primaryCate.getCategoryID()?exists && listingTypes?has_content> + <div class="screenlet"> + <div class="screenlet-title-bar"><ul><li class="h3">Details</li></ul><br class="clear"/></div> + <div class="screenlet-body"> + <table width="100%" height="100%" cellspacing="0"> + <tr> + <td width="60%" valign="top"> + <table cellspacing="0"> + <tr><td> + <script language="javascript" src="/images/htmledit/whizzywig.js" type="text/javascript"></script> + <script language="javascript" type="text/javascript"> buttonPath = "/images/htmledit/"; cssFile="/images/htmledit/simple.css";</script> + <textarea id="description" name="description" style="width:800px; height:300px"> + <#if item.getDescription()?exists>description<#else>${item.getDescription()?if_exists}</#if> + </textarea> + <script type="text/javascript"> + makeWhizzyWig("description", "all"); + </script> + </td></tr> + </table> + </td> + <td width="30%" valign="top"> + <table align="left" width="60%" height="100%" cellspacing="0"> + <tr> + <td></td> + <td><input type="checkbox" value="Y" onClick="javascript:enabledItemTemplate(this.value);" id="enabledTheme" name="enabledTheme"><b>Add a theme</b></checkbox></td> + </tr> + <tr> + <td class="label">Select Theme</td> + <td> + <#if adItemTemplates?has_content> + <select id="themeGroup" disabled onChange="javascript:retrieveTemplateByTemGroupId(this.value,'${productStoreId?if_exists}','${primaryCate.getCategoryID()?if_exists}');" name="themeGroup"> + <#list adItemTemplates as adItemTemplate> + <option value="${adItemTemplate.TemplateGroupId?if_exists}">${adItemTemplate.TemplateGroupName?if_exists}</option> + </#list> + </select> + </#if> + </td> + </tr> + <tr> + <td class="label">Select Design</td> + <td> + <#if adItemTemplates?has_content> + <select id="theme" disabled onChange="javascript:previewPic(this.value);" name="theme"> + <option value="">-</option> + </select> + </#if> + </td> + </tr> + <tr> + <td></td> + <td valign="top"> + <script type="text/javascript"> + function popUpImg(){ + //popUp($('themeImg').src, 'themeImgBig', '400', '550'); + } + </script> + <a id="themeImgUrl" href="javascript:popUpImg();"><img hspace="5" height="120" border="0" align="top" width="100" id="themeImg" name="themeImg" src="http://pics.ebay.com/aw/pics/vit/None2_sample_100x120.gif"/></a> + <br /><div style="height:120px"></div> + </td> + </tr> + </table> + </td> + </tr> + </table> + </div> + </div> + </#if> + <!-- product Price Type --> + <#if primaryCate?has_content && primaryCate.getCategoryID()?exists && listingTypes?has_content> + <div class="screenlet"> + <div class="screenlet-title-bar"><ul><li class="h3">Listing Type</li></ul><br class="clear"/></div> + <div class="screenlet-body"> + <br class="clear"/> + <!-- set listing type, duration, prices --> + <div id="tabs"> + <ul> + <#assign id = 1> + <#assign tabName = ""> + <#list listingTypes as listingType> + <#-- default with aution and fixed price --> + <#if listingType.type?if_exists.equals("Chinese") || listingType.type?if_exists == "FixedPriceItem"> + <#if listingType.type?if_exists.equals("Chinese") > <#assign tabName = "Auction"></#if> + <#if listingType.type?if_exists.equals("FixedPriceItem") > <#assign tabName = "Fixed Price"></#if> + <li <#if id==1 > style="margin-left: 1px" id="tabHeaderActive_"<#else> id="tabHeader_${id}" </#if>><a href="javascript:void(0)" onClick="toggleTab(${id},2)"><span>${tabName?if_exists}</span></a></li> + <#assign id = id + 1> + </#if> + </#list> + </ul> + </div> + <div id="tabscontent"> + <#assign id = 1> + <#list listingTypes as listingType> + <#if listingType.type?if_exists.equals("Chinese") || listingType.type?if_exists == "FixedPriceItem"> + <#if listingType.type?if_exists.equals("Chinese") > <#assign tabName = "Auction"></#if> + <#if listingType.type?if_exists.equals("FixedPriceItem") ><#assign tabName = "Fixed Price"></#if> + <div id="tabContent${id}" class="tabContent" <#if id != 1>style="display:none;"</#if>> + <br /> + <table width="50%" height="100%" id="table2" cellspacing="0"> + <tr> + <td class="label"></td> + <td> + <#if listingType.type?if_exists.equals("Chinese")> + <input type="radio" name="listype" value="auction"/><b>${tabName?if_exists}</b> + <#--<input type="checkbox" value="Y" name="enabledAuction_${id}"><b>${tabName?if_exists}</b></checkbox--> + <#elseif listingType.type?if_exists == "FixedPriceItem"> + <input type="radio" name="listype" value="fixedprice"/><b>${tabName?if_exists}</b> + <#--input type="checkbox" value="Y" name="enabledFixedPrice_${id}"><b>${tabName?if_exists}</b></checkbox--> + </#if> + </td> + <td class="label">Duration</td> + <td> + <#assign durations = listingType.durations?if_exists> + <#if durations?has_content> + <select name="duration_${id}"> + <#list durations as duration> + <#if duration.indexOf("_")!= -1> + <#assign dura = duration.substring(duration.indexOf("_")+1)> + <#elseif duration == "GTC"> + <#assign dura = "Good 'Til Cancelled"> + </#if> + <option value="${duration?if_exists}">${dura?if_exists} ${uiLabelMap.CommonDays}</option> + </#list> + </select> + </#if> + </td> + </tr> + <tr> + <td class="label">${uiLabelMap.CommonQuantity}</td> + <td> + <#if listingType.type?if_exists.equals("FixedPriceItem") > + <input type="text" size="3" value="1" name="quantity_${id}" size="12" maxlength="3"/> + <#else> + <input type="text" size="3" value="1" disabled name="quantity_${id}" size="12" maxlength="3"/> + </#if> + </td> + <td class="label">Lot Size</td> + <td><input type="text" size="10" name="lotsize_${id}" /></td> + </tr> + <#if productPrices?has_content> + <#list productPrices as productPrice> + <#assign currencyUomId = productPrice.currencyUomId?if_exists> + <#if productPrice.productPriceTypeId == "MINIMUM_PRICE"> + <#assign min = productPrice.price?if_exists> + <#elseif productPrice.productPriceTypeId == "MAXIMUM_PRICE"> + <#assign max = productPrice.price?if_exists> + </#if> + </#list> + </#if> + <tr> + <input type="hidden" name="currencyId_${id}" value="${currencyUomId?if_exists}"/> + <#if listingType.type?if_exists.equals("FixedPriceItem") > + <td class="label">Start Price</td> + <td><input type="text" size="6" name="startPrice_${id}" value="${min?if_exists}" />${currencyUomId?if_exists}</td> + <td class="label"></td> + <td></td> + <#else> + <td class="label">Start Price</td> + <td><input type="text" size="6" name="startPrice_${id}" value="${min?if_exists}" />${currencyUomId?if_exists}</td> + <td class="label">BIN Price</td> + <td><input type="text" size="6" name="buyItNowPrice_${id}" value="${max?if_exists}" <#if listingType.type?if_exists.equals("FixedPriceItem") >disabled</#if> />${currencyUomId?if_exists}</td> + </#if> + </tr> + <#if !listingType.type?if_exists.equals("FixedPriceItem") > + <tr> + <td class="label">Reserve Price</td> + <td><input type="text" size="6" name="reservePrice_${id}" <#if listingType.type?if_exists.equals("FixedPriceItem") >disabled</#if> />${currencyUomId?if_exists}</td> + <td class="label"></td> + <td></td> + </tr> + </#if> + <tr> + <td class="label">VATPercent</td> + <td><input type="text" size="6" name="vatPercent_${id}" /></td> + <td class="label">Postal code</td> + <td><input type="text" size="10" name="postalCode_${id}" /></td> + </tr> + <#if listingType.type?if_exists.equals("FixedPriceItem") > + <tr> + <td class="label"></td><!-- use when fixed price and store fixed price --> + <td><input type="checkbox" value="true" name="enableBestOffer_${id}" /><b>Enable Best Offer</b></td> + <td class="label"></td> + <td><br /></td> + </tr> + </#if> + <tr><td colspan="4"><br /></td></tr> + </table> + </div> + <#assign id = id + 1> + </#if> + + </#list> + </div> + <!-- end of set listing type, duration, prices --> + </div> + </div> + </#if> + <!-- payment section --> + <#if primaryCate?has_content && primaryCate.getCategoryID()?exists && listingTypes?has_content> + <div class="screenlet"> + <div class="screenlet-title-bar"><ul><li class="h3">Payment</li></ul><br class="clear"/></div> + <div class="screenlet-body"> + <table width="50%" height="100%" id="table2" cellspacing="0"> + <tr><td colspan="4"><br /></td></tr> + <tr> + <td colspan="4"> + <b><u>${uiLabelMap.FormFieldTitle_paymentMethodsAccepted}</u></b> + </td> + </tr> + <tr><td colspan="4"><br /></td></tr> + <tr> + <td colspan="4"> + <#assign is_payPal = false> + <#if paymentMethods?has_content> + <table> + <#assign j = 0> + <#list paymentMethods as paymentMethod> + <#if paymentMethod.value() != null> + <#if j == 0><tr></#if> + <#if paymentMethod.compareTo(buyerPayMethCode_PAY_PAL?if_exists) == 0 > + <#assign is_payPal = true> + </#if> + <td valign="top"><input type="checkbox" value="true" name="Payments_${paymentMethod.value()?if_exists}"></td> + <td align="left"><b>${paymentMethod.value()?if_exists}</b></td> + <#if j == 3> + </tr> + <#assign j = 0> + <#else> + <#assign j = j+1> + </#if> + </#if> + </#list> + </table> + <#--assign i = 0> + <#list paymentMethods as paymentMethod> + <input type="checkbox" value="${paymentMethod.name()?if_exists}" name="${paymentMethod.name()?if_exists}_${id}">${paymentMethod.value()?if_exists}</checkbox><span style="width:40px"/><#if i==3><br /><#assign i = -1></#if> + <#assign i=i+1> + </#list--> + </#if> + </td> + </tr> + <#if is_payPal == true> + <tr> + <td class="label">${uiLabelMap.FormFieldTitle_payPalEmail}</td> + <td><input type="text" name="paymentMethodPaypalEmail" id="paymentMethodPaypalEmail" size="50" maxlength="50" value="[hidden email]" /></td> + <td class="label"></td> + <td><br /></td> + </tr> + </#if> + <tr><td colspan="4"><br /></td></tr> + </table> + </div> + </div> + </#if> + <#if primaryCate?has_content && primaryCate.getCategoryID()?exists && listingTypes?has_content> + <div class="screenlet"> + <div class="screenlet-title-bar"><ul><li class="h3">Shipping Service</li></ul><br class="clear"/></div> + <div class="screenlet-body"> + <table cellSpacing="0" cellPadding="0" width="100%" border="0"> + <tr> + <td></td> + <td width="100%"><b>Demestic Shipping Service</b></td> + <td><img height="1" src="http://pics.ebaystatic.com/aw/pics/tbx/s.gif" width="10"></td> + </tr> + <tr> + <td></td> + <td width="100%"> + <select name="ShippingService" id="ShippingService" style="width:107px;"> + <#--for eBayMotors site, we add a 'None' Shipping Service--> + <#if siteCode?has_content && siteCode_Ebay_Motors?has_content> + <#if siteCode == siteCode_Ebay_Motors> + <option value="None">None</option> + </#if> + </#if> + <#if shippingServiceDetails?has_content> + <#list shippingServiceDetails as shippingServiceDetail> + <#assign shippingService = shippingServiceDetail.getShippingService()?if_exists> + <option value="${shippingService?if_exists}">${shippingService?if_exists}</option> + </#list> + </#if> + </select> + </td> + <td><img height="1" src="http://pics.ebaystatic.com/aw/pics/tbx/s.gif" width="10"></td> + </tr> + </table> + <table cellSpacing="0" cellPadding="0" width="100%" border="0"> + <tr> + <td style="WIDTH: 150px"><b>Ships to locations:</b></td> + </tr> + <tr> + <td> + <#if shippingLocationDetails?has_content> + <table> + <#assign j=0> + <#list shippingLocationDetails as shippingLocationDetail> + <#assign shippingLocation = shippingLocationDetail.getShippingLocation()?if_exists> + <#if j==0><tr></#if> + <td vAlign="top"><input type="checkbox" value="true" name="Shipping_${shippingLocation?if_exists}"></td> + <td align="left"><b>${shippingLocationDetail.getDescription()?if_exists}</b></td> + <#if j==3></tr><#assign j=0><#else><#assign j=j+1></#if> + </#list> + </table> + </#if> + </td> + </tr> + </table> + </div> + </div> </#if> - </select> - </td> - </tr> - <tr> - <td align="right" class="label">${uiLabelMap.FormFieldTitle_location}</td> - <td> </td> - <td> - <input type="text" name="location" size="50" maxlength="50" value="${parameters.location?if_exists}" /> - </td> - </tr> - <tr> - <td align="right" class="label">${uiLabelMap.FormFieldTitle_webSiteUrl}</td> - <td> </td> - <td> - <input type="text" name="webSiteUrl" size="100" value="${webSiteUrl?if_exists}"/> - </td> - </tr> - <tr> - <td align="center" colspan="3"><b><u>${uiLabelMap.FormFieldTitle_paymentMethodsAccepted}</u></b></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?exists>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?exists>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?exists>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?exists>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?exists>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?exists>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?exists>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?exists>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?exists>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?exists>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?exists>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?exists>checked</#if> /></td> - </tr> - </table> - </td> - </tr> - <tr> - <td align="right" class="label">${uiLabelMap.FormFieldTitle_payPalEmail}</td> - <td> </td> - <td> - <input type="text" name="payPalEmail" size="50" maxlength="50" value="${parameters.payPalEmail?if_exists}" /> - </td> - </tr> - <tr> - <td align="right" class="label">${uiLabelMap.FormFieldTitle_customXml}</td> - <td> </td> - <td> - <textarea cols="60" rows="6" wrap="soft" name="customXml"> ${(ebayConfig.customXml)?if_exists} </textarea> - </td> - </tr> - <#assign rowCount = 0 /> - <#list productIds as productId> - <tr> - <td colspan="3"> - <hr/> - <b>${productId}</b> - <input type="hidden" name="productId_o_${rowCount}" value="${productId}"/> - <table class="basic-table" cellspacing="0" width="50%"> - <tr> - <td colspan="2"> - <input type="checkbox" name="requireEbayInventory_o_${rowCount}" value="on"/> - </td> - <td colspan="2">${uiLabelMap.requireEbayInventory}</td> - </tr> - <tr> - <td> - <input type="checkbox" name="listingTypeAuc_o_${rowCount}" value="on"/> - </td> - <td>${uiLabelMap.eBayOnlineAuction}</td> - <td>${uiLabelMap.FormFieldTitle_listingDuration}</td> - <td> - <select name="listingDurationAuc_o_${rowCount}"> - <option value="Days_1">1 ${uiLabelMap.CommonDay}</option> - <option value="Days_3">3 ${uiLabelMap.CommonDays}</option> - <option value="Days_5">5 ${uiLabelMap.CommonDays}</option> - <option value="Days_7">7 ${uiLabelMap.CommonDays}</option> - <option value="Days_10">10 ${uiLabelMap.CommonDays}</option> - </select> - </td> - </tr> - <tr> - <td> - <input type="checkbox" name="listingTypeFixed_o_${rowCount}" value="on"/> - </td> - <td>${uiLabelMap.eBayFixedPrice}</td> - <td>${uiLabelMap.FormFieldTitle_listingDuration}</td> - <td> - <select name="listingDurationFixed_o_${rowCount}"> - <option value="Days_3">3 ${uiLabelMap.CommonDays}</option> - <option value="Days_5">5 ${uiLabelMap.CommonDays}</option> - <option value="Days_7">7 ${uiLabelMap.CommonDays}</option> - <option value="Days_10">10 ${uiLabelMap.CommonDays}</option> - <option value="Days_30">30 ${uiLabelMap.CommonDays}</option> - <option value="2147483647">Good 'Til Cancelled</option> - </select> - </td> - </tr> - <tr> - <td colspan="2">${uiLabelMap.CommonQuantity}</td> - <td colspan="2"> - <input type="text" name="quantity_o_${rowCount}" size="12" maxlength="12" value="<#if parameters.quantity?exists>${parameters.quantity?if_exists}<#else>1</#if>" /> - </td> - </tr> - </table> - </td> - </tr> - <#assign rowCount=rowCount + 1/> + <!-- end shipping section --> + </#if> </#list> - <tr> - <td colspan=2> </td> - <td> - <input type="submit" value="${uiLabelMap.EbayExportToEbay}" name="submitButton" class="smallSubmit"> - </td> - </tr> - </table> </#if> - </form> + </#if> + </td></tr> + </table> + <#--if addItemList?has_content> + <table cellspacing="0" class="basic-table"> + <tr> + <td align="center" colspan="2"> + <a href="#" class="buttontext">${uiLabelMap.EbayExportToEbay}</a> + <a href="#" class="buttontext">VeriflyItem</a> + + </#if--> +</form> +</div> </div> \ No newline at end of file Modified: ofbiz/branches/multitenant20100310/specialpurpose/ebaystore/widget/EbayAccountForms.xml URL: http://svn.apache.org/viewvc/ofbiz/branches/multitenant20100310/specialpurpose/ebaystore/widget/EbayAccountForms.xml?rev=926987&r1=926986&r2=926987&view=diff ============================================================================== --- ofbiz/branches/multitenant20100310/specialpurpose/ebaystore/widget/EbayAccountForms.xml (original) +++ ofbiz/branches/multitenant20100310/specialpurpose/ebaystore/widget/EbayAccountForms.xml Wed Mar 24 09:23:07 2010 @@ -20,7 +20,7 @@ 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="NewEbayAccount" type="single" target="createEbayAccount"> + <form name="NewEbayAccount" type="single" target="createEbayAccount"> <auto-fields-service service-name="createEbayAccount"/> <field name="statusId"><hidden value="PARTY_ENABLED"/></field> <field name="gender"> Modified: ofbiz/branches/multitenant20100310/specialpurpose/ebaystore/widget/EbaySellingManagerForms.xml URL: http://svn.apache.org/viewvc/ofbiz/branches/multitenant20100310/specialpurpose/ebaystore/widget/EbaySellingManagerForms.xml?rev=926987&r1=926986&r2=926987&view=diff ============================================================================== --- ofbiz/branches/multitenant20100310/specialpurpose/ebaystore/widget/EbaySellingManagerForms.xml (original) +++ ofbiz/branches/multitenant20100310/specialpurpose/ebaystore/widget/EbaySellingManagerForms.xml Wed Mar 24 09:23:07 2010 @@ -26,9 +26,7 @@ value="${bsh:billingAccount != null ? or <form name="EditAutomationRelistSoldItems" target="createEbayProductStorePref" type="single" default-map-name="ebayPrefRelisting" > <alt-target use-when="ebayPrefRelisting!=null" target="updateEbayProductStorePref"/> <field name="productStoreId"><hidden value="${parameters.productStoreId}"/></field> - <field name="enabled" tooltip="${uiLabelMap.EbayAutoRelisting}" tooltip-style="h3"><check/></field> - <field name="condition1" title="${uiLabelMap.CommonFromDate}"><date-time/></field> - <field name="condition2" title="${uiLabelMap.CommonThruDate}"><date-time/></field> + <field name="enabled" title ="${uiLabelMap.EbayAutoRelistingItems}" tooltip="${uiLabelMap.EbayAutoRelistingItemsDescription}"><check/></field> <field name="serviceName"><hidden value="${serviceName}"/></field> <field name="autoPrefEnumId"><hidden value="${autoPrefEnumId}"/></field> <field name="submit" title="${uiLabelMap.CommonApply}"><submit/></field> @@ -78,12 +76,12 @@ value="${bsh:billingAccount != null ? or <script location="component://ebaystore/webapp/ebaystore/WEB-INF/actions/store/SoldAction.groovy"/> </row-actions> <field name="productStoreId"><hidden value="${parameters.productStoreId}"/></field> - <field name="itemId"><display description="${itemId} - ${title}"/></field> + <field name="itemId"><display description="${itemId}"/></field> + <field name="title"><display description="${title}"/></field> <field name="buyer"><display description="${buyer}"/></field> <field name="listingType"><display description="${listingType}"/></field> <field name="quantity"><display description="${quantity}"/></field> <field name="transactionId"><display description="${transactionId}"/></field> - <field name="salePrice"><display description="${salePrice}"/></field> <field name="totalAmount"><display description="${totalAmount}"/></field> <field name="creationTime"><display description="${creationTime}" type="date"/></field> <field name="paidTime"><display description="${paidTime}" type="date"/></field> @@ -467,4 +465,92 @@ value="${bsh:billingAccount != null ? or <field name="isRunBlockItem" position="1" title="Enable to automatic block item that out of stock"><check></check></field> <field name="submitButton" title="${uiLabelMap.CommonSave}"><submit button-type="button"/></field> </form> + <!-- Active Listing --> + <form name="ActiveItemList" type="list" target="doAction" list-name="activeItemList" + odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar" use-row-submit="true" separate-columns="true"> + <field name="itemId"><display/></field> + <field name="SKU"><display/></field> + <field name="title"> + <hyperlink target="${viewItemURL}" description="${title}" target-type="plain" target-window="_BLANK"/> + </field> + <field name="buyItNowPrice"><display/></field> + <field name="reservePrice"><display/></field> + <field name="bidCount"><display/></field> + <field name="hitCount"><display/></field> + <field name="startTime"><display/></field> + <field name="quantity"><display/></field> + <field name="listingType"><display/></field> + </form> + <!-- Unsold Listing --> + <form name="UnsoldItemList" type="list" target="doAction" list-name="unsoldItemList" + odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar" use-row-submit="true" separate-columns="true"> + <field name="productStoreId"><hidden value="${parameters.productStoreId}"/></field> + <field name="itemId"><display/></field> + <field name="title"><display/></field> + <field name="quantity"><display/></field> + <field name="price"><display/></field> + <field name="startTime"><display/></field> + <field name="endTime"><display/></field> + <field name="quantity"><display/></field> + <field name="listingType"><display/></field> + </form> + <!-- item list options --> + <form name="ItemOption" type="single" target="${target}"> + <field name="productStoreId"><hidden value="${parameters.productStoreId}"/></field> + <field name="listingType" action="document.ItemOption.submit()" event="onchange"> + <drop-down> + <option key="" description="All"/> + <option key="AUCTION" description="Auction Only"/> + <option key="FIXED_PRICE_ITEM" description="Fixed Price Item Only"/> + <option key="STORES_FIXED_PRICE" description="Stores Inventory Only"/> + </drop-down> + </field> + <field name="submitButton"><submit/></field> + </form> + <form name="WaitingToShippingOption" type="single" target="${target}"> + <field name="productStoreId"><hidden value="${parameters.productStoreId}"/></field> + <field name="itemId"><text/></field> + <field name="buyerId"><text/></field> + <field name="submitButton" title="${uiLabelMap.CommonSearch}"><submit/></field> + </form> + <form name="findOrdersImported" type="single" target="searchOrdersImported"> + <actions> + <entity-and entity-name="ProductStoreRole" list="storeList"> + <field-map field-name="productStoreId" from-field="parameters.productStoreId"/> + <field-map field-name="roleTypeId" value="EBAY_ACCOUNT"/> + </entity-and> + <set field="partyId" value="${bsh: + import org.ofbiz.entity.util.EntityUtil; + GenericValue partyStore = EntityUtil.getFirst(storeList); + if(partyStore!=null) partyId = partyStore.getString("partyId"); + return partyId; + }"/> + </actions> + <field name="productStoreId"><hidden value="10000"/></field> + <field name="viewSize"><hidden value="20"/></field> + <field name="viewIndex"><hidden value="1"/></field> + <!--field name="partyId"><hidden value="${partyId}"/></field--> + <field name="salesChannelEnumId"><hidden value="EBAY_SALES_CHANNEL"/></field> + <field name="countryGeoId"><hidden value="USA"/></field> + <field name="includeCountry"><hidden value="N"/></field> + <field name="orderId" title="Order Id"><text size="25"></text></field> + <field name="productId" title="Product Id"><text size="25"></text></field> + <field name="orderTypeId" title="Order Type"> + <drop-down> + <option key="" description="Any Order Type"/> + <option key="PURCHASE_ORDER" description="Purchase Order"/> + <option key="SALES_ORDER" description="Sales Order"/> + </drop-down> + </field> + <field name="statusId" title="Status"> + <drop-down> + <option key="" description="All Status"/> + <entity-options entity-name="StatusItem" description="${description}"> + <entity-constraint name="statusTypeId" operator="equals" value="ORDER_STATUS"/> + <entity-order-by field-name="sequenceId"/> + </entity-options> + </drop-down> + </field> + <field name="submitButton" title="${uiLabelMap.CommonFind}"><submit/></field> + </form> </forms> \ No newline at end of file Modified: ofbiz/branches/multitenant20100310/specialpurpose/ebaystore/widget/EbaySellingManagerScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/branches/multitenant20100310/specialpurpose/ebaystore/widget/EbaySellingManagerScreens.xml?rev=926987&r1=926986&r2=926987&view=diff ============================================================================== --- ofbiz/branches/multitenant20100310/specialpurpose/ebaystore/widget/EbaySellingManagerScreens.xml (original) +++ ofbiz/branches/multitenant20100310/specialpurpose/ebaystore/widget/EbaySellingManagerScreens.xml Wed Mar 24 09:23:07 2010 @@ -279,7 +279,7 @@ <actions> <set field="headerItem" value="ebayStore"/> <set field="autoPrefEnumId" value="EBAY_AUTO_RELISTING"/> - <set field="serviceName" value="automaticEbayRelistSoldItems"/> + <set field="serviceName" value="autoRelistingItems"/> <entity-one value-field="ebayPrefRelisting" entity-name="EbayProductStorePref"> <field-map field-name="productStoreId" from-field="parameters.productStoreId"/> <field-map field-name="autoPrefEnumId" from-field="autoPrefEnumId"/> @@ -343,17 +343,16 @@ <actions> <service service-name="getEbaySoldItems" result-map="result"> <field-map field-name="productStoreId" from-field="parameters.productStoreId"/> - <field-map field-name="status" from-field="parameters.status"/> - <field-map field-name="period" from-field="parameters.period"/> </service> <set field="soldItemList" from-field="result.soldItems"/> + <set field="target" value="soldListing"/> </actions> <widgets> <decorator-screen name="EbaySoldListing"> <decorator-section name="body"> - <screenlet title="Sold Listing"> - <include-form location="component://ebaystore/widget/EbaySellingManagerForms.xml" name="SoldItemList"/> - </screenlet> + <screenlet title="Sold Listing"> + <include-form location="component://ebaystore/widget/EbaySellingManagerForms.xml" name="SoldItemList"/> + </screenlet> </decorator-section> </decorator-screen> </widgets> @@ -434,4 +433,126 @@ </widgets> </section> </screen> + <screen name="EbayActiveListing"> + <section> + <actions> + <set field="sellingManagerItem" value="activeListing"/> + </actions> + <widgets> + <decorator-screen name="SellingManagerDecorator" location="${parameters.mainDecoratorLocation}"> + <decorator-section name="body"> + <decorator-section-include name="body"/> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + <screen name="ActiveListing"> + <section> + <actions> + <service service-name="getMyeBaySelling" result-map="result"> + <field-map field-name="productStoreId" from-field="parameters.productStoreId"/> + <field-map field-name="listingType" from-field="requestParameters.listingType"/> + </service> + <set field="activeItemList" from-field="result.activeItems"/> + <set field="target" value="activeListing"/> + </actions> + <widgets> + <decorator-screen name="EbayActiveListing"> + <decorator-section name="body"> + <screenlet title="${uiLabelMap.EbayOpenListings}"> + <include-form location="component://ebaystore/widget/EbaySellingManagerForms.xml" name="ItemOption"/> + <include-form location="component://ebaystore/widget/EbaySellingManagerForms.xml" name="ActiveItemList"/> + </screenlet> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + <screen name="EbayUnsoldListing"> + <section> + <actions> + <set field="sellingManagerItem" value="unsoldListing"/> + </actions> + <widgets> + <decorator-screen name="SellingManagerDecorator" location="${parameters.mainDecoratorLocation}"> + <decorator-section name="body"> + <decorator-section-include name="body"/> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + <screen name="UnsoldListing"> + <section> + <actions> + <service service-name="getMyeBaySelling" result-map="result"> + <field-map field-name="productStoreId" from-field="parameters.productStoreId"/> + <field-map field-name="listingType" from-field="parameters.listingType"/> + </service> + <set field="unsoldItemList" from-field="result.unsoldItems"/> + <set field="target" value="unsoldListing"/> + </actions> + <widgets> + <decorator-screen name="EbayUnsoldListing"> + <decorator-section name="body"> + <screenlet title="Unsold Listing"> + <include-form location="component://ebaystore/widget/EbaySellingManagerForms.xml" name="ItemOption"/> + <include-form location="component://ebaystore/widget/EbaySellingManagerForms.xml" name="UnsoldItemList"/> + </screenlet> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + <screen name="WaitingToShipping"> + <section> + <actions> + <set field="sellingManagerItem" value="waitingToShipping"/> + <service service-name="getEbaySoldItems" result-map="result"> + <field-map field-name="productStoreId" from-field="parameters.productStoreId"/> + <field-map field-name="filter" value="PAID_NOT_SHIPPED"/> + <field-map field-name="itemId" from-field="parameters.itemId"/> + <field-map field-name="buyerId" from-field="parameters.buyerId"/> + </service> + <set field="soldItemList" from-field="result.soldItems"/> + <set field="target" value="waitingToShipping"/> + </actions> + <widgets> + <decorator-screen name="SellingManagerDecorator" location="${parameters.mainDecoratorLocation}"> + <decorator-section name="body"> + <screenlet title="uiLabelMap.EbayWaitingToShipping"> + <include-form location="component://ebaystore/widget/EbaySellingManagerForms.xml" name="WaitingToShippingOption"/> + <include-form location="component://ebaystore/widget/EbaySellingManagerForms.xml" name="SoldItemList"/> + </screenlet> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + <screen name="ordersImported"> + <section> + <actions> + <set field="headerItem" value="ebayStore"/> + <set field="sellingManagerItem" value="ordersImported"/> + <script location="component://order/webapp/ordermgr/WEB-INF/actions/order/FindOrders.groovy"/> + <set field="orderList" value="${orderList}" type="List"/> + <set field="productStoreId" from-field="parameters.productStoreId"/> + </actions> + <widgets> + <decorator-screen name="SellingManagerDecorator" location="${parameters.mainDecoratorLocation}"> + <decorator-section name="body"> + <screenlet title="Find Orders Imported"> + <include-form name="findOrdersImported" location="component://ebaystore/widget/EbaySellingManagerForms.xml"/> + </screenlet> + <platform-specific> + <html> + <html-template location="component://ebaystore/webapp/ebaystore/store/orderImported.ftl"/> + </html> + </platform-specific> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> </screens> \ No newline at end of file Modified: ofbiz/branches/multitenant20100310/specialpurpose/ebaystore/widget/EbayStoreMenus.xml URL: http://svn.apache.org/viewvc/ofbiz/branches/multitenant20100310/specialpurpose/ebaystore/widget/EbayStoreMenus.xml?rev=926987&r1=926986&r2=926987&view=diff ============================================================================== --- ofbiz/branches/multitenant20100310/specialpurpose/ebaystore/widget/EbayStoreMenus.xml (original) +++ ofbiz/branches/multitenant20100310/specialpurpose/ebaystore/widget/EbayStoreMenus.xml Wed Mar 24 09:23:07 2010 @@ -43,11 +43,6 @@ <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="exportProductListing" title="Export Product Listing"> <link target="exportProductListing"> <parameter param-name="productStoreId" value="${parameters.productStoreId}"/> @@ -66,16 +61,36 @@ <parameter param-name="productStoreId" value="${parameters.productStoreId}"/> </link> </menu-item> + <menu-item name="activeListing" title="${uiLabelMap.EbayOpenListings}"> + <link target="activeListing"> + <parameter param-name="productStoreId" value="${parameters.productStoreId}"/> + </link> + </menu-item> <menu-item name="soldListing" title="${uiLabelMap.EbaySold}"> <link target="soldListing"> <parameter param-name="productStoreId" value="${parameters.productStoreId}"/> </link> </menu-item> + <menu-item name="unsoldListing" title="${uiLabelMap.EbayUnsold}"> + <link target="unsoldListing"> + <parameter param-name="productStoreId" value="${parameters.productStoreId}"/> + </link> + </menu-item> + <menu-item name="waitingToShipping" title="${uiLabelMap.EbayWaitingToShipping}"> + <link target="waitingToShipping"> + <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-item name="ordersImported" title="Orders Imported"> + <link target="ordersImported"> + <parameter param-name="productStoreId" value="${parameters.productStoreId}"/> + </link> + </menu-item> </menu> <menu name="EbayAccountTabBar" selected-menuitem-context-field-name="accountItem" type="simple" default-selected-style="selected" menu-container-style="button-bar button-style-2"> Modified: ofbiz/branches/multitenant20100310/specialpurpose/ebaystore/widget/EbayStoreScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/branches/multitenant20100310/specialpurpose/ebaystore/widget/EbayStoreScreens.xml?rev=926987&r1=926986&r2=926987&view=diff ============================================================================== --- ofbiz/branches/multitenant20100310/specialpurpose/ebaystore/widget/EbayStoreScreens.xml (original) +++ ofbiz/branches/multitenant20100310/specialpurpose/ebaystore/widget/EbayStoreScreens.xml Wed Mar 24 09:23:07 2010 @@ -185,29 +185,54 @@ under the License. </widgets> </section> </screen> - <screen name="productsearchexport"> + <screen name="productSearchResults"> <section> <actions> <set field="titleProperty" value="PageTitleSearchResults"/> <set field="headerItem" value="ebayStore"/> <set field="tabButtonItem" value="exportProductListing"/> - <entity-condition entity-name="Geo" list="countries"> + <set field="toEbayStore" default-value="Y"/> + <set field="productStoreId" from-field="parameters.productStoreId"/> + <script location="component://product/webapp/catalog/WEB-INF/actions/find/keywordsearch.groovy"/> + </actions> + <widgets> + <decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}"> + <decorator-section name="body"> + <platform-specific> + <html><html-template location="component://ebay/webapp/ebay/find/EbayKeywordSearch.ftl"/></html> + </platform-specific> + <platform-specific> + <html><html-template location="component://ebay/webapp/ebay/find/ebayExportLink.ftl"/></html> + </platform-specific> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + <screen name="prepareProductListing"> + <section> + <actions> + <set field="titleProperty" value="PageTitleSearchResults"/> + <set field="headerItem" value="ebayStore"/> + <set field="tabButtonItem" value="exportProductListing"/> + <!--set field="layoutSettings.javaScripts[+0]" value="/ebaystore/js/itemSpecifics.js" global="true"/--> + <!--entity-condition entity-name="Geo" list="countries"> <condition-expr field-name="geoTypeId" value="COUNTRY"/> <order-by field-name="geoName"/> - </entity-condition> + </entity-condition--> <set field="productStoreId" from-field="parameters.productStoreId"/> + <set field="search_CategoryId" type="String" from-field="parameters.SEARCH_CATEGORY_ID"/> <entity-one entity-name="EbayConfig" value-field="ebayConfig"> <field-map field-name="productStoreId" from-field="parameters.productStoreId"/> </entity-one> - <script location="component://product/webapp/catalog/WEB-INF/actions/find/keywordsearch.groovy"/> - <script location="component://ebay/webapp/ebay/WEB-INF/actions/find/ProductsExportToEbay.groovy"/> + <script location="component://ebaystore/webapp/ebaystore/WEB-INF/actions/store/PrepareProductListing.groovy"/> </actions> <widgets> <decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}"> <decorator-section name="body"> - <platform-specific> + <platform-specific> <html><html-template location="component://ebaystore/webapp/ebaystore/store/productsearchExport.ftl"/></html> - </platform-specific> + </platform-specific> </decorator-section> </decorator-screen> </widgets> |
Free forum by Nabble | Edit this page |