?> "><input type="checkbox" name="multi_categories[]" value="<?php echo $categories['categories_id'] . '" '; if (is_array($_POST['multi_categories'])) { if (in_array($categories['categories_id'], $_POST['multi_categories'])) { echo 'checked="checked"'; } } ?> ></td> <td class="<?php echo $css_class; ?> " style="text-align: left; padding-left: 5px;"> <?php echo '<a href="' . vam_href_link(FILENAME_CATEGORIES, vam_get_all_get_params(array('cPath', 'action', 'pID', 'cID')) . vam_get_path($categories['categories_id'])) . '">' . vam_image(DIR_WS_ICONS . 'folder.gif', ICON_FOLDER) . '<a> <b><a href="' . vam_href_link(FILENAME_CATEGORIES, vam_get_all_get_params(array('cPath', 'action', 'pID', 'cID')) . vam_get_path($categories['categories_id'])) . '">' . $categories['categories_name'] . '</a></b>'; ?> </td> <?php // check product and attributes stock if (STOCK_CHECK == 'true') { echo '<td class="' . $css_class . '">--</td>'; } ?> <td class="<?php echo $css_class; ?> "> <?php
Third Party contribution: Customers Status v3.x (c) 2002-2003 Copyright Elari elari@free.fr | www.unlockgsm.com/dload-osc/ | CVS : http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/elari/?sortby=date#dirlist New Attribute Manager v4b Autor: Mike G | mp3man@internetwork.net | http://downloads.ephing.com Cross-Sell (X-Sell) Admin 1 Autor: Joshua Dechant (dreamscape) Released under the GNU General Public License ---------------------------------------------------------------------------------------*/ include 'includes/application_top.php'; // create template elements $vamTemplate = new vamTemplate(); // include boxes if ($_GET['products_id']) { $cat = vam_db_query("SELECT categories_id FROM " . TABLE_PRODUCTS_TO_CATEGORIES . " WHERE products_id='" . (int) $_GET['products_id'] . "'"); $catData = vam_db_fetch_array($cat); require_once DIR_FS_INC . 'vam_get_path.inc.php'; if ($catData['categories_id']) { $cPath = vam_input_validation(vam_get_path($catData['categories_id']), 'cPath', ''); } } require DIR_FS_CATALOG . 'templates/' . CURRENT_TEMPLATE . '/source/boxes.php'; // include needed functions require_once DIR_FS_INC . 'vam_get_download.inc.php'; require_once DIR_FS_INC . 'vam_delete_file.inc.php'; require_once DIR_FS_INC . 'vam_get_all_get_params.inc.php'; require_once DIR_FS_INC . 'vam_date_long.inc.php'; require_once DIR_FS_INC . 'vam_draw_hidden_field.inc.php'; require_once DIR_FS_INC . 'vam_image_button.inc.php'; require_once DIR_FS_INC . 'vam_draw_form.inc.php'; require_once DIR_FS_INC . 'vam_draw_input_field.inc.php'; require_once DIR_FS_INC . 'vam_image_submit.inc.php'; if ($_GET['action'] == 'get_download') { vam_get_download($_GET['cID']);
$max = count($_SESSION[tracking][products_history]); $max--; $random_last_viewed = vam_rand(0, $max); //fsk18 lock $fsk_lock = ''; if ($_SESSION['customers_status']['customers_fsk18_display'] == '0') { $fsk_lock = ' and p.products_fsk18!=1'; } if (GROUP_CHECK == 'true') { $group_check = " and p.group_permission_" . $_SESSION['customers_status']['customers_status_id'] . "=1 "; } $random_query = "select p.products_id,\n pd.products_name,\n p.products_price,\n p.products_tax_class_id,\n p.products_image,\n p2c.categories_id,\n p.products_vpe,\n\t\t\t\t p.products_vpe_status,\n\t\t\t\t p.products_vpe_value,\n cd.categories_name \n from \n " . TABLE_PRODUCTS . " p,\n " . TABLE_PRODUCTS_DESCRIPTION . " pd,\n " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c,\n " . TABLE_CATEGORIES_DESCRIPTION . " cd\n where p.products_status = '1' \n and p.products_id = '" . (int) $_SESSION[tracking][products_history][$random_last_viewed] . "'\n and pd.products_id = '" . (int) $_SESSION[tracking][products_history][$random_last_viewed] . "'\n and p2c.products_id = '" . (int) $_SESSION[tracking][products_history][$random_last_viewed] . "'\n and pd.language_id = '" . $_SESSION['languages_id'] . "'\n and cd.categories_id = p2c.categories_id\n " . $group_check . "\n " . $fsk_lock . "\n and cd.language_id = '" . $_SESSION['languages_id'] . "'"; $random_query = vamDBquery($random_query); $random_product = vam_db_fetch_array($random_query, true); $random_products_price = $vamPrice->GetPrice($random_product['products_id'], $format = true, 1, $random_product['products_tax_class_id'], $random_product['products_price']); $category_path = vam_get_path($random_product['categories_id']); if ($random_product['products_name'] != '') { $box->assign('box_content', $product->buildDataArray($random_product)); $box->assign('MY_PAGE', 'TEXT_MY_PAGE'); $box->assign('WATCH_CATGORY', 'TEXT_WATCH_CATEGORY'); $box->assign('MY_PERSONAL_PAGE', vam_href_link(FILENAME_ACCOUNT)); $box->assign('CATEGORY_LINK', vam_href_link(FILENAME_DEFAULT, vam_category_link($random_product['categories_id'], $random_product['categories_name']))); $box->assign('CATEGORY_NAME', $random_product['categories_name']); $box->assign('language', $_SESSION['language']); // set cache ID if (!CacheCheck()) { $box->caching = 0; $box_last_viewed = $box->fetch(CURRENT_TEMPLATE . '/boxes/box_last_viewed.html'); } else { $box->caching = 1; $box->cache_lifetime = CACHE_LIFETIME;