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.171.86
<?php
function generateHeader(
$db,
$pdf,
$pageOrientation,
$funivcode,
$headerName,
$college_name,
$fresexamdate,
$fdescpn,
$fexamname,
$pdf_logo_path,
$aobj_context,
$reporttype,
$degree,
$degexam,
$yearmode,
$section,
$deggrp,
$examdate,
$degreeArr
){
var_dump($pdf);
die();
$main_src=substr($_SERVER['SCRIPT_FILENAME'],0,strlen($_SERVER['SCRIPT_FILENAME'])-7);
$get_coll_name="select FUNIVNAME as 'FUNIVNAME',funivcode,
FUNIVADD1 as 'state', pdf_logo_path From control";
$lobj_get_coll_name=$aobj_context->mobj_db->GetRow($get_coll_name);
$pdf_logo_path=$lobj_get_coll_name['pdf_logo_path'];
$FUNIVNAME=$lobj_get_coll_name['FUNIVNAME'];
$funivcode=$lobj_get_coll_name['funivcode'];
$s_state=$lobj_get_coll_name['state'];
$f_year=$lobj_get_coll_name['f_year'];
$img_logo_path = $main_src . $db . "/img/log.jpg";
$img_path = $main_src . $db ."/". $pdf_logo_path;
if($funivcode == '055'){
if(file_exists($img_logo_path)) {
if ($pageOrientation === 'P') {
$pdf->Image($img_logo_path,13,8,180);
} else {
$pdf->Image($img_logo_path,28,4,250);
}
}
}
elseif(!empty($img_path) && file_exists($img_path))
{
$pdf->Image($img_path,10,10,35);
}
if($funivcode!=="055"){
if($funivcode=="052"){
$pdf->SetFont('Times','B',9);
$pdf->cell(0,7,""."JSS MAHAVIDYAPEETHA","0",1,"C");
}
$pdf->SetFont('Times','B',14);
$pdf->cell(0,7,"".$FUNIVNAME,"0",1,"C");
$pdf->SetFont('Times','',8);
$pdf->cell(0,4, $s_state,"0",0,"C");
$pdf->SetFont('Times','',10);
$pdf->Cell(-20,4,"Page {$pdf->PageNo()}/{nb}",0,1,'C');
$pdf->SetFont('Times','B',10);
$pdf->cell(0,7,"College: ".$college_name,"0",1,"C");
}
}
?>
|