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.147.60.193
<?php
$main_src=substr($_SERVER['SCRIPT_FILENAME'],0,strlen($_SERVER['SCRIPT_FILENAME'])-7);
//$pdf_writer_class =$main_src."/tarka_pdf/fpdf.php";
$pdf_writer_class =$main_src."/tcpdf/tcpdf.php";
require_once($pdf_writer_class);
class MYPDF extends TCPDF
{
public function Header()
{
// get the current page break margin
$bMargin = $this->getBreakMargin();
// get current auto-page-break mode
$auto_page_break = $this->AutoPageBreak;
// disable auto-page-break
$this->SetAutoPageBreak(false, 0);
// set bacground image
$this->SetFillColor(248, 248, 255);
$img_path = $this->aobj_context->main_src . "/img/".$this->aobj_context->FUNIVCODE."_logo.jpg";
if (file_exists($img_path)) {
$this->Image($img_path, 25, 6, 20, 20);
}
$this->SetFont('Times', 'B', 13);
$this->SetY(5);
$this->Cell(0, 4, $this->aobj_context->FUNIVNAME, 0, 1, 'C');
//state
$this->SetFont('Times', '', 11);
$this->Cell(0, 4, $this->aobj_context->s_state, 0, 1, 'C');
$this->SetFont('Times', 'BU', 12);
$this->Ln(1);
$cur_year = date("Y");
$this->Cell(0, 5, 'Combination Wise Student Count', '0', 1, 'C');
$this->SetFont('Times', 'B', 10);
$this->Cell(0, 5, 'College Range : ' . $this->aobj_context->mobj_data['cntr_from'].' - '.$this->aobj_context->mobj_data['cntr_end'], '0', 1, 'C');
$this->Cell(0, 5, 'Degree Range : ' . $this->aobj_context->mobj_data['degree_from'].' - '.$this->aobj_context->mobj_data['degree_to'], '0', 1, 'C');
$this->Cell(0, 5, 'Degree Group : ' . $this->aobj_context->mobj_data['Degree'], '0', 1, 'C');
// restore auto-page-break status
$this->SetAutoPageBreak($auto_page_break, $bMargin);
// set the starting point for the page content
}
public function Footer()
{
$this->SetY(-15);
$this->SetFont('helvetica', 'I', 8);
if($this->CurOrientation == 'P')
{
$this->Cell(60, 10, 'IP : ' . $_SERVER["REMOTE_ADDR"], 0, 0, 'L');
$this->Cell(60, 10, 'Date : ' . date("d-m-Y h:i:s A"), 0, 0, 'C');
$this->Cell(60, 10, 'Page ' . $this->getPageNumGroupAlias() . '/' . $this->getPageGroupAlias(), 0, 1, 'R');
}
else {
$this->Cell(90, 10, 'IP : ' . $_SERVER["REMOTE_ADDR"], 0, 0, 'L');
$this->Cell(90, 10, 'Date : ' . date("d-m-Y h:i:s A"), 0, 0, 'C');
$this->Cell(90, 10, 'Page ' . $this->getPageNumGroupAlias() . '/' . $this->getPageGroupAlias(), 0, 1, 'R');
}
}
}
function pgetStatus($aobj_context){
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$query = "select fappno,fname,date_format(fcreatedate,'%d/%m/%y') as fcreatedate,fcategory,ifnull(fappremarks,'') as fappremarks,fqmaxmarks,fqsecmarks,
round(if(fqpercentage is null or fqpercentage = '', ((fqsecmarks*100)/fqmaxmarks), fqpercentage),2) as fqpercentage
from pgstudadm
where ffinsub='T' and fpaystatus='success'";
$result = $aobj_context->mobj_db->getAll($query);
// var_dump($query,$result);
$class_obj = new Reports();
$class_obj->univcode = $univcode;
$class_obj->DefaultConstructor($aobj_context);
if($result >0)
$class_obj->writeReport($result);
$class_obj->SendOutput();
}
?>
|