ViewDetailTblMember.html.class.php 1.15 KB
Newer Older
Deni Andreyan Feneza's avatar
Deni Andreyan Feneza committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/**
 * @author Prima Noor 
 */
   
class ViewDetailTblMember extends HtmlResponse
{
   	function TemplateModule()
   	{
      	$this->SetTemplateBasedir(Configuration::Instance()->GetValue('application','docroot').'module/'.GtfwDispt()->mModule.'/template');
      	$this->SetTemplateFile('view_detail_tblmember.html');
   	}
   
   	function ProcessRequest()
   	{	
   	    $ObjTblMember = GtfwDispt()->load->business('TblMember', 'tbl.member');
        
        $id = $_GET['id']->Integer()->Raw();
        
        $detail = $ObjTblMember->getDetailTblMember($id);
        
		$nav[0]['url'] = GtfwDispt()->GetUrl('tbl.member', 'TblMember', 'view', 'html').'&display';
        $nav[0]['menu'] = 'TblMember';
        $title = GtfwLangText('detail');
        Messenger::Instance()->SendToComponent('comp.breadcrump', 'breadcrump', 'view', 'html', 'breadcrump', array($title, $nav, 'breadcrump', '', ''), Messenger::CurrentRequest);
        
      	return compact('detail');
   	}
   
   	function ParseTemplate($rdata = NULL)
   	{
		extract($rdata);
        
        if (!empty($detail)) {
            $this->mrTemplate->addVars('content', $detail);
        }
   	}
}
?>