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.220.226.147
Current Path : /var/www/student/suk/src/ |
| Current File : /var/www/student/suk/src/applicationFormReportSBM.php |
<?php
$main_src=substr($_SERVER['SCRIPT_FILENAME'],0,strlen($_SERVER['SCRIPT_FILENAME'])-7);
//$pdf_writer_class =$main_src."/tarka_pdf/fpdf.php";
$pdf_writer_class =$main_src."/tcpdf/tcpdf.php";
require_once($pdf_writer_class);
require_once("report_hall_ticket.php");
class applicationFormReport
{
function DefaultConstructor($aobj_context)
{
$this->aobj_context=$aobj_context;
//$this->pdf= new FPDF();
$this->pdf= new TCPDF();
$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";
$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= new TCPDF('L');
$this->pdf->SetMargins(2,2);
//$this->pdf->addPage('L');
}
function formcolldata()
{
$get_coll_name="select FUNIVNAME as 'FUNIVNAME',FUNIVCODE,
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'];
$this->FUNIVCODE=$lobj_get_coll_name['FUNIVCODE'];
}
function GetBankDetails()
{
$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 ,FRECPTNO,FRECPTDATE,FTOTALFEE,
FPAYMENTYPE,FFEETYPE,FCATEGORY
from appcandsum
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['FRECPTDATE'];
$this->FTOTALFEE=$obj_get_app_no['FTOTALFEE'];
$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'];
$query = "select date_format(c.fappto,'%d/%m/%Y') as fappto from collexam c,appcandsum a where c.fdegree = a.fdegree
and c.fexamno = a.fexamno and a.fregno = '{$this->reg_no}' and appno = '{$this->app_no}'";
//var_dump($query);
$results = $this->aobj_context->mobj_db->GetRow($query);
$this->lastdate = $results['fappto'];
$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()
{
$this->pdf->addPage('L');
$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,15);
$this->pdf->Image($img_logo_path,$width+6,7,15,15);
$this->pdf->Image($img_logo_path,$width+$width+7,7,15,15);
$img_logo_path = $this->aobj_context->main_src.'img/umy.jpg';
$this->pdf->Image($img_logo_path,82,6,15,15);
$this->pdf->Image($img_logo_path,180,6,15,15);
$this->pdf->Image($img_logo_path,278,6,15,15);
}
$this->pdf->setY(5);
}
function formData($label)
{
$line_height=5;
$width=96;
$x_pos=2;
$style = array(
'position' => 'right',
'align' => 'C',
'stretch' => false,
'fitwidth' => true,
'cellfitalign' => '',
'border' => false,
'hpadding' => 'auto',
'vpadding' => 'auto',
'fgcolor' => array(0,0,0),
'bgcolor' => false, //array(255,255,255),
'text' => true,
'font' => 'helvetica',
'fontsize' => 8,
'stretchtext' => 4
);
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','B',7);
$this->pdf->Cell($jump_width,$line_height,'UNIVERSITY OF MYSORE','0',1,'C');
$this->pdf->SetX($x_pos);
$this->pdf->SetFont('Times','B',8);
$this->pdf->Cell($jump_width,4,$this->FUNIVNAME,'0',1,'C');
$this->pdf->SetFont('Times','B',6);
$this->pdf->SetX($x_pos);
$this->pdf->Cell($jump_width,4,$this->s_state,'0',1,'C');
$this->pdf->SetFont('Times','B',8);
$this->pdf->SetX($x_pos);
$this->pdf->Cell($jump_width,$line_height,"Challan - ".$label,'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',8);
$this->pdf->SetX($x_pos);
$this->pdf->Cell($jump_width,$line_height,"A/C No. : {$this->acc_no}"." / IFSC CODE: {$this->ifsc_code}",'0',1,'C');
$this->pdf->ln(2);
/* $this->pdf->SetX($x_pos);
$this->pdf->Cell($jump_width,$line_height,"{$this->bank_name}",'0',1,'C');
$this->pdf->SetX($x_pos);
$this->pdf->Cell($jump_width,$line_height,"IFSC CODE: {$this->ifsc_code}",'0',1,'C');
//$this->pdf->Cell($jump_width,$line_height,"BRANCH CODE: {$this->branch_code} | IFSC CODE: {$this->ifsc_code}",'0',1,'C');
$this->pdf->SetX($x_pos);
$this->pdf->Cell($jump_width,$line_height,"BANK USE ONLY",'0',1,'C'); */
$td1_width=$jump_width*(0.30)-1;
$td2_width=$jump_width-$td1_width-2;
$this->pdf->SetX($x_pos+1);
$this->pdf->Cell($td1_width,$line_height,"Bank",'1',0,'L');
$this->pdf->Cell($td2_width,$line_height,"{$this->bank_name}",'1',1,'L');
$this->pdf->SetX($x_pos+1);
$this->pdf->Cell($td1_width,$line_height,"Branch Name",'1',0,'L');
$this->pdf->Cell($td2_width,$line_height,"{$this->branch_name}",'1',1,'L');
$this->pdf->SetX($x_pos+1);
$this->pdf->Cell($td1_width,$line_height,"Branch Code",'1',0,'L');
$this->pdf->Cell($td2_width,$line_height,"{$this->branch_code}",'1',1,'L');
$this->pdf->SetX($x_pos+1);
$this->pdf->Cell($td1_width,$line_height,"Journal No",'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,"Date",'1',0,'L');
$this->pdf->Cell($td2_width,$line_height,"{$this->curr_date}",'1',1,'L');
$line_height = 4;
$this->pdf->SetX($x_pos+1);
$this->pdf->Cell($jump_width,$line_height,"Reference No: {$this->app_no}",'0',1,'L');
$this->pdf->SetX($x_pos+1);
$this->pdf->Cell($jump_width,$line_height,"Applicant Name: {$this->student_name}",'0',1,'L');
$this->pdf->SetX($x_pos+1);
$this->pdf->Cell($jump_width,$line_height,"Reg. No.: {$this->reg_no}",'0',1,'L');
$this->pdf->SetX($x_pos+1);
$this->pdf->Cell($jump_width,$line_height,"College / Degree: {$this->college_code} / {$this->degree}",'0',1,'L');
$this->pdf->SetX($x_pos+1);
$this->pdf->Cell($jump_width,$line_height,"Category / Fee Type: {$this->FCATEGORY} / {$this->FFEETYPE}",'0',1,'L');
if($this->FUNIVCODE != '011')
{
$this->pdf->SetX($x_pos+1);
$this->pdf->Cell($jump_width,$line_height,"Valid Upto : {$this->lastdate}",'0',1,'L');
}
$this->pdf->SetX($x_pos+1);
$this->pdf->Cell($jump_width,$line_height,"Fee: {$this->FTOTALFEE}/-",'0',1,'L');
$this->pdf->SetFont('Times','B',8);
$this->pdf->SetX($x_pos+1);
$in_words=getNumber($this->FTOTALFEE);
$this->pdf->Cell($jump_width,$line_height,"Rupees {$in_words}",'0',1,'L');
$this->pdf->SetX($x_pos+1);
$this->pdf->SetFont('Times','',8);
$this->pdf->MultiCell($jump_width,$line_height,"PAID TO THE CREDIT OF {$this->cheque_favour} ",0,"L");
$line_height = 4;
$this->pdf->SetX($x_pos+1);
$this->pdf->SetFont('Times','B',8);
$tdd1_width=$jump_width*(0.25)-1;
$tdd2_width=($jump_width)*.25 ;
$tdd3_width=($jump_width)*.25 ;
$tdd4_width=($jump_width)*.25-1;
$this->pdf->Cell($tdd1_width,$line_height,"Particulars",'1',0,'C');
$this->pdf->Cell($tdd2_width,$line_height,"Course Fee",'1',0,'C');
$this->pdf->Cell($tdd3_width,$line_height,"Bank Charges",'1',0,'C');
$this->pdf->Cell($tdd4_width,$line_height,"Total",'1',1,'C');
$this->pdf->SetX($x_pos+1);
$this->pdf->Cell($tdd1_width,$line_height,"Amount",'1',0,'C');
$this->pdf->Cell($tdd2_width,$line_height,"Rs {$this->FTOTALFEE}/-",'1',0,'C');
$this->pdf->Cell($tdd3_width,$line_height,"Rs {$this->bank_charge}/-",'1',0,'C');
$total=($this->FTOTALFEE+$this->bank_charge);
$this->pdf->Cell($tdd4_width,$line_height,"Rs {$total}/-",'1',1,'C');
$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->ln(3);
$this->pdf->SetX($x_pos+1);
$this->pdf->Cell($td1_width,$line_height,"Date",'0',0,'L');
$this->pdf->Cell($td2_width,$line_height,"Signature of Remitter ",'0',1,'R');
$this->pdf->ln(3);
$this->pdf->SetX($x_pos+1);
$this->pdf->Cell($jump_width,$line_height,"Received Rupees",'0',1,'L');
$this->pdf->ln(4);
$this->pdf->SetX($x_pos+1);
$this->pdf->Cell($td1_width,$line_height,"Date & Seal",'0',0,'L');
$this->pdf->Cell($td2_width,$line_height,"Signature of Receiver ",'0',1,'R');
$this->pdf->SetFont('Times','',8);
$this->pdf->SetX($x_pos+1);
$this->pdf->Cell(30,4,"Denomination",'1',0,'L');
$this->pdf->Cell(10,4,"No.s",'1',0,'L');
$this->pdf->Cell(20,4,"Rs.",'1',1,'L');
$this->pdf->SetX($x_pos+1);
$this->pdf->Cell(30,4,"2000x",'1',0,'L');
$this->pdf->Cell(10,4,"",'1',0,'L');
$this->pdf->Cell(20,4,"",'1',1,'L');
$this->pdf->SetX($x_pos+1);
$this->pdf->Cell(30,4,"500x",'1',0,'L');
$this->pdf->Cell(10,4,"",'1',0,'L');
$this->pdf->Cell(20,4,"",'1',1,'L');
$this->pdf->SetX($x_pos+1);
$this->pdf->Cell(30,4,"100x",'1',0,'L');
$this->pdf->Cell(10,4,"",'1',0,'L');
$this->pdf->Cell(20,4,"",'1',1,'L');
$this->pdf->SetX($x_pos+1);
$this->pdf->Cell(30,4,"50x",'1',0,'L');
$this->pdf->Cell(10,4,"",'1',0,'L');
$this->pdf->Cell(20,4,"",'1',1,'L');
$this->pdf->SetX($x_pos+1);
$this->pdf->Cell(30,4,"20x",'1',0,'L');
$this->pdf->Cell(10,4,"",'1',0,'L');
$this->pdf->Cell(20,4,"",'1',1,'L');
$this->pdf->SetX($x_pos+1);
$this->pdf->Cell(30,4,"10x",'1',0,'L');
$this->pdf->Cell(10,4,"",'1',0,'L');
$this->pdf->Cell(20,4,"",'1',1,'L');
$this->pdf->SetX($x_pos+1);
$this->pdf->Cell(30,4,"Total",'1',0,'L');
$this->pdf->Cell(10,4,"",'1',0,'L');
$this->pdf->Cell(20,4,"",'1',1,'L');
/* $this->pdf->SetX($x_pos+1);
$this->pdf->MultiCell($jump_width,$line_height,'1. Accepted at all branches of ANDHRA BANK ',0,"L"); */
$this->pdf->SetX($x_pos+1);
$this->pdf->MultiCell($jump_width,$line_height,'1. Collecting Branch has to enter Reference No: & Name of the candidate for this transaction in core banking system',0,"L");
$this->pdf->SetX($x_pos+1);
$this->pdf->Cell($jump_width,$line_height,"2. Not Transferable",'0',1,'L');
$this->pdf->SetX($x_pos+5);
$this->pdf->write1DBarcode($this->app_no, 'C39', '20', '173.9','100', 16, 0.3, $style, 'R');
$this->pdf->write1DBarcode($this->app_no, 'C39', '120', '173.9','100', 16, 0.3, $style, 'R');
$this->pdf->write1DBarcode($this->app_no, 'C39', '220', '173.9','100', 16, 0.3, $style, 'R');
$this->pdf->SetY($this->old_y);
$img_path=$this->aobj_context->main_src.$this->photo_path;
}
function WriteHallTicket()
{
$aobj_context=$this->aobj_context;
$class_obj=new AdmissionTicket($aobj_context);
ini_set("memory_limit",-1);
ini_set('max_execution_time',3300);
$class_obj->app_no =$this->app_no;
$get_data="SELECT FDEGREE,FREGNO FROM appcandsum
WHERE APPNO='{$class_obj->app_no}' ";
$obj_get_data = $aobj_context->mobj_db->GetRow($get_data);
$class_obj->degree_code = $obj_get_data['FDEGREE'];
$class_obj->registor_no_starts = $obj_get_data['FREGNO'];
$class_obj->registor_no_ends = $obj_get_data['FREGNO'];
$pdf=$this->pdf;
$pdf->SetMargins(35,5,20,5);
//$pdf->SetMargins(28,3);
$pdf->aobj_context =$aobj_context ;
$pdf->WhichReport = 'AdmissionTicket';
$pdf->SetFillColor(248, 248 ,255);
$pdf->SetFont('Times','',10);
$pdf->AddPage("P");
$pdf->Rect(5,05,200,288);
$adm_details=$class_obj->getUniversityDetails();
$adm_details=$class_obj->getCollegeDetails();
$adm_details=$class_obj->getStudentDetails();
$adm_details=$class_obj->getSubjectAppearing();
$page_cnt=1;
foreach($class_obj->std_arr as $reg_k=>$reg_v)
{
$full_photo_path="";
$full_photo_path=trim($aobj_context->main_src."/".$reg_v[photo_path]);
$FTOTALFEE=$reg_v[FTOTALFEE];
$pdf->SetLineWidth(0.01);
$pdf->SetFont('Times','B',14);
$img_path=$aobj_context->main_src."/img/logo.jpg";
if(file_exists($img_path))
$pdf->Image($img_path,15,6,20,20);
$img_path=$aobj_context->main_src."/img/umy.jpg";
if(file_exists($img_path))
$pdf->Image($img_path,173,6,20,20);
$pdf->SetFont('Times','B',10);
$pdf->Cell(0,4,'UNIVERSITY OF MYSORE',0,1,'C');
$pdf->SetFont('Times','B',14);
$pdf->Cell(0,4,$class_obj->std_FUNIVNAME,0,1,'C');
$pdf->SetFont('Times','',9);
$pdf->Cell(0,4,$this->s_state ,'0',1,'C');
$pdf->SetFont('Times','B',13);
$pdf->Ln(2);
$pdf->Cell(0,5,'EXAM APPLICATION FORM' ,'0',1,'C');
$pdf->SetFont('Times','B',10);
$pdf->Cell(0,5,$reg_v['EXAMDATE'].' EXAMINATION ' ,'0',1,'C');
$pdf->SetFont('Times','',12);
$pdf->Ln(6);
$pdf->SetFont('Times','',12);
if($reg_v['FFRESHEXAM'] == 'A')
{
$sem = 'A - FIRST SEMESTER';
}else if($reg_v['FFRESHEXAM'] == 'B')
{
$sem = 'B - SECOND SEMESTER';
}else if($reg_v['FFRESHEXAM'] == 'C')
{
$sem = 'C THIRD SEMESTER';
}else if($reg_v['FFRESHEXAM'] == 'D')
{
$sem = 'D - FOURTH SEMESTER';
}else if($reg_v['FFRESHEXAM'] == 'E')
{
$sem = 'E FIFTH SEMESTER';
}else if($reg_v['FFRESHEXAM'] == 'F')
{
$sem = 'F FINAL SEMESTER';
}else if($reg_v['FFRESHEXAM'] == 'G')
{
$sem = 'G';
}else if($reg_v['FFRESHEXAM'] == 'H')
{
$sem = 'H';
}else if($reg_v['FFRESHEXAM'] == 'I')
{
$sem = 'I';
}else if($reg_v['FFRESHEXAM'] == 'J')
{
$sem = 'J';
}
if(file_exists($full_photo_path) && !empty($reg_v[photo_path]))
{
//var_dump($reg_v[photo_path]); //$pdf->Cell(25,6,' App. No.',0,0,'L'); $pdf->Cell(3,6,' : ',0,0,'L');
$pdf->Image($full_photo_path,168,$pdf->GetY(),27,27);
//$pdf->Cell(120,6,' '.$class_obj->sub_arr[$p]['ADMNUM'],0,1,'L');
}else
{
$full_photo_path = "img/nophoto.jpg";
$pdf->Image($full_photo_path,168,$pdf->GetY(),27,27);
}
$pdf->SetFont('Times','B',11);
$pdf->Cell(30,6,' App. No.',0,0,'L'); $pdf->Cell(6,6,' : ',0,0,'L');
$pdf->SetFont('Times','',11);
$pdf->Cell(120,6,''.$class_obj->app_no,0,1,'L');
$pdf->SetFont('Times','B',11);
$pdf->Cell(30,6,' App. Date',0,0,'L'); $pdf->Cell(6,6,' : ',0,0,'L');
$pdf->SetFont('Times','',11);
$pdf->Cell(120,6,''.$reg_v['FAPPDATE'],0,1,'L');
$pdf->SetFont('Times','B',11);
$pdf->Cell(30,6,' Course',0,0,'L'); $pdf->Cell(6,6,' : ',0,0,'L');
$pdf->SetFont('Times','',11);
$pdf->Cell(120,6,''.$reg_v['COURSE'],0,1,'L');
if($this->FUNIVCODE == '012')
{
$pdf->SetFont('Times','B',11);
$pdf->Cell(30,6,' Exam',0,0,'L'); $pdf->Cell(6,6,' : ',0,0,'L');
$pdf->SetFont('Times','',11);
$pdf->Cell(120,6,''.$sem,0,1,'L');
}
/* $pdf->SetFont('Times','B',11);
$pdf->Cell(30,6,' College',0,0,'L'); $pdf->Cell(6,6,' : ',0,0,'L');
$pdf->SetFont('Times','',11);
$pdf->MultiCell(90,6,''.$reg_v['CollDetails'],0,"L"); */
$pdf->SetFont('Times','B',11);
$pdf->Cell(30,6,' Reg. No.',0,0,'L'); $pdf->Cell(6,6,' : ',0,0,'L');
$pdf->SetFont('Times','',11);
$pdf->Cell(120,6,''.$reg_v['FREGNO'],0,1,'L');
$pdf->SetFont('Times','B',11);
$pdf->Cell(30,6," Student's Name",0,0,'L'); $pdf->Cell(6,6,' : ',0,0,'L');
$pdf->SetFont('Times','',11);
$pdf->Cell(120,6,''.$reg_v['FNAME'],0,1,'L');
if($reg_v['FFATNAME'] != '')
{
$pdf->SetFont('Times','B',11);
$pdf->Cell(30,6,"Father's Name",0,0,'L'); $pdf->Cell(6,6,' : ',0,0,'L');
$pdf->SetFont('Times','',11);
$pdf->Cell(120,6,''.$reg_v['FFATNAME'],0,1,'L');
}
if($reg_v['FMOTNAME'] != '')
{
$pdf->SetFont('Times','B',11);
$pdf->Cell(30,6,"Mother's Name",0,0,'L'); $pdf->Cell(6,6,' : ',0,0,'L');
$pdf->SetFont('Times','',11);
$pdf->Cell(120,6,''.$reg_v['FMOTNAME'],0,1,'L');
}
if($reg_v['FDOB'] != '')
{
$pdf->SetFont('Times','B',11);
$pdf->Cell(30,6,"DOB",0,0,'L'); $pdf->Cell(6,6,' : ',0,0,'L');
$pdf->SetFont('Times','',11);
$pdf->Cell(120,6,''.$reg_v['FDOB'],0,1,'L');
}
if($reg_v['FCASTE'] != '')
{
$pdf->SetFont('Times','B',11);
$pdf->Cell(30,6,"Category",0,0,'L'); $pdf->Cell(6,6,' : ',0,0,'L');
$pdf->SetFont('Times','',11);
$pdf->Cell(120,6,''.$reg_v['FCASTE'],0,1,'L');
}
//var_dump($reg_v['FCASTE']);
$pdf->Ln(1);
$pdf->SetFont('Times','B',11);
$pdf->Cell(0,5,'Subject Appearing',0,1,'C');
$pdf->Cell(12,6,"Sl. No.","1",0,"C");
$pdf->Cell(12,6,"Sem","1",0,"C");
$pdf->Cell(20,6,"Sub. Code","1",0,"C");
$pdf->Cell(105,6,"Subject Title","1",0,"C");
$pdf->Cell(15,6,"QP Code","1",1,"C");
$pdf->SetFont('Times','',11);
$sub_arr=$reg_v['SUBCODE'];
$subj_arr=explode("~",$sub_arr);
$sl_no=1;
//var_dump($sub_arr);
foreach($subj_arr as $ek)
{
$explode_arr =explode("->",$ek);
if($explode_arr[2] == 'A')
{
$sem = 'I';
}else if($explode_arr[2] == 'B')
{
$sem = 'II';
}else if($explode_arr[2] == 'C')
{
$sem = 'III';
}else if($explode_arr[2] == 'D')
{
$sem = 'IV';
}else if($explode_arr[2] == 'E')
{
$sem = 'V';
}else if($explode_arr[2] == 'F')
{
$sem = 'VI';
}else if($explode_arr[2] == 'G')
{
$sem = 'VII';
}else if($explode_arr[2] == 'H')
{
$sem = 'VIII';
}else if($explode_arr[2] == 'I')
{
$sem = 'IX';
}else if($explode_arr[2] == 'J')
{
$sem = 'X';
}
//var_dump($explode_arr);
$pdf->Cell(12,6, $sl_no,"1",0,"C");
$pdf->Cell(12,6, $sem,"1",0,"C");
$pdf->Cell(20,6, $explode_arr[0],"1",0,"C");
$sub_short=$explode_arr[6];
if($class_obj->bth_flag==1)
{
$pdf->Cell(105,6,$explode_arr[1]." [{$sub_short}]","1",0,"L");
$pdf->Cell(20,6,$explode_arr[3],"1",1,"C");
}
else
{
$pdf->Cell(105,6,$explode_arr[1],"1",0,"L");
$pdf->Cell(15,6,$sub_short,"1",1,"C");
}
$sl_no++;
}
$pdf->SetFont('Times','B',11);
$pdf->ln(5);
if($FTOTALFEE == 0)
$amount = '';
else
$amount = 'Rs '.$FTOTALFEE.'/-';
$pdf->Cell(80,6,"Total Fee : {$amount}","10",1,"L");
$pdf->ln(6);
$pdf->Cell(160,6,"Signature of the Student","10",1,"R");
$words = getNumber($FTOTALFEE);
//var_dump($words);
if($this->FPAYMENTYPE == 'CASH')
{
$pdf->SetMargins(20,10);
$pdf->SetY(245);
$x =$pdf->GetX();
$y =$pdf->GetY();
$style = array('width' => 0.3, 'cap' => 'butt', 'join' => 'miter', 'dash' => '2,2', 'phase' => 2, 'color' => 'black');
$pdf->Line($x-15,$y,$x+185,$y, $style);
$pdf->SetFont('Times','BU',11);
$pdf->Cell(180,6,"Acknowledgement","10",1,"C");
$pdf->SetFont('Times','',11);
$ack = "Received a sum of Rupees {$words}(Rs.{$FTOTALFEE}/-) from {$reg_v['FNAME']} bearing register no. {$reg_v['FREGNO']}.";
$pdf->MultiCell(150,4,"{$ack}","0","L");
$pdf->ln(6);
//$pdf->SetY(270);
$pdf->Cell(80,4,"Receipt No.______________Date_____________","0",1,"L");
$pdf->Cell(180,4,"Received by and Signature","0",1,"R");
}
if($page_cnt!=count($class_obj->std_arr))
{
$pdf->AddPage();
$pdf->Rect(2,05,200,288);
}
$page_cnt++;
}
}
function SendOutput()
{
$this->pdf->Output("application_letter_{$this->app_no}.pdf","D");
}
}
function PrintApplicationFormSBM($aobj_context)
{
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$class_obj=new applicationFormReport();
$class_obj->DefaultConstructor($aobj_context);
$class_obj->formcolldata();
$class_obj->GetData();
//|| $class_obj->FTOTALFEE == 0
if($class_obj->FEXAMAPPREQ == 'C')
{
$class_obj->WriteRect();
$class_obj->pos=1;
$class_obj->formData("Bank Copy");
$class_obj->pos=2;
$class_obj->formData("College Copy");
$class_obj->pos=3;
$class_obj->formData("Student Copy");
}
else if($class_obj->FEXAMAPPREQ == 'A' || $class_obj->FPAYMENTYPE == 'Cash' || $class_obj->FTOTALFEE == 0)
{
$class_obj->WriteHallTicket();
}else
{
$class_obj->WriteRect();
$class_obj->pos=1;
$class_obj->formData("Bank Copy");
$class_obj->pos=2;
$class_obj->formData("College Copy");
$class_obj->pos=3;
$class_obj->formData("Student Copy");
$class_obj->WriteHallTicket();
}
$class_obj->SendOutput();
}
?>
|