teksatir("select name from referans_ctgry where status='1' and id=$cid",true); if($cid<0 or ($cid>0 and !$kategori)) yonlendir("index.php"); define('mTitle',$cid>0?lngProje." - $kategori":lngProje); include("header2.php"); $kategoriler=$db->coksatirPlus("select c.id,c.name, count(p.id) as say from proje p, referans_ctgry c where p.ctgry=c.id and c.status='1' and c.lang='".LANG."' group by c.id order by c.list asc"); $kategorilerM=$db->coksatirPlus($kategoriler,"
  • **\$name** **\$say**
  • "); $kategoriArray=array(); foreach($kategoriler as $kat) $kategoriArray[]=$kat['id']; echo '
    '; if($cid>0) echo "

    ".lngProje." > $kategori

    "; else echo "

    ".lngProje."

    "; echo "
    "; echo "
    "; echo "» ".lngAllProjects." "; foreach($kategoriler as $kat) { extract($kat); echo "» $name "; } echo "
    "; echo "
    "; if(isset($_POST['urun'])) { /* $ara=TEXT($_POST['urun']); if(strlen($ara)<3) yonlendir('urunler.php','En az 3 karakter giriniz'); else $urunler=$db->coksatirPlus("select id,name,img as image from product where status='1' and name like '%$ara%' order by name"); if(!$urunler) yonlendir('urunler.php','Arama sonucuna uygun ürün bulunamadı'); */ } else { if($cid>0) $where=" and ctgry=$cid "; else $where="and ctgry in(".implode(",",$kategoriArray).") "; if($cid==0) $limit.=" limit 0,40"; $urunler=$db->coksatirPlus("select id,name,img as image from proje where status='1' $where order by id desc $limit"); } foreach($urunler as $urun) { extract($urun); echo ""; } echo "
    "; echo "
    "; echo "
    "; include("inc/footer2.php"); ?>