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.117.91.170
Current Path : /var/www/results/sikkim/src/ |
| Current File : /var/www/results/sikkim/src/applicationFormReport_bf_bcu.php |
<?php
$main_src=substr($_SERVER['SCRIPT_FILENAME'],0,strlen($_SERVER['SCRIPT_FILENAME'])-7);
$pdf_writer_class =$main_src."/tarka_pdf/fpdf.php";
require_once($pdf_writer_class);
require_once("stringspliter.php");
class applicationFormReportNEFT
{
function DefaultConstructor($aobj_context)
{
$this->aobj_context=$aobj_context;
$this->pdf= new FPDF();
$this->pdf=$this;
$this->app_no=trim($this->aobj_context->mobj_data["app_no"]);
$this->ip=$_SERVER["REMOTE_ADDR"];
$get_date="select date_add(date_add(now(),INTERVAL 13 hour),interval 30 minute) as now_date,FPAYMENTYPE from res_stud
where APPNO='{$this->app_no}'";
$obj=$this->aobj_context->mobj_db->GetRow($get_date);
require_once("getnumword.php");
$this->current_date=$obj[now_date];
$this->pdf = new FPDF('L');
$this->pdf->SetMargins(2,5,2);
if($obj['FPAYMENTYPE']!="Other Banks")
$this->pdf->addPage('L');
}
function formcolldata()
{
$get_coll_name="select FUNIVNAME as 'FUNIVNAME',
FUNIVADD1 as 'state', pdf_logo_path,ifnull(FEXAMAPPREQ,'F') as FEXAMAPPREQ From control";
$lobj_get_coll_name=$this->aobj_context->mobj_db->GetRow($get_coll_name);
$this->FUNIVNAME=$lobj_get_coll_name['FUNIVNAME'];
$this->s_state=$lobj_get_coll_name['state'];
$this->f_year=$lobj_get_coll_name['f_year'];
$this->pdf_logo_path=$lobj_get_coll_name['pdf_logo_path'];
$this->FEXAMAPPREQ=$lobj_get_coll_name['FEXAMAPPREQ'];
}
function GetBankDetails()
{
//$this->FPAYMENTYPE = 'NEFT';
$get_data="SELECT bank_name, acc_no, branch_name, branch_code, ifsc_code, cheque_favour, place,bank_charge
FROM acc_mas where payment_type = '{$this->FPAYMENTYPE}'";
$lobj_get_data= $this->aobj_context->mobj_db->GetRow($get_data);
$this->bank_name=$lobj_get_data['bank_name'];
$this->acc_no=$lobj_get_data['acc_no'];
$this->branch_name=$lobj_get_data['branch_name'];
$this->branch_code=$lobj_get_data['branch_code'];
$this->ifsc_code=$lobj_get_data['ifsc_code'];
$this->cheque_favour=$lobj_get_data['cheque_favour'];
$this->place=$lobj_get_data['place'];
$this->bank_charge=$lobj_get_data['bank_charge'];
}
function GetData()
{
$get_app_no=" select FREGNO, date_format(FAPPDATE,'%d/%m/%Y') as APPDATE, FTOTAL ,FPAYMENTYPE from res_stud
where APPNO='{$this->app_no}'";
$obj_get_app_no=$this->aobj_context->mobj_db->GetRow($get_app_no);
$this->reg_no=$obj_get_app_no['FREGNO'];
$this->FRECPTDATE=$obj_get_app_no['APPDATE'];
$this->FTOTALFEE=$obj_get_app_no['FTOTAL'];
$this->FPAYMENTYPE=$obj_get_app_no['FPAYMENTYPE'];
$this->FCATEGORY=$obj_get_app_no['FCATEGORY'];
$this->FFEETYPE=$obj_get_app_no['FFEETYPE'];
$get_other_details="select date_format(current_date,'%d/%m/%Y') as curr_date,FDEGREE,FCOLLCODE,
FNAME,CONCAT(IFNULL(FCURRADD1,''),' ',FCURRADD2) AS s_address from student where FREGNO='{$this->reg_no}' ";
$lobj_get_name = $this->aobj_context->mobj_db->GetRow($get_other_details);
$this->college_code=$lobj_get_name['FCOLLCODE'];
$this->degree=$lobj_get_name['FDEGREE'];
$this->student_name=$lobj_get_name['FNAME'];
$this->s_address=$lobj_get_name['s_address'];
$this->curr_date=$lobj_get_name['curr_date'];
$get_exam_details="SELECT GROUP_CONCAT(DISTINCT FEXAMNO) AS FEXAMNO
FROM appcanddet WHERE APPNO='{$this->app_no}'";
$lobj_get_exam_details= $this->aobj_context->mobj_db->GetRow($get_exam_details);
$this->FEXAMNO= $lobj_get_exam_details['FEXAMNO'];
$this->GetBankDetails();
}
function WriteRect()
{
$width=96;
$this->pdf->Rect(2,5,$width,200);
$this->pdf->Rect(2+$width+2,5,$width,200);
$this->pdf->Rect(2+$width+$width+4,5,$width,200);
if(!empty($this->pdf_logo_path))
{
$img_logo_path=$this->aobj_context->main_src.$this->pdf_logo_path;
$this->pdf->Image($img_logo_path,4,7,15);
$this->pdf->Image($img_logo_path,$width+6,7,15);
$this->pdf->Image($img_logo_path,$width+$width+7,7,15);
}
$this->pdf->setY(5);
}
function formData($label)
{
$line_height=5;
$width=96;
$x_pos=2;
if($this->pos==2)
$x_pos=2+$width+2;
if($this->pos==3)
$x_pos=2+$width+2+$width+2;
$jump_width=$width;
if($this->pos==2)
$jump_width=$width;
else if($this->pos==3)
$jump_width=$width;
$this->pdf->SetX($x_pos);
$this->old_y=$this->pdf->GetY();
$this->pdf->SetFont('Times','BU',9);
$this->pdf->Cell($jump_width,$line_height,"REVALUATION APPLICATION FORM ",'0',1,'C');
$this->pdf->SetFont('Times','B',9);
$this->pdf->SetX($x_pos);
$this->pdf->Cell($jump_width,$line_height,$this->FUNIVNAME,'0',1,'C');
$this->pdf->SetX($x_pos);
$this->pdf->Cell($jump_width,$line_height,$this->s_state,'0',1,'C');
$this->pdf->SetFont('Times','BU',9);
$this->pdf->SetX($x_pos);
$this->pdf->Cell($jump_width,$line_height,$label,'0',1,'C');
$this->pdf->SetFont('Times','B',9);
$this->pdf->SetX($x_pos);
$this->pdf->Cell($jump_width,$line_height,"From Bank____________________Branch______________________",'0',1,'C');
$this->pdf->SetX($x_pos);
$this->pdf->Cell($jump_width,$line_height," Date_____________________",'0',1,'L');
$td1_width=$jump_width*(0.50)-1;
$td2_width=$jump_width-$td1_width-2;
$this->pdf->SetX($x_pos+1);
$this->pdf->Cell($td1_width+$td2_width,$line_height-1,"Details of Applicant Remitter",'1',1,'C');
$this->pdf->SetFont('Times','B',10);
$this->pdf->SetX($x_pos+1);
$this->pdf->Cell($td1_width,$line_height,"Reference/Applcation No",'1',0,'L');
$this->pdf->Cell($td2_width,$line_height,"{$this->app_no}",'1',1,'L');
$this->pdf->SetFont('Times','B',10);
$student_name = $this->student_name;
$studentname = str_splitf($this->student_name,25);
$this->pdf->SetX($x_pos+1);
$this->pdf->Cell($td1_width,$line_height,"Name",'LRT',0,'L');
$this->pdf->Cell($td2_width,$line_height,$studentname[0],'LRT',1,'L');
if($studentname[1] != '')
{
$this->pdf->SetX($x_pos+1);
$this->pdf->Cell($td1_width,10," ",'LRB',0,'L');
$this->pdf->Cell($td2_width,$line_height,$studentname[1],'LRB',1,'L');
}
$this->pdf->SetX($x_pos+1);
$this->pdf->Cell($td1_width,$line_height,"Roll. No",'1',0,'L');
$this->pdf->Cell($td2_width,$line_height,"{$this->reg_no}",'1',1,'L');
$this->pdf->SetX($x_pos+1);
$this->pdf->Cell($td1_width,$line_height,"College/Dept./Degree ",'1',0,'L');
$this->pdf->Cell($td2_width,$line_height,"{$this->college_code} / {$this->degree}",'1',1,'L');
$this->pdf->SetX($x_pos+1);
$this->pdf->Cell($td1_width,$line_height,"Account No. (if applicable)",'1',0,'L');
$this->pdf->Cell($td2_width,$line_height,"",'1',1,'L');
$this->pdf->SetX($x_pos+1);
$this->pdf->Cell($td1_width,$line_height,"Cheque Details(if applicable)",'1',0,'L');
$this->pdf->Cell($td2_width,$line_height,"",'1',1,'L');
$this->pdf->ln(2);
$td1_width=$jump_width*(0.40)-1;
$td2_width=$jump_width-$td1_width-2;
$this->pdf->SetX($x_pos+1);
$nb =0;
$nb=max($nb,NbLines($td1_width,$this->cheque_favour,''));
$yH = $line_height*$nb;
$this->pdf->Cell($td1_width+$td2_width,$line_height,"Details of Beneficiary",'1',1,'C');
$this->pdf->SetFont('Times','B',10);
$this->pdf->SetX($x_pos+1);
$this->pdf->Cell($td1_width,$line_height,"Beneficary's Name",'1',0,'L');
$this->pdf->MultiCell($td2_width,$line_height,"{$this->cheque_favour}",1,'L');
$this->pdf->SetX($x_pos+1);
$this->pdf->Cell($td1_width,$line_height,"Beneficary's A/C No",'1',0,'L');
$this->pdf->Cell($td2_width,$line_height,"{$this->acc_no}",'1',1,'L');
$this->pdf->SetX($x_pos+1);
$this->pdf->SetFont('Times','B',10);
$this->pdf->Cell($td1_width,$line_height,"Center",'1',0,'L');
$this->pdf->Cell($td2_width,$line_height,"{$this->place}",'1',1,'L');
$this->pdf->SetX($x_pos+1);
$this->pdf->Cell($td1_width,$line_height,"Bank/Branch",'1',0,'L');
$this->pdf->Cell($td2_width,$line_height,"{$this->bank_name} / {$this->branch_name}",'1',1,'L');
$this->pdf->SetX($x_pos+1);
$this->pdf->Cell($td1_width,$line_height,"IFSC Code",'1',0,'L');
$this->pdf->Cell($td2_width,$line_height,"{$this->ifsc_code}",'1',1,'L');
$this->pdf->SetFont('Times','B',10);
$this->pdf->SetX($x_pos);
$this->pdf->Cell($jump_width,$line_height," Amount To Be Remitted Rs {$this->FTOTALFEE}/-",'0',1,'L');
$this->pdf->SetX($x_pos);
$in_words=getNumber($this->FTOTALFEE);
$this->pdf->Cell($jump_width,$line_height," Rupees {$in_words}",'0',1,'L');
$this->pdf->SetFont('Times','',10);
$this->pdf->SetX($x_pos+1);
$this->pdf->MultiCell($jump_width,$line_height,'1. Amount to be remitted as per details enumerated above',0,"L");
$this->pdf->SetX($x_pos+1);
$this->pdf->MultiCell($jump_width,$line_height,'2. Not Transferable',0,"L");
$this->pdf->ln(3);
$this->pdf->SetFont('Times','B',10);
$this->pdf->SetX($x_pos);
$this->pdf->Cell($jump_width,$line_height,"Applicant's Signature ",'0',1,'R');
$this->pdf->ln(3);
$this->pdf->SetX($x_pos+1);
$this->pdf->Cell($jump_width-2.5,$line_height,"Payment particulars- Cash/Transfer Date:",'1',1,'L');
$this->pdf->SetX($x_pos+1);
$tdd1_width=$jump_width*(0.25);
$tdd2_width=($jump_width)*.25 ;
$tdd3_width=($jump_width-$tdd2_width)*.60+2;
$this->pdf->Cell($tdd1_width,$line_height,"",'L',0,'L');
$this->pdf->Cell($tdd2_width,$line_height,"",'R',0,'L');
$this->pdf->Cell($tdd3_width,$line_height," ",'R',1,'L');
$this->pdf->SetX($x_pos+1);
$total=$this->FTOTALFEE;
$this->pdf->Cell($tdd1_width,$line_height,"Total Amount",'1',0,'L');
$this->pdf->Cell($tdd2_width,$line_height,"Rs {$total}/-",'1',0,'L');
$this->pdf->Cell($tdd3_width,$line_height,"Seal & Signature ",'BR',1,'C');
$this->pdf->ln(2);
$this->pdf->SetX($x_pos+1);
$in_words=getNumber($total);
$this->pdf->Cell($jump_width,$line_height,"Rupees {$in_words}",'0',1,'L');
$this->pdf->SetX($x_pos+1);
$this->pdf->SetFont('Times','',10);
$this->pdf->Cell($jump_width,$line_height,"Cash Received/Debited Applicants A/C",'0',1,'L');
$this->pdf->ln(2);
$this->pdf->SetX($x_pos+1);
$this->pdf->Cell($tdd1_width,$line_height,"Remitance/",'LRT',0,'L');
$this->pdf->Cell($tdd2_width+10,$line_height," ",'LRT',1,'L');
$this->pdf->SetX($x_pos+1);
$this->pdf->Cell($tdd1_width,$line_height,"UTR Number",'LRB',0,'L');
$this->pdf->Cell($tdd1_width+10,$line_height," ",'LRB',0,'L');
$this->pdf->Cell($tdd1_width+10,$line_height," Authorised Signatory",'0',1,'L');
$this->pdf->ln(5);
$this->pdf->SetX($x_pos+1);
$this->pdf->SetFont('Times','BU',10);
$this->pdf->Cell($tdd1_width,$line_height,"* Payable only at Axis Bank.",0,'L');
$this->pdf->SetY($this->old_y);
$img_path=$this->aobj_context->main_src.$this->photo_path;
}
function Footer()
{
$this->SetY(-15);
$this->pdf->SetFont('Times','B',8);
$this->Cell(140,6,'Printed : IP Address : '.$this->ip." Date ".$this->current_date,'0',0,'L');
$this->Cell(50,6,'Page '.$this->PageNo().' of {nb}',0,1,'R');
}
function FooterManual()
{
$this->pdf->SetY(-30);
$this->pdf->SetFont('Times','B',8);
$this->pdf->Cell(140,6,'Printed : IP Address : '.$this->ip." Date ".$this->current_date,'0',0,'L');
$this->pdf->Cell(50,6,'Page 1 of 1',0,1,'R');
}
function formcolldata2()
{
$get_coll_name="select FUNIVNAME as 'college_name',
FUNIVADD1 as 'state', pdf_logo_path From control";
$lobj_get_coll_name=$this->aobj_context->mobj_db->GetRow($get_coll_name);
$this->college_name=$lobj_get_coll_name['college_name'];
$this->s_state=$lobj_get_coll_name['state'];
$this->f_year=$lobj_get_coll_name['f_year'];
$this->pdf_logo_path=$lobj_get_coll_name['pdf_logo_path'];
$get_app_no=" select FREGNO,FEXAMNO,FPAYMENTYPE
from res_stud
where APPNO='{$this->app_no}'";
$obj_get_app_no=$this->aobj_context->mobj_db->GetRow($get_app_no);
$this->reg_no=$obj_get_app_no['FREGNO'];
$this->exam=$obj_get_app_no['FEXAMNO'];
$this->FPAYMENTYPE=$obj_get_app_no['FPAYMENTYPE'];
$get_data="SELECT s.FDEGREE,d.FDESCPN, s.FEXAMNO,d.FEXAMNAME,s.FCOLLCODE,
concat(c.FCOLLCODE, ' - ', c.FCOLLNAME,', ',c.FTOWN) AS FCOLLNAME,d.FRESEXAMDATE,
s.FREGNO,s.FNAME,s.FAYEAR,d.FELIGREM01,d.FELIGREM02
FROM student s
INNER JOIN college c
ON c.FCOLLCODE=s.FCOLLCODE
INNER JOIN degree d ON d.FDEGREE=s.FDEGREE
where s.FREGNO='{$this->reg_no}' and d.fexamno = '{$this->exam}' ";
$obj_student=$this->aobj_context->mobj_db->GetRow($get_data);
$FEXAMNAME=$obj_student['FEXAMNAME'];
$FDESCPN=$obj_student['FDESCPN'];
$FEXAMDATE=$obj_student['FRESEXAMDATE'];
$this->FDEGREE=$obj_student['FDEGREE'];
$this->FCOLLNAME=$obj_student['FCOLLNAME'];
$this->FNAME=$obj_student['FNAME'];
$this->degree_details=" {$FEXAMNAME} {$FDESCPN} {$FEXAMDATE} Examinations";
}
function formData2()
{
$this->pdf->SetMargins(10,12,10);
$this->pdf->AddPage("P");
$img_path=$this->aobj_context->main_src.$this->photo_path;
if(!empty($this->photo_path) && file_exists($img_path))
{
$this->pdf->Image($img_path,166,50,50);
}
if(!empty($this->pdf_logo_path))
{
$img_logo_path=$this->aobj_context->main_src.$this->pdf_logo_path;
//echo $img_logo_path; die();
$this->pdf->Image($img_logo_path,10,10,20);
}
if($this->call_type=="Other")
$this->pdf->setY(10);
$this->pdf->SetFont('Times','B',15);
$this->pdf->cell(180,3,$this->college_name,"0",1,"C");
$this->pdf->SetFont('Times','B',8);
$this->pdf->cell(180,7, $this->s_state,"0",1,"C");
$this->pdf->SetFont('Times','B',13);
$this->pdf->cell(180,7, $this->degree_details,"0",1,"C");
$this->pdf->SetFont('Times','B',11);
$this->pdf->Cell(180,7,"Application for RV / RT / Photocopy of Answer Scripts","0",1,"C");
$this->pdf->SetFont('Times','B',15);
$this->pdf->Cell(180,7,"Application Number : {$this->app_no}","0",1,"C");
$this->pdf->Ln(2);
$this->pdf->SetFont('Times','',13);
//$this->SetDrawColor(109,187,195);
$this->pdf->SetFillColor(63,55,55);
$this->pdf->Cell(0,0.34,"","T",1,'C',true);
$this->pdf->cell(30,7, "Register No : ","0",0,"L");
$this->pdf->cell(124,7,strtoupper($this->reg_no),"0",0,"L");
$this->pdf->cell(50,7,"Date : {$this->app_date}","0",1,"L");
$this->pdf->cell(30,7, "Name : ","0",0,"L");
$this->pdf->cell(130,7,$this->FNAME,"0",1,"L");
$this->pdf->cell(30,7, "College : ","0",0,"L");
$this->pdf->cell(130,7,$this->FCOLLNAME,"0",1,"L");
$this->pdf->Cell(0,0.34,"","T",1,'C',true);
}
function GetFullQry2()
{
$get_already_applied="SELECT FEXAMNAME,mr.FREGNO,
APPNO,DATE_FORMAT(FAPPDATE,'%d/%m/%Y') AS app_date,CONCAT(s.FSUBCODE,s.FSSUBCODE) as FSUBCODE,
FTOTAL, concat( s.FSUBNAME ,' ',s.FSSUBNAME ) as FSUBNAME,
FCORRTYPE,FAMOUNT,mr.internal_code FROM
res_stud mr inner JOIN student st ON st.FREGNO=mr.FREGNO
INNER JOIN degree d ON d.FDEGREE=mr.FDEGREE AND d.FEXAMNO=mr.FEXAMNO
INNER join subject s on mr.FSUBCODE=CONCAT(s.FSUBCODE,s.FSSUBCODE)
AND s.FDEGREE=d.FDEGREE AND s.FEXAMNO=mr.FEXAMNO
WHERE mr.FDEGREE='{$this->FDEGREE}' AND mr.FREGNO='{$this->reg_no}'
and mr.FEXAMNO ='{$this->exam}' AND s.FDEGREE=mr.FDEGREE AND s.FEXAMNO=mr.FEXAMNO
and APPNO='{$this->app_no}' group by APPNO,mr.FREGNO,mr.FSUBCODE,FCORRTYPE order by mr.FREGNO,APPNO,mr.FSUBCODE ";
$this->lobj_get_already_applied= $this->aobj_context->mobj_db->GetAll($get_already_applied);
$this->app_date=$this->lobj_get_already_applied[0][app_date];
$this->distinct_types=array();
$this->txt_arr["RV"]="RV";
$this->txt_arr["RT"]="RT";
$this->txt_arr["XR"]="PC";
$this->txt_arr["CV"]="CV";
}
function GetQry()
{
$i=0;
$allready_applied_html_arr=array();
foreach($this->lobj_get_already_applied as $ak=>$av)
{
$this->app_date=$av['app_date'];
$allready_applied_html_arr[$av['FSUBCODE']]['sub_name']=$av['FSUBNAME'] ;
$allready_applied_html_arr[$av['FSUBCODE']]['row_tot']+=$av['FAMOUNT'];
$allready_applied_html_arr[$av['FSUBCODE']]['details'][$av['FCORRTYPE']]=$av['FAMOUNT'];
$i++;
if(!in_array($av['FCORRTYPE'],$this->distinct_types))
array_push($this->distinct_types,$av['FCORRTYPE']);
}
$this->pdf->ln(6);
$empty_cell_width=1;
if(count($this->distinct_types)==1)
{
$empty_cell_width=20;
}
if(count($this->distinct_types)==2)
{
$empty_cell_width=15;
}
if(count($this->distinct_types)==3)
{
$empty_cell_width=10;
}
if(count($this->distinct_types)==4)
{
$empty_cell_width=5;
}
$this->pdf->SetFillColor(109,187,195);
$this->pdf->SetFont('Times','B',10);
$this->pdf->cell($empty_cell_width,7, ""," ",0,"C");
$this->pdf->cell(15,7, "Sl. No.","1",0,"C",true);
$this->pdf->cell(20,7, "Sub. Code","1",0,"C",true);
$this->pdf->cell(80,7, "Subject Title","1",0,"C",true);
foreach($this->distinct_types as $dk)
{
$this->pdf->cell(15,7, $this->txt_arr[$dk],"1",0,"C",true);
}
$this->pdf->cell(15,7, "Total Fee","1",1,"C",true);
$sl_no=1;
$grand_tot=0;//$this->SetFillColor(0,0,0);
foreach($allready_applied_html_arr as $ak=>$av)
{
$this->pdf->cell($empty_cell_width,7, ""," ",0,"C");
$sub_code=$ak;
$row_tot=$av['row_tot'];
$grand_tot+=$row_tot;
$sub_name=$av['sub_name'];
$details=$av['details'];
$get_sx1=$this->pdf->GetX();
$get_sy1=$this->pdf->GetY();
$this->pdf->SetXY($get_sx1+15+20,$get_sy1);
$this->pdf->MultiCell(80,7, $sub_name,'1','L');
$get_sy2=$this->pdf->GetY();
$height=$get_sy2-$get_sy1;
$this->pdf->SetXY($get_sx1,$get_sy1);
$this->pdf->cell(15,$height,$sl_no,"1",0,"C");
$this->pdf->cell(20,$height,$sub_code,"1",0,"C");
$this->pdf->SetXY($get_sx1+15+20+80,$get_sy1);
$cell_width=0;
foreach($this->distinct_types as $dk)
{
$cell_val=" - ";
if($details[$dk]>0)
$cell_val=$details[$dk];
$this->pdf->cell(15,$height, $cell_val,"1",0,"C");
$cell_width+=15;
}
$this->pdf->cell(15,$height, $row_tot,"1",1,"C");
$sl_no++;
}
$fi_w=115+$cell_width-15+$empty_cell_width;
$this->pdf->cell($fi_w,7,"","0",0,"C");
$this->pdf->cell(15,7,"Total ","1",0,"C");
$this->pdf->cell(15,7,"{$grand_tot} ","1",1,"C");
$this->pdf->ln(3);
if($this->FPAYMENTYPE=="POSTOFFICE")
$this->pdf->cell(35,7,"Payment Mode : Through Post Office","0",0,"L");
else if($this->FPAYMENTYPE=="Other Banks")
{
$query = "select FPAYMENTREMARKS, ifnull(FPAYMENTSTATUS,'') as FPAYMENTSTATUS from res_stud where appno = '{$this->app_no}'";
//var_dump($query);
$result = $this->aobj_context->mobj_db->GetRow($query);
$this->pdf->cell(35,7,"Payment Mode : HDFC","0",1,"L");
$this->pdf->cell(35,7,"Payment Status : ".$result['FPAYMENTSTATUS'],"0",1,"L");
$this->pdf->cell(35,7,"Payment transcation id : ".$result['FPAYMENTREMARKS'],"0",1,"L");
}
else
$this->pdf->cell(35,7,"Payment Mode : By BANK CHALLAN only","0",0,"L");//$this->pdf->cell(35,7,"Payment Mode : {$this->FPAYMENTYPE}","0",0,"L");
$this->pdf->ln(10);
$undertaken = "I hereby undertake to submit, as per the university exam regulation, my revaluation application duly recommended by the Principal (for student of Affiliated College)/Head of Department (for student University Department), complete in all respects, and with all necessary supporting documents to the office of the CoE within 12 days from the day of declaration of the result, failing which I understand that the university reserves the right to regret my application.";
$this->pdf->MultiCell(0,7,$undertaken,0,"J");
$this->pdf->ln(5);
$this->pdf->SetFont('Times','UB',10);
$this->pdf->cell(35,7,"Important notice as per rules of the University","0",1,"L");
$this->pdf->SetFont('Times','',10);
$this->pdf->cell(185,6,"1.Candidates are not eligible to apply for re-evaluation for a paper if her/his score is below 20% or above 60% of the total score ","0",1,"L");
$this->pdf->cell(185,4," in the given paper","0",1,"L");
$this->pdf->cell(185,6,"2.Candidates who apply for reevaluation shall not be considered for Award of Merit (Gold and Silver Medal) after completion of course","0",1,"L");
$this->pdf->cell(185,6,"3.The re-evaluated score shall replace the original score as the valid score even if it is below the original score","0",1,"L");
$this->pdf->ln(10);
$this->pdf->cell(35,7,"Date : ","0",0,"L");
$this->pdf->ln(20);
$this->pdf->cell(80,7,"Signature of the candidate","0",0,"L");
$this->pdf->cell(10,7,"","0",0,"L");
$this->pdf->cell(83,7,"Signature of Principal with seal (for student of Affiliated College)/","0",1,"L");
$this->pdf->cell(185,5,"Head of Dept. with seal (for student of University Dept.)","0",1,"R");
}
function SendOutput()
{
$this->pdf->Output("application_letter_{$this->app_no}.pdf","D");
}
}
function PrintRevaluationApplicationForm($aobj_context)
{
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$class_obj=new applicationFormReportNEFT();
$class_obj->DefaultConstructor($aobj_context);
$class_obj->formcolldata();
$class_obj->GetData();
// if($class_obj->FPAYMENTYPE != 'Other Banks' || $class_obj->FPAYMENTYPE ! == 'hdfc' || $class_obj->FPAYMENTYPE ! == 'hdfc')
// {
// $class_obj->WriteRect();
// $class_obj->pos=1;
// $class_obj->formData("Bank Copy");
// $class_obj->pos=2;
// $class_obj->formData("University Copy");
// $class_obj->pos=3;
// $class_obj->formData("Student Copy");
// }
$class_obj->formcolldata2();
$class_obj->GetFullQry2();
$class_obj->formData2();
$class_obj->GetQry();
$class_obj->SendOutput();
}
function NbLines($w,$txt,$pdf)
{
//Computes the number of lines a MultiCell of width w will take
$cw=&$pdf->CurrentFont['cw'];
if($w==0)
$w=$pdf->w-$pdf->rMargin-$pdf->x;
$wmax=($w-2*$pdf->cMargin)*1000/$pdf->FontSize;
$s=str_replace("\r",'',$txt);
$nb=strlen($s);
if($nb>0 and $s[$nb-1]=="\n")
$nb--;
$sep=-1;
$i=0;
$j=0;
$l=0;
$nl=1;
while($i<$nb){
$c=$s[$i];
if($c=="\n"){
$i++;
$sep=-1;
$j=$i;
$l=0;
$nl++;
continue;
}
if($c==' ')
$sep=$i;
$l+=$cw[$c];
if($l>$wmax){
if($sep==-1){
if($i==$j)
$i++;
} else
$i=$sep+1;
$sep=-1;
$j=$i;
$l=0;
$nl++;
} else
$i++;
}
return $nl;
}
?>
|