0xV3NOMx
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.14.245.172


Current Path : /var/www/html/cnv/kusdde/Report_details/
Upload File :
Current File : /var/www/html/cnv/kusdde/Report_details/applicationFormReportPOSTOFFICE.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('rotation.php');	
	require_once("getnumword.php");
	class certificate_print  extends PDF_Rotate
	{
		function DefaultConstructor($aobj_context)
		{
			$this->aobj_context=$aobj_context;
			$this->pdf=  new PDF_Rotate();
			$this->pdf=$this;
			$this->app_no=trim($this->aobj_context->mobj_data["app_no"]);
			$this->ip=$_SERVER["REMOTE_ADDR"];
			$get_date="select now() as now_date from control";
			$obj=$this->aobj_context->mobj_db->GetRow($get_date);
			$this->current_date=$obj[now_date];	
			$this->FYEAR=$obj[FYEAR]; 
			include_once("stringspliter.php");
			$this->current_date=$obj[now_date];	
			$this->pdf = new PDF_Rotate();	
			$this->pdf->SetMargins(2,5,2);			
			$this->pdf->addPage('L');	
		}

		function Header()
		{

		}	
		
		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');
		}

		function formcolldata()
		{
			$get_coll_name="select FUNIVCODE, 'Kuvempu University' as 'FUNIVNAME',FUNIVNAME as 'college_name',FTOWN,
			FUNIVADD1 as 'state', pdf_logo_path,ifnull(FEXAMAPPREQ,'F') as FEXAMAPPREQ, FSHORTUNIV From control";
			$lobj_get_coll_name=$this->aobj_context->mobj_db->GetRow($get_coll_name);
			
			$this->FUNIVCODE=$lobj_get_coll_name['FUNIVCODE'];
			$this->FUNIVNAME=$lobj_get_coll_name['FUNIVNAME'];
			$this->FSHORTUNIV=$lobj_get_coll_name['FSHORTUNIV'];
			$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->college_name=$lobj_get_coll_name['college_name'];
			$this->FTOWN=$lobj_get_coll_name['FTOWN'];
			$this->pdf_Postlogo_path="/img/post_logo.jpg";	
		}
		 
		function GetQry()
		{
			$get_data="SELECT distinct s.*,DATE_FORMAT(s.FDOB,'%d/%m/%Y') AS DOB,DATE_FORMAT(s.FPAYDATE,'%d/%m/%Y') AS FPAYDATE,DATE_FORMAT(s.FREGDATE,'%d/%m/%Y') AS FDATE,d.FDESCPN,c.FCOLLCODE,c.FCOLLNAME,s.FPHOTOPATH,st.FCASTE,s.FAMOUNT,
			mascnvfee.FCNVNAME,s.FAPPNO,st.FDEGREE,s.FREGNO, s.fcity, s.fstate, s.fpincode FROM dctran s inner join dcstud st on s.FREGNO = st.FREGNO inner join degree d on d.FDEGREE=st.FDEGREE
			inner join college c  on c.FCOLLCODE = st.FCOLLCODE inner join mascnvfee on mascnvfee.FCNVNO =  st.FCNVNO
			WHERE s.FAPPNO='{$this->app_no}'";
			$rst= $this->aobj_context->mobj_db->GetRow($get_data);
			// echo $get_data
			$this->FNAME=$rst['FNAME'];
			$this->FDATE=$rst['FDATE'];
			$this->FDEGREE=$rst['FDESCPN'];
			$this->FREGNO=$rst['FREGNO'];
			$this->FCOLLCODE=$rst['FCOLLCODE'];
			$this->FCOLLNAME=$rst['FCOLLNAME'];
			$this->FDOB=$rst['DOB'];
			$this->FCASTE=$rst['FCASTE'];
			$this->FAMOUNT=$rst['FAMOUNT'];
			$this->FCNVNAME=$rst['FCNVNAME'];
			$this->FMOBILE=$rst['FMOBILE'];
			$this->FEMAIL=$rst['FEMAIL'];
			$this->FADDR1=$rst['FPOSTADDR1'];
			$this->FADDR2=$rst['FPOSTADDR2'];
			$this->FADDR3=$rst['FPOSTADDR3'];
			$this->FADDR4=$rst['FPOSTADDR4'];
			$this->city = $rst['fcity'];
			$this->state = $rst['fstate'];
			$this->pincode = $rst['fpincode'];
			$this->FPAYTYPE=$rst['FPAYTYPE'];
			$this->FPAYDATE=$rst['FPAYDATE'];
			$this->FPAYSTATUS=$rst['FPAYSTATUS'];
			$this->FPHOTO=$rst['FPHOTOPATH'];
			$this->full_photo_path=trim($this->aobj_context->main_src."/". $this->FPHOTO);		 
		}
			
		function AcknowledgementForm()
		{
			
			
			$this->pdf->SetMargins(10,1,10);		
			$this->pdf->AddPage("P");
			
			if(!empty($this->pdf_logo_path))
			{
				$img_logo_path=$this->aobj_context->main_src.$this->pdf_logo_path;
				$this->pdf->Image($img_logo_path,10,15,20);
			}
			$this->pdf->Rect(5,10,200,280);
			$this->pdf->SetFont('Times','B',15);
			$this->pdf->cell(0,6,$this->FUNIVNAME,"0",1,"C");
			$this->pdf->SetFont('Times','B',12);
			$this->pdf->cell(0,7, $this->s_state,"0",1,"C");
			$this->pdf->SetFont('Times','B',12);
			$this->pdf->Ln(8);
			$this->pdf->SetFont('Times','BU',15);
			$this->pdf->cell(0,6,"Acknowledgement","0",1,"C");
			$this->pdf->Ln(8);
			$this->pdf->SetFont('Times','B',15);
			$this->pdf->Cell(146,7,"Application No : {$this->app_no}","0",0,"L");
			$this->pdf->SetFont('Times','B',12);
			$this->pdf->Cell(60,7," Date : {$this->FDATE}","0",1,"L");
			$this->pdf->Ln(1);
			$this->pdf->SetFont('Times','B',15);
			$this->pdf->Cell(146,7,"Convocation : {$this->FCNVNAME}","0",0,"L");
			$this->pdf->SetFont('Times','B',12);
			$this->pdf->Cell(60,7," Mode : Distance","0",1,"L");
			$this->pdf->Ln(4);
			$this->pdf->Cell(40,6,' Reg. No.',0,0,'L'); $this->pdf->Cell(5,6,' :  ',0,0,'L');
			$this->pdf->SetFont('Times','B',12); 
			$this->pdf->Cell(120,6,''.$this->FREGNO,0,1,'L'); 
			$this->pdf->SetFont('Times','B',12); 
			$this->pdf->Cell(40,6," Name",0,0,'L'); $this->pdf->Cell(5,6,' :  ',0,0,'L');
			$this->pdf->SetFont('Times','',12); 
			$this->pdf->Cell(120,6,''.$this->FNAME,0,1,'L'); 
			$this->pdf->SetFont('Times','B',12); 
			$this->pdf->Cell(40,6,' Course',0,0,'L');	$this->pdf->Cell(5,6,' :  ',0,0,'L');	
			$this->pdf->SetFont('Times','',12);				
			$this->pdf->Cell(120,6,''.$this->FDEGREE,0,1,'L'); 
			$this->pdf->SetFont('Times','B',12); 
			$this->pdf->Cell(40,6,' Centre',0,0,'L'); $this->pdf->Cell(5,6,' :  ',0,0,'L');
			$this->pdf->SetFont('Times','',12); 
			$this->pdf->Cell(96,6,''.$this->FCOLLCODE." - ".$this->FCOLLNAME,0,1,"L"); 	
			if(file_exists($this->full_photo_path) && !empty($this->FPHOTO))
			{
				$this->pdf->Image($this->full_photo_path,160,70,22,22);								  	
			}
			$this->pdf->SetFont('Times','B',12); 
			$this->pdf->Cell(40,6,' Date of Birth',0,0,'L'); $this->pdf->Cell(5,6,' :  ',0,0,'L');
			$this->pdf->SetFont('Times','',12); 
			$this->pdf->Cell(96,6,''.$this->FDOB,0,1,"L"); 	
			$this->pdf->SetFont('Times','B',12); 
			$this->pdf->Cell(40,6,' Category',0,0,'L'); $this->pdf->Cell(5,6,' :  ',0,0,'L');
			$this->pdf->SetFont('Times','',12); 
			$this->pdf->Cell(96,6,''.$this->FCASTE,0,1,"L"); 	
			$this->pdf->SetFont('Times','B',12); 
			$this->pdf->Cell(40,6,' Mobile',0,0,'L'); $this->pdf->Cell(5,6,' :  ',0,0,'L');
			$this->pdf->SetFont('Times','',12); 
			$this->pdf->Cell(96,6,''.$this->FMOBILE,0,1,"L");
			$this->pdf->SetFont('Times','B',12); 
			$this->pdf->Cell(40,6,' Email',0,0,'L'); $this->pdf->Cell(5,6,' :  ',0,0,'L');
			$this->pdf->SetFont('Times','',12); 
			$this->pdf->Cell(96,6,''.$this->FEMAIL,0,1,"L");
			$this->pdf->SetFont('Times','B',12); 
			$this->pdf->Cell(40,6,' Address',0,0,'L'); $this->pdf->Cell(5,6,' :  ',0,0,'L');
			$this->pdf->SetFont('Times','',12); 
			$this->pdf->Cell(96,6,''.$this->FADDR1,0,1,"L");
			$this->pdf->SetFont('Times','B',12); 
			$this->pdf->Cell(40,6,'',0,0,'L'); $this->pdf->Cell(5,6,'    ',0,0,'L');
			$this->pdf->SetFont('Times','',12); 
			$this->pdf->Cell(96,6,''.$this->FADDR2,0,1,"L");
			if($this->FADDR3 != '')
			{ 
				$this->pdf->SetFont('Times','B',12); 
				$this->pdf->Cell(40,6,' ',0,0,'L'); $this->pdf->Cell(5,6,'    ',0,0,'L');
				$this->pdf->SetFont('Times','',12);
				$this->pdf->Cell(96,6,''.$this->FADDR3,0,1,"L");
			}
			if($this->FADDR4 != '')
			{
				$this->pdf->SetFont('Times','B',12); 
				$this->pdf->Cell(40,6,' ',0,0,'L'); $this->pdf->Cell(5,6,'    ',0,0,'L');
				$this->pdf->SetFont('Times','',12); 
				$this->pdf->Cell(96,6,''.$this->FADDR4,0,1,"L");
			}
			$this->pdf->SetFont('Times','B',12); 
			$this->pdf->Cell(40,6,' ',0,0,'L'); $this->pdf->Cell(5,6,'    ',0,0,'L');
			$this->pdf->SetFont('Times','',12); 
			$this->pdf->Cell(96,6,''.$this->city,0,1,"L");
			$this->pdf->SetFont('Times','B',12); 
			$this->pdf->Cell(40,6,' ',0,0,'L'); $this->pdf->Cell(5,6,'    ',0,0,'L');
			$this->pdf->SetFont('Times','',12); 
			$this->pdf->Cell(96,6,''.$this->state.' - '.$this->pincode,0,1,"L");

			$totalsum = $this->FAMOUNT + $this->fprevpaid;

			$this->pdf->SetFont('Times','B',12);
			$this->pdf->Cell(50,6,' Total Amount',0,0,'L'); $this->pdf->Cell(5,6,' :  ',0,0,'L');
			$this->pdf->SetFont('Times','',12); 
			$this->pdf->Cell(96,6,''.$totalsum.'/-',0,1,"L");

			$this->pdf->SetFont('Times','B',12);
			$this->pdf->Cell(50,6,' Previous Paid Amount',0,0,'L'); $this->pdf->Cell(5,6,' :  ',0,0,'L');
			$this->pdf->SetFont('Times','',12); 
			$this->pdf->Cell(96,6,''.$this->fprevpaid.'/-',0,1,"L");

			$this->pdf->SetFont('Times','B',12);
			$this->pdf->Cell(50,6,' Pending Amount Payable',0,0,'L'); $this->pdf->Cell(5,6,' :  ',0,0,'L');
			$this->pdf->SetFont('Times','',12); 
			$this->pdf->Cell(96,6,''.$this->FAMOUNT.'/-',0,1,"L");
			
			$this->pdf->SetFont('Times','B',12); 	
			$this->pdf->Cell(40,6,' Payment Mode',0,0,'L'); $this->pdf->Cell(5,6,' :  ',0,0,'L');
			$this->pdf->SetFont('Times','',12); 
			$this->pdf->Cell(96,6,''.$this->FPAYTYPE,0,1,"L");	
			$this->pdf->SetFont('Times','B',12); 
			$this->pdf->Cell(40,6,' Payment Status ',0,0,'L'); $this->pdf->Cell(5,6,' :  ',0,0,'L');
			$this->pdf->SetFont('Times','',12); 
			$this->pdf->Cell(96,6,''.$this->FPAYSTATUS,0,1,"L");
			$this->pdf->SetFont('Times','B',12); 	
			$this->pdf->Cell(40,6,' Payment Date',0,0,'L'); $this->pdf->Cell(5,6,' :  ',0,0,'L');
			$this->pdf->SetFont('Times','',12); 
			$this->pdf->Cell(96,6,''.$this->FPAYDATE,0,1,"L");				
			/* $this->pdf->Ln(15); 
			$this->pdf->SetFont('Times','B',10);
			$this->pdf->cell(175,6,"Registrar Evaluation","0",1,"R");
			$img_logo_path=$this->aobj_context->main_src."img/sign.jpg";
			$this->pdf->Image($img_logo_path,140,$this->pdf->GetY()-15,50,10);		 */
			$this->pdf->Ln(2);
			$this->pdf->SetFont('Times','B',12); 
			$this->pdf->MultiCell(180,6,"Note: Students are hereby informed that, Need not send Application form or Post office challan or Bank Receipt to Kuvempu University. Keep it safely for future reference",0,"L"); 
			$this->pdf->Ln(2);
			$this->pdf->SetFont('Times','B',10); 
			$this->pdf->cell(0,4,"For any queries / deails :","0",1,"L");
			$this->pdf->Ln(2);
			$this->pdf->SetFont('Times','',10); 
			$this->pdf->cell(0,4,"Help line : 08282 - 256442, 08183098136","0",1,"L");
			$this->pdf->cell(0,4,"E-mail id : kusconvo@gmail.com","0",1,"L");	
			$this->pdf->SetFont('Times','BU',12);
			$this->pdf->Ln(5);
			$new_y=$this->pdf->GetY();	
			$this->pdf->Line(10,$new_y, 200,$new_y); 
			$this->pdf->Ln(5);
			$this->pdf->cell(0,6,"DECLARATION","0",1,"C");
			$this->pdf->Ln(2);
			$this->pdf->SetFont('Times','',8);
			$this->pdf->MultiCell(180,4,"I HEREBY SOLEMNLY DECLARE AND PROMISE THAT IF ADMITTED TO THE DEGREE OF ............................................. FOR WHICH I HAVE BEEN RECOMMENDED, I SHALL IN MY DAILY LIFE AND CONVERSATION, CONDUCT MYSELF, AS BEFITS A MEMBER OF THIS UNIVERSITY THAT I SHALL TO THE UTMOST OF MY CAPACITY AND OPPORTUNITY, SUPPORT THE CAUSE OF MORALITY AND SOUND LEARNING, AND THAT, AS FAR AS IN ME LIES, I SHALL UPHELD AND ADVANCE THE SOCIAL ORDER AND THE WELL BEING OF MY FELLOWMEN IN THE CASE OF PROFESSIONAL DEGREE, THE FOLLOWING SHALL BE ADDED TO THE ABOVE DECLARATION. I SHALL FAITHFULLY AND CAREFULLY FULFIL THE DUTIES OF THE PROFESSION TO WHICH I MAY BE ADMITTED BY VIRTUE OF MY DEGREE, THAT I SHALL ON ALL OCCASIONS MAINTAIN ITS PURITY AND REPUTATION AND I SHALL NEVER DEVIATE FROM THE STRAIGHT PATH OF THEIR HONOURABLE EXCERCISE BY MAKING MY KNOWLEDGE SUBSERVIENT TO UNWORTHY ENDS.","0","L");	
			$this->pdf->Ln(6);
			$this->pdf->SetFont('Times','B',10);
			$this->pdf->cell(175,6,"Signature of the Candidate","0",1,"R");
			
		
		}
			 
		
		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, FAPPNO, FPAYDATE, round(FAMOUNT) as FTOTALFEE, date_format(FREGDATE,'%d/%m/%y %h:%m %p') as FREGDATE,
			FPAYTYPE,date_format(now(),'%d/%m/%y %h:%m %p') as fdate from dctran
			where FAPPNO='{$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['FPAYDATE'];
			$this->FTOTALFEE=$obj_get_app_no['FTOTALFEE'];
			$this->FPAYMENTYPE=$obj_get_app_no['FPAYTYPE'];
			$this->FREGDATE=$obj_get_app_no['FREGDATE'];
			$this->fdate=$obj_get_app_no['fdate'];

			$get_data="SELECT distinct s.*,DATE_FORMAT(s.FDOB,'%d/%m/%Y') AS DOB,date_format(s.FREGDATE,'%d/%m/%Y') AS FDATE,d.FDESCPN,c.FCOLLCODE,c.FCOLLNAME,s.FPHOTOPATH,
			s.FAPPNO,st.FDEGREE,s.FREGNO,st.fprevpaid as fprevpaid
			FROM dctran s inner join dcstud st on s.FREGNO = st.FREGNO inner join degree d on d.FDEGREE=st.FDEGREE
			inner join college c  on c.FCOLLCODE = st.FCOLLCODE
			WHERE s.FAPPNO='{$this->app_no}'";
			$rst= $this->aobj_context->mobj_db->GetRow($get_data);
			$this->collcode = $rst['FCOLLCODE'];
			$this->college_code=$rst['FCOLLNAME'];
			$this->degree=$rst['FDEGREE'];
			$this->student_name = $rst['FNAME'];
			$this->fprevpaid = $rst['fprevpaid'];			
			$this->GetBankDetails();
		}
		 
		function WriteRect()
		{
			$width=96;
			$this->pdf->Rect(2,3,$width,200);
			$this->pdf->Rect(2+$width+2,3,$width,200);
			$this->pdf->Rect(2+$width+$width+4,3,$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,4,15);
				$this->pdf->Image($img_logo_path,$width+6,4,15);
				$this->pdf->Image($img_logo_path,$width+$width+7,4,15);
			}
			$width=96;
			$this->pdf->Rect(2,3,$width,200);
			$this->pdf->Rect(2+$width+2,3,$width,200);
			$this->pdf->Rect(2+$width+$width+4,3,$width,200);
			if(!empty($this->pdf_Postlogo_path))
			{
				$img_logo_path=$this->aobj_context->main_src.$this->pdf_Postlogo_path;
				$this->pdf->Image($img_logo_path,80,7,15);
				$this->pdf->Image($img_logo_path,$width+82,7,15);
				$this->pdf->Image($img_logo_path,$width+$width+85,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','B',9);
			
			$this->pdf->multiCell($jump_width,3,$this->FUNIVNAME,0,"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,'Payment Challan - '.$label,'0',1,'C');	
			$this->pdf->Ln(2);
			if($label == 'Student Copy1')
			{	
				$this->pdf->SetFont('Times','',9);
				$this->pdf->SetX($x_pos);
				$this->pdf->Cell($jump_width,$line_height,'(Dist. Edu. Candidates Ignore This Copy)','0',1,'C');
			}
			$this->pdf->SetFont('Times','B',9);	
			$this->pdf->SetFont('Times','B',9);	
			// Postal charges calculation.
			if($this->FUNIVCODE=="003" || $this->FUNIVCODE=="003D")
			{
				if($this->FTOTALFEE <= 1500)
				$postal_charges = 20;
				else if($this->FTOTALFEE >1500 && $this->FTOTALFEE <=5000)
				$postal_charges = 30;
				else if($this->FTOTALFEE >5000 && $this->FTOTALFEE <=10000)
				$postal_charges = 40;
				else if($this->FTOTALFEE >10000 && $this->FTOTALFEE <=15000)
				$postal_charges = 50;
				else 
				$postal_charges = 60;
			}
			
			else if($this->FUNIVCODE=="026" || $this->FUNIVCODE=="032" )
			{
				$postal_charges = 20;
			}
			
			//$this->barcodeNo = $this->app_no.$this->reg_no.str_pad($this->FTOTALFEE+$postal_charges,5, "0", STR_PAD_LEFT).$this->degree;
			$this->barcodeNo = $this->app_no.$this->reg_no.str_pad($this->FTOTALFEE+$postal_charges,5, "0", STR_PAD_LEFT);
			
				
			$this->pdf->SetX($x_pos+1);
			$this->pdf->Cell(($jump_width-2)*.35,$line_height,"Circle Biller ID ",'1',0,'L');	
			$this->pdf->Cell(($jump_width-2)*.65,$line_height,"{$this->FSHORTUNIV}",'1',1,'L');	
			$this->pdf->SetX($x_pos+1);
			
			$this->pdf->Cell(($jump_width-2)*.35,$line_height,"Reference No ",'1',0,'L');	
			$this->pdf->Cell(($jump_width-2)*.65,$line_height,"{$this->app_no}",'1',1,'L');	
			$this->pdf->SetX($x_pos+1);
			
			$this->pdf->Cell(($jump_width-2)*.35,$line_height,"Reg. No. ",'1',0,'L');	
			$this->pdf->Cell(($jump_width-2)*.65,$line_height,"{$this->reg_no}",'1',1,'L');	
			$this->pdf->SetX($x_pos+1);
			
			$this->pdf->Cell(($jump_width-2)*.35,$line_height,"Total Amount ",'1',0,'L');	
			$this->pdf->Cell(($jump_width-2)*.65,$line_height,"{$this->FTOTALFEE}/-",'1',1,'L');	
			$this->pdf->SetX($x_pos+1);
			
			$this->pdf->Cell(($jump_width-2)*.35,$line_height,"Degree ",'1',0,'L');	
			$this->pdf->Cell(($jump_width-2)*.65,$line_height,"{$this->degree}",'1',1,'L');	
			$this->pdf->Ln(2);
			$this->pdf->SetX($x_pos+1);
			$this->pdf->SetFont('Times','B',10);
			$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($tdd2_width,$line_height,"Course Fee",'1',0,'C');	
			$this->pdf->Cell($tdd3_width,$line_height,"Postal Charges",'1',0,'C');
			$this->pdf->Cell($tdd4_width,$line_height,"Total",'1',1,'C');
			
			$this->pdf->SetX($x_pos+1);
			$this->pdf->Cell($tdd2_width,$line_height,"Rs {$this->FTOTALFEE}/-",'1',0,'C');	
			
			
			$this->pdf->Cell($tdd3_width,$line_height,"Rs {$postal_charges}/-",'1',0,'C');
			
			$total=($this->FTOTALFEE+$postal_charges);
			$this->pdf->Cell($tdd4_width,$line_height,"Rs {$total}/-",'1',1,'C');
			
			$this->pdf->Ln(2);
			$this->pdf->SetX($x_pos+1);
			
			$strsparr = str_splitf($this->student_name,20);
			$this->pdf->Cell(($jump_width-2)*.25,$line_height,"Name              :",'0',0,'L');	
			$this->pdf->Cell($jump_width*.80,$line_height,$strsparr[0],0,1,"L");
			$this->pdf->SetX($x_pos+1);
			if($strsparr[1] !='')
			{	
				$this->pdf->Cell(($jump_width-2)*.25,$line_height,"                   ",'0',0,'L');	
				$this->pdf->Cell($jump_width*.80,$line_height,$strsparr[1],0,1,"L");
			}
			$this->pdf->SetX($x_pos+1);
			if($strsparr[2] !='')
			{	
				$this->pdf->Cell(($jump_width-2)*.25,$line_height,"                   ",'0',0,'L');	
				$this->pdf->Cell($jump_width*.80,$line_height,$strsparr[2],0,1,"L");
			}
			$this->pdf->SetX($x_pos+1);
			if($strsparr[2] !='')
			{	
				$this->pdf->Cell(($jump_width-2)*.25,$line_height,"                   ",'0',0,'L');	
				$this->pdf->Cell($jump_width*.80,$line_height,$strsparr[2],0,1,"L");
			}
			//$this->pdf->Cell($jump_width,$line_height,"Name : {$this->student_name}",'0',1,'L');	

			$this->pdf->SetX($x_pos+1);
			$this->pdf->Cell(($jump_width-2)*.25,$line_height,"Centre           :",'0',0,'L');	
			$this->pdf->Cell($jump_width*.80,$line_height," {$this->collcode}",'0',1,'L');	

			$this->pdf->SetX($x_pos+1);
			$this->pdf->Cell(($jump_width-2)*.25,$line_height,"Challan  Date :",'0',0,'L');	
			$this->pdf->Cell($jump_width*.70,$line_height," {$this->FREGDATE}",'0',1,'L');
			
			
			//$this->pdf->SetX($x_pos+1);
			//$this->pdf->Cell(($jump_width-2)*.20,2," ",'0',0,'L');
			
				
			$this->pdf->SetX($x_pos+1);
			$this->pdf->Rotate(90,$x_pos+108,90);
			$this->pdf->Cell($jump_width,$line_height,$this->pdf->Code39($x_pos+5,58,$this->barcodeNo),'0',1,'L');	
			$this->pdf->Rotate(0);
			$this->pdf->Ln(1);
			
			$this->pdf->ln(20);
			$this->pdf->SetX($x_pos+1);
			$this->pdf->Cell($jump_width,$line_height,"Date                                   Signature of Remitter",'0',1,'L');			 
			
			//$this->pdf->Cell($td1_width,$line_height,"Date",'0',0,'L');			 
			//$this->pdf->Cell($td2_width-16,$line_height,"Signature of Remitter    ",'0',1,'R');
							
			$this->pdf->ln(20);
			$this->pdf->SetX($x_pos+1);
			$this->pdf->Cell($jump_width,$line_height,"Date & Seal                      Signature of Receiver",'0',1,'L');			 
			
			//$this->pdf->Cell($td1_width,$line_height,"Date & Seal",'0',0,'L');			 
			//$this->pdf->Cell($td2_width-18,$line_height,"Signature of Receiver   ",'0',1,'R');
			$this->pdf->SetFont('Times','',9);
			$this->pdf->Ln(5);			
			$this->pdf->SetX($x_pos+1);
			if($this->FUNIVCODE=="026")
			{
				$this->pdf->MultiCell($jump_width-20,$line_height,'Note: 1. Payment accepted at all e payment Post Offices across the state.',0,"L");
			}
			else
			{
				$this->pdf->MultiCell($jump_width-20,$line_height,'Note: 1. Payment accepted at all e payment Post Offices across the country.',0,"L");
			}		

			$this->pdf->SetX($x_pos+1);

			$this->pdf->MultiCell($jump_width-20,$line_height,"2. Confirm your payment in www.karnatakapost.gov.in after 2 days of payment.",'0','L');				
			$this->pdf->Ln(1);	
			$this->pdf->SetX($x_pos+1);
			$this->pdf->Cell(($jump_width-2)*.10,$line_height,"Date : ",'0',0,'L');
			$this->pdf->Cell($jump_width*.80,$line_height,"{$this->fdate}",'0',1,'L');
			$this->pdf->SetY($this->old_y);
		 
			$img_path=$this->aobj_context->main_src.$this->photo_path;
		
		}
		function SendOutput()
		{
			$this->pdf->Output("certificate_{$this->app_no}.pdf","D");
		}
			
			 
	}
	
	function appFormPOSTOFFICE($aobj_context)
	{
		$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
		$class_obj=new certificate_print();
		$class_obj->DefaultConstructor($aobj_context);
		$class_obj->formcolldata();
		$class_obj->GetQry();
		$class_obj->GetData();
		$class_obj->WriteRect();
		$class_obj->pos=1;
		$class_obj->formData("Post Office Copy");
		$class_obj->pos=2;
		$class_obj->formData("Student Copy1");
		$class_obj->pos=3;
		$class_obj->formData("Student Copy");
		$class_obj->AcknowledgementForm();
		$class_obj->SendOutput();
	}

?>