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.22.242.169
<?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
){
$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",1,"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");
}
if($funivcode=="055"){
}
$pdf->SetFont('Times','B',10);
if($reporttype=="rs"){
if($funivcode=="055"){
$pdf->SetY(30);
}
$pdf->cell(0,7,"RESULT SHEET - ".$fresexamdate ." EXAMINATION ","0",1,"C");
$pdf->cell(0,7,$fexamname." - ".$fdescpn." [".$degree."]","0",1,"C");
}
elseif($reporttype=="prs"){
if($funivcode=="055"){
$pdf->SetY(35);
}
$pdf->cell(0,7,"PROVISIONAL RESULT SHEET - ".$fresexamdate ." EXAMINATION ","0",1,"C");
$pdf->cell(0,7,$fexamname." - ".$fdescpn." [".$degree."]","0",1,"C");
}
elseif($reporttype=="swrs"){
if($degexam == "A"){
$deg = "I";
}elseif($degexam == "B"){
$deg = "II";
}elseif($degexam == "C"){
$deg = "III";
}elseif($degexam == "D"){
$deg = "IV";
}elseif($degexam == "E"){
$deg = "V";
}elseif($degexam == "F"){
$deg = "VI";
}elseif($degexam == "G"){
$deg = "VII";
}elseif($degexam == "H"){
$deg = "VIII";
}
if($funivcode=="055"){
$pdf->SetY(35);
}
$pdf->cell(0,7,"SUBJECT WISE RESULT SHEET - ".$fresexamdate ." EXAMINATION ","0",1,"C");
$pdf->cell(0,7,$deg." -"." SEMESTER - ".$fdescpn." [".$degree."]","0",1,"C");
}
elseif($reporttype=="gwrs"){
if($funivcode=="055"){
$pdf->SetY(36);
}
$pdf->cell(0,7,"GENDER WISE RESULT SHEET - ".$fresexamdate ." EXAMINATION ","0",1,"C");
$pdf->cell(0,7,$fexamname." - ".$fdescpn." [".$degree."]","0",1,"C");
}
elseif($reporttype=="srag"){
if($funivcode=="055"){
$pdf->SetY(36);
}
$pdf->cell(0,7,"SUBJECTWISE RESULT ANALYSIS(GRADEWISE) - ".$fresexamdate." EXAMINATION", "0",1,"C");
$pdf->cell(0,7,$fexamname." - ".$fdescpn." [".$degree."]","0",1,"C");
}
elseif($reporttype=="swra"){
if($funivcode=="055"){
$pdf->SetY(32);
}
$pdf->cell(0,7,"SUBJECT WISE RESULT ANALYSIS - ".$fresexamdate." EXAMINATION", "0",1,"C");
$pdf->cell(0,7,$fexamname." - ".$fdescpn." [".$degree."]","0",1,"C");
}
elseif($reporttype=="semra"){
if($funivcode=="055"){
$pdf->SetY(32);
}
$pdf->cell(0,7,"SEMESTER WISE RESULT ANALYSIS - ".$examdate." EXAMINATION", "0",1,"C");
$pdf->cell(0,7,$fexamname." - ".$deggrp." ". " RESULT ANALYSIS ","0",1,"C");
$pdf->cell(0,7,"Degree:- ( ".$degreeArr." )", "0",1,"C");
}
}
?>
|