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


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

<?php

function getExamno($aobj_context){

	// $univcode = $aobj_context->mobj_data["univcode"];
  $degree = $aobj_context->mobj_data["deggrp"];

  $query = "SELECT distinct fexamno, fexamname FROM degree WHERE fdegree = 'BA1'";
  $result = $aobj_context->pobj_db->GetAll($query);
  // var_dump($query);
  // var_dump($result);
  if(count($result) > 0)
  {
    echo $aobj_context->mobj_output->ToJSONEnvelope($result,0,"success"); 
    return;
  }
  else
	{
    echo $aobj_context->mobj_output->ToJSONEnvelope($result,-1,"failure");
    return;
  }
}


function getSubDet($aobj_context){

	// $univcode = $aobj_context->mobj_data["univcode"];
  $degree = $aobj_context->mobj_data["fdegree"];
  $fexamno = $aobj_context->mobj_data["fexamno"];

$query = "SELECT distinct fsubcode, fsubname FROM subject WHERE fdegree = '{$degree}' and fexamno = '{$fexamno}'";
  $result = $aobj_context->pobj_db->GetAll($query);
  // var_dump($query);
  // var_dump($result);
  if(count($result) > 0)
  {
    echo $aobj_context->mobj_output->ToJSONEnvelope($result,0,"success"); 
    return;
  }
  else
	{
    echo $aobj_context->mobj_output->ToJSONEnvelope($result,-1,"failure");
    return;
  }
}


function getSubjectData($aobj_context){

	// $univcode = $aobj_context->mobj_data["univcode"];
  $degree = $aobj_context->mobj_data["fdegree"];
  $fexamno = $aobj_context->mobj_data["fexamno"];
  $fsubcode = $aobj_context->mobj_data["fsubcode"];

  $query = "SELECT  fdegree, fexamno, fsubcode, fsubshort, fsubname, fmaxmarks, fminmarks, ftheorymin,
  fpractmin, fcredits, fthcr, fprcr, fblockno, fcarryupto, fdeptcode, fmandatory, fsuspend,
  fltp, fsubsidary, fmarkdesc1, fmarkdesc2, fboard  FROM subject WHERE fdegree = '{$degree}' and fexamno = '{$fexamno}'
  and fsubcode = '{$fsubcode}'";
  $result = $aobj_context->pobj_db->GetRow($query);

  $arr['mainlvl'] = $result;

  $query = "SELECT  fssubcode, fssubname, fshortname, ftheory, fintass, fretain, fgroup, fsmaxmarks, fsminmarks, fparentsub, fmodmarks,
  fgrace, fcodeno, fqpcode, fvalmax  FROM subject WHERE fdegree = '{$degree}' and fexamno = '{$fexamno}'
  and fsubcode = '{$fsubcode}'";
  $result = $aobj_context->pobj_db->GetAll($query);

  $arr['sublvl'] = $result;
  // var_dump($query);
  // var_dump($result);
  if(count($result) > 0)
  {
    echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success"); 
    return;
  }
  else
	{
    echo $aobj_context->mobj_output->ToJSONEnvelope($result,-1,"failure");
    return;
  }
}