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


Current Path : /proc/thread-self/root/var/www/html/admission/src/
Upload File :
Current File : //proc/thread-self/root/var/www/html/admission/src/hostNotification.php

<?php
  function getPostnotificationDetails($aobj_context)
  {
    $aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);

    $query = "select fpostno, flabel, ifnull(ffilepath,'') as ffilepath, date_format(ffromdate,'%d/%m/%Y') as ffromdate,
    date_format(ftodate,'%d/%m/%Y') as ftodate, forder 
    from postnotfn where ifnull(fdeleted,'') <> 'T'
    order by forder";
    // var_dump($query);
    $result = $aobj_context->pobj_db->GetAll($query);
    // var_dump($result);
    if($result)
    {
      echo $aobj_context->mobj_output->ToJSONEnvelope($result,0,"success"); 
    }
    else
    {
      $arr['msg'] = 'No details found';
      echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failure"); 	
    }
  }

  function getPostnotificationEdit($aobj_context)
  {
    $aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
    $postno = $aobj_context->mobj_data['fpostno'];

    $query = "select fdeggrp,ifnull(fusertype,'') as fusertype, fpostno, flabel,IFNULL(fcolour,'None') AS fcolour, 
    ifnull(ffilepath,'') as ffilepath, date_format(ffromdate,'%d/%m/%Y') as ffromdate,
    date_format(ftodate,'%d/%m/%Y') as ftodate, forder, IFNULL(fdescpn,'') AS fdescpn 
    from postnotfn where ifnull(fdeleted,'') <> 'T'
    and fpostno = '{$postno}'
    order by fcreatedate desc";
    // var_dump($query);
    $result = $aobj_context->pobj_db->GetRow($query);
    // var_dump($result);
    if($result)
    {
      echo $aobj_context->mobj_output->ToJSONEnvelope($result,0,"success"); 
    }
    else
    {
      $arr['msg'] = 'No details found';
      echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failure"); 	
    }
  }