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.118.120.13


Current Path : /proc/thread-self/root/var/www/html/univadmin_bkp/univadmin/src/
Upload File :
Current File : //proc/thread-self/root/var/www/html/univadmin_bkp/univadmin/src/holidayListing.php

<?php

function holidayList($aobj_context){
  $aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC); 
  $univcode = $aobj_context->mobj_data['univcode'];
  $fcollcode = $aobj_context->mobj_data['fcollcode'];

  $fcollcode != '' ? $colQry = "and c.fcollcode='{$fcollcode}' " : $colQry="";

  $query = "select date_format(fdate,'%d/%m/%Y') as fdate, fremarks, fyear,fdeleted from holiday where fdeleted='F'";
  $result =  $aobj_context->pobj_db->getAll($query);

  if($result && $result != boolean){ 

    echo $aobj_context->mobj_output->ToJSONEnvelope($result,0,"success"); 
  }else{
    $arr = 'Data not Found';
    echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failure"); 
  }
}
?>