Exemplo n.º 1
0
<?
if(!defined("NODIRECT")){
	die("No direct Access !!");
}

require_once(PATH_CLASS."/partner.php");
// new products class
$partner = new partner;
$partner->konek();

// kategori product /default1
$listkategori = $partner->Kategori(1);

// def var
$template = "partnerK.tpl";
$smarty->assign('judul',"Partners and Event Management");
$smarty->assign('refresh',$_SERVER['REQUEST_URI']);
$meta = '<meta http-equiv="refresh" content="3;url=\''.$_SERVER['SCRIPT_NAME'].'?aksi=partnerk" />';
if($_SERVER['HTTP_REFERER']){
	$smarty->assign('referer',$_SERVER['HTTP_REFERER']);
}else{
	$smarty->assign('referer',$_SERVER['SCRIPT_NAME']."?aksi=partner");
}
$smarty->assign('path_editor',PATH_EDITOR);

// fetch data
$x = 0;
$partner->sql = "select id,name,substr(description,1,100) as isi,logo,link,type_partner, if(status=1,'aktif', 'non aktif') as status from tbl_partner order by id Desc";
$partner->perPage = REC_PER_PAGE;
$partner->gul = 10;
$sql = $partner->genSql();