$smarty->assign('refresh',$_SERVER['REQUEST_URI']); $meta = '<meta http-equiv="refresh" content="3;url=\''.$_SERVER['SCRIPT_NAME'].'?aksi=link" />'; if($_SERVER['HTTP_REFERER']){ $smarty->assign('referer',$_SERVER['HTTP_REFERER']); }else{ $smarty->assign('referer',$_SERVER['SCRIPT_NAME']."?aksi=link"); } $smarty->assign('path_editor',PATH_EDITOR); // fetch data $x = 0; $links->sql = "select id,substr(content,1,100) as isi,gambar,link, if(status=1,'aktif', 'non aktif') as status from tbl_links order by id Desc"; $links->perPage = REC_PER_PAGE; $links->gul = 10; $sql = $links->genSql(); $result = $links->exQ($sql); while($data = mysql_fetch_array ($result,MYSQL_ASSOC)){ foreach($data as $k=>$i){ $listLinks[$x][$k]=$i; if($k=="gambar"){ if($i == ""){ $listLinks[$x][$k] = IMAGE_LINK."/noPict.jpg"; } else { $listLinks[$x][$k] = IMAGE_LINK."/".$i; } } } $x++; }