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.220.13.15
Current Path : /var/www/student/gfgcg/src/ |
| Current File : /var/www/student/gfgcg/src/applicationFormReportNETBANKING.php |
<?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_once("report_hall_ticket.php");
class applicationFormReport
{
function formcolldata()
{
$get_coll_name="select FUNIVNAME as 'FUNIVNAME',
FUNIVADD1 as 'state', pdf_logo_path,
ifnull(FEXAMAPPREQ,'F') as FEXAMAPPREQ
From control";
$lobj_get_coll_name=$this->aobj_context->mobj_db->GetRow($get_coll_name);
$this->FUNIVNAME=$lobj_get_coll_name['FUNIVNAME'];
$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'];
}
function DefaultConstructor($aobj_context)
{
$this->aobj_context=$aobj_context;
$this->pdf=new FPDF();
$this->app_no=trim($this->aobj_context->mobj_data["app_no"]);
$this->ip=$_SERVER["REMOTE_ADDR"];
$get_date="select date_add(date_add(now(),INTERVAL 13 hour),interval 30 minute) as now_date";
$obj=$this->aobj_context->mobj_db->GetRow($get_date);
require_once("getnumword.php");
}
function WriteHallTicket()
{
$aobj_context=$this->aobj_context;
$class_obj=new AdmissionTicket($aobj_context);
ini_set("memory_limit",-1);
ini_set('max_execution_time',3300);
$class_obj->app_no =$this->app_no;
$get_data="SELECT FDEGREE,FREGNO,FPAYMENTYPE,FPAYGATEWAY,FPAYMENTSTATUS,FPAYMENTREMARKS FROM appcandsum
WHERE APPNO='{$class_obj->app_no}' ";
$obj_get_data = $aobj_context->mobj_db->GetRow($get_data);
$PaymentType=$obj_get_data['FPAYMENTYPE'];
$FPAYGATEWAY=$obj_get_data['FPAYGATEWAY'];
$FPAYMENTSTATUS=$obj_get_data['FPAYMENTSTATUS'];
$FPAYMENTREMARKS=$obj_get_data['FPAYMENTREMARKS'];
$class_obj->degree_code = $obj_get_data['FDEGREE'];
$class_obj->registor_no_starts = $obj_get_data['FREGNO'];
$class_obj->registor_no_ends = $obj_get_data['FREGNO'];
$pdf=$this->pdf;
$pdf->SetMargins(20,5,35);
$pdf->aobj_context =$aobj_context ;
$pdf->WhichReport = 'AdmissionTicket';
$pdf->SetFillColor(248, 248 ,255);
$pdf->SetFont('Times','',10);
$pdf->AddPage("P");
$adm_details=$class_obj->getUniversityDetails();
$adm_details=$class_obj->getCollegeDetails();
$adm_details=$class_obj->getStudentDetails();
$adm_details=$class_obj->getSubjectAppearing();
$page_cnt=1;
foreach($class_obj->std_arr as $reg_k=>$reg_v)
{
//if(!array_key_exists($reg_v['FREGNO'],$class_obj->receipt_date_arr))
//continue;
$full_photo_path="";
$full_photo_path=trim($aobj_context->main_src."/".$reg_v[photo_path]);
$FTOTALFEE=$reg_v[FTOTALFEE];
//$pdf->Ln(3);
//$pdf->SetLineWidth(0.01);
$pdf->SetLineWidth(0.01);
$pdf->SetFont('Times','B',14);
$img_path=$aobj_context->main_src."/img/logo.jpg";
if(file_exists($img_path))
$pdf->Image($img_path,15,14,22);
$pdf->Cell(0,4,$class_obj->std_FUNIVNAME,0,1,'C');
$pdf->SetFont('Times','',9);
$pdf->Cell(0,4,$this->s_state ,'0',1,'C');
$pdf->SetFont('Times','B',13);
$pdf->Ln(2);
$pdf->Cell(0,5,'EXAM APPLICATION FORM' ,'0',1,'C');
$pdf->SetFont('Times','',10);
$pdf->Cell(0,5,$reg_v['EXAMDATE'].' EXAMINATION ' ,'0',1,'C');
$pdf->SetFont('Times','',12);
$pdf->Ln(6);
$pdf->SetFont('Times','',12);
if(file_exists($full_photo_path) && !empty($reg_v[photo_path]))
{
//$pdf->Cell(25,6,' App. No.',0,0,'L'); $pdf->Cell(3,6,' : ',0,0,'L');
$pdf->Image($full_photo_path,155,$pdf->GetY(),27,27);
//$pdf->Cell(120,6,' '.$class_obj->sub_arr[$p]['ADMNUM'],0,1,'L');
}
$pdf->SetFont('Times','B',11);
$pdf->Cell(30,6,' App. No.',0,0,'L'); $pdf->Cell(6,6,' : ',0,0,'L');
$pdf->SetFont('Times','',11);
$pdf->Cell(120,6,''.$class_obj->app_no,0,1,'L');
$pdf->SetFont('Times','B',11);
$pdf->Cell(30,6,' App. Date',0,0,'L'); $pdf->Cell(6,6,' : ',0,0,'L');
$pdf->SetFont('Times','',11);
$pdf->Cell(120,6,''.$reg_v['FAPPDATE'],0,1,'L');
$pdf->SetFont('Times','B',11);
$pdf->Cell(30,6,' Course',0,0,'L'); $pdf->Cell(6,6,' : ',0,0,'L');
$pdf->SetFont('Times','',11);
$pdf->Cell(120,6,''.$reg_v['COURSE'],0,1,'L');
$pdf->SetFont('Times','B',11);
$pdf->Cell(30,6,' College',0,0,'L'); $pdf->Cell(6,6,' : ',0,0,'L');
$pdf->SetFont('Times','',11);
$pdf->MultiCell(90,6,''.$reg_v['CollDetails'],0,"L");
$pdf->SetFont('Times','B',11);
$pdf->Cell(30,6,' Reg. No.',0,0,'L'); $pdf->Cell(6,6,' : ',0,0,'L');
$pdf->SetFont('Times','',11);
$pdf->Cell(120,6,''.$reg_v['FREGNO'],0,1,'L');
$pdf->SetFont('Times','B',11);
$pdf->Cell(30,6," Student's Name",0,0,'L'); $pdf->Cell(6,6,' : ',0,0,'L');
$pdf->SetFont('Times','',11);
$pdf->Cell(120,6,''.$reg_v['FNAME'],0,1,'L');
$pdf->Ln(1);
$pdf->SetFont('Times','B',11);
$pdf->Cell(0,5,'Subject Appearing',0,1,'C');
$pdf->Cell(15,6,"Sl. No.","1",0,"C");
$pdf->Cell(20,6,"Sub. Code","1",0,"C");
$pdf->Cell(130,6,"Subject Title","1",0,"C");
$pdf->Cell(20,6,"QP Code","1",1,"C");
$pdf->SetFont('Times','',11);
$sub_arr=$reg_v[SUBCODE];
$subj_arr=explode("~",$sub_arr);
$sl_no=1;
foreach($subj_arr as $ek)
{
$explode_arr=explode("->",$ek);
$pdf->Cell(15,6, $sl_no,"1",0,"C");
$pdf->Cell(20,6, $explode_arr[0],"1",0,"C");
$sub_short=$explode_arr[4];
if($class_obj->bth_flag==1)
{
$pdf->Cell(130,6,$explode_arr[1]." [{$sub_short}]","1",0,"L");
$pdf->Cell(20,6,$explode_arr[3],"1",1,"C");
}
else
{
$pdf->Cell(130,6,$explode_arr[1],"1",0,"L");
$pdf->Cell(20,6,$sub_short,"1",1,"C");
//$pdf->Cell(30,6,'',"1",1,"C");
}
$sl_no++;
}
$pdf->SetFont('Times','B',11);
$pdf->ln(10);
$pdf->Cell(80,6,"Total Fee : Rs {$FTOTALFEE}/-","10",1,"L");
$pdf->Cell(0,6,"Payment Gateway : {$FPAYGATEWAY}","0",1,"L");
$pdf->Cell(0,6,"Payment Status : {$FPAYMENTSTATUS}","0",1,"L");
$pdf->Cell(0,6,"Payment Transaction id : {$FPAYMENTREMARKS}","0",1,"L");
$pdf->ln(10);
$pdf->Cell(180,6,"Signature of the Student","10",1,"R");
if($page_cnt!=count($class_obj->std_arr))
{
$pdf->AddPage();
}
$page_cnt++;
}
}
function SendOutput()
{
$this->pdf->Output("application_letter_{$this->app_no}.pdf","D");
}
}
function PrintApplicationFormNETBANKING($aobj_context)
{
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$class_obj=new applicationFormReport();
$class_obj->DefaultConstructor($aobj_context);
$class_obj->formcolldata();
$class_obj->WriteHallTicket();
$class_obj->SendOutput();
}
?>
|