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.147.82.22
Current Path : /var/www/html/dud/src/ |
| Current File : /var/www/html/dud/src/doc_verify.php |
<?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}' order by r.fregno";
//var_dump($get_data);
$lobj_get_data = $this->aobj_context->mobj_db->GetAll($get_data);
$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 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 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>";
}
$feeTypefeeType.= '</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}' 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"]);
$update_data=" update student set fcaste ='{$category}', FCONSTYPE='{$feetype}'
WHERE FCOLLCODE='{$this->collcode}'
AND fregno ='{$reg_no}'";
$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();
}
?>
|