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 : 18.191.68.112


Current Path : /var/www/html/cnv/kusdde/Report_details/
Upload File :
Current File : /var/www/html/cnv/kusdde/Report_details/applicationFormReportNETBANKING.php

<?php
$main_src=substr($_SERVER['SCRIPT_FILENAME'],0,strlen($_SERVER['SCRIPT_FILENAME'])-7);
$pdf_writer_class =$main_src."/tcpdf/tcpdf.php";
require_once($pdf_writer_class);
	
class certificate_print  extends TCPDF
{
		function DefaultConstructor($aobj_context)
		{
			$this->aobj_context=$aobj_context;
			$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 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']; 
		}
		 
		 
		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, FUNIVNAME as FUNIVNAME ,FTOWN,
				FUNIVADD1 as 'state', pdf_logo_path From control";
		$lobj_get_coll_name=$this->aobj_context->mobj_db->GetRow($get_coll_name);
		$this->FUNIVNAME=$lobj_get_coll_name['FUNIVNAME'];
		$this->FUNIVCODE=$lobj_get_coll_name['FUNIVCODE'];
		// FUNIVCODE
		$this->s_state=$lobj_get_coll_name['state'];
		$this->FTOWN=$lobj_get_coll_name['FTOWN'];
		 
		$this->pdf_logo_path=$lobj_get_coll_name['pdf_logo_path'];
	 
		
	 }
	 
		function GetQry()
		{
			$get_data="SELECT 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,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 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['FCITY'];
			$this->FADDR4=$rst['FSTATE']."-".$rst['FPINCODE'];
			$this->FPAYTYPE=$rst['FPAYTYPE'];
			$this->FPAYDATE=$rst['FPAYDATE'];
			$this->FPAYSTATUS=$rst['FPAYSTATUS'];
			$this->FPHOTO=$rst['FPHOTOPATH'];
			$this->fprevpaid=$rst['fprevpaid'];

			$this->full_photo_path=trim($this->aobj_context->main_src."/". $this->FPHOTO);		 		 
		}
		
		function formData()
		{
			$this->pdf->SetMargins(10,15,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,5, $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->SetFont('Times','B',10); 
			$this->pdf->Cell(40,6,' Reg. No.',0,0,'L'); $this->pdf->Cell(5,6,' :  ',0,0,'L');
			$this->pdf->SetFont('Times','B',10); 
			$this->pdf->Cell(120,6,''.$this->FREGNO,0,1,'L'); 
			$this->pdf->SetFont('Times','B',10); 
			$this->pdf->Cell(40,6," Name",0,0,'L'); $this->pdf->Cell(5,6,' :  ',0,0,'L');
			$this->pdf->SetFont('Times','',10); 
			$this->pdf->Cell(120,6,''.$this->FNAME,0,1,'L'); 
			$this->pdf->SetFont('Times','B',10); 
			$this->pdf->Cell(40,6,' Course',0,0,'L');	$this->pdf->Cell(5,6,' :  ',0,0,'L');	
			$this->pdf->SetFont('Times','',10);				
			$this->pdf->Cell(120,6,''.$this->FDEGREE,0,1,'L'); 
			$this->pdf->SetFont('Times','B',10); 
			$this->pdf->Cell(40,6,' College / Department',0,0,'L'); $this->pdf->Cell(5,6,' :  ',0,0,'L');
			$this->pdf->SetFont('Times','',10); 
			$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);								  	
			// }
			$full_photo_path = "https://university-student-photos.s3.ap-south-1.amazonaws.com/cnv/".$this->FUNIVCODE.'D/'.$this->FPHOTO;
			// var_dump($full_photo_path);
			$stud_image = file_get_contents($full_photo_path);

			$this->pdf->Image('@'.$stud_image,160,70,22,22);
			$this->pdf->SetFont('Times','B',10); 
			$this->pdf->Cell(40,6,' Date of Birth',0,0,'L'); $this->pdf->Cell(5,6,' :  ',0,0,'L');
			$this->pdf->SetFont('Times','',10); 
			$this->pdf->Cell(96,6,''.$this->FDOB,0,1,"L"); 	
			$this->pdf->SetFont('Times','B',10); 
			$this->pdf->Cell(40,6,' Category',0,0,'L'); $this->pdf->Cell(5,6,' :  ',0,0,'L');
			$this->pdf->SetFont('Times','',10); 
			$this->pdf->Cell(96,6,''.$this->FCASTE,0,1,"L"); 	
			$this->pdf->SetFont('Times','B',10); 
			$this->pdf->Cell(40,6,' Mobile',0,0,'L'); $this->pdf->Cell(5,6,' :  ',0,0,'L');
			$this->pdf->SetFont('Times','',10); 
			$this->pdf->Cell(96,6,''.$this->FMOBILE,0,1,"L");
			$this->pdf->SetFont('Times','B',10); 
			$this->pdf->Cell(40,6,' Email',0,0,'L'); $this->pdf->Cell(5,6,' :  ',0,0,'L');
			$this->pdf->SetFont('Times','',10); 
			$this->pdf->Cell(96,6,''.$this->FEMAIL,0,1,"L");
			$this->pdf->SetFont('Times','B',10); 
			$this->pdf->Cell(40,6,' Address',0,0,'L'); $this->pdf->Cell(5,6,' :  ',0,0,'L');
			$this->pdf->SetFont('Times','',10); 
			$this->pdf->Cell(96,6,''.$this->FADDR1,0,1,"L");
			$this->pdf->SetFont('Times','B',10); 
			$this->pdf->Cell(40,6,'',0,0,'L'); $this->pdf->Cell(5,6,'    ',0,0,'L');
			$this->pdf->SetFont('Times','',10); 
			$this->pdf->Cell(96,6,''.$this->FADDR2,0,1,"L");
			$this->pdf->SetFont('Times','B',10); 
			$this->pdf->Cell(40,6,' ',0,0,'L'); $this->pdf->Cell(5,6,'    ',0,0,'L');
			$this->pdf->SetFont('Times','',10); 
			$this->pdf->Cell(96,6,''.$this->FADDR3,0,1,"L");
			$this->pdf->SetFont('Times','B',10); 
			$this->pdf->Cell(40,6,' ',0,0,'L'); $this->pdf->Cell(5,6,'    ',0,0,'L');
			$this->pdf->SetFont('Times','',10); 
			$this->pdf->Cell(96,6,''.$this->FADDR4,0,1,"L");

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

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

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

			$this->pdf->SetFont('Times','B',10);
			$this->pdf->Cell(40,6,' Pending Amount Payable',0,0,'L'); $this->pdf->Cell(5,6,' :  ',0,0,'L');
			$this->pdf->SetFont('Times','',10); 
			$this->pdf->Cell(96,6,''.$this->FAMOUNT.'/-',0,1,"L");


			// $this->pdf->SetFont('Times','B',10); 	
			// $this->pdf->Cell(40,6,' Amount',0,0,'L'); $this->pdf->Cell(5,6,' :  ',0,0,'L');
			// $this->pdf->SetFont('Times','',10); 
			// $this->pdf->Cell(96,6,''.$this->FAMOUNT.'/-',0,1,"L");	
			$this->pdf->SetFont('Times','B',10); 	
			$this->pdf->Cell(40,6,' Payment Mode',0,0,'L'); $this->pdf->Cell(5,6,' :  ',0,0,'L');
			$this->pdf->SetFont('Times','',10); 
			$this->pdf->Cell(96,6,''.$this->FPAYTYPE,0,1,"L");	
			$this->pdf->SetFont('Times','B',10); 
			$this->pdf->Cell(40,6,' Payment Status ',0,0,'L'); $this->pdf->Cell(5,6,' :  ',0,0,'L');
			$this->pdf->SetFont('Times','',10); 
			$this->pdf->Cell(96,6,''.$this->FPAYSTATUS,0,1,"L");
			$this->pdf->SetFont('Times','B',10); 	
			$this->pdf->Cell(40,6,' Payment Date',0,0,'L'); $this->pdf->Cell(5,6,' :  ',0,0,'L');
			$this->pdf->SetFont('Times','',10); 
			$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(10);
			$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->Ln(5);
			$new_y=$this->pdf->GetY();	
			$this->pdf->Line(10,$new_y, 200,$new_y); 
			$this->pdf->Ln(5);
			$this->pdf->SetFont('Times','BU',12);
			$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(10);
			$this->pdf->SetFont('Times','B',10);
			$this->pdf->cell(175,6,"Signature of the Candidate","0",1,"R");
							
		}
		
		function SendOutput()
		{
			$this->pdf->Output("certificate_{$this->app_no}.pdf","D");
		}
		
		 
}

function appFormNETBANKING($aobj_context)
{
	$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
	$class_obj=new certificate_print();
	// $class_obj->AliasNbPages();
	$class_obj->DefaultConstructor($aobj_context);
	$class_obj->formcolldata();
	$class_obj->GetQry();
	$class_obj->formData();

	$class_obj->SendOutput();
}

?>