Execute($recent_products_query); } $row = 0; $col = 0; $list_box_contents = array(); $title = ''; $num_products_count = ($recent_products_query == '') ? 0 : $recent_products->RecordCount(); if ($num_products_count > 0) { if ($num_products_count < SHOW_PRODUCT_INFO_COLUMNS_RECENT_PRODUCTS || SHOW_PRODUCT_INFO_COLUMNS_RECENT_PRODUCTS == 0) {// G $col_width = floor(100/$num_products_count); } else { $col_width = floor(100/SHOW_PRODUCT_INFO_COLUMNS_RECENT_PRODUCTS); } while (!$recent_products->EOF) { $products_price = zen_get_products_display_price($recent_products->fields['products_id']); if (!isset($productsInCategory[$recent_products->fields['products_id']])) $productsInCategory[$recent_products->fields['products_id']] = zen_get_generated_category_path_rev($recent_products->fields['master_categories_id']); $list_box_contents[$row][$col] = array('params' =>'class="product-col3"' . ' ' . 'class="product-col3" style="height:340px;"', 'text' => (($recent_products->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' : '
' . zen_image(DIR_WS_IMAGES . $recent_products->fields['products_image'], $recent_products->fields['products_name'],170, 250, 'class="featuredProductImage"') . '
') . '' . $recent_products->fields['products_name'] . '
' . $products_price); $col ++; echo ''; if ($col > (SHOW_PRODUCT_INFO_COLUMNS_RECENT_PRODUCTS - 1)) { // I $col = 0; $row ++; } $recent_products->MoveNext(); } if ($recent_products->RecordCount() > 0) { if (isset($new_products_category_id) && $new_products_category_id !=0) { $category_title = zen_get_categories_name((int)$new_products_category_id); $title = '

' . TABLE_HEADING_RECENTLY_VIEWED . ($category_title != '' ? ' - ' . $category_title : '') . '

'; } else { $title = '

' . TABLE_HEADING_RECENTLY_VIEWED . '

'; } $zc_show_featured = true; } } ?>