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.144.224.116
<?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']);
$query = "select fdegree, fregno, fname,fenroll fcollcode from student
where (fregno = '{$revalution_regno}' or fenroll = '{$revalution_regno}')";
$results = $this->aobj_context->mobj_db->GetRow($query);
$revalution_regno = $results['fregno'];
$this->enroll = $results['fenroll'];
$this->fcollcode = $results['fcollcode'];
$this->fdegree = $results['fdegree'];
$get_univcode="select funivcode from control ";
$lobj_get_univcode = $this->aobj_context->mobj_db->GetRow($get_univcode);
$this->univ_code=$lobj_get_univcode['funivcode'];
$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
from resmarks rm
inner join subject s on s.FDEGREE=rm.FDEGREE
and s.FEXAMNO=rm.FEXAMNO and s.FSUBCODE=rm.FSUBCODE
inner join resmarksdet rmd on rmd.fdegree = rm.fdegree and rmd.fregno = rm.fregno and s.fcsubcode = rmd.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
where rm.FREGNO = '{$revalution_regno}'
and rm.fexamno = '{$revalution_exam}' and (ifnull(rm.fthpassmth,'') = 'Pass'
or ifnull(rm.fthpassmth,'') = 'Fail' or length(rm.fthpassmth) < 4) and ifnull(frvblock,'') <> 'T'
and ifnull(fmarks,'') <> 'Ab.'
and ifnull(rmd.fmarks,-1) > -1
and s.FTHEORY='T' and s.FINTASS <> 'T'
group by FCSUBCODE";
$lobj_get_data = $this->aobj_context->mobj_db->GetAll($get_data);
//var_dump($lobj_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'];
$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']="Challenge Val";
//$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.="<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'];
$FSUBNAME =$val['FSUBNAME'];
$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' style='width: 20px;'><span style='font-weight:bold;' 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++;
}
$tot_col_span=$tot_col+2;
$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="<option value='Select'>Select</option>";
foreach($lobj_payment_type as $ak=>$av)
{
$payement_mode_options.="<option value='{$av['payment_type']}'>{$av['bank_name']}</option>";
}
$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='width:150px' 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()
{
$get_prefix_running_number = "select last_number from res_reval_code_generator
where college_code = '{$this->fcollcode}' and type='Student' ";
$lobj_get_prefix_running_number = $this->aobj_context->mobj_db->GetRow($get_prefix_running_number);
$query= " Select FRVPREFIX from control";
$result = $this->aobj_context->mobj_db->GetRow($query);
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->fcollcode}',{$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 $result['FRVPREFIX'].str_pad($this->fcollcode,4, "0", STR_PAD_LEFT).$last_number;
}
function UpdateNextNumber()
{
$update_code_generator = "update res_reval_code_generator set last_number = last_number+1
where college_code = '{$this->fcollcode}' 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"]);
$FMOBILE = ($this->aobj_context->mobj_data["FMOBILE"]);
$reg_no = strtoupper($this->aobj_context->mobj_data["reg_no"]);
$FEXAMNO = strtoupper($this->aobj_context->mobj_data["e"]);
$query = "select fdegree, fregno, fname,fenroll,fcollcode from student
where (fregno = '{$reg_no}' or fenroll = '{$reg_no}')";
$results = $this->aobj_context->mobj_db->GetRow($query);
$reg_no = $results['fregno'];
$fdegree = $results['fdegree'];
$this->fcollcode = $results['fcollcode'];
$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,FRVLASTDATE,FRTLASTDATE,FXEROXLASTDATE,FCVLASTDATE from res_fee
where fregno = '{$reg_no}' and fexamno = '{$FEXAMNO}'";
$lobj_get_college_code = $this->aobj_context->mobj_db->GetRow($get_college_code);
//$this->college_code=$this->g_FCOLLCODE;
//$FDEGREE=$this->g_FDEGREE;
$curr_date = $lobj_get_college_code['curr_date'];
$FRVLASTDATE = $lobj_get_college_code['FRVLASTDATE'];
$FRTLASTDATE = $lobj_get_college_code['FRTLASTDATE'];
$FXEROXLASTDATE = $lobj_get_college_code['FXEROXLASTDATE'];
$FCVLASTDATE = $lobj_get_college_code['FCVLASTDATE'];
$app_number=$this->GetNextNumber($this->aobj_context);
//echo "<pre>";
//print_r($reval_arr_data);die();
foreach($reval_arr_data as $ak=>$av)
{
$FSUBCODE=$av->fccode;
$FAPPLASTDATE = "";
foreach($av as $akk=>$avv)
{
if($akk=="row_total" || $akk=='fccode') continue;
if($akk == 'RV')
$FAPPLASTDATE = $FRVLASTDATE;
else if($akk == 'RV')
$FAPPLASTDATE = $FRTLASTDATE;
else if($akk == 'XR')
$FAPPLASTDATE = $FXEROXLASTDATE;
else if($akk == 'CV')
$FAPPLASTDATE = $FCVLASTDATE;
else
$FAPPLASTDATE = $FRTLASTDATE;
$insert="INSERT INTO res_stud
(
APPNO, FAPPDATE, FDEGREE, FEXAMNO,
FCOLLCODE, FREGNO, FSUBCODE, FCORRTYPE,
FAMOUNT, FTOTAL,
FLOGDATE,FPAYMENTYPE,FMOBILE,FAPPLASTDATE
)values
('{$app_number}',current_date(),'{$fdegree}','{$FEXAMNO}',
'{$this->fcollcode}','{$reg_no}','{$FSUBCODE}','{$akk}',
'{$avv}',{$grand_total},current_date(),'{$fpaymode}','{$FMOBILE}','{$FAPPLASTDATE}'
)";
$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'";
$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>";
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='PrintRevaluationApplicationFormChallan(\"{$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;
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"]);
$query = "select fdegree, fregno, fname,fenroll,fcollcode from student
where (fregno = '{$reg_no}' or fenroll = '{$reg_no}')";
$results = $this->aobj_context->mobj_db->GetRow($query);
$reg_no = $results['fregno'];
$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 res_stud.APPNO,res_stud.FTOTAL,DATE_FORMAT(res_stud.FAPPDATE,'%d/%m/%Y') as FAPPDATE,res_stud.FCHALLANNO,
res_stud.FPAYMENTYPE,res_stud.FPAYMENTSTATUS,res_stud.FPAYMENTCONFIRM,res_stud.FAPPLASTDATE,
if(DATE_ADD(GREATEST(FRVLASTDATE,FRTLASTDATE,FXEROXLASTDATE,FCVLASTDATE),INTERVAL 2 DAY)>=current_date,'1','0') AS last_date,
if(fackdate is null,'1',if(funivrecdate is null,'2','3')) as app_status from res_stud,res_fee
where res_stud.FREGNO='{$reg_no}' and res_stud.FEXAMNO ='{$exam_no}' and res_fee.FREGNO = res_stud.FREGNO
and res_fee.FDEGREE = res_stud.FDEGREE and res_fee.FEXAMNO = res_stud.FEXAMNO";
$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'];
//var_dump($FPAYMENTYPE);
$FCHALLANNO=$av['FCHALLANNO'];
$app_status=$av['app_status'];
$FPAYMENTCONFIRM=$av['FPAYMENTCONFIRM'];
$lastdate = $av['last_date'];
$FAPPLASTDATE = $av['FAPPLASTDATE'];
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>";
$qry="select count(*) as cnt from collexam where fdegree = '{$fdegree}'
and fcollcode = '{$fcollcode}'
and '{$FAPPLASTDATE}' < DATE_FORMAT(NOW(),'%Y-%m-%d')";
//var_dump($qry);
$exam_last_details = $this->aobj_context->mobj_db->GetRow($qry);
//var_dump($exam_last_details);
$cnt = $exam_last_details['cnt'];
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=="CASH")
$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 College </td>";
else if($FPAYMENTYPE=="DEBIT/CREDIT/NET BANKING")
{
if($lastdate =='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; '>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; '>Last date is over for Online Payment</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" || $FPAYMENTYPE=="Other Banks")
{
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
{
/*if($lastdate =='1')
{
$div_data="<div class='raval_submit' style='margin-right:19px;width:129px; ;' >
<span onclick=\"MakeOnlinePayment('{$APPNO}');\" style='float:left;margin-left:8px;cursor: pointer; line-height: 19px;font-size:14px;font-weight:bold;'>Make Payment</span>
</div>";
}*/
$query ="select masbank.*,control.funivcode from masbank, control where ifnull(fsuspend,'') <> 'T'";
$resmasbank = $this->aobj_context->mobj_db->getAll($query);
//var_dump()
//$resmasbank = json_encode($resmasbank,JSON_HEX_TAG);
$funivcode = $resmasbank[0]['funivcode'];
if($cnt > 0)
{
$div_data="<div class='raval_submit' style='margin-right:19px;width:129px; ;' >
<span style='float:left;margin-left:8px;cursor: pointer; line-height: 19px;font-size:14px;font-weight:bold;'>Last Date is Over</span>
</div>";
}else
{
$div_data="<div class='raval_submit' style='margin-right:19px;width:129px; ;' >
<span onclick=\"MakeOnlinePayment('{$APPNO}','{$resmasbank}','{$funivcode}');\" 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 if($FPAYMENTYPE=="CASH")
{
$div_data="<div class='raval_submit' style='margin-right:19px;width:129px; ;' >
<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=\"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 ValidateStudentMobileNo()
{
$revalution_regno=($this->aobj_context->mobj_data["r"]);
$revalution_exam=trim($this->aobj_context->mobj_data['e']);
$FMOBILE=trim($this->aobj_context->mobj_data['FMOBILE']);
$check_data="
SELECT COUNT(1) as cnt FROM res_stud
WHERE FREGNO='{$revalution_regno}'
AND FMOBILE='{$FMOBILE}'";
$lobj_check_data = $this->aobj_context->mobj_db->GetRow($check_data);
$cnt= $lobj_check_data['cnt'];
if($cnt>0)
{
echo $this->aobj_context->mobj_output->ToJSONEnvelope($cnt,0,"success");
}
else
{
echo $this->aobj_context->mobj_output->ToJSONEnvelope($cnt,-1,"failure");
}
}
}
function DisplayRevalutionDetails($aobj_context)
{
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$class_obj=new results($aobj_context);
$class_obj->DisplayRevalutionDetails($aobj_context);
}
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();
}
function ValidateStudentMobileNo($aobj_context)
{
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$class_obj=new results($aobj_context);
$class_obj->ValidateStudentMobileNo();
}
function getmasbank($aobj_context)
{
$query = "select * from masbank where ifnull(fsuspend,'') <> 'T'";
$results1 = $aobj_context->mobj_db->GetAll($query);
if($results1)
{
$html = '';
echo $aobj_context->mobj_output->ToJSONEnvelope($results1,0,"success");
return;
}
else
{
$error_info = "College Bank Details Not updated. Contact College";
echo $aobj_context->mobj_output->ToJSONEnvelope($error_info,-1,"failure");
return;
}
}
?>
|