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 : 3.145.16.251
<?php
class verify_exam_app_form
{
function __construct($aobj_context)
{
session_start();
$this->aobj_context=$aobj_context;
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$this->user_id=$_SESSION['user_id'] ;
$this->collcode=$_SESSION['collcode'];
$this->log_name = $_SESSION['usr'];
}
function DisplayAllVerifyExamApplications()
{
//$app_no_from=str_pad($app_no_from, 10, "0", STR_PAD_LEFT);
$reg_no_from = ($this->aobj_context->mobj_data["reg_no_from"]);
$reg_no_to = ($this->aobj_context->mobj_data["reg_no_to"]);
$get_data =" SELECT DISTINCT r.FREGNO, s.FNAME, r.FDEGREE, s.FCONSTYPE, s.fcaste as FCATEGORY
FROM candsum r INNER JOIN student s ON s.FREGNO=r.FREGNO
WHERE r.FCOLLCODE='{$this->collcode}'
AND r.fregno >='{$reg_no_from}' AND r.fregno <='{$reg_no_to}' order by r.fregno";
//var_dump($get_data);
$lobj_get_data = $this->aobj_context->mobj_db->GetAll($get_data);
$str_reval = "";
$str_reval.="<br>";
$str_reval.="<table style='padding:3px 4px 3px 3px;' class='tr_ventor_row' id='reval_table_data' width='100%' border='0' cellspacing='0' cellpadding='0'>";
$str_reval.="<tr class='tr_bg1'>";
$str_reval.="<td align='center' style=' font-size:12px; font-weight:bold; border-left:1px solid #C5DBEC; border-right:1px solid #C5DBEC; border-top:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;'>Sl. No.</td>";
$str_reval.="<td align='center' style=' font-size:12px; font-weight:bold; border-left:0px solid #C5DBEC; border-right:1px solid #C5DBEC; border-top:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;'>Reg. No.</td>";
$str_reval.="<td align='left' style=' font-size:12px; font-weight:bold; border-left:0px solid #C5DBEC; border-right:1px solid #C5DBEC; border-top:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;padding-left:10px;'>Student Name</td>";
$str_reval.="<td align='center' style=' font-size:12px; font-weight:bold; border-left:0px solid #C5DBEC; border-right:1px solid #C5DBEC; border-top:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;'>Degree</td>";
$str_reval.="<td align='center' style=' font-size:12px; font-weight:bold; border-left:0px solid #C5DBEC; border-right:1px solid #C5DBEC; border-top:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;'>Category</td>";
$str_reval.="<td align='center' style=' font-size:12px; font-weight:bold; border-left:0px solid #C5DBEC; border-right:1px solid #C5DBEC; border-top:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;'>Fee Type</td>";
$str_reval.="</tr>";
$k=0;
$sl_no=1;
$get_category_names="select FCATEGORY as internal_code,FCATEGORY as value from category ";
$lobj_get_category_names = $this->aobj_context->mobj_db->GetAll($get_category_names);
$get_fconst="SELECT DISTINCT FCONSTYPE as internal_code,FCONSTYPE as value FROM admfeestr ORDER BY 1 DESC ";
$lobj_get_fconst = $this->aobj_context->mobj_db->GetAll($get_fconst);
foreach($lobj_get_data as $ak=>$av)
{
$APPNO=$av['APPNO'];
$FREGNO=$av['FREGNO'];
$FAPPDATE=$av['FAPPDATE'];
$FNAME=$av['FNAME'];
$FDEGREE=$av['FDEGREE'];
$FAMOUNT=$av['FTOTALFEE'];
$FCATCODE = $av['FCATEGORY'];
$FCONSTYPE = $av['FCONSTYPE'];
$category = "<select class='category' id='category'><option value=0 >Select Category</option>";
foreach($lobj_get_category_names as $ak=>$av)
{
$catValue = $av['value'];
if($FCATCODE == $catValue)
{
$catSelected = 'selected';
}
else
{
$catSelected = '';
}
$category.= "<option value='{$catValue}' {$catSelected}>{$catValue}</option>";
}
$category.= '</select>';
$feeType = "<select class='feetype' id='feetype'><option value=0 >Select Fee Type</option>";
foreach($lobj_get_fconst as $ak=>$av)
{
$feeValue = $av['value'];
if($FCONSTYPE == $feeValue)
{
$feeSelected = 'selected';
}
else
{
$feeSelected = '';
}
$feeType.= "<option value='{$feeValue}' {$feeSelected} >{$feeValue}</option>";
}
$feeType.= '</select>';
if($k%2==0)
$class='tbl_row1';
else
$class='tbl_row_alter1';
$str_reval.="<tr>";
$str_reval.="<td class='{$class}' style=' font-size:12px; text-align:center; border-left:1px solid #C5DBEC; border-right:1px solid #C5DBEC; padding:2px;' >{$sl_no}</td>";
$str_reval.="<td class='{$class} fregno' style=' font-size:12px; text-align:left; border-left:0px solid #C5DBEC; border-right:1px solid #C5DBEC; padding:2px; text-align:center;'>{$FREGNO}</td>";
$str_reval.="<td class='{$class}' style=' font-size:12px; text-align:left; border-left:0px solid #C5DBEC; border-right:1px solid #C5DBEC; padding:2px;padding-left:10px; ' >{$FNAME}</td>";
$str_reval.="<td class='{$class}' style=' font-size:12px; text-align:left; border-left:0px solid #C5DBEC; border-right:1px solid #C5DBEC; padding:2px; text-align:center; ' >{$FDEGREE}</td>";
$str_reval.="<td class='{$class}' style=' font-size:12px; text-align:left; border-left:0px solid #C5DBEC; border-right:1px solid #C5DBEC; padding:2px; text-align:center; ' >{$category}</td>";
$str_reval.="<td class='{$class}' align='center' style=' font-size:12px; border-left:0px solid #C5DBEC; border-right:1px solid #C5DBEC; padding:2px; font-weight:bold;text-align:center;' >{$feeType}</td>";
// $str_reval.="<td class='{$class}' style=' font-size:12px; text-align:left; border-left:0px solid #C5DBEC; border-right:1px solid #C5DBEC; padding:2px; text-align:center; ' >{$disabled_txt}</td>";
$str_reval.="</tr>";
$sl_no++;
$k++;
}
$str_reval.="</table>";
$str_reval.="<br>";
$arr['html']=$str_reval;
if($lobj_get_data)
{
echo $this->aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");
}
else
{
$error_blog='No record found';
echo $this->aobj_context->mobj_output->ToJSONEnvelope($error_blog,-1,"error");
}
}
function saveVerifyDocExamAppStatus()
{
// $category = ($this->aobj_context->mobj_data["category"]);
// $feetype = ($this->aobj_context->mobj_data["feetype"]);
// $reg_no = ($this->aobj_context->mobj_data["reg_no_from"]);
$data = ($this->aobj_context->mobj_data["data"]);
// var_dump($data);
$data_decode = json_decode($data, true);
// var_dump($data_decode);
foreach($data_decode as $k => $v){
$update_data=" update student set fcaste ='{$v['fcategory']}', FCONSTYPE='{$v['ffeetype']}'
WHERE FCOLLCODE='{$this->collcode}'
AND fregno ='{$v['fregno']}'";
// var_dump($update_data);
$lobj_update_data = $this->aobj_context->mobj_db->Execute($update_data);
}
if($lobj_update_data)
{
$success_blog = 'update successfully';
echo $this->aobj_context->mobj_output->ToJSONEnvelope($success_blog,0,"success");
}
else
{
$error_blog = 'update failed';
echo $this->aobj_context->mobj_output->ToJSONEnvelope($error_blog,-1,"error");
}
}
}
function DisplayAllVerifyExamApplications($aobj_context)
{
$class_obj=new verify_exam_app_form($aobj_context);
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$class_obj->DisplayAllVerifyExamApplications();
}
function saveVerifyDocExamAppStatus($aobj_context)
{
$class_obj=new verify_exam_app_form($aobj_context);
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$class_obj->saveVerifyDocExamAppStatus();
}
?>
|