arkadaşlar hazır bir ilan sitesi aldım ilan detay sayfasında
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/binicisinden/public_html/ilan.php on line 10
böyle bir hata alıyorum
ilan php dosyası aşağıda. konu ile ilgili yardımcı olurmusunuz
$id = guvenlik($_GET['id']);
$sql = mysql_query("SELECT * FROM ilanlar WHERE Id = '$id' and onay = '1'");
$a = mysql_fetch_array($sql);
$sat = $a[uyeId];
$cur_time=date("Y-m-d H:i:s");
$duration='-10 minutes';
$yeni = date('Y-m-d H:i:s', strtotime($duration, strtotime($cur_time)));
$sql89 = mysql_query("SELECT * FROM uyeler WHERE Id = '$sat' and son > '$yeni'");
if (mysql_num_rows($sql89) == 0){ $ikk = 'offline'; } else { $ikk = 'online'; }
$stok = $a[stok];
if (mysql_num_rows($sql) == ""){ header("location: anasayfa.html"); } else { }
$gosterim = $a[gosterim] + 1;
mysql_query("UPDATE ilanlar SET gosterim = '$gosterim' WHERE Id = '$id'");
$sql2 = mysql_query("SELECT * FROM kategoriler WHERE Id = '$a[kategori1]'");
$b = mysql_fetch_array($sql2);
$sql3 = mysql_query("SELECT * FROM kategoriler WHERE Id = '$a[kategori2]'");
$c = mysql_fetch_array($sql3);
$sql4 = mysql_query("SELECT * FROM kategoriler WHERE Id = '$a[kategori3]'");
$d = mysql_fetch_array($sql4);
$sql5 = mysql_query("SELECT * FROM kategoriler WHERE Id = '$a[kategori4]'");
$e = mysql_fetch_array($sql5);
$link1 = "".seo($b[kategori_adi])."-kategorino-$b[Id].html";
$link2 = "".seo($c[kategori_adi])."-kategorino-$c[Id].html";
$link3 = "".seo($d[kategori_adi])."-kategorino-$d[Id].html";
$link4 = "".seo($e[kategori_adi])."-kategorino-$e[Id].html";
if ($c[kategori_adi] != "" and $d[kategori_adi] != "" and $e[kategori_adi] != ""){
$kategoribaslik = '
'.$b[kategori_adi].' »
'.$c[kategori_adi].' »
'.$d[kategori_adi].' »
'.$e[kategori_adi].' ';
$kategori = 4;
} elseif ($c[kategori_adi] != "" and $d[kategori_adi] != "" and $e[kategori_adi] == ""){
$kategoribaslik = '
'.$b[kategori_adi].' »
'.$c[kategori_adi].' »
'.$d[kategori_adi].' ';
$kategori = 3;
} elseif ($c[kategori_adi] != "" and $d[kategori_adi] == "" and $e[kategori_adi] == ""){
$kategoribaslik = '
'.$b[kategori_adi].' »
'.$c[kategori_adi].' ';
$kategori = 2;
} elseif ($c[kategori_adi] == "" and $d[kategori_adi] == "" and $e[kategori_adi] == ""){
$kategoribaslik = '
'.$b[kategori_adi].' ';
$kategori = 1;
}
$sql2 = mysql_query("SELECT * FROM resimler WHERE ilanId = '$a[Id]' LIMIT 1");
$b = mysql_fetch_array($sql2);
if ($b[resim_adi] == ""){ $resim = "yok.jpg"; $r2 = "yok.jpg"; } else { $resim = $b[resim_adi]; $r2 = "$b[kucuk]"; }
$maxWidth = 400;
$maxHeight = 300;
$imagename="ilanlar/$resim";
list($width, $height) = getimagesize($imagename);
$xRatio = $maxWidth / $width;
$yRatio = $maxHeight / $height;
if ( ($width <= $maxWidth) && ($height <= $maxHeight) ) {
$newWidth = $width;
$newHeight = $height;
}
else if (($xRatio * $height) < $maxHeight) {
$newHeight = ceil($xRatio * $height);
$newWidth = $maxWidth;
}
else {
$newWidth = ceil($yRatio * $width);
$newHeight = $maxHeight;
}
$sql6 = mysql_query("SELECT * FROM uyeler WHERE Id = '$a[uyeId]'");
$f = mysql_fetch_array($sql6);
$sql7 = mysql_query("SELECT * FROM il WHERE id = '$a[il]'");
$g = mysql_fetch_array($sql7);
$sql8 = mysql_query("SELECT * FROM ilce WHERE id = '$a[ilce]'");
$h = mysql_fetch_array($sql8);
$sql9 = mysql_query("SELECT * FROM semtmah WHERE semtmah_ID = '$a[mahalle]'");
$i = mysql_fetch_array($sql9);
$t = explode("-",$a[tarih]);
if ($t[1] == "01"){
$ay = "$dil_no[167]";
} elseif ($t[1] == "02"){
$ay = "$dil_no[168]";
} elseif ($t[1] == "03"){
$ay = "$dil_no[169]";
} elseif ($t[1] == "04"){
$ay = "$dil_no[170]";
} elseif ($t[1] == "05"){
$ay = "$dil_no[171]";
} elseif ($t[1] == "06"){
$ay = "$dil_no[172]";
} elseif ($t[1] == "07"){
$ay = "$dil_no[172]";
} elseif ($t[1] == "08"){
$ay = "$dil_no[174]";
} elseif ($t[1] == "09"){
$ay = "$dil_no[175]";
} elseif ($t[1] == "10"){
$ay = "$dil_no[176]";
} elseif ($t[1] == "11"){
$ay = "$dil_no[177]";
} elseif ($t[1] == "12"){
$ay = "$dil_no[178]";
}
if ($a[durumu] == 1){ $durumu = "İkinci El"; } else { $durumu = "Sıfır"; }
if ($a[kategori4] != "0"){
$sql10 = mysql_query("SELECT * FROM kategoriler WHERE Id = '$a[kategori4]'");
} elseif ($a[kategori3] != 0){
$sql10 = mysql_query("SELECT * FROM kategoriler WHERE Id = '$a[kategori3]'");
} elseif ($a[kategori2] != 0){
$sql10 = mysql_query("SELECT * FROM kategoriler WHERE Id = '$a[kategori2]'");
} elseif ($a[kategori1] == 0){
$sql10 = mysql_query("SELECT * FROM kategoriler WHERE Id = '$a[kategori1]'");
}
$j = mysql_fetch_array($sql10);
$m = $j[modul];
if ($m == 1){
$sql11 = mysql_query("SELECT * FROM modul_arsa WHERE ilanId = '$id'");
$modul = 1;
$k = mysql_fetch_array($sql11);
} elseif ($m == 2){
$sql11 = mysql_query("SELECT * FROM modul_bina WHERE ilanId = '$id'");
$modul = 2;
$k = mysql_fetch_array($sql11);
} elseif ($m == 3){
$sql11 = mysql_query("SELECT * FROM modul_emlak_genel WHERE ilanId = '$id'");
$modul = 3;
$k = mysql_fetch_array($sql11);
} elseif ($m == 4){
$sql11 = mysql_query("SELECT * FROM modul_isyeri WHERE ilanId = '$id'");
$modul = 4;
$k = mysql_fetch_array($sql11);
} elseif ($m == 5){
$sql11 = mysql_query("SELECT * FROM modul_konut WHERE ilanId = '$id'");
$modul = 5;
$k = mysql_fetch_array($sql11);
} elseif ($m == 6){
$sql11 = mysql_query("SELECT * FROM modul_motosiklet WHERE ilanId = '$id'");
$modul = 6;
$k = mysql_fetch_array($sql11);
} elseif ($m == 7){
$sql11 = mysql_query("SELECT * FROM modul_otomobil WHERE ilanId = '$id'");
$modul = 7;
$k = mysql_fetch_array($sql11);
} elseif ($m == 8){
$sql11 = mysql_query("SELECT * FROM modul_vasita WHERE ilanId = '$id'");
$modul = 8;
$k = mysql_fetch_array($sql11);
} elseif ($m == 9){
$sql11 = mysql_query("SELECT * FROM modul_arazi WHERE ilanId = '$id'");
$modul = 9;
$k = mysql_fetch_array($sql11);
} else {
}
$t2 = explode("-",$f[tarih]);
if ($t2[1] == "01"){
$ay2 = "$dil_no[167]";
} elseif ($t2[1] == "02"){
$ay2 = "$dil_no[168]";
} elseif ($t2[1] == "03"){
$ay2 = "$dil_no[169]";
} elseif ($t2[1] == "04"){
$ay2 = "$dil_no[170]";
} elseif ($t2[1] == "05"){
$ay2 = "$dil_no[171]";
} elseif ($t2[1] == "06"){
$ay2 = "$dil_no[172]";
} elseif ($t2[1] == "07"){
$ay2 = "$dil_no[173]";
} elseif ($t2[1] == "08"){
$ay2 = "$dil_no[174]";
} elseif ($t2[1] == "09"){
$ay2 = "$dil_no[175]";
} elseif ($t2[1] == "10"){
$ay2 = "$dil_no[176]";
} elseif ($t2[1] == "11"){
$ay2 = "$dil_no[177]";
} elseif ($t2[1] == "12"){
$ay2 = "$dil_no[178]";
}
$aciklama = html_entity_decode($a[aciklama]);
?>
$sql17 = mysql_query("SELECT * FROM magazalar WHERE uyeId = '$a[uyeId]'");
$mk = mysql_fetch_array($sql17);
$ref = $_SERVER['HTTP_REFERER'];
$ref2 = "http://$mk[url].yeniilan.tk/";
if ($ref == $ref2){
$acik = html_entity_decode($mk[hakkimizda]);
$acik = strip_tags($acik);
$acik = substr($acik,0,600);
$kls = $_SERVER['HTTP_HOST'];
$kls = str_replace("www.","",$kls);
$link = "http://$mk[url].$kls";
echo '
';
} else { }
?>
echo $kategoribaslik; ?>
echo $a[baslik]; ?>
echo $dil_no[58]; ?> echo $a[Id]; ?>
echo ' '; ?>
echo $a[fiyat]." ".$a[kur]; ?>
echo $g[il_adi]; ?> / echo $h[ilce_adi]; ?> / echo $i[mahalle]; ?>
echo $dil_no[166]; ?>
echo $t[2]." ".$ay." ".$t[0]; ?>
echo $dil_no[59]; ?>
echo $durumu; ?>
if ($modul == 1){
if ($k[kimden] == 0){ $kimden = "$dil_no[60]";
} elseif($k[kimden] == 1) {
$kimden = "$dil_no[61]";
} elseif($k[kimden] == 2) {
$kimden = "$dil_no[62]";
} elseif($k[kimden] == 3) {
$kimden = "$dil_no[63]";
}
if ($k[takas] == 0){ $takas = "$dil_no[60]";
} elseif($k[takas] == 1) {
$takas = "$dil_no[64]";
} elseif($k[takas] == 2) {
$takas = "$dil_no[65]";
}
if ($k[kaks] == 0){ $kaks = "$dil_no[60]";
} elseif($k[kaks] == 1) {
$kaks = "%5";
} elseif($k[kaks] == 2) {
$kaks = "% 5 / 10";
} elseif($k[kaks] == 3) {
$kaks = "% 10 / 20";
} elseif($k[kaks] == 4) {
$kaks = "% 20 / 60";
} elseif($k[kaks] == 5) {
$kaks = "% 10 / 30";
} elseif($k[kaks] == 6) {
$kaks = "% 15 / 30";
} elseif($k[kaks] == 7) {
$kaks = "% 20 / 40";
} elseif($k[kaks] == 8) {
$kaks = "% 25 / 50";
} elseif($k[kaks] == 9) {
$kaks = "% 25 / 75";
} elseif($k[kaks] == 10) {
$kaks = "% 25 / 100";
} elseif($k[kaks] == 11) {
$kaks = "% 25 / 125";
} elseif($k[kaks] == 12) {
$kaks = "% 27 / 80";
} elseif($k[kaks] == 13) {
$kaks = "% 30 / 60";
} elseif($k[kaks] == 14) {
$kaks = "% 35 / 80";
} elseif($k[kaks] == 15) {
$kaks = "1.0";
} elseif($k[kaks] == 16) {
$kaks = "1.25";
} elseif($k[kaks] == 17) {
$kaks = "1.50";
} elseif($k[kaks] == 18) {
$kaks = "2.07";
} elseif($k[kaks] == 19) {
$kaks = "3.0";
} elseif($k[kaks] == 20) {
$kaks = "$dil_no[60]";
}
if ($k[gabari] == 0){ $gabari = "$dil_no[60]";
} elseif($k[gabari] == 1) {
$gabari = "6.50";
} elseif($k[gabari] == 2) {
$gabari = "9.50";
} elseif($k[gabari] == 3) {
$gabari = "11.50";
} elseif($k[gabari] == 4) {
$gabari = "12.50";
} elseif($k[gabari] == 5) {
$gabari = "15.50";
} elseif($k[gabari] == 6) {
$gabari = "18.50";
} elseif($k[gabari] == 7) {
$gabari = "21.50";
} elseif($k[gabari] == 8) {
$gabari = "24.50";
} elseif($k[gabari] == 9) {
$gabari = "27.50";
} elseif($k[gabari] == 10) {
$gabari = "30.50";
} elseif($k[gabari] == 11) {
$gabari = "Serbest";
} elseif($k[gabari] == 12) {
$gabari = "$dil_no[60]";
}
if ($k[tapu] == 0){ $tapu = "$dil_no[60]";
} elseif($k[tapu] == 1) {
$tapu = "$dil_no[66]";
} elseif($k[tapu] == 2) {
$tapu = "$dil_no[67]";
} elseif($k[tapu] == 3) {
$tapu = "$dil_no[68]";
} elseif($k[tapu] == 4) {
$tapu = "$dil_no[69]";
}
if ($k[depozito] == 0){ $tapu = "$dil_no[60]";
} elseif($k[depozito] == 1) {
$depozito = "$dil_no[70]";
} elseif($k[depozito] == 2) {
$depozito = "$dil_no[71]";
}
echo '
'.$dil_no[72].'
'.$kimden.'
'.$dil_no[73].'
'.$takas.'
'.$dil_no[74].'
'.$kaks.'
'.$dil_no[75].'
'.$gabari.'
'.$dil_no[76].'
'.$tapu.'
'.$dil_no[77].'
'.$depozito.'
'.$dil_no[78].'
'.$k[metrekare].'
';
} elseif($modul == 2){
if ($k[kimden] == 0){ $kimden = "$dil_no[60]";
} elseif($k[kimden] == 1) {
$kimden = "$dil_no[61]";
} elseif($k[kimden] == 2) {
$kimden = "$dil_no[62]";
} elseif($k[kimden] == 3) {
$kimden = "$dil_no[63]";
}
if ($k[takas] == 0){ $takas = "$dil_no[60]";
} elseif($k[takas] == 1) {
$takas = "$dil_no[64]";
} elseif($k[takas] == 2) {
$takas = "$dil_no[65]";
}
if ($k[binayasi] == 0){ $binayasi = "$dil_no[60]";
} elseif($k[binayasi] == 1) {
$binayasi = "0";
} elseif($k[binayasi] == 2) {
$binayasi = "1";
} elseif($k[binayasi] == 3) {
$binayasi = "2";
} elseif($k[binayasi] == 4) {
$binayasi = "3";
} elseif($k[binayasi] == 5) {
$binayasi = "4";
} elseif($k[binayasi] == 6) {
$binayasi = "5-10 $dil_no[79]";
} elseif($k[binayasi] == 7) {
$binayasi = "11-15 $dil_no[79]";
} elseif($k[binayasi] == 8) {
$binayasi = "16-20 $dil_no[79]";
} elseif($k[binayasi] == 9) {
$binayasi = "21-25 $dil_no[79]";
} elseif($k[binayasi] == 10) {
$binayasi = "26-30 $dil_no[79]";
} elseif($k[binayasi] == 11) {
$binayasi = "31 $dil_no[80]";
}
echo '
'.$dil_no[72].'
'.$kimden.'
'.$dil_no[81].'
'.$binayasi.'
'.$dil_no[73].'
'.$takas.'
'.$dil_no[78].'
'.$k[metrekare].'
';
} elseif ($modul == 3){
if ($k[kimden] == 0){ $kimden = "$dil_no[60]";
} elseif($k[kimden] == 1) {
$kimden = "$dil_no[61]";
} elseif($k[kimden] == 2) {
$kimden = "$dil_no[62]";
} elseif($k[kimden] == 3) {
$kimden = "$dil_no[63]";
}
if ($k[takas] == 0){ $takas = "$dil_no[60]";
} elseif($k[takas] == 1) {
$takas = "$dil_no[64]";
} elseif($k[takas] == 2) {
$takas = "$dil_no[65]";
}
echo '
'.$dil_no[72].'
'.$kimden.'
'.$dil_no[73].'
'.$takas.'
'.$dil_no[78].'
'.$k[metrekare].'
';
} elseif($modul == 4){
if ($k[kimden] == 0){ $kimden = "$dil_no[60]";
} elseif($k[kimden] == 1) {
$kimden = "$dil_no[61]";
} elseif($k[kimden] == 2) {
$kimden = "$dil_no[62]";
} elseif($k[kimden] == 3) {
$kimden = "$dil_no[63]";
}
if ($k[takas] == 0){ $takas = "$dil_no[60]";
} elseif($k[takas] == 1) {
$takas = "$dil_no[64]";
} elseif($k[takas] == 2) {
$takas = "$dil_no[65]";
}
if ($k[binayasi] == 0){ $binayasi = "$dil_no[60]";
} elseif($k[binayasi] == 1) {
$binayasi = "0";
} elseif($k[binayasi] == 2) {
$binayasi = "1";
} elseif($k[binayasi] == 3) {
$binayasi = "2";
} elseif($k[binayasi] == 4) {
$binayasi = "3";
} elseif($k[binayasi] == 5) {
$binayasi = "4";
} elseif($k[binayasi] == 6) {
$binayasi = "5-10 $dil_no[79]";
} elseif($k[binayasi] == 7) {
$binayasi = "15 - 20";
} elseif($k[binayasi] == 8) {
$binayasi = "20 - 25";
} elseif($k[binayasi] == 9) {
$binayasi = "25 - 30";
} elseif($k[binayasi] == 10) {
$binayasi = "30 $dil_no[80]";
}
echo '
'.$dil_no[72].'
'.$kimden.'
'.$dil_no[81].'
'.$binayasi.'
'.$dil_no[73].'
'.$takas.'
'.$dil_no[78].'
'.$k[metrekare].'
';
} elseif($modul == 5){
#########################################################################################################
if ($k[kimden] == 0){ $kimden = "$dil_no[60]";
} elseif($k[kimden] == 1) {
$kimden = "$dil_no[61]";
} elseif($k[kimden] == 2) {
$kimden = "$dil_no[62]";
} elseif($k[kimden] == 3) {
$kimden = "$dil_no[63]";
}
if ($k[takas] == 0){ $takas = "$dil_no[60]";
} elseif($k[takas] == 1) {
$takas = "$dil_no[64]";
} elseif($k[takas] == 2) {
$takas = "$dil_no[65]";
}
if ($k[odasayisi] == 0){ $odasayisi = "$dil_no[60]";
} elseif($k[odasayisi] == 1) {
$odasayisi = "1";
} elseif($k[odasayisi] == 2) {
$odasayisi = "1+1";
} elseif($k[odasayisi] == 3) {
$odasayisi = "2+1";
} elseif($k[odasayisi] == 4) {
$odasayisi = "2+2";
} elseif($k[odasayisi] == 5) {
$odasayisi = "3+1";
} elseif($k[odasayisi] == 6) {
$odasayisi = "3+2";
} elseif($k[odasayisi] == 7) {
$odasayisi = "4+1";
} elseif($k[odasayisi] == 8) {
$odasayisi = "4+2";
} elseif($k[odasayisi] == 9) {
$odasayisi = "4+3";
} elseif($k[odasayisi] == 10) {
$odasayisi = "4+4";
} elseif($k[odasayisi] == 11) {
$odasayisi = "5";
} elseif($k[odasayisi] == 12) {
$odasayisi = "5+1";
} elseif($k[odasayisi] == 13) {
$odasayisi = "5+2";
} elseif($k[odasayisi] == 14) {
$odasayisi = "5+3";
} elseif($k[odasayisi] == 15) {
$odasayisi = "5+4";
} elseif($k[odasayisi] == 16) {
$odasayisi = "6+1";
} elseif($k[odasayisi] == 17) {
$odasayisi = "6+2";
} elseif($k[odasayisi] == 18) {
$odasayisi = "6+3";
} elseif($k[odasayisi] == 19) {
$odasayisi = "7+1";
} elseif($k[odasayisi] == 20) {
$odasayisi = "7+2";
} elseif($k[odasayisi] == 21) {
$odasayisi = "7+3";
} elseif($k[odasayisi] == 22) {
$odasayisi = "8+1";
} elseif($k[odasayisi] == 23) {
$odasayisi = "8+2";
} elseif($k[odasayisi] == 24) {
$odasayisi = "8+4";
} elseif($k[odasayisi] == 25) {
$odasayisi = "9+1";
} elseif($k[odasayisi] == 26) {
$odasayisi = "9+2";
} elseif($k[odasayisi] == 27) {
$odasayisi = "9+3";
} elseif($k[odasayisi] == 28) {
$odasayisi = "9+4";
} elseif($k[odasayisi] == 29) {
$odasayisi = "9+5";
} elseif($k[odasayisi] == 30) {
$odasayisi = "9+6";
} elseif($k[odasayisi] == 31) {
$odasayisi = "10 $dil_no[80]";
} elseif($k[odasayisi] == 32) {
$odasayisi = "$dil_no[82]";
}
if ($k[banyosayisi] == 0){ $banyosayisi = "$dil_no[60]";
} elseif($k[banyosayisi] == 1) {
$banyosayisi = "1";
} elseif($k[banyosayisi] == 2) {
$banyosayisi = "2";
} elseif($k[banyosayisi] == 3) {
$banyosayisi = "3";
} elseif($k[banyosayisi] == 4) {
$banyosayisi = "4";
} elseif($k[banyosayisi] == 5) {
$banyosayisi = "5";
} elseif($k[banyosayisi] == 6) {
$banyosayisi = "6 $dil_no[80]";
}
if ($k[katsayisi] == 0){ $katsayisi = "$dil_no[60]";
} elseif($k[katsayisi] == 1) {
$katsayisi = "1";
} elseif($k[katsayisi] == 2) {
$katsayisi = "2";
} elseif($k[katsayisi] == 3) {
$katsayisi = "3";
} elseif($k[katsayisi] == 4) {
$katsayisi = "4";
} elseif($k[katsayisi] == 5) {
$katsayisi = "5";
} elseif($k[katsayisi] == 6) {
$katsayisi = "6";
} elseif($k[katsayisi] == 7) {
$katsayisi = "7";
} elseif($k[katsayisi] == 8) {
$katsayisi = "8";
} elseif($k[katsayisi] == 9) {
$katsayisi = "9";
} elseif($k[katsayisi] == 10) {
$katsayisi = "10";
} elseif($k[katsayisi] == 11) {
$katsayisi = "11";
} elseif($k[katsayisi] == 12) {
$katsayisi = "12";
} elseif($k[katsayisi] == 13) {
$katsayisi = "13";
} elseif($k[katsayisi] == 14) {
$katsayisi = "14";
} elseif($k[katsayisi] == 15) {
$katsayisi = "15";
} elseif($k[katsayisi] == 16) {
$katsayisi = "16";
} elseif($k[katsayisi] == 17) {
$katsayisi = "17";
} elseif($k[katsayisi] == 18) {
$katsayisi = "18";
} elseif($k[katsayisi] == 19) {
$katsayisi = "19";
} elseif($k[katsayisi] == 20) {
$katsayisi = "20 $dil_no[80]";
}
if ($k[bulundugukat] == 0){ $bulundugukat = "$dil_no[60]";
} elseif($k[bulundugukat] == 1) {
$bulundugukat = "$dil_no[83]";
} elseif($k[bulundugukat] == 2) {
$bulundugukat = "$dil_no[84]";
} elseif($k[bulundugukat] == 3) {
$bulundugukat = "$dil_no[85]";
} elseif($k[bulundugukat] == 4) {
$bulundugukat = "$dil_no[86]";
} elseif($k[bulundugukat] == 5) {
$bulundugukat = "$dil_no[87]";
} elseif($k[bulundugukat] == 6) {
$bulundugukat = "$dil_no[88]";
} elseif($k[bulundugukat] == 7) {
$bulundugukat = "$dil_no[89]";
} elseif($k[bulundugukat] == 8) {
$bulundugukat = "1";
} elseif($k[bulundugukat] == 9) {
$bulundugukat = "2";
} elseif($k[bulundugukat] == 10) {
$bulundugukat = "3";
} elseif($k[bulundugukat] == 11) {
$bulundugukat = "4";
} elseif($k[bulundugukat] == 12) {
$bulundugukat = "5";
} elseif($k[bulundugukat] == 13) {
$bulundugukat = "6";
} elseif($k[bulundugukat] == 14) {
$bulundugukat = "7";
} elseif($k[bulundugukat] == 15) {
$bulundugukat = "8";
} elseif($k[bulundugukat] == 16) {
$bulundugukat = "9";
} elseif($k[bulundugukat] == 17) {
$bulundugukat = "10 $dil_no[80]";
}
if ($k[isitma] == 0){ $isitma = "$dil_no[60]";
} elseif($k[bulundugukat] == 1) {
$isitma = "$dil_no[90]";
} elseif($k[isitma] == 2) {
$isitma = "$dil_no[91]";
} elseif($k[isitma] == 3) {
$isitma = "$dil_no[92]";
} elseif($k[isitma] == 4) {
$isitma = "$dil_no[93]";
} elseif($k[isitma] == 5) {
$isitma = "$dil_no[94]";
} elseif($k[isitma] == 6) {
$isitma = "$dil_no[95]";
} elseif($k[isitma] == 7) {
$isitma = "$dil_no[96]";
} elseif($k[isitma] == 8) {
$isitma = "$dil_no[97]";
} elseif($k[isitma] == 9) {
$isitma = "$dil_no[98]";
} elseif($k[isitma] == 10) {
$isitma = "$dil_no[99]";
}
if ($k[binayasi] == 0){ $binayasi = "$dil_no[60]";
} elseif($k[binayasi] == 1) {
$binayasi = "0";
} elseif($k[binayasi] == 2) {
$binayasi = "1";
} elseif($k[binayasi] == 3) {
$binayasi = "2";
} elseif($k[binayasi] == 4) {
$binayasi = "3";
} elseif($k[binayasi] == 5) {
$binayasi = "4";
} elseif($k[binayasi] == 6) {
$binayasi = "5-10 $dil_no[79]";
} elseif($k[binayasi] == 7) {
$binayasi = "15 - 20";
} elseif($k[binayasi] == 8) {
$binayasi = "20 - 25";
} elseif($k[binayasi] == 9) {
$binayasi = "25 - 30";
} elseif($k[binayasi] == 10) {
$binayasi = "30 $dil_no[80]";
}
echo '
'.$dil_no[72].'
'.$kimden.'
'.$dil_no[73].'
'.$takas.'
'.$dil_no[100].'
'.$odasayisi.'
'.$dil_no[101].'
'.$banyosayisi.'
'.$dil_no[102].'
'.$katsayisi.'
'.$dil_no[103].'
'.$bulundugukat.'
'.$dil_no[104].'
'.$isitma.'
'.$dil_no[81].'
'.$binayasi.'
'.$dil_no[78].'
'.$k[metrekare].'
';
#########################################################################################################
} elseif ($modul == 6){
if ($k[kimden] == 0){ $kimden = "$dil_no[60]";
} elseif($k[kimden] == 1) {
$kimden = "$dil_no[105]";
} elseif($k[kimden] == 2) {
$kimden = "$dil_no[61]";
}
if ($k[renk] == 0){ $renk = "$dil_no[60]";
} elseif($k[renk] == 1) {
$renk = "$dil_no[106]";
} elseif($k[renk] == 2) {
$renk = "$dil_no[107]";
} elseif($k[renk] == 3) {
$renk = "$dil_no[108]";
} elseif($k[renk] == 4) {
$renk = "$dil_no[109]";
} elseif($k[renk] == 5) {
$renk = "$dil_no[110]";
} elseif($k[renk] == 6) {
$renk = "$dil_no[111]";
} elseif($k[renk] == 7) {
$renk = "$dil_no[112]";
} elseif($k[renk] == 8) {
$renk = "$dil_no[113]";
} elseif($k[renk] == 9) {
$renk = "$dil_no[114]";
} elseif($k[renk] == 10) {
$renk = "$dil_no[115]";
} elseif($k[renk] == 11) {
$renk = "$dil_no[116]";
} elseif($k[renk] == 12) {
$renk = "$dil_no[117]";
} elseif($k[renk] == 13) {
$renk = "$dil_no[118]";
} elseif($k[renk] == 14) {
$renk = "$dil_no[119]";
} elseif($k[renk] == 15) {
$renk = "$dil_no[120]";
} elseif($k[renk] == 16) {
$renk = "$dil_no[121]";
} elseif($k[renk] == 17) {
$renk = "$dil_no[122]";
} elseif($k[renk] == 18) {
$renk = "$dil_no[123]";
}
if ($k[silindir] == 0){ $silindir = "$dil_no[60]";
} elseif($k[silindir] == 1) {
$silindir = "$dil_no[124]";
} elseif($k[silindir] == 2) {
$silindir = "$dil_no[125]";
} elseif($k[silindir] == 3) {
$silindir = "$dil_no[126]";
} elseif($k[silindir] == 4) {
$silindir = "$dil_no[127]";
} elseif($k[silindir] == 5) {
$silindir = "$dil_no[128]";
}
if ($k[motorhacmi] == 0){ $motorhacmi = "$dil_no[60]";
} elseif($k[motorhacmi] == 1) {
$motorhacmi = "0 - 100 $dil_no[129]";
} elseif($k[motorhacmi] == 2) {
$motorhacmi = "100 - 125 $dil_no[129]";
} elseif($k[motorhacmi] == 3) {
$motorhacmi = "126 - 250 $dil_no[129]";
} elseif($k[motorhacmi] == 4) {
$motorhacmi = "251 - 600 $dil_no[129]";
} elseif($k[motorhacmi] == 5) {
$motorhacmi = "601 - 1000 $dil_no[129]";
} elseif($k[motorhacmi] == 6) {
$motorhacmi = "1001 - 1300 $dil_no[129]";
} elseif($k[motorhacmi] == 7) {
$motorhacmi = "1301 - 1500 $dil_no[129]";
} elseif($k[motorhacmi] == 8) {
$motorhacmi = "1501 $dil_no[60] $dil_no[80]";
}
if ($k[motorgucu] == 0){ $motorgucu = "$dil_no[60]";
} elseif($k[motorgucu] == 1) {
$motorgucu = "25 $dil_no[130]";
} elseif($k[motorgucu] == 2) {
$motorgucu = "26 - 50 $dil_no[79]";
} elseif($k[motorgucu] == 3) {
$motorgucu = "51 - 75 $dil_no[79]";
} elseif($k[motorgucu] == 4) {
$motorgucu = "76 - 100 $dil_no[79]";
} elseif($k[motorgucu] == 5) {
$motorgucu = "101 - 125 $dil_no[79]";
} elseif($k[motorgucu] == 6) {
$motorgucu = "126 - 150 $dil_no[79]";
} elseif($k[motorgucu] == 7) {
$motorgucu = "151 - 175 $dil_no[79]";
} elseif($k[motorgucu] == 8) {
$motorgucu = "176 - 200 $dil_no[79]";
} elseif($k[motorgucu] == 9) {
$motorgucu = "201 - 225 $dil_no[79]";
} elseif($k[motorgucu] == 10) {
$motorgucu = "225 - 250 $dil_no[79]";
} elseif($k[motorgucu] == 11) {
$motorgucu = "251 $dil_no[80]";
}
if ($k[garanti] == 0){ $garanti = "$dil_no[80]";
} elseif($k[garanti] == 1) {
$garanti = "$dil_no[131]";
} elseif($k[garanti] == 2) {
$garanti = "$dil_no[132]";
}
echo '
'.$dil_no[72].'
'.$kimden.'
'.$dil_no[133].'
'.$renk.'
'.$dil_no[134].'
'.$silindir.'
'.$dil_no[135].'
'.$motorhacmi.'
'.$dil_no[136].'
'.$motorgucu.'
'.$dil_no[137].'
'.$garanti.'
'.$dil_no[138].'
'.$k[model].'
'.$dil_no[139].'
'.$k[km].'
';
} elseif ($modul == 7){
if ($k[kimden] == 0){ $kimden = "$dil_no[60]";
} elseif($k[kimden] == 1) {
$kimden = "$dil_no[105]";
} elseif($k[kimden] == 2) {
$kimden = "$dil_no[61]";
}
if ($k[renk] == 0){ $renk = "$dil_no[60]";
} elseif($k[renk] == 1) {
$renk = "$dil_no[106]";
} elseif($k[renk] == 2) {
$renk = "$dil_no[107]";
} elseif($k[renk] == 3) {
$renk = "$dil_no[108]";
} elseif($k[renk] == 4) {
$renk = "$dil_no[109]";
} elseif($k[renk] == 5) {
$renk = "$dil_no[110]";
} elseif($k[renk] == 6) {
$renk = "$dil_no[111]";
} elseif($k[renk] == 7) {
$renk = "$dil_no[112]";
} elseif($k[renk] == 8) {
$renk = "$dil_no[113]";
} elseif($k[renk] == 9) {
$renk = "$dil_no[114]";
} elseif($k[renk] == 10) {
$renk = "$dil_no[115]";
} elseif($k[renk] == 11) {
$renk = "$dil_no[116]";
} elseif($k[renk] == 12) {
$renk = "$dil_no[117]";
} elseif($k[renk] == 13) {
$renk = "$dil_no[118]";
} elseif($k[renk] == 14) {
$renk = "$dil_no[119]";
} elseif($k[renk] == 15) {
$renk = "$dil_no[120]";
} elseif($k[renk] == 16) {
$renk = "$dil_no[121]";
} elseif($k[renk] == 17) {
$renk = "$dil_no[122]";
} elseif($k[renk] == 18) {
$renk = "$dil_no[123]";
}
if ($k[motorhacmi] == 0){ $motorhacmi = "$dil_no[60]";
} elseif($k[motorhacmi] == 1) {
$motorhacmi = "1301 - 1600 $dil_no[129]";
} elseif($k[motorhacmi] == 2) {
$motorhacmi = "1601 - 1800 $dil_no[129]";
} elseif($k[motorhacmi] == 3) {
$motorhacmi = "1801 - 2000 $dil_no[129]";
} elseif($k[motorhacmi] == 4) {
$motorhacmi = "2001 - 2500 $dil_no[129]";
} elseif($k[motorhacmi] == 5) {
$motorhacmi = "2501 - 3000 $dil_no[129]";
} elseif($k[motorhacmi] == 6) {
$motorhacmi = "3001 - 3500 $dil_no[129]";
} elseif($k[motorhacmi] == 7) {
$motorhacmi = "3501 - 4000 $dil_no[129]";
} elseif($k[motorhacmi] == 8) {
$motorhacmi = "4001 - 4500 $dil_no[129]";
} elseif($k[motorhacmi] == 9) {
$motorhacmi = "4501 - 5000 $dil_no[129]";
} elseif($k[motorhacmi] == 10) {
$motorhacmi = "5001 - 5500 $dil_no[129]";
} elseif($k[motorhacmi] == 11) {
$motorhacmi = "5501 - 6000 $dil_no[129]";
} elseif($k[motorhacmi] == 12) {
$motorhacmi = "6001 $dil_no[129] $dil_no[80]";
}
if ($k[motorgucu] == 0){ $motorgucu = "$dil_no[60]";
} elseif($k[motorgucu] == 1) {
$motorgucu = "100 $dil_no[130]";
} elseif($k[motorgucu] == 2) {
$motorgucu = "101 - 125 $dil_no[79]";
} elseif($k[motorgucu] == 3) {
$motorgucu = "126 - 150 $dil_no[79]";
} elseif($k[motorgucu] == 4) {
$motorgucu = "151 - 175 $dil_no[79]";
} elseif($k[motorgucu] == 5) {
$motorgucu = "176 - 200 $dil_no[79]";
} elseif($k[motorgucu] == 6) {
$motorgucu = "201 - 225 $dil_no[79]";
} elseif($k[motorgucu] == 7) {
$motorgucu = "226 - 250 $dil_no[79]";
} elseif($k[motorgucu] == 8) {
$motorgucu = "251 - 275 $dil_no[79]";
} elseif($k[motorgucu] == 9) {
$motorgucu = "276 - 300 $dil_no[79]";
} elseif($k[motorgucu] == 10) {
$motorgucu = "301 - 325 $dil_no[79]";
} elseif($k[motorgucu] == 11) {
$motorgucu = "326 - 350 $dil_no[79]";
} elseif($k[motorgucu] == 12) {
$motorgucu = "351 - 375 $dil_no[79]";
} elseif($k[motorgucu] == 13) {
$motorgucu = "376 - 400 $dil_no[79]";
} elseif($k[motorgucu] == 14) {
$motorgucu = "401 - 425 $dil_no[79]";
} elseif($k[motorgucu] == 15) {
$motorgucu = "426 - 450 $dil_no[79]";
} elseif($k[motorgucu] == 16) {
$motorgucu = "451 - 475 $dil_no[79]";
} elseif($k[motorgucu] == 17) {
$motorgucu = "476 - 500 $dil_no[79]";
} elseif($k[motorgucu] == 18) {
$motorgucu = "501 - 525 $dil_no[79]";
} elseif($k[motorgucu] == 19) {
$motorgucu = "526 - 550 $dil_no[79]";
} elseif($k[motorgucu] == 20) {
$motorgucu = "551 - 575 $dil_no[79]";
} elseif($k[motorgucu] == 21) {
$motorgucu = "576 - 600 $dil_no[79]";
} elseif($k[motorgucu] == 22) {
$motorgucu = "601 $dil_no[80]";
}
if ($k[yakit] == 0){ $yakit = "$dil_no[60]";
} elseif($k[yakit] == 1) {
$yakit = "$dil_no[140]";
} elseif($k[yakit] == 2) {
$yakit = "$dil_no[141]";
} elseif($k[yakit] == 3) {
$yakit = "$dil_no[142]";
} elseif($k[yakit] == 4) {
$yakit = "$dil_no[143]";
}
if ($k[vites] == 0){ $vites = "$dil_no[60]";
} elseif($k[vites] == 1) {
$vites = "$dil_no[144]";
} elseif($k[vites] == 2) {
$vites = "$dil_no[145]";
} elseif($k[vites] == 3) {
$vites = "$dil_no[146]";
}
if ($k[kasatipi] == 0){ $kasatipi = "$dil_no[60]";
} elseif($k[kasatipi] == 1) {
$kasatipi = "$dil_no[147]";
} elseif($k[kasatipi] == 2) {
$kasatipi = "$dil_no[148]";
} elseif($k[kasatipi] == 3) {
$kasatipi = "$dil_no[149]";
} elseif($k[kasatipi] == 4) {
$kasatipi = "$dil_no[150]";
} elseif($k[kasatipi] == 5) {
$kasatipi = "$dil_no[151]";
} elseif($k[kasatipi] == 6) {
$kasatipi = "$dil_no[152]";
}
if ($k[garanti] == 0){ $garanti = "$dil_no[60]";
} elseif($k[garanti] == 1) {
$garanti = "$dil_no[131]";
} elseif($k[garanti] == 2) {
$garanti = "$dil_no[132]";
}
echo '
'.$dil_no[72].'
'.$kimden.'
'.$dil_no[133].'
'.$renk.'
'.$dil_no[135].'
'.$motorhacmi.'
'.$dil_no[136].'
'.$motorgucu.'
'.$dil_no[153].'
'.$yakit.'
'.$dil_no[154].'
'.$vites.'
'.$dil_no[155].'
'.$kasatipi.'
'.$dil_no[137].'
'.$garanti.'
'.$dil_no[138].'
'.$k[model].'
'.$dil_no[139].'
'.$k[km].'
';
} elseif ($modul == 8){
if ($k[kimden] == 0){ $kimden = "$dil_no[60]";
} elseif($k[kimden] == 1) {
$kimden = "$dil_no[105]";
} elseif($k[kimden] == 2) {
$kimden = "$dil_no[61]";
}
if ($k[renk] == 0){ $renk = "$dil_no[60]";
} elseif($k[renk] == 1) {
$renk = "$dil_no[106]";
} elseif($k[renk] == 2) {
$renk = "$dil_no[107]";
} elseif($k[renk] == 3) {
$renk = "$dil_no[108]";
} elseif($k[renk] == 4) {
$renk = "$dil_no[109]";
} elseif($k[renk] == 5) {
$renk = "$dil_no[110]";
} elseif($k[renk] == 6) {
$renk = "$dil_no[111]";
} elseif($k[renk] == 7) {
$renk = "$dil_no[112]";
} elseif($k[renk] == 8) {
$renk = "$dil_no[113]";
} elseif($k[renk] == 9) {
$renk = "$dil_no[114]";
} elseif($k[renk] == 10) {
$renk = "$dil_no[115]";
} elseif($k[renk] == 11) {
$renk = "$dil_no[116]";
} elseif($k[renk] == 12) {
$renk = "$dil_no[117]";
} elseif($k[renk] == 13) {
$renk = "$dil_no[118]";
} elseif($k[renk] == 14) {
$renk = "$dil_no[119]";
} elseif($k[renk] == 15) {
$renk = "$dil_no[120]";
} elseif($k[renk] == 16) {
$renk = "$dil_no[121]";
} elseif($k[renk] == 17) {
$renk = "$dil_no[122]";
} elseif($k[renk] == 18) {
$renk = "$dil_no[123]";
}
if ($k[motorhacmi] == 0){ $motorhacmi = "$dil_no[60]";
} elseif($k[motorhacmi] == 1) {
$motorhacmi = "1301 - 1600 $dil_no[129]";
} elseif($k[motorhacmi] == 2) {
$motorhacmi = "1601 - 1800 $dil_no[129]";
} elseif($k[motorhacmi] == 3) {
$motorhacmi = "1801 - 2000 $dil_no[129]";
} elseif($k[motorhacmi] == 4) {
$motorhacmi = "2001 - 2500 $dil_no[129]";
} elseif($k[motorhacmi] == 5) {
$motorhacmi = "2501 - 3000 $dil_no[129]";
} elseif($k[motorhacmi] == 6) {
$motorhacmi = "3001 - 3500 $dil_no[129]";
} elseif($k[motorhacmi] == 7) {
$motorhacmi = "3501 - 4000 $dil_no[129]";
} elseif($k[motorhacmi] == 8) {
$motorhacmi = "4001 - 4500 $dil_no[129]";
} elseif($k[motorhacmi] == 9) {
$motorhacmi = "4501 - 5000 $dil_no[129]";
} elseif($k[motorhacmi] == 10) {
$motorhacmi = "5001 - 5500 $dil_no[129]";
} elseif($k[motorhacmi] == 11) {
$motorhacmi = "5501 - 6000 $dil_no[129]";
} elseif($k[motorhacmi] == 12) {
$motorhacmi = "6001 $dil_no[129] $dil_no[80]";
}
if ($k[motorgucu] == 0){ $motorgucu = "$dil_no[60]";
} elseif($k[motorgucu] == 1) {
$motorgucu = "100 $dil_no[130]";
} elseif($k[motorgucu] == 2) {
$motorgucu = "101 - 125 $dil_no[79]";
} elseif($k[motorgucu] == 3) {
$motorgucu = "126 - 150 $dil_no[79]";
} elseif($k[motorgucu] == 4) {
$motorgucu = "151 - 175 $dil_no[79]";
} elseif($k[motorgucu] == 5) {
$motorgucu = "176 - 200 $dil_no[79]";
} elseif($k[motorgucu] == 6) {
$motorgucu = "201 - 225 $dil_no[79]";
} elseif($k[motorgucu] == 7) {
$motorgucu = "226 - 250 $dil_no[79]";
} elseif($k[motorgucu] == 8) {
$motorgucu = "251 - 275 $dil_no[79]";
} elseif($k[motorgucu] == 9) {
$motorgucu = "276 - 300 $dil_no[79]";
} elseif($k[motorgucu] == 10) {
$motorgucu = "301 - 325 $dil_no[79]";
} elseif($k[motorgucu] == 11) {
$motorgucu = "326 - 350 $dil_no[79]";
} elseif($k[motorgucu] == 12) {
$motorgucu = "351 - 375 $dil_no[79]";
} elseif($k[motorgucu] == 13) {
$motorgucu = "376 - 400 $dil_no[79]";
} elseif($k[motorgucu] == 14) {
$motorgucu = "401 - 425 $dil_no[79]";
} elseif($k[motorgucu] == 15) {
$motorgucu = "426 - 450 $dil_no[79]";
} elseif($k[motorgucu] == 16) {
$motorgucu = "451 - 475 $dil_no[79]";
} elseif($k[motorgucu] == 17) {
$motorgucu = "476 - 500 $dil_no[79]";
} elseif($k[motorgucu] == 18) {
$motorgucu = "501 - 525 $dil_no[79]";
} elseif($k[motorgucu] == 19) {
$motorgucu = "526 - 550 $dil_no[79]";
} elseif($k[motorgucu] == 20) {
$motorgucu = "551 - 575 $dil_no[79]";
} elseif($k[motorgucu] == 21) {
$motorgucu = "576 - 600 $dil_no[79]";
} elseif($k[motorgucu] == 22) {
$motorgucu = "601 $dil_no[80]";
}
if ($k[yakit] == 0){ $yakit = "$dil_no[60]";
} elseif($k[yakit] == 1) {
$yakit = "$dil_no[140]";
} elseif($k[yakit] == 2) {
$yakit = "$dil_no[141]";
} elseif($k[yakit] == 3) {
$yakit = "$dil_no[142]";
} elseif($k[yakit] == 4) {
$yakit = "$dil_no[143]";
}
if ($k[vites] == 0){ $vites = "$dil_no[60]";
} elseif($k[vites] == 1) {
$vites = "$dil_no[144]";
} elseif($k[vites] == 2) {
$vites = "$dil_no[145]";
} elseif($k[vites] == 3) {
$vites = "$dil_no[146]";
}
if ($k[kasatipi] == 0){ $kasatipi = "$dil_no[60]";
} elseif($k[kasatipi] == 1) {
$kasatipi = "$dil_no[147]";
} elseif($k[kasatipi] == 2) {
$kasatipi = "$dil_no[148]";
} elseif($k[kasatipi] == 3) {
$kasatipi = "$dil_no[149]";
} elseif($k[kasatipi] == 4) {
$kasatipi = "$dil_no[150]";
} elseif($k[kasatipi] == 5) {
$kasatipi = "$dil_no[151]";
} elseif($k[kasatipi] == 6) {
$kasatipi = "$dil_no[152]";
}
if ($k[garanti] == 0){ $garanti = "$dil_no[60]";
} elseif($k[garanti] == 1) {
$garanti = "$dil_no[131]";
} elseif($k[garanti] == 2) {
$garanti = "$dil_no[132]";
}
echo '
'.$dil_no[72].'
'.$kimden.'
'.$dil_no[133].'
'.$renk.'
'.$dil_no[135].'
'.$motorhacmi.'
'.$dil_no[136].'
'.$motorgucu.'
'.$dil_no[153].'
'.$yakit.'
'.$dil_no[154].'
'.$vites.'
'.$dil_no[137].'
'.$garanti.'
'.$dil_no[138].'
'.$k[model].'
'.$dil_no[139].'
'.$k[km].'
';
} elseif ($modul == 9){
if ($k[kimden] == 0){ $kimden = "$dil_no[60]";
} elseif($k[kimden] == 1) {
$kimden = "$dil_no[105]";
} elseif($k[kimden] == 2) {
$kimden = "$dil_no[61]";
}
if ($k[renk] == 0){ $renk = "$dil_no[60]";
} elseif($k[renk] == 1) {
$renk = "$dil_no[106]";
} elseif($k[renk] == 2) {
$renk = "$dil_no[107]";
} elseif($k[renk] == 3) {
$renk = "$dil_no[108]";
} elseif($k[renk] == 4) {
$renk = "$dil_no[109]";
} elseif($k[renk] == 5) {
$renk = "$dil_no[110]";
} elseif($k[renk] == 6) {
$renk = "$dil_no[111]";
} elseif($k[renk] == 7) {
$renk = "$dil_no[112]";
} elseif($k[renk] == 8) {
$renk = "$dil_no[113]";
} elseif($k[renk] == 9) {
$renk = "$dil_no[114]";
} elseif($k[renk] == 10) {
$renk = "$dil_no[115]";
} elseif($k[renk] == 11) {
$renk = "$dil_no[116]";
} elseif($k[renk] == 12) {
$renk = "$dil_no[117]";
} elseif($k[renk] == 13) {
$renk = "$dil_no[118]";
} elseif($k[renk] == 14) {
$renk = "$dil_no[119]";
} elseif($k[renk] == 15) {
$renk = "$dil_no[120]";
} elseif($k[renk] == 16) {
$renk = "$dil_no[121]";
} elseif($k[renk] == 17) {
$renk = "$dil_no[122]";
} elseif($k[renk] == 18) {
$renk = "$dil_no[123]";
}
if ($k[motorhacmi] == 0){ $motorhacmi = "$dil_no[60]";
} elseif($k[motorhacmi] == 1) {
$motorhacmi = "1301 - 1600 $dil_no[129]";
} elseif($k[motorhacmi] == 2) {
$motorhacmi = "1601 - 1800 $dil_no[129]";
} elseif($k[motorhacmi] == 3) {
$motorhacmi = "1801 - 2000 $dil_no[129]";
} elseif($k[motorhacmi] == 4) {
$motorhacmi = "2001 - 2500 $dil_no[129]";
} elseif($k[motorhacmi] == 5) {
$motorhacmi = "2501 - 3000 $dil_no[129]";
} elseif($k[motorhacmi] == 6) {
$motorhacmi = "3001 - 3500 $dil_no[129]";
} elseif($k[motorhacmi] == 7) {
$motorhacmi = "3501 - 4000 $dil_no[129]";
} elseif($k[motorhacmi] == 8) {
$motorhacmi = "4001 - 4500 $dil_no[129]";
} elseif($k[motorhacmi] == 9) {
$motorhacmi = "4501 - 5000 $dil_no[129]";
} elseif($k[motorhacmi] == 10) {
$motorhacmi = "5001 - 5500 $dil_no[129]";
} elseif($k[motorhacmi] == 11) {
$motorhacmi = "5501 - 6000 $dil_no[129]";
} elseif($k[motorhacmi] == 12) {
$motorhacmi = "6001 $dil_no[129] $dil_no[80]";
}
if ($k[motorgucu] == 0){ $motorgucu = "$dil_no[60]";
} elseif($k[motorgucu] == 1) {
$motorgucu = "100 $dil_no[130]";
} elseif($k[motorgucu] == 2) {
$motorgucu = "101 - 125 $dil_no[79]";
} elseif($k[motorgucu] == 3) {
$motorgucu = "126 - 150 $dil_no[79]";
} elseif($k[motorgucu] == 4) {
$motorgucu = "151 - 175 $dil_no[79]";
} elseif($k[motorgucu] == 5) {
$motorgucu = "176 - 200 $dil_no[79]";
} elseif($k[motorgucu] == 6) {
$motorgucu = "201 - 225 $dil_no[79]";
} elseif($k[motorgucu] == 7) {
$motorgucu = "226 - 250 $dil_no[79]";
} elseif($k[motorgucu] == 8) {
$motorgucu = "251 - 275 $dil_no[79]";
} elseif($k[motorgucu] == 9) {
$motorgucu = "276 - 300 $dil_no[79]";
} elseif($k[motorgucu] == 10) {
$motorgucu = "301 - 325 $dil_no[79]";
} elseif($k[motorgucu] == 11) {
$motorgucu = "326 - 350 $dil_no[79]";
} elseif($k[motorgucu] == 12) {
$motorgucu = "351 - 375 $dil_no[79]";
} elseif($k[motorgucu] == 13) {
$motorgucu = "376 - 400 $dil_no[79]";
} elseif($k[motorgucu] == 14) {
$motorgucu = "401 - 425 $dil_no[79]";
} elseif($k[motorgucu] == 15) {
$motorgucu = "426 - 450 $dil_no[79]";
} elseif($k[motorgucu] == 16) {
$motorgucu = "451 - 475 $dil_no[79]";
} elseif($k[motorgucu] == 17) {
$motorgucu = "476 - 500 $dil_no[79]";
} elseif($k[motorgucu] == 18) {
$motorgucu = "501 - 525 $dil_no[79]";
} elseif($k[motorgucu] == 19) {
$motorgucu = "526 - 550 $dil_no[79]";
} elseif($k[motorgucu] == 20) {
$motorgucu = "551 - 575 $dil_no[79]";
} elseif($k[motorgucu] == 21) {
$motorgucu = "576 - 600 $dil_no[79]";
} elseif($k[motorgucu] == 22) {
$motorgucu = "601 $dil_no[80]";
}
if ($k[yakit] == 0){ $yakit = "$dil_no[60]";
} elseif($k[yakit] == 1) {
$yakit = "$dil_no[140]";
} elseif($k[yakit] == 2) {
$yakit = "$dil_no[141]";
} elseif($k[yakit] == 3) {
$yakit = "$dil_no[142]";
} elseif($k[yakit] == 4) {
$yakit = "$dil_no[143]";
}
if ($k[vites] == 0){ $vites = "$dil_no[60]";
} elseif($k[vites] == 1) {
$vites = "$dil_no[144]";
} elseif($k[vites] == 2) {
$vites = "$dil_no[145]";
} elseif($k[vites] == 3) {
$vites = "$dil_no[146]";
}
if ($k[kasatipi] == 0){ $kasatipi = "$dil_no[60]";
} elseif($k[kasatipi] == 1) {
$kasatipi = "$dil_no[147]";
} elseif($k[kasatipi] == 2) {
$kasatipi = "$dil_no[148]";
} elseif($k[kasatipi] == 3) {
$kasatipi = "$dil_no[149]";
} elseif($k[kasatipi] == 4) {
$kasatipi = "$dil_no[150]";
} elseif($k[kasatipi] == 5) {
$kasatipi = "$dil_no[151]";
} elseif($k[kasatipi] == 6) {
$kasatipi = "$dil_no[152]";
}
if ($k[garanti] == 0){ $garanti = "$dil_no[60]";
} elseif($k[garanti] == 1) {
$garanti = "$dil_no[131]";
} elseif($k[garanti] == 2) {
$garanti = "$dil_no[132]";
}
echo '
'.$dil_no[72].'
'.$kimden.'
'.$dil_no[133].'
'.$renk.'
'.$dil_no[135].'
'.$motorhacmi.'
'.$dil_no[136].'
'.$motorgucu.'
'.$dil_no[153].'
'.$yakit.'
'.$dil_no[154].'
'.$vites.'
'.$dil_no[137].'
'.$garanti.'
'.$dil_no[138].'
'.$k[model].'
'.$dil_no[139].'
'.$k[km].'
';
}
?>
if ($a[guvenli] == 1){ ?>
Stok
echo $a[stok]; ?>
Kargo Firması
echo $a[kargo]; ?>
Kargo Ücreti
echo $a[kargodurum]; ?>
} ?>
if ($a[guvenli] == 1){ ?>
} ?>
$sql12 = mysql_query("SELECT * FROM resimler WHERE ilanId = '$id'");
$ks = 1;
while ($l = mysql_fetch_array($sql12)){
$maxWidth = 100;
$maxHeight = 75;
$imagename="ilanlar/$l[kucuk]";
list($width, $height) = getimagesize($imagename);
$xRatio = $maxWidth / $width;
$yRatio = $maxHeight / $height;
if ( ($width <= $maxWidth) && ($height <= $maxHeight) ) {
$newWidth = $width;
$newHeight = $height;
}
else if (($xRatio * $height) < $maxHeight) {
$newHeight = ceil($xRatio * $height);
$newWidth = $maxWidth;
}
else {
$newWidth = ceil($yRatio * $width);
$newHeight = $maxHeight;
}
$maxWidth2 = 400;
$maxHeight2 = 300;
$imagename2="ilanlar/$l[resim_adi]";
list($width2, $height2) = getimagesize($imagename2);
$xRatio2 = $maxWidth2 / $width2;
$yRatio2 = $maxHeight2 / $height2;
if ( ($width2 <= $maxWidth2) && ($height2 <= $maxHeight2) ) {
$newWidth2 = $width2;
$newHeight2 = $height2;
}
else if (($xRatio2 * $height2) < $maxHeight2) {
$newHeight2 = ceil($xRatio2 * $height2);
$newWidth2 = $maxWidth2;
}
else {
$newWidth2 = ceil($yRatio2 * $width2);
$newHeight2 = $maxHeight2;
}
if ($ks == 4){
echo '';
$ks = 1;
} else {
echo '';
$ks++;
}
echo ' ';
}
?>
echo $dil_no[156]; ?>
echo $icon; ?> echo $f[adsoyad]; ?>
echo $dil_no[157]; ?> echo $t2[0]; ?> echo $ay2; ?> echo $t2[2]; ?>
echo $dil_no[158]; ?>
echo $f[telefon]." - ".$f[cep]; ?>
$sql17 = mysql_query("SELECT * FROM magazalar WHERE uyeId = '$f[Id]'");
$mk = mysql_fetch_array($sql17);
if (mysql_num_rows($sql17) > 0){
$kls = $_SERVER['HTTP_HOST'];
$kls = str_replace("www.","",$kls);
$link = "http://$mk[url].$kls";
echo '
';
} else { }
?>
$face = "$id";
$ba = iconv("ISO-8859-9","UTF-8",$a[baslik]);
$da = iconv("ISO-8859-9","UTF-8","Türkiyenin Öğrencilere Özel İlk ve Tek İlan Sitesi");
$ba = str_replace("'"," ",$ba);
$ba = str_replace('"'," ",$ba);
$res = $siteurl."/ilanlar/".$r2;
if ($a[harita] != "__"){
$hlink = '"";
}
?>
echo $dil_no[162]; ?>
echo $aciklama; ?>
echo $a[gosterim]; ?>
echo $dil_no[163]; ?>
$kat = $a["kategori".$kategori];
$sql99 = mysql_query("SELECT * FROM kategoriler WHERE Id = '$kat'");
$a99 = mysql_fetch_array($sql99);
$m_modul = $a99[modul];
?>
echo $dil_no[164]; ?>
$kat = $a["kategori".$kategori];
/*
if ($cekilecek == 2){
echo "
Cephe ";
} elseif ($cekilecek == 3){
echo "
Kullanım Amacı ";
}
*/
$zql = mysql_query("SELECT * FROM gruplar WHERE modulId = '$m_modul' ORDER BY Id ASC");
while ($zz = mysql_fetch_array($zql)){
echo '
'.$zz[grupadi].' ';
$sql13 = mysql_query("SELECT * FROM ozellikler WHERE grupadi = '$zz[Id]' ORDER BY Id ASC");
$say = 1;
while ($n = mysql_fetch_array($sql13)){
$sql14 = mysql_query("SELECT * FROM ilan_ozellikleri WHERE ilanId = '$id' and ozellikId = '$n[Id]'");
if (mysql_num_rows($sql14) == 0){
echo '
'.$n[ozellik_adi].'
';
} else {
$o = mysql_fetch_array($sql14);
if ($o[durum] == 0){
echo '
'.$n[ozellik_adi].'
';
} else {
echo '
'.$n[ozellik_adi].'
';
}
}
}
}
?>
İlan Hakkında Yapılan Yorumlar
$yorum = mysql_query("SELECT * FROM ilan_yorumlari WHERE ilanId = '$id' and onay = '1'");
$adet = mysql_num_rows($yorum);
if (mysql_num_rows($yorum) == 0){
echo '
';
} else {
echo '
';
while ($ex = mysql_fetch_array($yorum)){
$uy = mysql_query("SELECT * FROM uyeler WHERE Id = '$ex[uye]'");
$u = mysql_fetch_array($uy);
echo '
'.$u[adsoyad].'
'.$ex[yorum].'
Bu yorumu faydalı buluyor musunuz?
Teşekkür ederiz
';
}
}
?>