function ComboBoxneckermannAtNavIDs($type, $name, $value = '', $class = '', $html_params = '') { $navid = neckermannAtNavIDs($type); $navoptions = '<select name="' . $name . '"'; if ($class != '') { $navoptions .= ' class="' . $class . '"'; } if ($html_params != '') { $navoptions .= ' ' . $html_params; } $navoptions .= '>'; $selected = $value == '' ? 'selected="selected"' : ''; $navoptions .= '<option value="" ' . $selected . '>Please select a navigation...</option>'; foreach ($navid as $val => $text) { $selected = $value == $val ? 'selected="selected"' : ''; $navoptions .= '<option value="' . $val . '" ' . $selected . '>' . $text . '</option>'; } $navoptions .= '</select>'; return $navoptions; }
$eanproblem = array(); $nametoshort = array(); $noname = array(); $nodescription = array(); $price20eur = array(); $price0 = array(); $navproblem = array(); switch ($jng_sp_id) { case '1': $navids = neckermannNavIDs(); break; case '2': $navids = ottoDeNavIDs(); break; case '3': $navids = neckermannAtNavIDs(); break; case '5': $navids = retrieveNavIDs($jng_sp_id, 'bn'); break; } if (!SERVER_IS_LOCAL) { foreach ($products as $row) { if ($row['products_ean'] == '') { $eanproblem[] = $row['products_id']; } $product_articles[$row['products_id']] = Product::getOldProductArticleFunction()->retrieveList($row['products_id']); if (!in_array($row['products_id'], $eanproblem)) { foreach ($product_articles[$row['products_id']] as $pa) { if ($pa['products_ean'] == '') { $eanproblem[] = $row['products_id'];