Artikel
"" && $aksi=="lihat"){ //awal lihat $qFolder=mysql_query("select kategori from t_kategori1 where id='$id'"); $dFolder=mysql_fetch_array($qFolder); ?>

"; $qU=mysql_query("select user,site,name from t_user where id='$dV[id_user]'"); $dU=mysql_fetch_array($qU); $isiArtikel=cegah_xss1(substr($dV[isi],0,600)); ?>
""){ echo "$dU[2]"; }else{ echo $dU[2]; } echo " - ".$dV[tanggal1]." ".$dV[jam]; ?>
"" && file_exists("photo/".$dV[photo])){ $lebar=UkImage("photo/",$dV[photo],50,"lebar"); $tinggi=UkImage("photo/",$dV[photo],50,"tinggi"); echo "\"$dV[photo]\""; } echo $isiArtikel."...selengkapnya"; ?>
"; } ?>
1){ if ($page>1){ $page--; $awal_new=$_GET['awal']-$limit; echo "<< First | << Previous"; if ($page++<$batasku){ $page+=1; $awal_new=$_GET['awal']+$limit; echo " | Next >> | Last >>"; } } else { $page++; $awal_new=$_GET['awal']+$limit; echo "Next >> | Last >>"; } } } else {echo(" ");} //akhir lihat }else{ //awal kategori if (empty($awal) and empty($page)) {$awal=0;$page=1;} $limit=10; $q="select * from t_kategori1 where id<>'46' and id_kat='1'"; $q1=" order by kategori asc limit $awal,$limit"; $q2=mysql_query($q.$q1); while($dV=mysql_fetch_array($q2)){ $qJml=mysql_query("select id_kategori from t_artikel where id_kategori='$dV[id]' and pub='1'");$dJml=mysql_num_rows($qJml); ?>
">
"; $perintah1=mysql_query($q); $jumlah=mysql_num_rows($perintah1); if ($jumlah!=0) { $i=$jumlah/$limit; $i=ceil($i); for($j=1;$j<=$i;$j++) { $awal=(($j-1)*($limit-1)+$j)-1; } $record=$j-1; if ($page==0){echo("Page 1 of $record | ");}else{echo("Page $page of $record | ");} $aF=0;$pF=1; $aL=$record*$limit-$limit;$pL=$record; $batasku=$record-1; if ($record>1){ if ($page>1){ $page--; $awal_new=$_GET['awal']-$limit; echo "<< First | << Previous"; if ($page++<$batasku){ $page+=1; $awal_new=$_GET['awal']+$limit; echo " | Next >> | Last >>"; } } else { $page++; $awal_new=$_GET['awal']+$limit; echo "Next >> | Last >>"; } } } else {echo(" ");} } //akhir kategori ?>