$custom_buttons['<input type="button" class="popup-link" value="Add to BV.DE Catalog" title="Open Popup to select which products to add to BV.DE Catalog" />'] = '?open=products-add-to-zade&jng_sp_id=7&hidemenu=true&hidecopyurl=true|view_webpage_full'; //$custom_buttons['<input type="button" id="btn-setpromoname" value="Set AM.DE Promotion Name" title="Enter a new AM.VD Promotion Name for All Filtered Products" />'] = ''; $custom_buttons['<input type="hidden" id="spacer-3-1" />'] = ''; //$custom_buttons['<input type="hidden" id="spacer-3-2" />'] = ''; } //COL 4 $custom_buttons['<input type="button" class="popup-link" value="Depot Refill Overview" title="Open depot refill overview pre-filtered with search result" />'] = '?open=depot-refill-overview&hidemenu=true&hidecopyurl=true|view_webpage_full'; $custom_buttons['<input type="button" class="popup-link" value="View Depot Stock Overview" title="View depot stock" />'] = '?open=products-stock-table&hidemenu=true&hidecopyurl=true|view_webpage_full'; $custom_buttons['<input type="button" class="popup-link" value="View Sold Analysis" title="View sold analysis of All Filtered Products in multiple flexible Time Period" />'] = '?open=analysis-by-period&hidemenu=true&hidecopyurl=true|view_webpage_full'; $custom_buttons['<input type="button" class="popup-link" value="Product Profit Analysis" title="Open Products Profit Analysis with filtered products" />'] = '?open=analysis-products-profit&hidemenu=true&hidecopyurl=true|view_webpage_full'; $custom_buttons['<input type="button" class="popup-link" value="Kill Products" title="Open Killing Module in a Popup" />'] = '?open=products-kill&hidemenu=true&hidecopyurl=true|view_webpage_full'; $custom_buttons['<input type="hidden" id="spacer-4-1" />'] = ''; //$custom_buttons['<input type="hidden" id="spacer-4-2" />'] = ''; } $action_button_total_rows = 6; $content .= $class_ps->createResultBox($class_ps->isAllowedToAccessSalesData, $custom_buttons, $action_button_total_rows); //ADD CUSTOM ACTION BUTTONS ON EACH RESULTS PRODUCTS BOXES $act_btn_funcs = ' function removeFromWatchlist(xmlResult, txtStatus) { if(txtStatus=="success"){ var pid = $("pid",xmlResult).text(); $("#"+pid+" .remove-watchlist").addClass("add-watchlist"); $("#"+pid+" .add-watchlist").removeClass("red remove-watchlist"); $("#"+pid+" .add-watchlist").css("text-decoration","none"); $("#"+pid+" .add-watchlist").attr("title","Add to My Watchlist"); $("#"+pid+" .add-watchlist").attr("disabled", false); } } function addToWatchlist(xmlResult, txtStatus) { if(txtStatus=="success"){
######################################### # Author : D3W4 & SAHAT # # Created : Feb 2, 2011 3:35:12 PM # ######################################### use_class('products_search'); $class_ps = new products_search(); if (isset($_POST['me_action'])) { $class_ps->postProcess($_POST); } $custom_buttons = array(); $custom_buttons['<input type="button" id="btn-add2nav2" value="Set Secondary NAV" />'] = '?open=sp-promo-nav2&hidemenu=true'; $custom_buttons['<input type="button" id="btn-setdisc" value="Set Discount" />'] = '?open=sp-promo-nav3&hidemenu=true'; $custom_buttons['<input type="button" id="btn-add2nav1" value="Set Primary NAV" />'] = '?open=sp-promo-nav1&hidemenu=true'; $title = 'Catalog Promo Navigation » ' . $class_ps->createComboSP(); $content .= $class_ps->createFilterBox(false); $content .= $class_ps->createResultBox(false, $custom_buttons); $javascript = $class_ps->constructJS() . ' displayResultReload = function() { if(n_results_rendered==0) { $("#btn-display-result").click(); } else { n_results_rendered = 0; loadResults(0); } } $("#sp").find("option[value=0], option[value=allsp]").remove(); $("#btn-add2nav1, #btn-add2nav2, #btn-setdisc").click(function(){ $(this).siblings("a").click(); }); ';