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


Current Path : /var/www/html/pgadm/src/
Upload File :
Current File : /var/www/html/pgadm/src/subfeedetl.php

<?php

function getdropdownmenuvalues($aobj_context)
{
    $exam  = 'A';

    $query    = "SELECT distinct fdegree AS int_code, fdescpn AS val FROM degree
                  where ifnull(FFACCODE,'') = 'UG' and fexamno = '{$exam}' 
                  and ifnull(fadmdeg,'') = 'T'";
    $result   = $aobj_context->mobj_db->GetAll($query);
    $arr['UG'] = $result;  
    
    $query = "select fdegree,group_concat(distinct fcombcode,'->',fcombdesc) as combination 
             from mascomb group by fdegree";
    $result5=$aobj_context->mobj_db->GetAll($query);
    $arr['combcode']=$result5;

    $query  = "select fdegree,ifnull(FMEDIUM,'') as medium
              from degree where ifnull(fadmdeg,'') = 'T' and fexamno = 'A'";
    $result = $aobj_context->mobj_db->GetAll($query);
    $arr['medium']=$result;

    $query  = "select distinct fcollcode as int_code,
                concat(fcollcode,' - ',fcollname,',',ftown)  as val
                from college where fcollcode in ('1001')";
    $result =$aobj_context->mobj_db->GetAll($query);
    $arr['centercode']=$result;

    echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");  
    return;

}

function getsubjectdet($aobj_context)
{
    $degree   = trim($aobj_context->mobj_data['degree']);
    $exam = 'A';
    $query = "select  fsubcode, fsubname from subject where fdegree = '{$degree}' and fexamno = 'A' and fintass = 'F' limit 3";
    //var_dump($query);
    $result   = $aobj_context->mobj_db->GetAll($query);

    $html = "<div class='row'><center><div class=' col-md-offset-2 col-md-8'><table id='mainTable' class='table table-striped table-condensed table-bordered'>
                        <thead>
                            <tr class='bg-cyan'>
                                <th style = 'width:8%;'><center>Sl. No.</center></th>
                                <th style = 'width:12%;'><center>Sub. Code</center></th>
                                <th style = 'width:70%;'>Subject Name</th>
                            </tr>
                        </thead>
                        <tbody>";
    $i = 1;
    if(count($result)>0)
    {
        $subject = array();
        foreach($result as $key => $value)
        {
            $html .="<tr>";
            
            $html .="<td style = 'width:;'>
                    <span><center>{$i}</center></span>
                    </td>";
            $html .="<td style = 'width:;'>
                    <center>{$value['fsubcode']}</center>
                    </td>";
            $subject[$i] = $value['fsubcode'];
            $html .="<td style = 'width:;'>
                    <span style=''>{$value['fsubname']}</span>
                    </td>";;
            $html .="</tr>";
            $i++;
        }
    }
    else
    {
        $html .="<tr>";
        $html .="<td colspan = '3'><center>NO SUBJECT DETAILS FOUND</center></td>";
        $html .="</tr>";
    }
    
    $html .= "</tbody></table></div><center></div>";
    $arr['html']=$html;
    $arr['subject'] = $subject;
    echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");
    return;
}

function getfeedetl($aobj_context)
{
    $category = trim($aobj_context->mobj_data['category']);

	$query = "select fphdadmfee from category where fcategory = '{$category}'";

    $result   = $aobj_context->mobj_db->GetRow($query);

    $arr['sum'] = $result['fphdadmfee'];
    
    echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");  
    return;
}

?>