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.116.28.79


Current Path : /var/www/html/cnv/kus/Report_details/
Upload File :
Current File : /var/www/html/cnv/kus/Report_details/applicationFormReportNETBANKING29082016.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 FUNIVNAME as 'college_name',FTOWN,
				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->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 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->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 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->college_name,"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,"Convocation 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",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',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,65,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");
			$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(4);
			$this->pdf->SetFont('Times','B',12);
			$this->pdf->cell(0,6,"Declaration","0",1,"L");
			$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->SetFont('Times','B',12);
			$this->pdf->Ln(15);
			$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,138,$this->pdf->GetY()-15,50,10);				
		}
		
		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();
}

?>