"Minggu","Mon"=>"Senin","Tue"=>"Selasa","Wed"=>"Rabu","Thu"=>"Kamis","Fri"=>"Jumat","Sat"=>"Sabtu"); $bulan = array ('01'=>"Januari",'02'=>"Februari",'03'=>"Maret",'04'=>"April",'05'=>"Mei",'06'=>"Juni",'07'=>"Juli",'08'=>"Agustus",'09'=>"September",'10'=>"Oktober",'11'=>"November",'12'=>"Desember"); $month = date("m"); // Smarty Template Initialization $tpl = new Smarty; $tpl->template_dir = 'templates/'; $tpl->compile_dir = 'compile/'; $cid = $_REQUEST['cid']; $tpl->assign(cid,$cid); if ($_REQUEST['show']){ $module = $_REQUEST['show']; switch ($module) { case 'pages': $tpl->assign(show,'pages'); include "./modules/pages.php"; break; case 'image': $tpl->assign(show,'image'); include "./modules/image.php"; break; case 'polling': $tpl->assign(show,'polling'); include "./modules/polling.php"; break; case 'sitemap': $tpl->assign(show,'sitemap'); include "./modules/sitemap.php"; break; case 'search': include "./modules/search.php"; break; case 'e-card': include "./modules/send_ecard.php"; break; default: print "Blom ada modulnya !!"; break; } } else { include "./modules/main.php"; $tpl->display('index.html'); } ?>