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.238.6
<?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 where ifnull(fdeleted,'') <> 'T'
and fexamno = 'A'
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)
{
$combcode = trim($aobj_context->mobj_data['combcode']);
$degree = trim($aobj_context->mobj_data['degree']);
$optional = trim($aobj_context->mobj_data['optional']);
$optiona2 = trim($aobj_context->mobj_data['optiona2']);
$exam = 'A';
$query = "select FSUBCODE,FSUBNAME,FSUBSHORT ,FMANDATORY from degree d inner join subject s on
s.FDEGREE=d.FDEGREE and d.FEXAMNO=s.FEXAMNO
where d.FDEGREE='{$degree}' and s.FEXAMNO='{$exam}' and FSUBCODE in('{$optional}','{$optiona2}') group by s.FSUBCODE
union
select s.FSUBCODE,s.FSUBNAME,s.FSUBSHORT ,'T' as FMANDATORY from degree d
inner join subject s on
s.FDEGREE=d.FDEGREE and d.FEXAMNO=s.FEXAMNO
left join mascomb m on m.FDEGREE=d.FDEGREE and m.fcombcode = '{$combcode}'
where d.FDEGREE='{$degree}' and INSTR(m.FSUBCODE, s.FSUBCODE)
and s.fexamno = '{$exam}'
group by s.FSUBCODE";
//var_dump($query);
$result = $aobj_context->mobj_db->GetAll($query);
$query1 = "select distinct FSUBCODE as int_code,FSUBNAME as val from
subject where FDEGREE='{$degree}' and FEXAMNO='{$exam}' and ifnull(FSUSPEND,'') <> 'T'
and fsubcode not in (select distinct fsubcode from mascomb
where fdegree = '{$degree}' )";
$result1 = $aobj_context->mobj_db->GetAll($query1);
if(!$result1)
{
$query1 = "select distinct 'Not Applicable' as int_code,'Not Applicable' as val";
$result1 = $aobj_context->mobj_db->GetAll($query1);
}
$html = "<div class='row' style = 'padding:30px;'><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:10%;'><center>Subject Code</center></th>
<th style = 'width:70%;'>Subject Name</th>
</tr>
</thead>
<tbody>";
$i = 1;
if($result)
{
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>";
$html .="<td style = 'width:;'>
<span style=''>{$value['FSUBNAME']}</span>
</td>";;
$html .="</tr>";
$i++;
}
}
$html .= "</tbody></table></div><center></div>";
$arr['html']=$html;
$arr['option']=$result1;
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");
return;
}
function getfeedetl($aobj_context)
{
$degree = trim($aobj_context->mobj_data['degree']);
$exam = trim($aobj_context->mobj_data['exam']);
//$exam = 'A';
$gender = trim($aobj_context->mobj_data['gender']);
$category = trim($aobj_context->mobj_data['category']);
$query = "select ffee from admfeestr where fcombcode = 'ADM' and fdegree = '{$degree}' and fcatcode = '{$category}' and fexamno = '{$exam}'";
//var_dump($query);
$result = $aobj_context->mobj_db->GetRow($query);
$query1 = "SELECT payment_type AS int_code, bank_name AS val
FROM acc_mas where payment_type = 'Other Banks'";
$result1 = $aobj_context->mobj_db->GetAll($query1);
$arr['payment'] = $result1;
//var_dump($result);
// if($gender == 'F')
// {
// $arr['sum'] = 1370;
// }
// else
// {
// $arr['sum'] = $result['ffee'];
// }
$arr['sum'] = $result['ffee'];
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");
return;
}
function uploaddetails($aobj_context)
{
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$query = "select internal_code as int_code,
FCERTDESC as doc_type,
ifnull(FFILENAME,REPLACE(REPLACE(FCERTDESC,' ','_'),'+','_')) as FFILENAME
from
masdoc where fdegree = 'UG' order by forder";
$results = $aobj_context->mobj_db->GetAll($query);
$arr['masdoc'] = $results;
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");
return;
}
?>
|