} if ($column_list[$col] != 'PRODUCT_LIST_BUY_NOW' && $column_list[$col] != 'PRODUCT_LIST_IMAGE') { $lc_text = oos_create_sort_heading($_GET['sort'], $col + 1, $lc_text); } $list_box_contents[$cur_row][] = array('align' => $lc_align, 'params' => 'class="productListing-even"', 'text' => ' ' . $lc_text . ' '); } if ($listing_numrows > 0) { if (!isset($all_get_listing)) { $all_get_listing = oos_get_all_get_parameters(array('action')); } $number_of_products = 0; $listing_result = $dbconn->Execute($listing_sql); while ($listing = $listing_result->fields) { $number_of_products++; if (!oos_is_not_null($listing['products_name']) and DEFAULT_LANGUAGE != $_SESSION['language']) { $product_description = oos_get_product_description($listing['products_id']); $listing = array_merge($listing, $product_description); } if ($number_of_products / 2 == floor($number_of_products / 2)) { $list_box_contents[] = array('params' => 'class="productListing-even"'); } else { $list_box_contents[] = array('params' => 'class="productListing-odd"'); } $cur_row = count($list_box_contents) - 1; for ($col = 0, $n = count($column_list); $col < $n; $col++) { $lc_align = ''; switch ($column_list[$col]) { case 'PRODUCT_LIST_MODEL': $lc_align = ''; $lc_text = ' ' . $listing['products_model'] . ' '; break;
$aOption['page_heading'] = $sTheme . '/heading/page_heading.html'; $aOption['breadcrumb'] = 'default/system/breadcrumb.html'; $nPageType = OOS_PAGE_TYPE_PRODUCTS; require 'includes/oos_system.php'; if (!isset($option)) { require 'includes/info_message.php'; require 'includes/oos_blocks.php'; } $oSmarty->assign(array('oos_breadcrumb' => $oBreadcrumb->trail(BREADCRUMB_SEPARATOR), 'oos_heading_title' => $aLang['text_product_not_found'], 'oos_heading_image' => 'specials.gif')); } else { $products_descriptiontable = $oostable['products_description']; $query = "UPDATE {$products_descriptiontable}" . " SET products_viewed = products_viewed+1" . " WHERE products_id = ?" . " AND products_languages_id = ?"; $result =& $dbconn->Execute($query, array((int) $nProductsId, (int) $nLanguageID)); $product_info = $product_info_result->fields; if (!oos_is_not_null($product_info['products_name']) and DEFAULT_LANGUAGE != $_SESSION['language']) { $product_description = oos_get_product_description($nProductsId); $product_info = array_merge($product_info, $product_description); } if (is_dir(OOS_IMAGES . 'zoomify/')) { if ($product_info['products_zoomify'] == '') { if (oos_is_not_null($product_info['products_image'])) { $sImage = $product_info['products_image']; $sDir = substr($sImage, 0, strrpos($sImage, '.')); if (is_readable(OOS_IMAGES . 'zoomify/' . $sDir . '/ImageProperties.xml')) { $sImagePath = $sDir; } } if (!isset($sImagePath)) { $sName = $product_info['products_name']; $sDir = oos_strip_all($product_info['products_name']); if (is_readable(OOS_IMAGES . 'zoomify/' . $sDir . '/ImageProperties.xml')) {