DoUpdateTblMember.json.class.php 773 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
/**
 * @author Prima Noor 
 */

class DoUpdateTblMember extends JsonResponse
{
    function ProcessRequest()
    {
        $proses = GtfwDispt()->load->process('ProcessTblMember', 'tbl.member');
        $id = $_POST['id']->Integer()->Raw();
        
        $result = $proses->input();
        
        if ($result) {
            return array('exec' => 'replaceContentWithUrl("subcontent-element","' . GtfwDispt()->GetUrl('tbl.member', 'TblMember', 'view', 'html').'&display' . '&ascomponent=1"); ;closeGtPopup(popupTblMember);');  
        } else {  
            return array('exec' => 'replaceContentWithUrl("popup-subcontent","' . GtfwDispt()->GetUrl('tbl.member', 'updateTblMember', 'view', 'html').'&id='. $id . '&ascomponent=1")');
        }        
    }
}

?>