|  | 
      
        | 
          
            | Запчасти, аксессуары - Авто. Мото. Транспорт объявления - Страница 14 |  |  | | Показывать: | 
   
    |  |  | 
 |  |  |  
       | 
        
          |  |  
          | //} 
  $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++;
      if (($rows/2) == floor($rows/2)) {
        $list_box_contents[] = array('params' => 'class="productListing-even"');
      } else {
        $list_box_contents[] = array('params' => 'class="productListing-odd"');
      }
      $cur_row = sizeof($list_box_contents) - 1;
      for ($col=0, $n=sizeof($column_list); $col<$n; $col++) {
        $lc_align = $img_param = $cust_style = '';
        switch ($column_list[$col]) {
          case 'PRODUCT_LIST_MODEL':
            $lc_align = '';
            $lc_text = ' ' . $listing['products_model'] . ' ';
            break;
          case 'PRODUCT_LIST_NAME':
            $lc_align = '';
            /*if (isset($_GET['manufacturers_id'])) {
              $lc_text = '' . $listing['products_name'] . '';
            } else {*/
            
            // no repeat short desc
            $fond_psd_check = false;
            $psd_check = tep_check_string($listing['products_short_desc']);
            if(count($arr_exists_desc) > 0)
            {
              foreach($arr_exists_desc as $ked=>$ved)
              {
                if($ved==$psd_check)
                {
                  $fond_psd_check = true; break;
                }
              }
            }
            if($fond_psd_check == false)$arr_exists_desc[] = $psd_check; 
             
              $lc_text = '' . ($listing['products_short_desc']!=""?" " . ($fond_psd_check==true?"":""):"") . '
 ' . $listing['regions_name'] . ($listing['regions_name']!=""?", ":"") . $listing['countries_name'] . (isset($arr_cat_name) && count($arr_cat_name)>0?". Объявления: " . implode(" » ", $arr_cat_name):"") . ''; // (strlen($listing['products_short_desc'])>203?" …":"") // title="Объявление: ' . $listing['products_name'] . '"
            //}
            break;
          case 'PRODUCT_LIST_MANUFACTURER':
            $lc_align = '';
            $lc_text = ' ' . $listing['manufacturers_name'] . ' ';
            break;
          case 'PRODUCT_LIST_PRICE':
            $lc_align = 'right';
            if($listing['aprice']!="" && $listing['aprice'] > 0 && (int)$listing['curr'] > 0)
            { $cust_style = 'productListing-price';
              $lc_text = '' . $currencies->format($listing['aprice'], false, $currencies->get_code_by_id($listing['curr'])) . '' . ($listing['torg']==1?'торг возможен':"");
            }
            else
            {
             $lc_text = ($listing['torg']==1?'торг возможен':' ');
            }
            break;
          case 'PRODUCT_LIST_QUANTITY':
            $lc_align = 'left';
            //$lc_text = ' ' . $listing['products_quantity'] . ' ';
            $lc_text = ' ' . $listing['countries_name'] . ' '; $width = 'style="width:100px;"';
            break;
          case 'PRODUCT_LIST_WEIGHT':
            $lc_align = 'left';
            //$lc_text = ' ' . $listing['products_weight'] . ' ';
            $lc_text = ' ' . $listing['regions_name'] . ' '; $width = 'style="width:177px;height:30px;"';
            break;
          case 'PRODUCT_LIST_IMAGE':
            $lc_align = 'center'; $img_param = 1;
            if (isset($_GET['manufacturers_id'])) {
              $lc_text = '' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '';
            } else {
              //$lc_text = ' ' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . ' ';
              //$show_pic = '';
              //if($listing['img_num']!="" && $listing['img_num']!=0 && $listing['img_type']!=""){$show_pic = ($listing['img_path']!="" && $listing['img_path']!=0?$listing['img_path'] . "/":"") . $listing['products_id'] . "_" . $listing['img_num'] . "." . tep_get_img_of_type_num($listing['img_type']);}
              /*if($listing['photo_1']!='')$show_pic = $listing['photo_1'];
              if($listing['photo_2']!='')$show_pic = $listing['photo_2'];
              if($listing['photo_3']!='')$show_pic = $listing['photo_3'];*/
              //if($show_pic != '')
              if($listing['img_num']!="" && $listing['img_num']!=0 && $listing['img_type']!="")
              {
               //($listing['photo_1']!=''?tep_image(DIR_FS_ADVERTISEMENT_IMAGES . tep_return_small_photo($listing['photo_1']), $pic_count_name1 . $listing['products_name'], '', '', 'onclick="limb(\'' . $listing['photo_1'] . '\', \'' . $rowz . '\', \'' . $photo_w1 . '\', \'' . $photo_h1 . '\');" style="cursor:pointer;border:1px solid #CCCCCc;margin-top:7px;margin-bottom:7px;margin-right:7px;"'):'')
              //$lc_text = ' ' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . ' ';
             /*if($listing['photo_1'] == '')
             {
               if($listing['photo_2'] != '')
               {
                $listing['photo_1'] = $listing['photo_2'];
                $listing['photo_2'] = $listing['photo_3'];
                $listing['photo_3'] = '';
               }
               elseif($listing['photo_2'] == '' && $listing['photo_3'] != '')
               {
                $listing['photo_1'] = $listing['photo_3'];
                $listing['photo_3'] = '';
               }
             }*/
          
              //if($show_ann_images == true)
              $lc_text = ($listing['ads_top']==1?'':"");
              //tep_image(DIR_FS_ADVERTISEMENT_IMAGES . tep_return_small_photo($show_pic), $listing['products_name'] . (isset($arr_cat_name) && $arr_cat_name[1]!=""?'. ' . $arr_cat_name[1] . " - " . $arr_cat_name[0]:""), '', '')
              //else $lc_text = '  ' . tep_image(DIR_WS_IMAGES . 'foto.gif', 'Изображение объявления 1', '24', '16') . ' ';
              }
              else $lc_text = ($listing['ads_top']==1?'
 Топ ':" ");
            }
            break;
          case 'PRODUCT_LIST_BUY_NOW':
            $lc_align = 'center';
            $lc_text = '' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '  ';
            break;
        }
        $list_box_contents[$cur_row][] = array('align' => $lc_align,
                                               'params' => 'class="' . ($cust_style==""?'productListing-data' . ($img_param==1?"-img":""):$cust_style) . ($listing['ads_top']==1?' atop7' . ($col==0?"l":($col==1?"c":($col==2?"r":""))):"") . ($listing['color']?' thisgold7':"") . '"' . $width,
                                               'text'  => $lc_text); $width = '';
      }
    }
    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')) ) {
?>
 
  
    | Страницы:   ...          14          ... |  | | Показывать объявления: | 
   
    |  |  | 
 |  |  
          |  |  |  
 |