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.217.156.67
<?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");
ini_set('memory_limit', '56M');
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, FUNIVNAME 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 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,st.fprevpaid,
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->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->fprevpaid=$rst['fprevpaid'];
$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",1,"L");
$this->pdf->SetFont('Times','B',12);
$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,' College / Department',0,0,'L'); $this->pdf->Cell(5,6,' : ',0,0,'L');
$this->pdf->SetFont('Times','',12);
$this->pdf->Multicell(96,6,''.$this->FCOLLCODE." - ".$this->FCOLLNAME,0,"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->SetFont('Times','B',12);
$this->pdf->Cell(40,6,' Previous Paid',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");
if($this->FAMOUNT != 0)
{
$this->pdf->SetFont('Times','B',12);
$this->pdf->Cell(40,6,' Amount',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(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 : 63633 41215 / 37901 / 51762","0",1,"L");
$this->pdf->cell(0,4,"E-mail id : dudsupport@uniclare.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(6);
$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 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("College Copy");
// $class_obj->pos=3;
// $class_obj->formData("Student Copy");
$class_obj->AcknowledgementForm();
$class_obj->SendOutput();
}
?>
|