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.189.170.65
<?php
class results
{
public $drop_down_arr;
function __construct($aobj_context)
{
session_start();
$this->aobj_context=$aobj_context;
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$this->g_reg_no=$_SESSION['g_reg_no'];
$this->g_FEXAMNO=$_SESSION['g_FEXAMNO'];
$this->g_FCOLLCODE=$_SESSION['g_FCOLLCODE'];
$this->g_FDEGREE=$_SESSION['g_FDEGREE'];
}
function DisplayRevalutionDetails($aobj_context)
{
$revalution_regno=($this->aobj_context->mobj_data["r"]);
$revalution_exam=trim($this->aobj_context->mobj_data['e']);
$get_data = "select date_format(current_date(),'%d/%m/%Y') as curr_date,
rf.FDEGREE,concat(s.FSUBCODE,'',s.FSSUBCODE) as FSUBCODE,
concat(s.FSUBNAME ,' ',s.FSSUBNAME) as FSUBNAME,
st.FNAME ,
IFNULL(FRVFEE,0) as FRVFEE,
IFNULL(FRTFEE,0) as FRTFEE,
IFNULL(FXRFEE,0) as FXRFEE,
IFNULL(FCVFEE,0) as FCVFEE,
IF(CURRENT_DATE()<=IFNULL(FRVLASTDATE,'0000-00-00'),'1',0) AS is_rv,
IF(IFNULL(CURRENT_DATE()<=FRTLASTDATE,'0000-00-00'),'1',0) AS is_rt,
IF(IFNULL(CURRENT_DATE()<=FXEROXLASTDATE,'0000-00-00'),'1',0) AS is_xr,
IF(IFNULL(CURRENT_DATE()<=FCVLASTDATE,'0000-00-00'),'1',0) AS is_cv,s.FSMAXMARKS
from resmarks rm
inner join subject s on s.FDEGREE=rm.FDEGREE
and s.FEXAMNO=rm.FEXAMNO and s.FSUBCODE=rm.FSUBCODE
inner join student st on st.FREGNO=rm.FREGNO
inner join res_fee rf
on rf.FREGNO=rm.FREGNO and rf.FEXAMNO=rm.FEXAMNO
inner join resmarksdet rmd on rmd.fdegree = rm.fdegree
and rmd.fregno = rm.fregno and s.fcsubcode = rmd.fsubcode
where rm.FREGNO = '{$revalution_regno}'
and ( ( (rm.FTHUE / s.FSMAXMARKS)*100) > 20 || ((rm.FTHUE / s.FSMAXMARKS)*100) <60)
and rm.fexamno = '{$revalution_exam}' and (ifnull(rm.fthpassmth,'') = 'Pass' or ifnull(rm.fthpassmth,'') = 'Fail' or length(rm.fthpassmth) < 4)
and s.FTHEORY='T'
and ifnull(s.frvblock,'') <> 'T'
and s.FINTASS <> 'T'
and ifnull(rmd.fmarks,'') <> 'Ab.'
and ifnull(FSTUDSUBBLK,'') <> 'T'
group by FCSUBCODE";
$lobj_get_data = $this->aobj_context->mobj_db->GetAll($get_data);
$is_rv =$lobj_get_data[0]['is_rv'];
$is_rt =$lobj_get_data[0]['is_rt'];
$is_xr =$lobj_get_data[0]['is_xr'];
$is_cv =$lobj_get_data[0]['is_cv'];
$FDEGREE =$lobj_get_data[0]['FDEGREE'];
$FRVFEE =$lobj_get_data[0]['FRVFEE'];
$FRTFEE =$lobj_get_data[0]['FRTFEE'];
$FXRFEE =$lobj_get_data[0]['FXRFEE'];
$FCVFEE =$lobj_get_data[0]['FCVFEE'];
$reval_arr["rv"]['ele']=$is_rv;
$reval_arr["rv"]['fee']=$FRVFEE;
$reval_arr["rv"]['H']="RV";
$reval_arr["rt"]['ele']=$is_rt;
$reval_arr["rt"]['fee']=$FRTFEE;
$reval_arr["rt"]['H']="RT";
$reval_arr["xr"]['ele']=$is_xr;
$reval_arr["xr"]['fee']=$FXRFEE;
$reval_arr["xr"]['H']="PC";
$reval_arr["cv"]['ele']=$is_cv;
$reval_arr["cv"]['fee']=$FCVFEE;
$reval_arr["cv"]['H']="Challnge Val";
//$str_reval="<br>";
$str_reval.="
<div style = 'display: grid;'>
<span style='text-align: center;color: red;'>** Important **</span><br>
<p style='text-align: center;color: red;'>Candidates may please note that there shall be no re-evaluation for internal and practical examinations, including, college examinations of Pharmacy and Nursing courses, PHD coursework, BVOC Skill components, and courses under MOOCS (SWAYAM/ NPTEL)</p>
<p style='text-align: center;color: red;'>
If payment is not confirmed but the amount is deducted, DO NOT make a second payment. <br>
Please wait for 2-3 hours and visit the main page again to check for payment confirmation.<br>
In case payment is still not confirmed please contact your BANK helpdesk/ branch for further details.
</p>
</div>
<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.="<th align='left' colspan='8' style='font-size:12px;background:#F0CC04; padding-left:6px; height:24px;'>Revaluation</th>";
$str_reval.="<tr class='tr_bg1'>";
$str_reval.="<td align='center' style=' font-size:12px; border-left:1px solid #C5DBEC; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;width:6%;'>Sl No</td>";
$str_reval.="<td align='center' style=' font-size:12px; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;width:10%;'>Sub. Code</td>";
$str_reval.="<td align='center' style=' font-size:12px; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;'>Subject Name</td>";
$tot_col=0;
foreach($reval_arr as $ak=>$av)
{
if($av['ele']=='1')
{
$name=$av['H'];
$tot_col++;
$str_reval.="<td align='center' style=' font-size:12px; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;'>{$name}</td>";
}
}
$str_reval.="<td align='center' style=' font-size:12px; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;'> Total</td>";
$str_reval.="</tr>";
$sl_no=1;
$total_val=0;
//echo $get_data;
$name=$lobj_get_data[0]['FNAME'];
$curr_date=$lobj_get_data[0]['curr_date'];
$k=1;
$internal_code=1;
foreach($lobj_get_data as $k=>$val)
{
//print_r($lobj_get_data); die();
if($k%2==0)
$class='tbl_row1';
else
$class='tbl_row_alter1';
$is_selected_checked='';
$FSUBCODE = $val['FSUBCODE'];
$FSMAXMARKS = $val['FSMAXMARKS'];
$FSUBNAME = $val['FSUBNAME'];
$query = "select sum(fmarks) as totalmarks from resmarksdet
where fregno = '{$revalution_regno}' and left(fsubcode,4) = left('{$FSUBCODE}',4)
AND fexamno = '{$revalution_exam}'";
$result = $this->aobj_context->mobj_db->GetRow($query);
// var_dump($query);
$query2 = "select sum(FSMAXMARKS) as maxmarks from subject where fdegree = '{$FDEGREE}'
and fexamno ='{$revalution_exam}' and fsubcode = left('{$FSUBCODE}',4)";
$result2 = $this->aobj_context->mobj_db->GetRow($query2);
// var_dump($query2);
//maxmarks
$total = $result['totalmarks'];
$FSMAXMARKS = $result2['maxmarks'];
$percentage = ($total/$FSMAXMARKS)*100;
//var_dump($percentage);
$disabled = "";
if($percentage <20)
{
if($revalution_regno == '20SHS006' && $revalution_exam == 'C')
$disabled = "";
else
$disabled = "disabled";
}
//var_dump($disabled);
$str_reval.="<tr>";
$str_reval.="<td class='{$class}' style='text-align:center; border-left:1px solid #C5DBEC; border-right:1px solid #C5DBEC; font-size:12px; ' id=fsl_{$internal_code}>{$sl_no}</td>";
$str_reval.="<td class='{$class}' style='text-align:center;border-left:0px solid #C5DBEC; border-right:1px solid #C5DBEC; font-size:12px; ' id=fccode_{$internal_code}>{$FSUBCODE}</td>";
$str_reval.="<td class='{$class}' style='text-align:left; border-left:0px solid #C5DBEC; border-right:1px solid #C5DBEC; font-size:12px; ' id=fsname_{$internal_code}>{$FSUBNAME}</td>";
foreach($reval_arr as $ak=>$av)
{
if($av['ele']=='1')
{
$name=$av['H'];
$fee=$av['fee'];
$str_reval.="<td class='{$class}' style='text-align:center; border-left:0px solid #C5DBEC; border-right:1px solid #C5DBEC; font-size:12px;' >";
$str_reval.="<input id='{$ak}_{$internal_code}' onclick='CalculateRevaluationTotFee();' type='checkbox' {$disabled} style='width: 20px;'><span style='font-weight:bold;' {$disabled} id='fee_{$ak}_{$internal_code}'>({$fee})</span></td>";
}
}
$str_reval.="<td class='{$class}' align='right' style='border-left:0px solid #C5DBEC; border-right:1px solid #C5DBEC; font-size:12px;font-weight:bold;text-align:center;' id=total_{$internal_code}>0</td>";
$str_reval.="</tr>";
$sl_no++;$internal_code++;
}
$get_data="SELECT payment_type, bank_name FROM acc_mas where ifnull(fsuspend,'') <> 'T'";
$lobj_payment_type= $this->aobj_context->mobj_db->GetAll($get_data);
$payement_mode_options = "";
foreach($lobj_payment_type as $ak=>$av)
{
$payement_mode_options.="<option value='{$av['payment_type']}'>{$av['bank_name']}</option>";
}
$tot_col_span=$tot_col+2;
$str_reval.="<tr ><td class='{$class}' style='border-left:1px solid #C5DBEC;color:#14466B;text-align:right;
height:15px;' colspan={$tot_col_span} >
Payment Type : <select style='height:28px;width:120px' id='fpaymode'>{$payement_mode_options}</select></td>
<td class='{$class}' style='border-left:1px solid #C5DBEC;color:#14466B;text-align:right;height:15px' >Grand Total</td>
<td class='{$class}' style='text-align:center;border-left:1px solid #C5DBEC; border-right:1px solid #C5DBEC;
font-size:14px;font-weight:bold;color:green;' id=grand_total>0.00</td></tr>";
$str_reval.="</table>";
$str_reval.='<div class="raval_submit">
<span onclick="SaveRevaluation();" style="float:left;margin-left:8px;cursor: pointer; line-height: 19px;font-size:14px;font-weight:bold;">Submit</span>
</div>';
$str_reval.='<div class="raval_submit" >
<span onclick="DisplayRevalutionDetails();" style="float:left;margin-left:8px;cursor: pointer; line-height: 19px;font-size:14px;font-weight:bold;">Cancel</span>
</div>';
$arr['reval_html']=$str_reval;
$str_reval1.="</table>";
if(!empty($lobj_get_data))
{
$arr['reval_html']="<div id='reval_details'>{$str_reval}</div>";
$arr['payment_type_arr']=$lobj_payment_type;
echo $this->aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");
}
else
{
$data="You Cannot Enter the Revaluation Details";
echo $this->aobj_context->mobj_output->ToJSONEnvelope($data,-1,"success");
}
}
function GetNextNumber()
{
$query = "select FRVPREFIX From control";
$res = $this->aobj_context->mobj_db->GetRow($query);
$FRVPREFIX = $res['FRVPREFIX'];
$get_prefix_running_number = "select last_number from res_reval_code_generator
where college_code = '{$this->college_code}' and type='Student' ";
$lobj_get_prefix_running_number = $this->aobj_context->mobj_db->GetRow($get_prefix_running_number);
if(!empty($lobj_get_prefix_running_number['last_number']))
{
$next_number = $lobj_get_prefix_running_number['last_number'];
$last_number = str_pad($next_number,4, "0", STR_PAD_LEFT);
}
else
{
$next_number=0001;
$insert_into="insert into
res_reval_code_generator(college_code,last_number,type)
values
(
'{$this->college_code}',
{$next_number},'Student'
)";
$lobj_insert_into = $this->aobj_context->mobj_db->Execute($insert_into);
$last_number = str_pad($next_number,4, "0", STR_PAD_LEFT);
}
return $FRVPREFIX.$this->college_code.$last_number;
}
function UpdateNextNumber()
{
$update_code_generator = "update res_reval_code_generator set last_number = last_number+1
where college_code = '{$this->college_code}' and type='Student' ";
$lobj_update_code_generator = $this->aobj_context->mobj_db->Execute($update_code_generator);
}
function SaveRevalution()
{
include_once($this->aobj_context->main_src."src/json.php");
$json = new Services_JSON();
session_start();
$grand_total=($this->aobj_context->mobj_data["grand_total"]);
$fpaymode=($this->aobj_context->mobj_data["fpaymode"]);
$reg_no=strtoupper($this->aobj_context->mobj_data["reg_no"]);
$exam=$this->g_FEXAMNO;
$lstr_param_reval = stripslashes($this->aobj_context->mobj_data["myJSONText"]);
$mobj_json_reval_data = $json->decode($lstr_param_reval);
$reval_arr_data = get_object_vars($mobj_json_reval_data);
$int_codes_arr=array();
$get_college_code=" select date_format(current_date,'%d/%m/%Y') as curr_date, FYEAR, FEXAMTYPE
from res_fee where fregno = '{$reg_no}'
and fexamno = '{$exam}'";
$lobj_get_college_code = $this->aobj_context->mobj_db->GetRow($get_college_code);
$this->univ_code = $lobj_get_univcode['funivcode'];
$curr_date = $lobj_get_college_code['curr_date'];
$FYEAR=$lobj_get_college_code['FYEAR'];
$FEXAMTYPE=$lobj_get_college_code['FEXAMTYPE'];
$this->college_code=$this->g_FCOLLCODE;
$FDEGREE=$this->g_FDEGREE;
$FEXAMNO=$this->g_FEXAMNO;
$app_number=$this->GetNextNumber($this->aobj_context);
if($fpaymode == '')
$fpaymode = 'NEFT';
//echo "<pre>";
//print_r($reval_arr_data);die();
foreach($reval_arr_data as $ak=>$av)
{
$FSUBCODE=$av->fccode;
foreach($av as $akk=>$avv)
{
if($akk=="row_total" || $akk=='fccode') continue;
$insert="INSERT INTO res_stud
(
APPNO, FAPPDATE, FDEGREE, FEXAMNO,
FCOLLCODE, FREGNO, FSUBCODE, FCORRTYPE,
FAMOUNT, FTOTAL,FPAYMENTYPE,
FLOGDATE,FYEAR,FEXAMTYPE
)values
('{$app_number}',current_date(),'{$FDEGREE}','{$FEXAMNO}',
'{$this->college_code}','{$reg_no}','{$FSUBCODE}','{$akk}',
'{$avv}',{$grand_total},'{$fpaymode}',current_date(),'{$FYEAR}','{$FEXAMTYPE}'
)";
$lobj_insert = $this->aobj_context->mobj_db->Execute($insert);
}
}
if($lobj_insert)
{
$this->UpdateNextNumber($this->aobj_context);
$query ="select * from masbank where ifnull(fsuspend,'') <> 'T' and fenttype = 'res'";
$resmasbank = $this->aobj_context->mobj_db->getAll($query);
$get_univcode="select funivcode from control ";
$lobj_get_univcode = $this->aobj_context->mobj_db->GetRow($get_univcode);
$this->univ_code=$lobj_get_univcode['funivcode'];
$html="<table border=0 align='center' style='width:100%;font-weight:bold;font-size:16px;line-height:22px;padding:6px;'>";
$html.="<tr><td align='center' style='color:green;'>Registered Successfully</td></tr>";
$html.="<tr><td align='center' style='color:green;'> </td></tr>";
$html.="<tr><td align='center' style='font-weight:normal;'>Your Application No. : <span style='font-weight:bold'>{$app_number}</span></td></tr>";
$html.="<tr><td align='center' style='font-weight:normal;' >Date : <span style='font-weight:bold'>{$curr_date}</span></td></tr>";
$html.="<tr><td align='center' style='color:green;'> </td></tr>";
$html.="<tr><td align='center' >Please take a printout and submit to college with documents</td></tr>";
$html.="<tr><td > </td></tr>";
if($fpaymode=="DEBIT/CREDIT/NET BANKING")
{
$html.="<tr><td align='center' > <div class='raval_submit' style='width:193px;float:none;' >
<span onclick='MakeOnlinePayment(\"{$app_number}\");' style='float:left;margin-left:8px;cursor: pointer; line-height: 19px;font-size:14px;font-weight:bold;'>Make Online Payment</span>
</div></td></tr>";
}else if($fpaymode=="Other Banks")
{
/*$html.="<tr><td align='center' > <div class='raval_submit' style='width:193px;float:none;' >
<span onclick='MakepaytmOnlinePayment(\"{$this->app_number}\");' style='float:left;margin-left:8px;cursor: pointer; line-height: 19px;font-size:14px;font-weight:bold;'>Make Online Payment</span>
</div></td></tr>";*/
}
else
{
$html.="<tr><td align='center' >Note your application number for future reference. Print the Application.</td></tr>";
$html.="<tr><td > </td></tr>";
$html.="<tr><td align='center' > <div class='raval_submit' style='width:241px;float:none;' >
<span onclick='PrintRevaluationApplicationForm(\"{$app_number}\");' style='float:left;margin-left:8px;cursor: pointer; line-height: 19px;font-size:14px;font-weight:bold;'>Click here to take a PrintOut</span>
</div></td></tr>";
}
$data['html'] = $html;
$data['masbank'] = $resmasbank;
$data['fpaymode'] = $fpaymode;
$data['funivcode'] = $this->univ_code;
$data['fappno'] = $app_number;
// $html.="<tr><td align='center' > <div class='raval_submit' style='width:241px;float:none;' >
// <span onclick='PrintRevaluationApplicationForm(\"{$app_number}\");' style='float:left;margin-left:8px;cursor: pointer; line-height: 19px;font-size:14px;font-weight:bold;'>Click here to take a PrintOut</span>
// </div></td></tr>";
echo $this->aobj_context->mobj_output->ToJSONEnvelope($data,0,"success");
return;
}
else
{
$arr='Updation Failed';
echo $this->aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"Failure");
return;
}
}
// function DisplayRevalutionApplications()
// {
// $reg_no=($this->aobj_context->mobj_data["r"]);
// $exam_no=($this->aobj_context->mobj_data["e"]);
// $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; border-left:1px solid #C5DBEC; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;'>Sl No</td>";
// $str_reval.="<td align='center' style=' font-size:12px; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;'>Application No</td>";
// $str_reval.="<td align='center' style=' font-size:12px; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;'>Amount</td>";
// $str_reval.="<td align='center' style=' font-size:12px; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;'>Applied Date</td>";
// $str_reval.="<td align='center' style=' font-size:12px; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;'>Status</td>";
// $str_reval.="<td align='center' style=' font-size:12px; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;'> Print</td>";
// $str_reval.="</tr>";
// $get_data="select distinct APPNO,FTOTAL,DATE_FORMAT(FAPPDATE,'%d/%m/%Y') as FAPPDATE,
// if(fackdate is null,'1',if(funivrecdate is null,'2','3')) as app_status
// from res_stud
// where FREGNO='{$reg_no}' and FEXAMNO ='{$exam_no}' ";
// $lobj_get_data = $this->aobj_context->mobj_db->GetAll($get_data);
// $k=0;
// $sl_no=1;
// foreach($lobj_get_data as $ak=>$av)
// {
// $APPNO=$av['APPNO'];
// $FTOTAL=$av['FTOTAL'];
// $FAPPDATE=$av['FAPPDATE'];
// $app_status=$av['app_status'];
// if($k%2==0)
// $class='tbl_row1';
// else
// $class='tbl_row_alter1';
// $str_reval.="<tr>";
// $str_reval.="<td class='{$class}' style='text-align:center; border-left:1px solid #C5DBEC; border-right:1px solid #C5DBEC; padding:2px; font-size:12px;' >{$sl_no}</td>";
// $str_reval.="<td class='{$class}' style='border-left:0px solid #C5DBEC; border-right:1px solid #C5DBEC; padding:2px; font-size:12px;text-align:center; ' > {$APPNO}</td>";
// $str_reval.="<td class='{$class}' style='text-align:left; border-left:0px solid #C5DBEC; border-right:1px solid #C5DBEC; padding:2px; font-size:12px;text-align:center; ' >{$FTOTAL} </td>";
// $str_reval.="<td class='{$class}' style='text-align:left; border-left:0px solid #C5DBEC; border-right:1px solid #C5DBEC; padding:2px; font-size:12px;text-align:center; ' > {$FAPPDATE}</td>";
// if($app_status=='1')
// $str_reval.="<td class='{$class}' style='text-align:left; border-left:0px solid #C5DBEC; border-right:1px solid #C5DBEC; padding:2px; font-size:12px;color:red; ;text-align:center; ' >Not Submitted in College</td>";
// if($app_status=='2')
// $str_reval.="<td class='{$class}' style='text-align:left; border-left:0px solid #C5DBEC; border-right:1px solid #C5DBEC; padding:2px; font-size:12px;color:orange; ;text-align:center; ' >Submitted in College. Not Received at University</td>";
// if($app_status=='3')
// $str_reval.="<td class='{$class}' style='text-align:left; border-left:0px solid #C5DBEC; border-right:1px solid #C5DBEC; padding:2px; font-size:12px;color:green; ;text-align:center; ' >Received at University</td>";
// $str_reval.="<td class='{$class}' align='center' style='border-left:0px solid #C5DBEC; border-right:1px solid #C5DBEC; padding:2px; font-size:12px;font-weight:bold;text-align:center;' ><div class='raval_submit' style='width:59px; margin: 0 auto;' >
// <span onclick=\"PrintRevaluationApplicationForm('{$APPNO}');\" style='float:left;margin-left:8px;cursor: pointer; line-height: 19px;font-size:14px;font-weight:bold;'>Print</span>
// </div></td>";
// $str_reval.="</tr>";
// $sl_no++;
// $k++;
// }
// $str_reval.="</table>";
// $arr['html']=$str_reval;
// echo $this->aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");
// }
function DisplayRevalutionApplications()
{
$reg_no=($this->aobj_context->mobj_data["r"]);
$exam_no=($this->aobj_context->mobj_data["e"]);
$str_reval.="
<div>
<p style='text-align: center;color: red;'>
<span>** Important **</span><br>
If payment is not confirmed but the amount is deducted, DO NOT make a second payment. <br>
Please wait for 2-3 hours and visit the main page again to check for payment confirmation.<br>
In case payment is still not confirmed please contact your BANK helpdesk/ branch for further details.
</p>
</div>
<br>
<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; border-left:1px solid #C5DBEC; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;'>Sl No</td>";
$str_reval.="<td align='center' style=' font-size:12px; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;'>Application No</td>";
$str_reval.="<td align='center' style=' font-size:12px; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;'>Amount</td>";
$str_reval.="<td align='center' style=' font-size:12px; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;'>Applied Date</td>";
$str_reval.="<td align='center' style=' font-size:12px; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;'>Status</td>";
$str_reval.="<td align='center' style=' font-size:12px; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;'> Print</td>";
$str_reval.="</tr>";
$get_data="select distinct APPNO,FTOTAL,DATE_FORMAT(FAPPDATE,'%d/%m/%Y') as FAPPDATE,FCHALLANNO,FPAYMENTYPE,FPAYMENTSTATUS,FPAYMENTCONFIRM,
if(fackdate is null,'1',if(funivrecdate is null,'2','3')) as app_status
from res_stud
where FREGNO='{$reg_no}' and FEXAMNO ='{$exam_no}' ";
$lobj_get_data = $this->aobj_context->mobj_db->GetAll($get_data);
$k=0;
$sl_no=1;
foreach($lobj_get_data as $ak=>$av)
{
$APPNO=$av['APPNO'];
$FTOTAL=$av['FTOTAL'];
$FAPPDATE=$av['FAPPDATE'];
$FPAYMENTYPE=$av['FPAYMENTYPE'];
$FPAYMENTSTATUS=$av['FPAYMENTSTATUS'];
$FCHALLANNO=$av['FCHALLANNO'];
$app_status=$av['app_status'];
$FPAYMENTCONFIRM=$av['FPAYMENTCONFIRM'];
$FPAYMENTYPE="DEBIT/CREDIT/NET BANKING";
if($k%2==0)
$class='tbl_row1';
else
$class='tbl_row_alter1';
$str_reval.="<tr>";
$str_reval.="<td class='{$class}' style='text-align:center; border-left:1px solid #C5DBEC; border-right:1px solid #C5DBEC; padding:2px; font-size:12px;' >{$sl_no}</td>";
$str_reval.="<td class='{$class}' style='border-left:0px solid #C5DBEC; border-right:1px solid #C5DBEC; padding:2px; font-size:12px;text-align:center; ' > {$APPNO}</td>";
$str_reval.="<td class='{$class}' style='text-align:left; border-left:0px solid #C5DBEC; border-right:1px solid #C5DBEC; padding:2px; font-size:12px;text-align:center; ' >{$FTOTAL} </td>";
$str_reval.="<td class='{$class}' style='text-align:left; border-left:0px solid #C5DBEC; border-right:1px solid #C5DBEC; padding:2px; font-size:12px;text-align:center; ' > {$FAPPDATE}</td>";
if($FPAYMENTCONFIRM=='success')
$str_reval.="<td class='{$class}' style='text-align:left; border-left:0px solid #C5DBEC; border-right:1px solid #C5DBEC; padding:2px; font-size:12px;color:green; ;text-align:center; ' >Received at University for processing</td>";
else
{
if($FPAYMENTYPE=="POSTOFFICE")
$str_reval.="<td class='{$class}' style='text-align:left; border-left:0px solid #C5DBEC; border-right:1px solid #C5DBEC; padding:2px; font-size:12px;color:red; ;text-align:center; '>Payment not made at {$FPAYMENTYPE} </td>";
else if($FPAYMENTYPE=="DEBIT/CREDIT/NET BANKING")
$str_reval.="<td class='{$class}' style='text-align:left; border-left:0px solid #C5DBEC; border-right:1px solid #C5DBEC; padding:2px; font-size:12px;color:red; ;text-align:center; '>Online Payment Pending</td>";
else
$str_reval.="<td class='{$class}' style='text-align:left; border-left:0px solid #C5DBEC; border-right:1px solid #C5DBEC; padding:2px; font-size:12px;color:red; ;text-align:center; '>Payment Pending</td>";
}
$div_data="";
if($FPAYMENTYPE=="DEBIT/CREDIT/NET BANKING")
{
if($FPAYMENTCONFIRM=="success")
{
$div_data.="<div class='raval_submit' style='margin-right:19px;width:125px; ' >
<span onclick=\"PrintRevaluationApplicationForm('{$APPNO}');\" style='float:left;margin-left:26px;cursor: pointer; line-height: 19px;font-size:14px;font-weight:bold;'>Print App</span>
</div>";
}
else
{
$div_data="<div class='raval_submit' style='margin-right:19px;width:129px; ;' >
<span onclick=\"MakePayment('hdfc','{$APPNO}','018');\" style='float:left;margin-left:8px;cursor: pointer; line-height: 19px;font-size:14px;font-weight:bold;'>Make Payment</span>
</div>";
}
}
else if($FPAYMENTYPE=="POSTOFFICE")
{
$div_data="<div class='raval_submit' style='margin-right:19px;width:129px; ;' >
<span onclick=\"PrintRevaluationApplicationFormChallan('{$APPNO}');\" style='float:left;margin-left:26px;cursor: pointer; line-height: 19px;font-size:14px;font-weight:bold;'>Print App</span>
</div>";
}
else
{
$div_data="<div class='raval_submit' style='margin-right:19px;width:129px; ;' >
<span onclick=\"PrintRevaluationApplicationFormChallan('{$APPNO}');\" style='float:left;margin-left:8px;cursor: pointer; line-height: 19px;font-size:14px;font-weight:bold;'>Print Challan</span>
</div>";
$div_data.="<div class='raval_submit' style='margin-right:19px;width:129px; ' >
<span onclick=\"OpenUpdateChallanScreen('{$APPNO}','{$reg_no}','{$exam_no}');\" style='float:left;margin-left:8px;cursor: pointer; line-height: 19px;font-size:14px;font-weight:bold;'>Update Challan</span>
</div>";
if(!empty($FCHALLANNO))
{
$div_data.="<div class='raval_submit' style='margin-right:19px;width:89px; ' >
<span onclick=\"PrintRevaluationApplicationForm('{$APPNO}');\" style='float:left;margin-left:8px;cursor: pointer; line-height: 19px;font-size:14px;font-weight:bold;'>Print App</span>
</div>";
}
}
$str_reval.="<td class='{$class}' align='center' style='border-left:0px solid #C5DBEC; border-right:1px solid #C5DBEC; padding:2px; font-size:12px;font-weight:bold;text-align:center;' >{$div_data}</td>";
$str_reval.="</tr>";
$sl_no++;
$k++;
}
$str_reval.="</table>";
$arr['html']=$str_reval;
echo $this->aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");
}
}
function DisplayRevalutionDetails($aobj_context)
{
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$class_obj=new results($aobj_context);
$class_obj->DisplayRevalutionDetails();
}
function SaveRevalution($aobj_context)
{
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$class_obj=new results($aobj_context);
$class_obj->SaveRevalution();
}
function DisplayRevalutionApplications($aobj_context)
{
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$class_obj=new results($aobj_context);
$class_obj->DisplayRevalutionApplications();
}
?>
|