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) ? '' : '
') . '' . $recent_products->fields['products_name'] . '