<?php
class home extends front {
	var $factory;
	public function __construct() {
		$this->factory=mainFactory::getInstance();
	}
	public function index() {
		$mt= $this->factory->Utils->general->getManagerMethod();
		if ($mt=="") $mt="view";
		
		if (method_exists($this,$mt))  $this->$mt();
	}
	protected function view(){
		$this->factory->pageTitle="Welcome";
		$this->factory->pageDesc="<strong>Dasar Hukum</strong> <br> Perjalanan dinas jabatan dalam negeri diatur dalam Peraturan Menteri Keuangan Nomor 45/PMK.05/2007. <br>
Perjalanan dinas pindah dalam negeri diatur dalam Keputusan Menteri Keuangan Nomor 7/KMK.02/2003. <br>
Perjalanan dinas jabatan dan perjalanan dinas pindah luar negeri diatur dalam Peraturan Menteri Keuangan Nomor 97/PMK.05/2010.";
		$this->defaultInterface();
		$this->factory->Utils->load("string");
		$this->factory->Models->load("spdstatistik");
		$this->factory->Models->spdstatistik->getInfo();
	//	$this->factory->Component->load("jqwidgets"); //widgets
	//	$this->factory->Component->load("jqgrid"); //widgets
		
	//	$this->factory->Component->jqwidgets->load("data,buttons,scrollbar,menu,checkbox,listbox,dropdownlist,grid,grid.aggregates,combobox,numberinput,calendar,datetimeinput");
		
		
//		$this->factory->Skins->addJSPlugins("colorbox/colorbox.min.js");
	//	$this->factory->Skins->addCSSPlugins("colorbox/colorbox");
		
		//$this->factory->Units->loadJSVar("spdlist");
		$this->factory->Units->loadUI("home");
		$this->factory->Skins->load("spd",false);
	}
	protected function getStatistik() {
		
	}
	protected function get() {
		
	}
}