<tr> <td><table border="0" cellspacing="0" cellpadding="2"> <?php // show when product is linked if (zen_get_product_is_linked($_GET['pID']) == 'true' and $_GET['pID'] > 0) { ?> <tr> <td class="main"><?php echo TEXT_MASTER_CATEGORIES_ID; ?> </td> <td class="main"> <?php // echo zen_draw_pull_down_menu('products_tax_class_id', $tax_class_array, $pInfo->products_tax_class_id); echo zen_image(DIR_WS_IMAGES . 'icon_yellow_on.gif', IMAGE_ICON_LINKED) . ' '; echo zen_draw_pull_down_menu('master_category', zen_get_master_categories_pulldown($_GET['pID']), $pInfo->master_categories_id); ?> </td> </tr> <?php } else { ?> <tr> <td class="main"><?php echo TEXT_MASTER_CATEGORIES_ID; ?> </td> <td class="main"><?php echo TEXT_INFO_ID . ($_GET['pID'] > 0 ? $pInfo->master_categories_id . ' ' . zen_get_category_name($pInfo->master_categories_id, $_SESSION['languages_id']) : $current_category_id . ' ' . zen_get_category_name($current_category_id, $_SESSION['languages_id'])); ?> </td>
?> </td> </tr> <tr> <td class="main"><?php echo TEXT_INFO_PRODUCTS_TO_CATEGORIES_LINKER_INTRO; ?> </td> </tr> <tr><?php echo zen_draw_form('restrict_product', FILENAME_PRODUCTS_TO_CATEGORIES, '', 'get', '', true) . zen_draw_hidden_field('action', 'set_master_categories_id') . zen_draw_hidden_field('products_filter', $products_filter) . zen_draw_hidden_field('current_category_id', $_GET['current_category_id']); ?> <td class="main"> <?php echo ' ' . zen_image(DIR_WS_IMAGES . 'icon_yellow_on.gif', IMAGE_ICON_LINKED) . ' '; echo '<strong>' . TEXT_MASTER_CATEGORIES_ID . '</strong> ' . zen_draw_pull_down_menu('master_category', zen_get_master_categories_pulldown($products_filter), $product_to_copy->fields['master_categories_id'], 'onChange="this.form.submit();"'); echo zen_hide_session_id(); if ($product_to_copy->fields['master_categories_id'] <= 0) { echo ' ' . '<span class="alert">' . WARNING_MASTER_CATEGORIES_ID . '</span>'; } echo TEXT_INFO_LINKED_TO_COUNT . $products_list->RecordCount(); ?> </td> </form></tr> <tr> <td><?php echo zen_draw_separator('pixel_trans.gif', '100%', '10'); ?> </td> </tr> </table></td>
} */ $multilinked = false; if (count($zen_get_master_categories_pulldown) > 2) { $multilinked = true; } $invalidcat = false; if ($multilinked == false && $products->fields['master_categories_id'] != $products->fields['categories_id']) { $invalidcat = true; } $prod2cat_link = '<a href="' . zen_href_link('products_to_categories.php', 'products_filter=' . (int) $products->fields['products_id']) . '">(' . $products->fields['categories_id'] . '/' . $products->fields['master_categories_id'] . ')</a>'; // echo '<td class="smallText">'; if ($_SESSION['quick_updates']['categories_switch'] == 'master_cats') { // show/edit the master cats products table echo zen_draw_pull_down_menu('quick_updates_new[master_categories_id][' . $products->fields['products_id'] . ']', zen_get_master_categories_pulldown($products->fields['products_id']), $products->fields['master_categories_id']); } else { // show/edit the linked cats products_to_categories table if ($invalidcat == true) { echo TEXT_QU_CHECK_CAT_INVALID; } elseif ($multilinked == true) { echo TEXT_QU_CHECK_CAT_MULTILINKS; } else { echo zen_draw_pull_down_menu('quick_updates_new[categories_id][' . $products->fields['products_id'] . ']', $quick_updates_category_tree, $products->fields['categories_id'], ''); echo zen_draw_hidden_field('quick_updates_old[categories_id][' . $products->fields['products_id'] . ']', $products->fields['categories_id']); } } // we need the old master_categories_id value in both cases echo zen_draw_hidden_field('quick_updates_old[master_categories_id][' . $products->fields['products_id'] . ']', $products->fields['master_categories_id']); echo $prod2cat_link; echo '</td>' . "\n";
<td><table border="0" cellspacing="0" cellpadding="2"> <?php // show when product is linked if (zen_get_product_is_linked($products_filter) == 'true') { ?> <tr> <td class="main" width="200"><?php echo TEXT_MASTER_CATEGORIES_ID; ?> </td> <td colspan="4" class="main"> <?php // echo zen_draw_pull_down_menu('products_tax_class_id', $tax_class_array, $pInfo->products_tax_class_id); echo zen_image(DIR_WS_IMAGES . 'icon_yellow_on.gif', IMAGE_ICON_LINKED) . ' '; echo zen_draw_pull_down_menu('master_category', zen_get_master_categories_pulldown($products_filter), $pInfo->master_categories_id); ?> </td> </tr> <tr> <td colspan="5" class="main"><?php echo TEXT_INFO_MASTER_CATEGORIES_ID; ?> </td> </tr> <tr> <td colspan="5" class="main" align="center"><?php echo $action == '' ? '<span class="alert">' . TEXT_INFO_PREVIEW_ONLY . '</span>' : TEXT_INFO_UPDATE_REMINDER; ?> </td> </tr>