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.222.119.143
<?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);
class report_ra_roomwise_register_nos_list extends FPDF
{
function DefaultConstructor($aobj_context)
{
session_start();
$this->aobj_context=$aobj_context;
$this->FUNIVCODE = $_SESSION['FUNIVCODE'];
$this->pdf= new FPDF();
$this->pdf=$this;
$this->roomchart=trim($this->aobj_context->mobj_data["roomchart"]);
$this->pageeject=trim($this->aobj_context->mobj_data["pageeject"]);
$this->fromdate = trim($this->aobj_context->mobj_data["fromdate"]);
$this->fromqpcode = trim($this->aobj_context->mobj_data["fqpcode"]);
$this->toqpcode = trim($this->aobj_context->mobj_data["tqpcode"]);
$this->session = trim($this->aobj_context->mobj_data["session"]);
$this->room_range_from = trim($this->aobj_context->mobj_data["room_range_from"]);
$this->room_range_to = trim($this->aobj_context->mobj_data["room_range_to"]);
$this->rtype = trim($this->aobj_context->mobj_data["rtype"]);
$this->room_range_from = str_pad($this->room_range_from, 3, "0", STR_PAD_LEFT);
$this->room_range_to = str_pad($this->room_range_to, 3, "z", STR_PAD_LEFT);
$this->room_range_from=str_pad($this->room_range_from, 3, "0", STR_PAD_LEFT);
$this->room_range_to=str_pad($this->room_range_to, 3, "z", STR_PAD_LEFT);
$this->ip=$_SERVER["REMOTE_ADDR"];
$get_date="select date_format(now(),'%d/%m/%Y %H:%i:%s') now_date";
$obj=$this->aobj_context->mobj_db->GetRow($get_date);
$this->current_date=$obj['now_date'];
$this->collcode=$_SESSION['collcode'];
}
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');
// $this->Cell(50,6,'Page '.$this->PageNo().' of {nb}',0,1,'R');
}
function formcolldata()
{
$get_coll_name="select FUNIVNAME as 'FUNIVNAME', ifnull(fregroll, 'USN')as fregroll,
funivcode,ifnull(fsubas,'Subject') as fsubas,
FUNIVADD1 as 'state', pdf_logo_path From control";
$lobj_get_coll_name=$this->aobj_context->mobj_db->GetRow($get_coll_name);
$this->FUNIVNAME=$lobj_get_coll_name['FUNIVNAME'];
$this->fsubas=$lobj_get_coll_name['fsubas'];
$this->funivcode1=$lobj_get_coll_name['funivcode'];
$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->collcode=$lobj_get_coll_name['collcode'];
$this->collcode=$_SESSION['collcode'];
$get_data = "SELECT c.FCOLLCODE,if('{$this->funivcode1}' = '052',CONCAT('Center Code: ',c.FCOLLCODE),CONCAT(c.FCOLLCODE, ' - ', c.FCOLLNAME,', ',c.FTOWN)) AS FCOLLNAME FROM college c
where c.FCOLLCODE='{$this->collcode}'";
$obj_student=$this->aobj_context->mobj_db->GetRow($get_data);
$this->college_details=$obj_student['FCOLLNAME'];
$this->degree_details=" College : {$this->FCOLLNAME}";
if($_SESSION['fexamseparate'] == 'T')
{
$FEXAMDATE = "fexexamdate as FEXAMDATE";
}else
{
$FEXAMDATE = "FEXAMDATE as FEXAMDATE";
}
$get_qp_details="select {$FEXAMDATE},CONCAT(s.FSUBNAME,' ',s.FSSUBNAME) AS FSSUBNAME,fsubshort from subject s
inner join degree d on d. FDEGREE=s.FDEGREE and d.fexamno = s.fexamno
where s.FQPCODE='{$this->qp_code}'";
$obj_get_qp_details=$this->aobj_context->mobj_db->GetRow($get_qp_details);
$FSSUBNAME=$obj_get_qp_details['FSSUBNAME'];
$fsubshort = $obj_get_qp_details['fsubshort'];
$this->FEXAMDATE=$obj_get_qp_details['FEXAMDATE'];
if($this->funivcode1 == '049'){
$this->sub_details="Course : {$this->qp_code} - {$FSSUBNAME} ";
}
else if($this->funivcode1 == '052') {
$this->sub_details="Subject : {$fsubshort} - {$FSSUBNAME} ( {$this->qp_code} )";
// var_dump($this->sub_details);die();
}
else{
$this->sub_details="Subject : {$this->qp_code} - {$FSSUBNAME} ";}
$get_qp_data="SELECT distinct DATE_FORMAT(s.FDOE,'%d/%m/%Y') AS FDOE,s.FSESSION, r.fdescpn
FROM room_allotment ra inner join subject s on ra.fqpcode = s.fqpcode left outer join
reason r on s.fsession = r.freasoncd
WHERE ra.FCOLLCODE='{$this->collcode}'
AND ra.FQPCODE='{$this->qp_code}'";
$obj_get_qp_data=$this->aobj_context->mobj_db->GetRow($get_qp_data);
$this->exam_date="Exam Date : {$obj_get_qp_data['FDOE']}, {$obj_get_qp_data['fdescpn']} ";
}
function GetFullQry()
{
$get_coll_name="select FUNIVNAME as 'FUNIVNAME',
funivcode, ifnull(fregroll, 'USN')as fregroll,
FUNIVADD1 as 'state', pdf_logo_path From control";
$lobj_get_coll_name=$this->aobj_context->mobj_db->GetRow($get_coll_name);
$this->funivcode1=$lobj_get_coll_name['funivcode'];
$this->fregroll = $lobj_get_coll_name['fregroll'];
// var_dump( $this->funivcode1);
if($this->session == 'both')
{
$sectionvalue = "";
}
else
{
$sectionvalue = "and s.fsession like '{$this->session}%'";
}
}
function formData()
{
$get_coll_name="select FUNIVNAME as 'FUNIVNAME',
funivcode,
FUNIVADD1 as 'state', pdf_logo_path From control";
$lobj_get_coll_name=$this->aobj_context->mobj_db->GetRow($get_coll_name);
$this->funivcode1=$lobj_get_coll_name['funivcode'];
if($this->session == 'both')
{
$sectionvalue = "";
}
else
{
$sectionvalue = "and s.fsession like '{$this->session}%'";
if($this->funivcode1 == '062')
$sectionvalue = "and t.fsessiont like '{$this->session}%'";
}
if($this->funivcode1 == '027')
{
$order = "masroom.froomno,";
}else
{
$order = "masroom.forder,masroom.froomno,";
}
if($_SESSION['fexamseparate'] == 'T')
{
$candsum = "examcandsum";
$canddet = "examcanddet";
}else
{
$candsum = "candsum";
$canddet = "canddet";
}
$studenttmp = "student";
if($this->funivcode1 == '049')
$this->roomchart = 'T';
$query = "select d.fdeggrp from degree d inner join subject s on d.fdegree = s.fdegree
and d.fexamno = s.fexamno
where s.fdoe = date_format(str_to_date('{$this->fromdate}','%d/%m/%Y'),'%Y-%m-%d')";
$res = $this->aobj_context->mobj_db->GetAll($query);
$fdeggrp = $res['fdeggrp'];
if($fdeggrp ='BED' && ($this->funivcode1 == '027' || $this->funivcode1 == '026') )
{
$order = "st.fname, cd.FREGNO";
}else if($this->funivcode1 == '046')
{
$order = "s.FQPCODE,st.fayear,cd.FREGNO";
}else if($this->funivcode1 == '055')
{
$order = "cd.fslno,cd.FREGNO";
}
else
{
$order = "s.FQPCODE, cd.FREGNO";
}
if($this->funivcode1 == '012')
{
$orderby = "lpad(cd.FHALLNO,3,'0'),LPAD(ra.forder, 3, '0')";
}else if($this->funivcode1 == '033' || $this->funivcode1 == '049' ||$this->funivcode1 == '052')
{
$orderby = "lpad(cd.FHALLNO,3,'0'),LPAD(cd.fslno, 3, '0')";
}else if($this->funivcode1 == '055' || $this->funivcode1 == '062')
{
$orderby = "lpad(cd.FHALLNO,3,'0'),LPAD(cd.fslno, 3, '0')";
}
else
{
$orderby = "LPAD(ra.forder, 3, '0')";
}
if($this->funivcode1 == '060')
{
$get_data = "SELECT cd.FHALLNO,group_concat(cd.fslno,'*',cd.FREGNO order by {$order}) as fregno,
masroom.froomname, s.fqpcode, ra.forder,
count(cd.fregno) as regcnt
FROM {$canddet} cd INNER JOIN subject s ON s.fdegree = cd.fdegree
and s.fexamno = cd.fexamno and s.FSUBCODE=cd.FSUBCODE
inner join {$candsum} cs on cs.FREGNO=cd.FREGNO
AND cd.FCOLLCODE=cs.FCOLLCODE
inner JOIN masroom ON masroom.froomno = FHALLNO and masroom.fcollcode = cs.fcntrcode
inner join room_allotment ra on cs.fcntrcode = ra.fcollcode
inner join {$studenttmp} st on cs.fregno = st.fregno and cs.fcollcode = st.fcollcode
and cs.fdegree = st.fdegree
and s.fqpcode = ra.fqpcode and ra.fhallno = masroom.froomno
inner JOIN reason r ON s.FSESSION = r.FREASONCD
WHERE cs.FCNTRCODE='{$this->collcode}'
and s.FQPCODE between '{$this->fromqpcode}' and '{$this->toqpcode}'
and ifnull(cd.FHALLNO,'') <> ''
and INSTR(cs.fhtenable,cd.fexamno) >0
AND lpad(cd.FHALLNO,3,'0') between '{$this->room_range_from}' and '{$this->room_range_to}'
and s.fdoe = date_format(str_to_date('{$this->fromdate}','%d/%m/%Y'),'%Y-%m-%d')
and ifnull(cd.fpassmth,'') = '' AND cd.FPRESENT='P'
AND IFNULL(cs.FRECPTDATE,'0000-00-00')<>'0000-00-00'
{$sectionvalue}
group by cd.FHALLNO
order by {$orderby}
";
} else if($this->funivcode1 == '062')
{
$get_data = "SELECT cd.FHALLNO,group_concat(cd.FREGNO order by {$order}) as fregno,
masroom.froomname, s.fqpcode,
count(cd.fregno) as regcnt
FROM {$canddet} cd INNER JOIN subject s ON s.fdegree = cd.fdegree
and s.fexamno = cd.fexamno and s.FSUBCODE=cd.FSUBCODE
inner join {$candsum} cs on cs.FREGNO=cd.FREGNO
AND cd.FCOLLCODE=cs.FCOLLCODE
inner JOIN masroom ON masroom.froomno = FHALLNO and masroom.fcollcode = cs.fcntrcode
inner join {$studenttmp} st on cs.fregno = st.fregno and cs.fcollcode = st.fcollcode
and cs.fdegree = st.fdegree
inner join timetable t on s.fqpcode = t.fqpcode
and t.fyear = cd.fyear
and t.fexamtype = cd.fexamtype
inner JOIN reason r ON t.fsessiont = r.FREASONCD
WHERE cs.FCNTRCODE='{$this->collcode}'
and s.FQPCODE between '{$this->fromqpcode}' and '{$this->toqpcode}'
and ifnull(cd.FHALLNO,'') <> ''
and INSTR(cs.fhtenable,cd.fexamno) >0
AND lpad(cd.FHALLNO,3,'0') between '{$this->room_range_from}' and '{$this->room_range_to}'
and t.fdate = date_format(str_to_date('{$this->fromdate}','%d/%m/%Y'),'%Y-%m-%d')
and ifnull(cd.fpassmth,'') = '' AND cd.FPRESENT='P'
AND IFNULL(cs.FRECPTDATE,'0000-00-00')<>'0000-00-00'
{$sectionvalue}
group by cd.FHALLNO
order by {$orderby}
";
//var_dump($get_data);
}
else
{
$get_data = "SELECT cd.FHALLNO,group_concat(cd.FREGNO order by {$order}) as fregno,
masroom.froomname, s.fqpcode, ra.forder,
count(cd.fregno) as regcnt
FROM {$canddet} cd INNER JOIN subject s ON s.fdegree = cd.fdegree
and s.fexamno = cd.fexamno and s.FSUBCODE=cd.FSUBCODE
inner join {$candsum} cs on cs.FREGNO=cd.FREGNO
AND cd.FCOLLCODE=cs.FCOLLCODE
inner JOIN masroom ON masroom.froomno = FHALLNO and masroom.fcollcode = cs.fcntrcode
inner join room_allotment ra on cs.fcntrcode = ra.fcollcode
inner join {$studenttmp} st on cs.fregno = st.fregno and cs.fcollcode = st.fcollcode
and cs.fdegree = st.fdegree
and s.fqpcode = ra.fqpcode and ra.fhallno = masroom.froomno
inner JOIN reason r ON s.FSESSION = r.FREASONCD
WHERE cs.FCNTRCODE='{$this->collcode}'
and s.FQPCODE between '{$this->fromqpcode}' and '{$this->toqpcode}'
and ifnull(cd.FHALLNO,'') <> ''
and INSTR(cs.fhtenable,cd.fexamno) >0
AND lpad(cd.FHALLNO,3,'0') between '{$this->room_range_from}' and '{$this->room_range_to}'
and s.fdoe = date_format(str_to_date('{$this->fromdate}','%d/%m/%Y'),'%Y-%m-%d')
and ifnull(cd.fpassmth,'') = '' AND cd.FPRESENT='P'
AND IFNULL(cs.FRECPTDATE,'0000-00-00')<>'0000-00-00'
{$sectionvalue}
group by cd.FHALLNO
order by {$orderby}
";
}
// var_dump($get_data);
$this->aobj_context->mobj_db->execute("SET @@session.group_concat_max_len=100000");
$lobj_get_data = $this->aobj_context->mobj_db->GetAll($get_data);
if($this->funivcode1 == '049'){
$this->pdf->SetMargins(15,10,10);
}
else {
$this->pdf->SetMargins(15,-5,10);
$empty_cell_width=12;
$this->pdf->SetFont('Times','B',10);
$this->pdf->cell($empty_cell_width,7, ""," ",0,"C");
$cnt=1;
}
if($this->pageeject == 'F')
{
$this->pdf->AddPage();
$cond = true;
}
$oldqpcode = '';
$newqpcode = '';
$oldhallname = '';
$newhallname = '';
foreach($lobj_get_data as $hallk=>$hallv)
{
$newqpcode = $hallv['fqpcode'];
$newhallname = $hallv['froomname'];
if($this->pageeject =='F')
{
if($this->pdf->GetY() > 200)
{
$cond = true;
}
}
else
{
if($newhallname != $oldhallname)
{
$this->pdf->AddPage();
$cond = true;
}
}
if($newhallname != $oldhallname)
{
if($this->pageeject == 'F')
{
if($this->pdf->GetY() >200)
{
$this->pdf->AddPage();
$cond = true;
}
}
if($_SESSION['fexamseparate'] == 'T')
{
$FEXAMDATE = "fexexamdate as FEXAMDATE";
}else
{
$FEXAMDATE = "FEXAMDATE as FEXAMDATE";
}
$get_qp_details="select {$FEXAMDATE},
if('{$this->funivcode1}' = '055',concat(s.fsubshort,' - ',s.fsubname),CONCAT(s.FSUBNAME,' ',s.FSSUBNAME)) as FSSUBNAME,
s.fsubshort
from subject s
inner join degree d on d. FDEGREE=s.FDEGREE and d.fexamno = s.fexamno
where s.FQPCODE='{$newqpcode}'";
$obj_get_qp_details=$this->aobj_context->mobj_db->GetRow($get_qp_details);
$FSSUBNAME=$obj_get_qp_details['FSSUBNAME'];
$fsubshort = $obj_get_qp_details['fsubshort'];
$this->FEXAMDATE=$obj_get_qp_details['FEXAMDATE'];
if($this->funivcode1 == '049')
$this->sub_details="Course : {$newqpcode} - {$FSSUBNAME}";
else if($this->funivcode1 == '052' || $this->funivcode1 == '055')
$this->sub_details=$this->fsubas." : {$fsubshort} - {$FSSUBNAME} ( {$newqpcode} ) ";
else
$this->sub_details=$this->fsubas." : {$newqpcode} - {$FSSUBNAME}";
$get_qp_data="SELECT distinct DATE_FORMAT(s.FDOE,'%d/%m/%Y') AS FDOE,s.FSESSION, r.fdescpn
FROM room_allotment ra inner join subject s on ra.fqpcode = s.fqpcode left outer join
reason r on s.fsession = r.freasoncd
WHERE ra.FCOLLCODE='{$this->collcode}'
AND ra.FQPCODE='{$newqpcode}'";
$obj_get_qp_data=$this->aobj_context->mobj_db->GetRow($get_qp_data);
$this->exam_date="Exam Date : {$obj_get_qp_data['FDOE']}, {$obj_get_qp_data['fdescpn']} ";
session_start();
$FUNIVCODE = $_SESSION['FUNIVCODE'];
if($cond)
{
if($FUNIVCODE == 30 || $FUNIVCODE == 31 || $FUNIVCODE == '049' || $FUNIVCODE == '055')
{
$this->SetLineWidth(0.01);
$img_path=$this->aobj_context->main_src.'/'.$this->aobj_context->mobj_data["db"]."/img/report_uni_logo.jpg";
if(file_exists($img_path))
if($FUNIVCODE == 30)
$this->Image($img_path,80,4,52);
else if($FUNIVCODE == 49)
$this->Image($img_path,80,4,62);
else if($FUNIVCODE == 55)
{
$this->Image($img_path,30,2,140,20);
$this->Ln(2);
}
else
$this->Image($img_path,60,4,90);
$this->SetFont('Times','',12);
if($FUNIVCODE == 30)
$this->Cell(0,4,'Rukmini Knowledge Park, Kattigenahalli, Yelahanka, Bengaluru-560 064',0,1,'C');
}
else
{
if(!empty($this->pdf_logo_path))
{
$img_logo_path=$this->aobj_context->main_src.'/'.$this->aobj_context->mobj_data["db"].'/'.$this->pdf_logo_path;
if($FUNIVCODE == '052')
$this->pdf->Image($img_logo_path,5,5,37,15);
else if($FUNIVCODE == '058')
$this->pdf->Image($img_logo_path,3,6,23,22);
else
$this->pdf->Image($img_logo_path,10,10,23,22);
}
$img_path2 = $this->aobj_context->main_src."/img/logo2.jpg";
if(file_exists($img_path2))
{
$this->pdf->Image($img_path2,170,6,23,23);
}
if($FUNIVCODE == '052')
{
$this->pdf->SetFont('Times','B',9);
$this->pdf->Cell(0,4,"JSS MAHAVIDYAPEETHA",0,1,'C');
}
$this->pdf->SetFont('Times','B',15);
$this->pdf->cell(0,3,$this->FUNIVNAME."","0",1,"C");
$this->pdf->SetFont('Times','B',8);
$this->pdf->cell(0,7, $this->s_state,"0",1,"C");
$this->pdf->SetFont('Times','B',13);
}
$this->pdf->SetFont('Times','B',12);
if($this->FUNIVCODE != '055')
$this->pdf->cell(0,7, $this->college_details,"0",1,"C");
$this->pdf->SetFont('Times','B',11);
if($this->FUNIVCODE == '008')
$this->pdf->Cell(0,7,"Form A - {$this->FEXAMDATE} EXAMINATION","0",1,"C");
else if($this->FUNIVCODE == '055'){
$this->pdf->SetY(20);
$this->pdf->Cell(0,7,"ROOMWISE STUDENT LIST - {$this->FEXAMDATE}","0",1,"C");
}
else if($this->FUNIVCODE == '052')
$this->pdf->Cell(0,7,"A - FORM - {$this->FEXAMDATE} EXAMINATION","0",1,"C");
else
$this->pdf->Cell(0,7,"ROOMWISE STUDENT LIST - {$this->FEXAMDATE} EXAMINATION","0",1,"C");
$cond = false;
}
//if($this->pageeject != 'T')
//$this->pdf->Cell(0,7," {$this->sub_details}","0",1,"C");
$this->pdf->SetFont('Times','',13);
if($this->pageeject == 'F')
$cond = false;
$head= false;
$oldqpcode = $hallv['fqpcode'];
}
$this->pdf->SetFont('Times','B',14);
// $this->pdf->AddPage();
$this->pdf->Cell(50,7," Room No. : {$hallv['froomname']} ","0",0,"L");
$this->pdf->Cell(0,7," {$this->exam_date}","0",1,"R");
$c=1;
$this->pdf->SetFont('Times','',11);
$t_s=0;
$x = $this->pdf->GetX();
$y = $this->pdf->GetY();
$first = true;
$second = true;
$i = 1;
$j = 1;
$c = 1;
$t_s = 0;
$regnos = explode(',', $hallv['fregno']);
$regcnt = $hallv['regcnt'];
$sino1 = ceil($regcnt/2);
$this->pdf->SetFont('Times', 'B', 11);
if($this->FUNIVCODE == '060')
{
$this->pdf->Cell(25, 12, "Seat No.", "1", 0, "C");
$this->pdf->Cell(65, 12, $this->fregroll, "1", 0, "C");
$this->pdf->Cell(25, 12, "Seat NO.", "1", 0, "C");
$this->pdf->Cell(65, 12, $this->fregroll, "1", 1, "C");
}else
{
$this->pdf->Cell(25, 12, "SL. NO.", "1", 0, "C");
$this->pdf->Cell(65, 12, $this->fregroll, "1", 0, "C");
$this->pdf->Cell(25, 12, "SL. NO.", "1", 0, "C");
$this->pdf->Cell(65, 12, $this->fregroll, "1", 1, "C");
}
$this->pdf->SetFont('Times', 'B', 11);
$i=1;
$j=16;
$fir = false;
$y = $this->pdf->getY();
$x = $this->pdf->getX();
foreach($regnos as $regno){
$this->pdf->SetFont('Times', 'B', 11);
if($FUNIVCODE == '060')
{
// var_dump($regno);
$regarry = explode('*',$regno);
$slno = $regarry[0];
$regno = $regarry[1];
if ($i % 2 == 1)
{
$this->pdf->SetFont('Times', '', 11);
$this->pdf->Cell(25, 7, "{$slno}", "1", 0, "C");
$this->pdf->Cell(65, 7, " {$regno}", "1", 0, "C");
}else{
$this->pdf->SetFont('Times', '', 11);
// $this->pdf->setY($y);
$this->pdf->setX(105);
$this->pdf->Cell(25, 7, "{$slno}", "1", 0, "C");
$this->pdf->Cell(65, 7, "{$regno} ", "1", 1, "C");
}
}else
{
if ($i % 2 == 1)
{
$this->pdf->SetFont('Times', '', 11);
$this->pdf->Cell(25, 7, "{$i}", "1", 0, "C");
$this->pdf->Cell(65, 7, " {$regno}", "1", 0, "C");
}else{
$this->pdf->SetFont('Times', '', 11);
// $this->pdf->setY($y);
$this->pdf->setX(105);
$this->pdf->Cell(25, 7, "{$i}", "1", 0, "C");
$this->pdf->Cell(65, 7, "{$regno} ", "1", 1, "C");
}
}
$i++;
}
// foreach($regnos as $regno)
// {
// $this->pdf->SetFont('Times', 'B', 11);
// if ($i <= $sino1)
// {
// $this->pdf->SetFont('Times', '', 11);
// $this->pdf->Cell(25, 7, "{$i}", "1", 0, "C");
// $this->pdf->Cell(65, 7, " {$regno}", "1", 1, "C");
// } else
// {
// if($i == ($sino1+1))
// $this->pdf->setY($y);
// $this->pdf->setX(105);
// $this->pdf->SetFont('Times', '', 11);
// $this->pdf->Cell(25, 7, "{$i}", "1", 0, "C");
// $this->pdf->Cell(65, 7, "{$regno} ", "1", 1, "C");
// // if ($regcnt > 30) {
// // $this->pdf->AddPage();
// // $this->pdf->setY(10);
// // }
// // if ($i == ($sino1 + 1)) {
// // $this->pdf->setY($y);
// // }
// // // Render the cells
// // $this->pdf->setX(105);
// // $this->pdf->SetFont('Times', '', 11);
// // $this->pdf->Cell(25, 7, "{$i}", "1", 0, "C");
// // $this->pdf->Cell(65, 7, "{$regno} ", "1", 1, "C");
// }
// $i++;
// }
$oldhallname = $hallv['froomname'];
$this->pdf->Cell(1,7,"","0",1,"l");;
$this->pdf->cell($empty_cell_width,7, ""," ",0,"C");
$this->pdf->Ln(5);
$this->pdf->Cell(180,7,"Total Students : $regcnt ","0",1,"L");
$cond = false;
}
}
function SendOutput()
{
$this->pdf->Output("Roomwise Register No.s List.pdf","I");
}
}
function registernoallotlistonnoticeboard($aobj_context){
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$class_obj=new report_ra_roomwise_register_nos_list();
$class_obj->AliasNbPages();
$class_obj->DefaultConstructor($aobj_context);
$class_obj->GetFullQry();
$class_obj->formcolldata();
$class_obj->formData();
$class_obj->SendOutput();
}
// Get the current Y position
// $currentY = $this->pdf->GetY();
// // Define the bottom margin limit
// $bottomMargin = 20; // Adjust based on your PDF layout
// $pageHeight = $this->pdf->getPageHeight();
// // Check if the next cell would exceed the page's height
// if ($currentY + 7 > $pageHeight - $bottomMargin) { // Assuming 7 is the height of your row
// $this->pdf->AddPage(); // Add a new page
// $this->pdf->setY(10); // Reset Y to top margin
// }
// // Set Y position for $sino1+1
// if ($i == ($sino1 + 1)) {
// $this->pdf->setY($y); // Maintain Y for the specific row
// }
// // Render the cells
// $this->pdf->setX(105);
// $this->pdf->SetFont('Times', '', 11);
// $this->pdf->Cell(25, 7, "{$i}", "1", 0, "C");
// $this->pdf->Cell(65, 7, "{$regno} ", "1", 1, "C");
?>
|