<? if(!defined("NODIRECT")){ die("No direct Access !!"); } require_once(PATH_CLASS."/links.php"); // new products class $links = new links; $links->konek(); // def var $template = "links.tpl"; $smarty->assign('judul',$kate."Links Management"); $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)){