$vars[16] / $pcatname_en / $qcatname_en

$vars[18]


"; } elseif ($lang=="ruz") { if ($mycity=="") $curpage="$parname - $pcatname - $board_name"; else $curpage="$parname - $pcatname - $mycity"; $description=$description_ruz; $keywords=$keywords_ru; include $_SERVER['DOCUMENT_ROOT']."/templates/top.php"; echo "

$vars[16] / $pcatname / $qcatname $vars[17]

$vars[18]


"; } elseif ($lang=="esp") { if ($mycity=="") $curpage="$parname_es - $pcatname_es - $board_name"; else $curpage="$parname_es - $pcatname_es - $mycity"; $description=$description_es; $keywords=$keywords_es; include $_SERVER['DOCUMENT_ROOT']."/templates/top.php"; echo "

$vars[16] / $pcatname_es / $qcatname_es

$vars[18]


"; } else { if (!isset($mysity)) $curpage="$parname - $pcatname - $board_name"; else $curpage="$parname - $pcatname - $mycity"; $description=$description_ru; $keywords=$keywords_ru; include $_SERVER['DOCUMENT_ROOT']."/templates/top.php"; echo "

$vars[16] / $pcatname / $qcatname $vars[17]

$vars[18]


"; //include $_SERVER['DOCUMENT_ROOT']."/vip_r.php"; } $fname="../picts/$qid"; $fname.= "_s.gif"; if (file_exists($fname)) $size_img=GetImageSize($fname); if (file_exists($fname)) { echo "
"; } if(!isset($p) || $p==0){$p=1;} $start=($p-1)*$perpage; //include $_SERVER['DOCUMENT_ROOT']."/templates/ad_before_catlist.php"; $sel_an=mysql_query("SELECT * FROM ". $db_prefix ."categories where parent='$par' and status='1'"); while($an=mysql_fetch_array($sel_an)) { $catid=$an["id"]; $altname=$an["altname"]; $catname=$an["catname"]; $sel_ana=mysql_query("SELECT count(*) FROM ". $db_prefix ."messages where category='$catid' $cityfilter2"); while($an=mysql_fetch_array($sel_ana)) { $cnt=$an["count(*)"];} echo "
  • $catname ($cnt)"; } // echo $parent."---".$parname."---".$par."--------------"; if ($parent==0) { // echo "
  • $catname!!!!!!!!!!!!!!!!!!!!!"; } else { $sql5p="SELECT count(*) FROM ". $db_prefix ."posts where category='$par' $cityfilter2"; //echo $sql5p."
    "; $sel_an5p=mysql_query("$sql5p"); while($ann=mysql_fetch_array($sel_an5p)) { $count=$ann["count(*)"]; } //echo $sql; if ($count<"1") {} else { echo "

    Обратите внимание на статьи, опубликованные в текущей категории $pcatname / $parname, всего - $count

    "; $sql2p="SELECT * FROM ". $db_prefix ."posts where category='$par' $cityfilter2 order by ob_id DESC "; echo "
      "; $pd=0; //echo $sql2; $sel_an2p=mysql_query("$sql2p"); while($an=mysql_fetch_array($sel_an2p)) { $ob_id=$an["ob_id"]; $ob_author=$an["ob_author"]; $ob_phone=$an["ob_phone"]; $ob_email=$an["ob_email"]; $obcity=$an["ob_city"]; $ob_city_english=$an["ob_city_english"]; $ob_title=$an["ob_title"]; $ob_title_english=$an["ob_title_english"]; $ob_posted=$an["posted"]; $ob_desc=$an["ob_desc"]; $ob_desc = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", "", $ob_desc); $ob_desc_english=$an["ob_desc_english"]; $category=$an["category"]; $fname=""; $fname="$board_path/post_img/$ob_id.jpg"; if (file_exists($fname)) { $img=""; } else { $img=""; } $ob_desc=substr("$ob_desc", 0, 300); $ob_desc .="...  / "; if ($lang=="eng") echo "
    1. $img $ob_title_english
      $ob_desc_english / $ob_posted / $ob_city_english"; else echo "
    2. $img $ob_title
      $ob_desc / $ob_posted / $obcity"; $pd++; } } echo "

      Список объявление в категории $pcatname / $parname

      "; $sql5="SELECT count(*) FROM ". $db_prefix ."messages where category='$par' $cityfilter2"; $sel_an5=mysql_query("$sql5"); while($an=mysql_fetch_array($sel_an5)) { $count=$an["count(*)"]; } //echo $sql; if ($count=="0") if ($lang=="eng") echo "This category has no Ads

    3. Add new announcement"; else echo "В этой категории пока нет объявлений

    4. Добавить новое объявление"; else { // Вывод простых объявлений //if (!isset($start)) $start=0; $sql2="SELECT * FROM ". $db_prefix ."messages where category='$par' $cityfilter2 order by ob_id DESC LIMIT $start,$perpage"; // AND ob_vip_payed='255' $listart=($start+1); echo "
        "; $pd=0; //echo $sql2; $sel_an2=mysql_query("$sql2"); while($an=mysql_fetch_array($sel_an2)) { $ob_id=$an["ob_id"]; $ob_author=$an["ob_author"]; $ob_phone=$an["ob_phone"]; $ob_email=$an["ob_email"]; $obcity=$an["ob_city"]; $ob_city_english=$an["ob_city_english"]; $ob_title=$an["ob_title"]; $ob_title_english=$an["ob_title_english"]; $ob_posted=$an["posted"]; $ob_desc=$an["ob_desc"]; $ob_desc = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", "", $ob_desc); $ob_desc_english=$an["ob_desc_english"]; $category=$an["category"]; $fname=""; $fname="$board_path/obj_img/$ob_id.jpg"; if (file_exists($fname)) { $img=""; } else { $img=""; } $ob_desc=substr("$ob_desc", 0, 300); $ob_desc .="...  / "; if ($lang=="eng") echo "
      1. $img $ob_title_english
        $ob_desc_english
        $ob_posted / $ob_city_english
        "; else echo "
      2. $img $ob_title
        $ob_desc
        $ob_posted / $obcity
        "; $pd++; } echo "
      "; $sql7="SELECT count(*) FROM ". $db_prefix ."messages where category='$par' $cityfilter2"; $sel_an7=mysql_query("$sql7"); while($an=mysql_fetch_array($sel_an7)) { $cntt=$an["count(*)"];} $num=$cntt/$perpage; if ($num>=1){ if ($lang=="eng") echo "Pages → "; elseif ($lang=="esp") echo "Pagina → "; else echo "Страница → "; for ($i=1; $i<=$num+1; $i++){ if ($i!=$p) {echo " $i ";} else {echo " {$i} ";} }} if ($lang=="eng") echo "

      Ads in section $qcatname_en: $cntt
      "; elseif ($lang=="esp") echo "

      Los anuncios en la seccion $qcatname_es: $cntt
      "; else echo "

      Объявлений в разделе $qcatname: $cntt
      "; } if ($lang=="eng") echo "

      Home / $pcatname_en / $qcatname_en

      $vars[18]
      "; elseif ($lang=="esp") echo "

      comienzo / $pcatname_es / $qcatname_es

      $vars[18]
      "; else echo "

      Начало / $pcatname / $qcatname

      $vars[18]
      "; } ?>