include("baglan.php"); include("include/sayfa.php"); if($_GET["id"]<>""){ $idl="&id=".$_GET["id"].""; } $st=$_GET["st"]; // Make query if (!$st) $st=0; $st=(int) $st; if (!$adet) $adet=15; $adet=(int) $adet; if ($adet<1) $adet=15; $rec=$db -> row("SELECT count(id) as sayi FROM urunler where gp=1 and grup=0"); $pg=new page_creator(); $pg->TotalItems=$rec->sayi; $pg->ItemsPerPage=$adet; $pg->PrevNext=true; $pg->FirstLast=true; $pg->TrailingPages=2; $pg->ShowTotalPages=false; $pg->ShowTotalPagesString="Toplam Sayfa Sayisi: "; $pg->nolar="g=".$_GET["g"].$idl.""; $pg->ScriptVariable="st"; $pg->Parameters=array('amount'=>$adet); $pg->nolar="g=".$_GET["g"].$idl.""; $nav=$pg->Create_Pagelinks(); if($nav==0){$nav="";} $sql = "select * from urunler where gp=1 and grup=0 order by sira limit $st,$adet"; $sorgu = mysql_query($sql,$baglanti); $urunler.='
|
'; $sira = mysql_fetch_array($sorgu); if($sira["id"]<>""){ if($sira["resim"]<>""){ $resim=''; //$resim2=''; } else{$resim='';$resim2="";} $adi="".$sira["adi"].""; }else{ $resim=""; $adi=""; $resim2=""; } $urunler.=' |
|
'; $sira = mysql_fetch_array($sorgu); if($sira["id"]<>""){ if($sira["resim"]<>""){ $resim=''; //$resim2=''; } else{$resim='';$resim2="";} $adi="".$sira["adi"].""; }else{ $resim=""; $adi=""; $resim2=""; } $urunler.=' |
|
|