ВСЕ ОБЪЯВЛЕНИЯ

$number2) {$numb1=1;} else {$numb1=0;} if($number!=0) {$numb2=1;} else {$numb2=0;} $numb3=$idd/25; if($numb3!=0) { if ($numb3==(int)($numb3)) {$numb=(int)($nub3);} else {$numb=(int)($numb3)+1;} } else {$numb=0;} $colors=file("./other/cvet1.txt"); if (!isset($n)) {$n=1;} $n1=1; $n2=2; $n3=3; $n4=4; $n5=5; $n6=6; $n7=7; $n8=8; $n9=9; $n10=10; $n11=11; if ((isset($n))&&($n==3)) {$n3=12;} if ((isset($n))&&($n==4)) {$n4=13;} if ((isset($n))&&($n==5)) {$n5=14;} if ((isset($n))&&($n==6)) {$n6=15;} if ((isset($n))&&($n==8)) {$n8=16;} if ((isset($n))&&($n==9)) {$n9=17;} if ((isset($n))&&($n==10)) {$n10=18;} if ((isset($n))&&($n==11)) {$n11=19;} if ((isset($n))&&($n==12)) {$n3=3;} if ((isset($n))&&($n==13)) {$n4=4;} if ((isset($n))&&($n==14)) {$n5=5;} if ((isset($n))&&($n==15)) {$n6=6;} if ((isset($n))&&($n==16)) {$n8=8;} if ((isset($n))&&($n==17)) {$n9=9;} if ((isset($n))&&($n==18)) {$n10=10;} if ((isset($n))&&($n==19)) {$n11=11;} if ($numb2==1) { print "
<< предыдущая "; } else { print "
<< предыдущая "; } print "
следующая >>

"; } else { print "

следующая >>

"; } print "

N
Фото
Техника
Марка
Цена
Год
Цвет
Состояние
Страна
Город
куп/прод "; if ((!isset($n))||($n==1)) { include("./config.inc"); $sql="select* from vse $select order by num desc limit $number1,$number2"; $result=mysql_query($sql); $idd=mysql_num_rows($result); } if ((isset($n))&&($n==2)) { include("./config.inc"); $sql="select* from vse $select order by foto desc limit $number1,$number2"; $result=mysql_query($sql); $idd=mysql_num_rows($result); } if ((isset($n))&&($n==3)) { include("./config.inc"); $sql="select* from vse $select order by type limit $number1,$number2"; $result=mysql_query($sql); $idd=mysql_num_rows($result); } if ((isset($n))&&($n==4)) { include("./config.inc"); $sql="select* from vse $select order by marka limit $number1,$number2"; $result=mysql_query($sql); $idd=mysql_num_rows($result); } if ((isset($n))&&($n==5)) { include("./config.inc"); $sql="select* from vse $select order by price desc limit $number1,$number2"; $result=mysql_query($sql); $idd=mysql_num_rows($result); } if ((isset($n))&&($n==6)) { include("./config.inc"); $sql="select* from vse $select order by year limit $number1,$number2"; $result=mysql_query($sql); $idd=mysql_num_rows($result); } if ((isset($n))&&($n==7)) { include("./config.inc"); $sql="select* from vse $select order by color desc limit $number1,$number2"; $result=mysql_query($sql); $idd=mysql_num_rows($result); } if ((isset($n))&&($n==8)) { include("./config.inc"); $sql="select* from vse $select order by quality limit $number1,$number2"; $result=mysql_query($sql); $idd=mysql_num_rows($result); } if ((isset($n))&&($n==9)) { include("./config.inc"); $sql="select* from vse $select order by country desc limit $number1,$number2"; $result=mysql_query($sql); $idd=mysql_num_rows($result); } if ((isset($n))&&($n==10)) { include("./config.inc"); $sql="select* from vse $select order by city desc limit $number1,$number2"; $result=mysql_query($sql); $idd=mysql_num_rows($result); } if ((isset($n))&&($n==11)) { include("./config.inc"); $sql="select* from vse $select order by bay desc limit $number1,$number2"; $result=mysql_query($sql); $idd=mysql_num_rows($result); } if ((isset($n))&&($n==12)) { include("./config.inc"); $sql="select* from vse $select order by type desc limit $number1,$number2"; $result=mysql_query($sql); $idd=mysql_num_rows($result); } if ((isset($n))&&($n==13)) { include("./config.inc"); $sql="select* from vse $select order by marka desc limit $number1,$number2"; $result=mysql_query($sql); $idd=mysql_num_rows($result); } if ((isset($n))&&($n==14)) { include("./config.inc"); $sql="select* from vse $select order by price limit $number1,$number2"; $result=mysql_query($sql); $idd=mysql_num_rows($result); } if ((isset($n))&&($n==15)) { include("./config.inc"); $sql="select* from vse $select order by year desc limit $number1,$number2"; $result=mysql_query($sql); $idd=mysql_num_rows($result); } if ((isset($n))&&($n==16)) { include("./config.inc"); $sql="select* from vse $select order by quality desc limit $number1,$number2"; $result=mysql_query($sql); $idd=mysql_num_rows($result); } if ((isset($n))&&($n==17)) { include("./config.inc"); $sql="select* from vse $select order by country limit $number1,$number2"; $result=mysql_query($sql); $idd=mysql_num_rows($result); } if ((isset($n))&&($n==18)) { include("./config.inc"); $sql="select* from vse $select order by city limit $number1,$number2"; $result=mysql_query($sql); $idd=mysql_num_rows($result); } if ((isset($n))&&($n==19)) { include("./config.inc"); $sql="select* from vse $select order by bay limit $number1,$number2"; $result=mysql_query($sql); $idd=mysql_num_rows($result); } $i=0; $d=25; while($row=mysql_fetch_array($result)) { $id[$i]=$row["id"]; $type[$i]=$row["type"]; $marka[$i]=$row["marka"]; $price[$i]=$row["price"]; $year[$i]=$row["year"]; $color[$i]=$row["color"]; for($j=0; $j
$number3 "; if($foto[$i]=="0"){ print "
"; } else { print "
"; } if ($type[$i]=="a"){print "
авто";} if ($type[$i]=="m"){print "
moto";} if ($type[$i]=="v"){print "
водный";} if ($type[$i]=="voz"){print "
воздушный";} if ($type[$i]=="spez"){print "
спецтранс.";} if ($type[$i]=="war"){print "
военный";} if ($color[$i]=="#000000") {$colors[$i]="$ffffff";} else {$colors="$000000";} if ($country[$i]=="0") {$country[$i]="";} if ($city[$i]=="0") {$city[$i]="";} print "
$marka[$i]
$price[$i]$val[$i]
$year[$i] "; if($color[$i]!="") { print "
"; } else { print "
"; } print "
$quality[$i]
$country[$i]
$city[$i]
$data[$i]($bay[$i]) "; $number3++; } else { print "
"; }} $i++; if($i<25) { if($i<$idd) { print "
$number3 "; if($foto[$i]=="0"){ print "
"; } else { print "
"; } if ($type[$i]=="a"){print "
авто";} if ($type[$i]=="m"){print "
moto";} if ($type[$i]=="v"){print "
водный";} if ($type[$i]=="voz"){print "
воздушный";} if ($type[$i]=="spez"){print "
спецтранс.";} if ($type[$i]=="war"){print "
военный";} if ($color[$i]=="#000000") {$colors[$i]="$ffffff";} else {$colors="$000000";} if ($country[$i]=="0") {$country[$i]="";} if ($city[$i]=="0") {$city[$i]="";} print "
$marka[$i]
$price[$i]$val[$i]
$year[$i] "; if($color[$i]!="") { print "
"; } else { print "
"; } print "
$quality[$i]
$country[$i]
$city[$i]
$data[$i]($bay[$i]) "; $number3++; } else { print "
"; }} } if ($numb2==1) { print "


<< предыдущая "; } else { print "


<< предыдущая "; } print "
следующая >>

"; } else { print "

следующая >>

"; } ?>