Показано 1 - 15 (всего 669 объявлений) |
//}
$list_box_contents = array();
/*for ($col=0, $n=sizeof($column_list); $col<$n; $col++) {
switch ($column_list[$col]) {
case 'PRODUCT_LIST_MODEL':
$lc_text = TABLE_HEADING_MODEL;
$lc_align = '';
break;
case 'PRODUCT_LIST_NAME':
$lc_text = TABLE_HEADING_PRODUCTS;
$lc_align = 'center';
break;
case 'PRODUCT_LIST_MANUFACTURER':
$lc_text = TABLE_HEADING_MANUFACTURER;
$lc_align = '';
break;
case 'PRODUCT_LIST_PRICE':
$lc_text = TABLE_HEADING_PRICE;
$lc_align = 'right';
break;
case 'PRODUCT_LIST_QUANTITY':
$lc_text = TABLE_HEADING_QUANTITY;
$lc_align = 'left';
break;
case 'PRODUCT_LIST_WEIGHT':
$lc_text = TABLE_HEADING_WEIGHT;
$lc_align = 'left';
break;
case 'PRODUCT_LIST_IMAGE':
$lc_text = TABLE_HEADING_IMAGE;
$lc_align = 'center';
break;
case 'PRODUCT_LIST_BUY_NOW':
$lc_text = TABLE_HEADING_BUY_NOW;
$lc_align = 'center';
break;
}
if ( ($column_list[$col] != 'PRODUCT_LIST_BUY_NOW') && ($column_list[$col] != 'PRODUCT_LIST_IMAGE') ) {
//$lc_text = tep_create_sort_heading($_GET['sort'], $col+1, $lc_text);
}
$list_box_contents[0][] = array('align' => $lc_align,
'params' => 'class="productListing-heading"',
'text' => ' ' . $lc_text . ' ');
}*/
if ($listing_split->number_of_rows > 0) {
$rows = 0;
$listing_query = tep_db_query($listing_split->sql_query); $arr_exists_desc = array();
while ($listing = tep_db_fetch_array($listing_query)) {
$rows++;
tep_show_ads_listing_block($listing);
}
// Ads Archive
if((int)$ads_arch->products_to_customers_total > 0)
{
//echo ''; print_r($ads_arch); echo ' ++++++++++++++++';
foreach($ads_arch->products_to_customers_range_values as $k_arch=>$v_arch)
{
if((int)$v_arch > 0)
{
$ads_arch = new ads_archive();
$ads_arch->get_ads_archive((int)$v_arch);
$product_info = array(); $ads_archive_category_id = 0;
if($ads_arch->version_of_archive == "full")
{
$rows++;
$ann = $ads_arch->get_product_info_data();
tep_show_ads_listing_block($ann);
}
}
}
}
// end Ads Archive
new productListingBox($list_box_contents);
} else {//elseif($current_basename != 'advanced_search_result.php') {
$list_box_contents = array();
$list_box_contents[0] = array('params' => 'class="productListing-odd"');
$list_box_contents[0][] = array('params' => 'class="productListing-data"',
'text' => '' . (isset($cat_h_buf) && $cat_h_buf!=""?sprintf(TEXT_NO_PRODUCTS_S, $cat_h_buf):($current_basename!=FILENAME_ADVANCED_SEARCH_RESULT?TEXT_NO_PRODUCTS:sprintf(CHANGE_TERM_SEARCH_LISTING, $_GET['keywords'] . ($type_ann > 0?($type_ann==5?" - Спрос":" - Предложение"):"")))) . " ");
new productListingBox($list_box_contents);
}
if ( ($listing_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '2') || (PREV_NEXT_BAR_LOCATION == '3')) ) {
?>
|