$nav1 .= ComboBoxneckermannNavIDs('sch', 'navigation', $product_navigation, 'input2', 'id="navigation"'); $nav1 .= '</td></tr>'; break; case '2': //OT.DE $nav1 .= ComboBoxottoDeNavIDs('navigation', $product_navigation, 'input2', 'id="navigation"'); $nav1 .= '</td></tr>'; break; case '3': //NM.AT $nav1 .= ComboBoxneckermannAtNavIDs('p', 'navigation', $product_navigation, 'input2', 'id="navigation"'); $nav1 .= '</td></tr>'; break; case '4': //AM.DE $nav1 .= ComboBoxAmazonDeNavIDs('navigation', $product_navigation, 'input2', 'id="navigation"'); $nav1 .= '</td></tr>'; break; } $nav1 .= '</table>'; echo utf8_encode($nav1); exit; } elseif ($_POST['me_action'] == 'SETNAV1') { $params = tep_db_prepare_input($_POST['params']); $navpri = tep_db_prepare_input($_POST['navpri']); list($jng_sp_id, $pids) = split(";", $params); $products_ids = explode(',', $pids); $q = tep_db_query("UPDATE jng_sp_catalog SET navigation='{$navpri}' WHERE jng_sp_id={$jng_sp_id} AND products_id IN ({$pids})"); $result = array(); $result['total_updated'] = count($products_ids); ajaxReturn($result);
$content .= '<tr><td width="150">Nav ID</td><td>'; $content .= ComboBoxneckermannAtNavIDs('s', 'navid0', $product_nav_secondary[0], 'input2', 'id="nav0"'); $content .= '</td></tr>'; $content .= '</table></div>'; } elseif ($jng_sp_id == '4') { //AMAZON.DE STRUCTURE $content .= '<div><table class="form" border="0" cellpadding="0" cellspacing="0">'; $content .= '<tr><td colspan="2"><strong>Primary</strong></td></tr>'; $content .= '<tr><td width="150">Nav ID</td><td>'; $content .= ComboBoxAmazonDeNavIDs('navigation', $product_navigation, 'input2', 'id="navigation"'); $content .= '<input type="checkbox" name="navigation" value="1" style="display:none;" />'; $content .= '</td></tr>'; $content .= '<tr><td colspan="2"> </td></tr>'; $content .= '<tr><td colspan="2"><strong>Secondary</strong></td></tr>'; $content .= '<tr><td width="150">Nav ID</td><td>'; $content .= ComboBoxAmazonDeNavIDs('navid0', $product_nav_secondary[0], 'input2', 'id="nav0"'); $content .= '</td></tr>'; $content .= '</table></div>'; } elseif ($jng_sp_id == '5') { $content .= '<div><table class="form" border="0" cellpadding="0" cellspacing="0">'; $content .= '<tr><td colspan="2"><strong>Primary (BrowseNode)</strong></td></tr>'; $content .= '<tr><td width="150">Nav ID</td><td>'; $navids = array('' => 'Please select a navigation...') + retrieveNavIDs($jng_sp_id, 'bn'); $navid_filters = '<select id="navigation" name="navigation" class="input2">'; $navid_filters .= loadComboListFromArray($navids, null, $product_navigation, false); $navid_filters .= '</select>'; //$content .= ComboBoxneckermannAtNavIDs('p','navigation', $product_navigation, 'input2', 'id="navigation"'); $content .= $navid_filters; $content .= '<input type="checkbox" name="navigation" value="1" style="display:none;" />'; $content .= '</td></tr>'; $content .= '</table></div>';
$nav2 .= ComboBoxottoDeNavIDs('navid0', '', 'input2'); $nav2 .= '</td></tr>'; $nav2 .= '<tr><td>Additional Nav 2</td><td>'; $nav2 .= ComboBoxottoDeNavIDs('navid1', '', 'input2'); $nav2 .= '</td></tr>'; break; case '3': //NM.AT $nav2 .= '<tr><td>Secondary Nav ID</td><td>'; $nav2 .= ComboBoxneckermannAtNavIDs('s', 'navid0', $product_nav_secondary[0], 'input2'); $nav2 .= '</td></tr>'; break; case '4': //AM.DE $nav2 .= '<tr><td>Secondary Nav ID</td><td>'; $nav2 .= ComboBoxAmazonDeNavIDs('navid0', $product_nav_secondary[0], 'input2'); $nav2 .= '</td></tr>'; break; } $nav2 .= '</table>'; echo utf8_encode($nav2); exit; } elseif ($_POST['me_action'] == 'ADDNAV2') { use_class('jng_sp_catalog'); $class_jc = new jng_sp_catalog(); $type = $_POST['type']; $params = $_POST['params']; $post_nav2 = $_POST['post_nav2']; list($jng_sp_id, $pids) = split(";", $params); $products_ids = explode(",", $pids); $q = "SELECT jng_sp_catalog_id, navigation2";