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.120.103
<?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);
ini_set('memory_limit','900M');
ini_set('max_execution_time',0);
class MYPDF extends TCPDF {
public $aobj_context;
public function setData($aobj_context){
$this->aobj_context = $aobj_context;
}
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->SetMargins(10,34,20,true);
$this->SetFillColor(248, 248 ,255);
$img_path = $this->aobj_context->main_src."/img/logo.jpg";
if(file_exists($img_path))
$this->Image($img_path,10,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','B',12);
$this->Ln(1);
$cur_year = date("Y");
$this->Cell(180,5,'PG Application Form ('.$cur_year.')','0',1,'C');
$this->Cell(0,4,$this->degree,0,1,'C');
// var_dump($this->degree);
// var_dump($this->degree);
$style = array(
'position' => 'right',
'align' => 'C',
'stretch' => false,
'fitwidth' => true,
'cellfitalign' => '',
'border' => false,
'hpadding' => 'auto',
'vpadding' => 'auto',
'fgcolor' => array(0,0,0),
'bgcolor' => false, //array(255,255,255),
'text' => true,
'font' => 'helvetica',
'fontsize' => 8,
'stretchtext' => 4
);
// var_dump($this->aobj_context->FAPPNO);
$this->write1DBarcode($this->aobj_context->appno, 'C39', '140', '20','130', 16, 0.3, $style, 'R');
// 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);
$this->Cell(50, 10,'IP : '.$_SERVER["REMOTE_ADDR"], 0, 0, 'L');
$this->Cell(100, 10,'Date : ' .$this->aobj_context->current_date, 0, 0, 'C');
$this->Cell(50, 10,'Page ' .$this->getPageNumGroupAlias().'/'.$this->getPageGroupAlias(), 0, 1, 'R');
}
}
class AddmissionApplication
{
function DefaultConstructor($aobj_context)
{
$this->aobj_context=$aobj_context;
//$this->pdf= new FPDF();
$this->collcode=$_SESSION['collcode'];
$this->ip=$_SERVER["REMOTE_ADDR"];
$get_date="select DATE_FORMAT(now(), '%d/%m/%Y') as now_date";
$obj=$this->aobj_context->mobj_db->GetRow($get_date);
$get_coll_name="select FUNIVNAME as 'FUNIVNAME',FUNIVCODE,
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);
//var_dump($this->degree);
$aobj_context->FUNIVNAME=$lobj_get_coll_name['FUNIVNAME'];
$aobj_context->s_state=$lobj_get_coll_name['state'];
$aobj_context->pdf_logo_path=$lobj_get_coll_name['pdf_logo_path'];
$aobj_context->FEXAMAPPREQ=$lobj_get_coll_name['FEXAMAPPREQ'];
$aobj_context->FUNIVCODE=$lobj_get_coll_name['FUNIVCODE'];
$app_no = trim($aobj_context->mobj_data["appno"]);
$aobj_context->appno = $app_no;
$aobj_context->current_date = $obj['now_date'];
$this->current_date = $obj['now_date'];
$this->pdf= new MYPDF('P');
$this->pdf->setData($aobj_context);
}
function formcolldata()
{
$get_coll_name="select FUNIVNAME as 'FUNIVNAME',FUNIVCODE,
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->pdf_logo_path=$lobj_get_coll_name['pdf_logo_path'];
$this->FEXAMAPPREQ=$lobj_get_coll_name['FEXAMAPPREQ'];
$this->FUNIVCODE=$lobj_get_coll_name['FUNIVCODE'];
}
function writeApplication($per_details, $fee_det,$degdet,$degree)
{
//var_dump($degdet[$per_details['FDEGREE1']]);
$pdf=$this->pdf;
$pdf->SetMargins(10,30,20,false);
$pdf->startPageGroup();
$pdf->AddPage("P");
$pdf->SetFont('Times','UB',10);
$this->degree = $degdet[$degree];
$pdf->cell(0,7,"Courses Preference : ".$degree." - ".$degdet[$degree],0,1,'C');
$pdf->SetFont('Times','',10);
$html = '<h3 style="background-color: #918988; color: rgb(255, 255, 255);">Course for which you are appearing for entrance test</h3>';
$x = $pdf->GetX();
$y = $pdf->GetY();
$pdf->SetMargins(10,30);
$pdf->writeHTMLCell(188,0,$x,$y,$html, false,1, false, true, '', false);
$pdf->ln(1);
$i = 1;
$head = '<style>
td {
border: 0.5px solid black;
}
</style>
<table cellpadding="3" cellspacing="0">';
//====================Subject Details====================================
$table2 = '<style>
td, th {
border: 0.5px solid black;
}
</style>
<table cellpadding="2" cellspacing="0">
<tr nobr="true"><th width="100" align="center"><b>Courses Code</b></th>
<th width="420" align="center"><b>Courses Applied for</b></th>
</tr>';
if($per_details['FDEGREE1'] != '' || $per_details['FDEGREE1'] != NULL)
{
$table2 .= '<tr nobr="true">
<td width="100" align="center">'.$per_details['FDEGREE1'].'</td>
<td width="420" align="left">'.$degdet[$per_details['FDEGREE1']].'</td>
</tr>';
}
if($per_details['FDEGREE2'] != '' || $per_details['FDEGREE2'] != NULL)
{
$table2 .= '<tr nobr="true">
<td width="100" align="center">'.$per_details['FDEGREE2'].'</td>
<td width="420" align="left">'.$degdet[$per_details['FDEGREE2']].'</td>
</tr>';
}
if($per_details['FDEGREE3'] != '' || $per_details['FDEGREE3'] != NULL)
{
$table2 .= '<tr nobr="true">
<td width="100" align="center">'.$per_details['FDEGREE3'].'</td>
<td width="420" align="left">'.$degdet[$per_details['FDEGREE3']].'</td>
</tr>';
}
if($per_details['FDEGREE4'] != '' || $per_details['FDEGREE4'] != NULL)
{
$table2 .= '<tr nobr="true">
<td width="100" align="center">'.$per_details['FDEGREE4'].'</td>
<td width="420" align="left">'.$degdet[$per_details['FDEGREE4']].'</td>
</tr>';
}
if($per_details['FDEGREE5'] != '' || $per_details['FDEGREE5'] != NULL)
{
$table2 .= '<tr nobr="true">
<td width="100" align="center">'.$per_details['FDEGREE5'].'</td>
<td width="420" align="left">'.$degdet[$per_details['FDEGREE5']].'</td>
</tr>';
}
if($per_details['FDEGREE6'] != '' || $per_details['FDEGREE6'] != NULL)
{
$table2 .= '<tr nobr="true">
<td width="100" align="center">'.$per_details['FDEGREE6'].'</td>
<td width="420" align="left">'.$degdet[$per_details['FDEGREE6']].'</td>
</tr>';
}
$table2 .='</table>';
$pdf->SetX(11);
$pdf->writeHTML($table2, true, true, false, false, 'L');
//====================Personal Details====================================
$html = '<h3 style="background-color: #918988; color: rgb(255, 255, 255);"> Personal Details</h3>';
$x = $pdf->GetX();
$y = $pdf->GetY();
$pdf->writeHTMLCell(188,0,$x,$y,$html, false,1, false, true, '', false);
$pdf->ln(1);
$path = realpath(__DIR__ .'/..');
//var_dump($path.'/pget_photos'.'/'.$per_details['fphotopath']);
//var_dump($path.'/'.$per_details['fphotopath']);
$i= 1;
$table1 = '<style>
td {
border: 0.5px solid black;
}
.lable {
font-weight: bold;
}
</style>
<table cellpadding="3" cellspacing="0">
<tr nobr="true">
<td width="150" class="lable">Application No.</td>
<td width="270" colspan="2" style = "font-size:15px;">'.$per_details['FAPPNO'].'</td>
<td width="100" rowspan="5"><img width="100" height="100" src="'.$path.'/'.$per_details['FPHOTOPATH'].'" ></td>
</tr>';
$table1 .='<tr nobr="true">
<td width="150" class="lable">Name of the Applicant</td>
<td width="270" colspan="2">'.$per_details['FNAME'].'</td></tr>';
$table1 .='<tr nobr="true">
<td width="150" class="lable" >Father`s /Guardian`s Name</td>
<td width="270" colspan="2">'.$per_details['FFATNAME'].'</td></tr>';
$table1 .='<tr nobr="true">
<td width="150" class="lable">Mother`s Name</td>
<td width="270" colspan="2">'.$per_details['FMOTNAME'].'</td></tr>';
$table1 .='<tr nobr="true">
<td width="150" class="lable">Date of Birth</td>
<td width="135">'.$per_details['FDOB'].'</td>
<td width="70" class="lable">Gender</td>
<td width="65">'.$per_details['FGENDER'].'</td>
</tr>';
$table1 .='<tr nobr="true">
<td width="150" class="lable">Nationality</td>
<td width="135">'.$per_details['FNATIONAL'].'</td>
<td width="135" class="lable">Category</td>
<td width="100">'.$per_details['FCATEGORY'].'</td>
</tr>';
$table1 .='<tr nobr="true">
<td width="150" class="lable">Aadhaar No.</td>
<td width="135">'.$per_details['FAADHARNO'].'</td>
<td width="135" class="lable">Annual family Income</td>
<td width="100" >'.$per_details['FINCOME'].'</td>
</tr>';
$table1 .='<tr nobr="true">
<td width="150" class="lable">Online Scholarship (Post metric) Registration No</td>
<td width="370">'.$per_details['FPMREGNO'].'</td>
</tr>';
$table1 .= '</table>';
$pdf->SetX(11);
$pdf->writeHTML($table1, true, true, false, false, 'L');
$html = '<h3 style="background-color: #918988; color: rgb(255, 255, 255);"> Communication Details</h3>';
$x = $pdf->GetX();
$y = $pdf->GetY();
$pdf->writeHTMLCell(188,0,$x,$y,$html, false,1, false, true, '', false);
$pdf->ln(1);
$per_details['fperadd'] = $per_details['FPERMADD1'].' '.$per_details['FPERMADD2'].' '.$per_details['FPERMADD3'].' '.$per_details['FPERMDIST'].' '.$per_details['FPERMSTATE'].' - '.$per_details['FPERMPIN'];
$per_details['fcuradd'] = $per_details['FCURRADD1'].' '.$per_details['FCURRADD2'].' '.$per_details['FCURRADD3'].' '.$per_details['FCURRDIST'].' '.$per_details['FCURRSTATE'].' - '.$per_details['FCURRPIN'];
$table2 = '<style>
td {
border: 0.5px solid black;
}
.lable {
font-weight: bold;
}
</style>
<table cellpadding="3" cellspacing="0">
<tr nobr="true">
<td width="150" class="lable">Permanent Address</td>
<td width="370">'.$per_details['fperadd'].'</td>
</tr>';
$table2 .= '<tr nobr="true">
<td width="150" class="lable">Communication Address</td>
<td width="370">'.$per_details['fcuradd'].'</td>
</tr>';
$table2 .= '<tr nobr="true">
<td width="150" class="lable">Email Address</td>
<td width="370">'.$per_details['FEMAIL'].'</td>
</tr>';
$table2 .= '<tr nobr="true">
<td width="150" class="lable">Mobile No.</td>
<td width="370">'.$per_details['FMOBILENO'].'</td>
</tr>';
$table2 .= '</table>';
$pdf->SetX(11);
$pdf->writeHTML($table2, true, true, false, false, 'L');
//====================Degree Details====================================
$html = '<h3 style="background-color: #918988; color: rgb(255, 255, 255);"> Fee Details</h3>';
$x = $pdf->GetX();
$y = $pdf->GetY();
$pdf->SetMargins(10,30);
$pdf->writeHTMLCell(188,0,$x,$y,$html, false,1, false, true, '', false);
$pdf->ln(1);
$i = 1;
$head = '<style>
td {
border: 0.5px solid black;
}
</style>
<table cellpadding="3" cellspacing="0">';
//====================Subject Details====================================
$table2 = '<style>
td, th {
border: 0.5px solid black;
}
</style>
<table cellpadding="2" cellspacing="0">
<tr nobr="true"><th width="40" align="center"><b>Sl. No.</b></th>
<th width="360" align="center"><b>Fee Head</b></th>
<th width="120" align="center"><b>Amount</b></th>
</tr>';
$i=1;
$total = 0;
foreach ($fee_det as $key => $value)
{
$table2 .= '<tr nobr="true">
<td width="40" align="center">'.$i.'</td>
<td width="360" align="left">'.$value['FHEADCODE'].'</td>
<td width="120">'.$value['FAMOUNT'].'</td></tr>';
$total = $total+$value['FAMOUNT'];
$i++;
}
$table2 .= '<tr nobr="true">
<td width="400" collspan = "2" align="right"><b>Total</b></td>
<td width="120"><b>'.$total.'</b></td></tr>';
$table2 .='</table>';
$pdf->SetX(11);
$pdf->writeHTML($table2, true, true, false, false, 'L');
$pdf->AddPage("P");
$pdf->SetFont('Times','UB',10);
$this->degree = $degdet[$degree];
$pdf->cell(0,7,"Courses Preference : ".$degree." - ".$degdet[$degree],0,1,'C');
$pdf->SetFont('Times','',10);
$pdf->ln(4);
$html = '<h3 style="background-color: #918988; color: rgb(255, 255, 255);"> Basic Details</h3>';
$x = $pdf->GetX();
$y = $pdf->GetY();
$pdf->writeHTMLCell(188,0,$x,$y,$html, false,1, false, true, '', false);
$pdf->ln(2);
$pdf->SetX(11);
// $query = "SELECT fboardname FROM masboard WHERE fboardcode = '{$per_details['FUNIVNAME']}'";
// $obj_univ = $this->aobj_context->mobj_db->GetRow($query);
// $per_details['FUNIVNAME'] = $obj_univ['fboardname'];
$cnd = $per_details['FBCUETYPE'];
if($per_details['FBCUE'] == 'No')
$cnd = "";
$table4 = '<style>
td, th {
border: 0.5px solid black;
}
</style>
<table cellpadding="3" cellspacing="0">
<tr nobr="true">
<th width="420" align="center"><b>Special Category</b></th>
<th width="100" align="center" ><b>Yes / No</b></th>
</tr>
<tr nobr="true">
<td width="420"><b>Do you belong to Below Poverty Line Family (BPL)</b></td>
<td width="100">'.$per_details['FBPL'].'</td>
</tr>
<tr nobr="true">
<td width="420" ><b>Are you the single girl child to your parents? </b></td>
<td width="100" >'.$per_details['FOGIRL'].'</td>
</tr>
<tr nobr="true">
<td width="420" ><b>Have you studied 7 years in Karnataka?</b></td>
<td width="100" >'.$per_details['FKARSTUDY'].'</td>
</tr>
<tr nobr="true">
<td width="420" ><b>Are you a Kashmiri migrant?</b></td>
<td width="100" >'.$per_details['FKASHMIR'].'</td>
</tr>
<tr nobr="true">
<td width="420" ><b>Are you a student of Hyderabad-Karnataka?</b></td>
<td width="100" >'.$per_details['FHK'].'</td>
</tr>
<tr nobr="true">
<td width="420" ><b>Are you a student of Jammu & Kashmir State?</b></td>
<td width="100" >'.$per_details['FJK'].'</td>
</tr>
<tr nobr="true">
<td width="420" ><b>Have you studied in Rural Area upto 10th Std?</b></td>
<td width="100" >'.$per_details['FRURAL'].'</td>
</tr>
<tr nobr="true">
<td width="420" ><b>Have you studied in Kannada Medium upto 10th Std?</b></td>
<td width="100" >'.$per_details['FKANNADA'].'</td>
</tr>
<tr nobr="true">
<td width="420" ><b>Are you a son/daughter of B’luru Central University Employee?</b></td>
<td width="100" >'.$per_details['FBCUE'].' '.$cnd.'</td>
</tr>
<tr nobr="true">
<td width="420" ><b>Do you claim Sports quota?</b></td>
<td width="100" >'.$per_details['FSPORTS'].'</td>
</tr>
<tr nobr="true">
<td width="420" ><b>Do you claim Cultural quota?</b></td>
<td width="100" >'.$per_details['FCULTURE'].'</td>
</tr>
<tr nobr="true">
<td width="420" ><b>Do you claim NCC quota?</b></td>
<td width="100" >'.$per_details['FNCC'].'</td>
</tr>
<tr nobr="true">
<td width="420" ><b>Do you claim NSS quota?</b></td>
<td width="100" >'.$per_details['FNSS'].'</td>
</tr>
<tr nobr="true">
<td width="420" ><b>Do you claim Defence quota?</b></td>
<td width="100" >'.$per_details['FDEFENCE'].'</td>
</tr>
<tr nobr="true">
<td width="420" ><b>Are you Differently Abled / Blind ?</b></td>
<td width="100" >'.$per_details['FHANDICAP'].'</td>
</tr>
';
$table4 .= '</table>';
$pdf->SetX(11);
$pdf->writeHTML($table4, true, true, false, false, 'L');
$html = '<h3 style="background-color: #918988; color: rgb(255, 255, 255);"> Previous Academic Details</h3>';
$x = $pdf->GetX();
$y = $pdf->GetY();
$pdf->writeHTMLCell(188,0,$x,$y,$html, false,1, false, true, '', false);
$pdf->ln(2);
$pdf->SetX(11);
$table5 = '<style>
td, th {
border: 0.5px solid black;
}
</style>
<table cellpadding="3" cellspacing="0">';//Percentage
$table5 .= '<tr nobr="true">
<td width="100"><b>University Studied</b></td>
<td width="420">'.$per_details['FQUNIV'].'</td>
</tr>';
$table5 .= '<tr nobr="true">
<td width="100"><b>Degree</b></td>
<td width="420">'.$per_details['FQDEGREE'].'</td>
</tr>';
$table5 .= '<tr nobr="true">
<td width="100"><b>Reg. No.</b></td>
<td width="420">'.$per_details['FQREGNO'].'</td>
</tr>';
$table5 .= '<tr nobr="true">
<td width="100"><b>Class- I/ II / III</b></td>
<td width="420">'.$per_details['FQCLASS'].'</td>
</tr>';
$table5 .= '<tr nobr="true">
<td width="100"><b>Passing month / year</b></td>
<td width="420">'.$per_details['FQMONTH'].' / '.$per_details['FQYEAR'].'</td>
</tr>';
$table5 .= '<tr nobr="true">
<td width="100"><b>Sec. Marks</b></td>
<td width="80">'.$per_details['FQSECMARKS'].'</td>
<td width="80"><b>Max. Marks</b></td>
<td width="80">'.$per_details['FQMAXMARKS'].'</td>
<td width="80"><b>Percentage</b></td>
<td width="100">'.$per_details['FQPERCENTAGE'].'</td>
</tr>';
$table5 .= '<tr nobr="true">
<td width="420"><b>Have you studied Mathematics in Pre-University [10+2]?</b></td>
<td width="100">'.$per_details['FPUMAT'].'</td>
</tr>';
$table5 .= '<tr nobr="true">
<td width="420"><b>Have you studied Biology in Pre-University [10+2]?</b></td>
<td width="100">'.$per_details['FPUBIO'].'</td>
</tr>';
$table5 .='</table>';
//$pdf->SetX(12);
$pdf->SetX(11);
$pdf->writeHTML($table5, true, false, true, false, 'L');
$pdf->ln(2);
$pdf->AddPage("P");
$pdf->SetFont('Times','UB',10);
$this->degree = $degdet[$degree];
$pdf->cell(0,7,"Courses Preference : ".$degree." - ".$degdet[$degree],0,1,'C');
$pdf->SetFont('Times','',10);
$pdf->ln(4);
$pdf->cell(0,7,"Languages Deails",0,1,'L');
$table5 = '<style>
td, th {
border: 0.5px solid black;
}
</style>
<table cellpadding="3" cellspacing="0">';
$table5 .= '<tr nobr="true">
<td width="200"><b>'.$per_details['FLANG1'].'</b></td>
<td width="80">Sec. Marks</td>
<td width="80">'.$per_details['FLANG1MS'].'</td>
<td width="80">Max. Marks</td>
<td width="80"><b>'.$per_details['FLANG1MM'].'</b></td>
</tr>';
if($per_details['FLANG2'] != '' || $per_details['FLANG2'] != NULL)
{
$table5 .= '<tr nobr="true">
<td width="200"><b>'.$per_details['FLANG2'].'</b></td>
<td width="80">Sec. Marks</td>
<td width="80">'.$per_details['FLANG2MS'].'</td>
<td width="80">Max. Marks</td>
<td width="80"><b>'.$per_details['FLANG2MM'].'</b></td>
</tr>';
}
$table5 .='</table>';
$pdf->writeHTML($table5, true, false, true, false, 'L');
$pdf->ln(2);
$pdf->cell(0,7,"Optionals Deails",0,1,'L');
$table5 = '<style>
td, th {
border: 0.5px solid black;
}
</style>
<table cellpadding="3" cellspacing="0">';
$table5 .= '<tr nobr="true">
<td width="200"><b>'.$per_details['FOPT1'].'</b></td>
<td width="80">Sec. Marks</td>
<td width="80">'.$per_details['FOPT1MS'].'</td>
<td width="80">Max. Marks</td>
<td width="80"><b>'.$per_details['FOPT1MM'].'</b></td>
</tr>';
if($per_details['FOPT2'] != '' || $per_details['FOPT2'] != NULL)
{
$table5 .= '<tr nobr="true">
<td width="200"><b>'.$per_details['FOPT2'].'</b></td>
<td width="80">Sec. Marks</td>
<td width="80">'.$per_details['FOPT2MS'].'</td>
<td width="80">Max. Marks</td>
<td width="80"><b>'.$per_details['FOPT2MM'].'</b></td>
</tr>';
}
if($per_details['FOPT3'] != '' || $per_details['FOPT3'] != NULL)
{
$table5 .= '<tr nobr="true">
<td width="200"><b>'.$per_details['FOPT3'].'</b></td>
<td width="80">Sec. Marks</td>
<td width="80">'.$per_details['FOPT3MS'].'</td>
<td width="80">Max. Marks</td>
<td width="80"><b>'.$per_details['FOPT3MM'].'</b></td>
</tr>';
}
if($per_details['FOPT4'] != '' || $per_details['FOPT4'] != NULL)
{
$table5 .= '<tr nobr="true">
<td width="200"><b>'.$per_details['FOPT4'].'</b></td>
<td width="80">Sec. Marks</td>
<td width="80">'.$per_details['FOPT4MS'].'</td>
<td width="80">Max. Marks</td>
<td width="80"><b>'.$per_details['FOPT4MM'].'</b></td>
</tr>';
}
$table5 .='</table>';
$pdf->writeHTML($table5, true, false, true, false, 'L');
if(strtoupper($per_details['FPGDEGREE']) == 'YES')
{
$pdf->cell(0,7,"Postgraduate Degree Details",0,1,'L');
$table5 = '<style>
td, th {
border: 0.5px solid black;
}
</style>
<table cellpadding="3" cellspacing="0">';//Percentage
$table5 .= '<tr nobr="true">
<td width="100"><b>University Studied</b></td>
<td width="420">'.$per_details['FPGUNIVTYPE'].'</td>
</tr>';
$table5 .= '<tr nobr="true">
<td width="100"><b>Reg. No.</b></td>
<td width="420">'.$per_details['FPGREGNO'].'</td>
</tr>';
$table5 .= '<tr nobr="true">
<td width="100"><b>Class- I/ II / III</b></td>
<td width="420">'.$per_details['FPGQCLASS'].'</td>
</tr>';
$table5 .= '<tr nobr="true">
<td width="100"><b>Passing month / year</b></td>
<td width="420">'.$per_details['FPGMONTH'].' / '.$per_details['FPGYEAR'].'</td>
</tr>';
$table5 .= '<tr nobr="true">
<td width="130"><b>Sec. Marks</b></td>
<td width="130">'.$per_details['FPGSECMARKS'].'</td>
<td width="130"><b>Max. Marks</b></td>
<td width="130">'.$per_details['FPGMAXMARKS'].'</td>
</tr>';
$table5 .='</table>';
//$pdf->SetX(12);
$pdf->SetX(11);
$pdf->writeHTML($table5, true, false, true, false, 'L');
$pdf->ln(2);
}
if($per_details['FOTHEXAM'] != '' || $per_details['FOTHEXAM'] != NULL)
{
$table5 = '<style>
td, th {
border: 0.5px solid black;
}
</style>
<table cellpadding="3" cellspacing="0">';//Percentage
$table5 .= '<tr nobr="true">
<td width="100"><b>Other examinations passed?</b></td>
<td width="420">'.$per_details['FOTHEXAM'].'</td>
</tr>';
$table5 .='</table>';
$pdf->SetX(11);
$pdf->writeHTML($table5, true, false, true, false, 'L');
$pdf->ln(2);
}
if($per_details['FSPONSOR'] != '' || $per_details['FSPONSOR'] != NULL)
{
$table5 = '<style>
td, th {
border: 0.5px solid black;
}
</style>
<table cellpadding="3" cellspacing="0">';//Percentage
$table5 .= '<tr nobr="true">
<td width="100"><b>If you are a Sponsored candidate – mention Organization’s Name</b></td>
<td width="420">'.$per_details['FSPONSOR'].'</td>
</tr>';
$table5 .='</table>';
$pdf->SetX(11);
$pdf->writeHTML($table5, true, false, true, false, 'L');
$pdf->ln(2);
}
if($per_details['FOTHINFO'] != '' || $per_details['FOTHINFO'] != NULL)
{
$table5 = '<style>
td, th {
border: 0.5px solid black;
}
</style>
<table cellpadding="3" cellspacing="0">';//Percentage
$table5 .= '<tr nobr="true">
<td width="100"><b>Any other information you would like to furnish?</b></td>
<td width="420">'.$per_details['FOTHINFO'].'</td>
</tr>';
$pdf->SetX(11);
$table5 .='</table>';
$pdf->writeHTML($table5, true, false, true, false, 'L');
$pdf->ln(2);
}
$pdf->ln(10);
if($pdf->GetY() > 210)
{
$pdf->AddPage();
}
$pdf->SetFont('Times','BU',10);
$pdf->Cell(180,7,'Declaration by the Candidate',0,1,'C');
$str = "I hereby declare that the above information furnished by me is true. I have not suppressed any information. Bengaluru Central University can initiate action against me, if I have furnished any false information";
$pdf->SetFont('Times','',11);
$pdf->MultiCell(180,4,$str,0,'J');
$pdf->ln(20);
$pdf->SetFont('Times','B',10);
$pdf->Cell(160,4,'Date',0,0,'L');
$pdf->Cell(30,4,'Signature of the Student ',0,1,'R');
$pdf->ln(20);
if($pdf->GetY() > 210)
{
$pdf->AddPage();
}
$pdf->SetLineStyle(array('width' => 0.5, 'cap' => 'butt', 'join' => 'miter', 'dash' => 4, 'color' => "black"));
$pdf->Cell(0,7,'',"T",1,'C');
$pdf->SetFont('Times','BU',13);
$pdf->Cell(0,7,' Student Acknowledgement ',0,1,'C');
$pdf->SetFont('Times','',11);
$pdf->Cell(45,7,'Application No.',0,0,'L');
$pdf->Cell(80,7,": ".$per_details['FAPPNO'],0,1,'L');
$pdf->Cell(45,7,'Student Name',0,0,'L');
$pdf->Cell(80,7,": ".$per_details['FNAME'],0,1,'L');
$pdf->Cell(45,7,'Amount Paid',0,0,'L');
$pdf->Cell(80,7,": ".$per_details['FTOTFEE'],0,1,'L');
$pdf->Cell(45,7,'Payment Type ',0,0,'L');
$pdf->Cell(80,7,": ".$per_details['FPAYTYPE'],0,1,'L');
$pdf->Cell(45,7,'Payment Transcation ID ',0,0,'L');
$pdf->Cell(80,7,": ".$per_details['FPAYID'],0,1,'L');
$html = '<h3 style="background-color: #918988; color: rgb(255, 255, 255);">Course for which you are appearing for entrance test</h3>';
$x = $pdf->GetX();
$y = $pdf->GetY();
$pdf->SetMargins(10,30);
$pdf->writeHTMLCell(188,0,$x,$y,$html, false,1, false, true, '', false);
$pdf->ln(1);
$i = 1;
$head = '<style>
td {
border: 0.5px solid black;
}
</style>
<table cellpadding="3" cellspacing="0">';
//====================Subject Details====================================
$table2 = '<style>
td, th {
border: 0.5px solid black;
}
</style>
<table cellpadding="2" cellspacing="0">
<tr nobr="true"><th width="100" align="center"><b>Courses Code</b></th>
<th width="420" align="center"><b>Courses Applied for</b></th>
</tr>';
if($per_details['FDEGREE1'] != '' || $per_details['FDEGREE1'] != NULL)
{
$table2 .= '<tr nobr="true">
<td width="100" align="center">'.$per_details['FDEGREE1'].'</td>
<td width="420" align="left">'.$degdet[$per_details['FDEGREE1']].'</td>
</tr>';
}
if($per_details['FDEGREE2'] != '' || $per_details['FDEGREE2'] != NULL)
{
$table2 .= '<tr nobr="true">
<td width="100" align="center">'.$per_details['FDEGREE2'].'</td>
<td width="420" align="left">'.$degdet[$per_details['FDEGREE2']].'</td>
</tr>';
}
if($per_details['FDEGREE3'] != '' || $per_details['FDEGREE3'] != NULL)
{
$table2 .= '<tr nobr="true">
<td width="100" align="center">'.$per_details['FDEGREE3'].'</td>
<td width="420" align="left">'.$degdet[$per_details['FDEGREE3']].'</td>
</tr>';
}
if($per_details['FDEGREE4'] != '' || $per_details['FDEGREE4'] != NULL)
{
$table2 .= '<tr nobr="true">
<td width="100" align="center">'.$per_details['FDEGREE4'].'</td>
<td width="420" align="left">'.$degdet[$per_details['FDEGREE4']].'</td>
</tr>';
}
if($per_details['FDEGREE5'] != '' || $per_details['FDEGREE5'] != NULL)
{
$table2 .= '<tr nobr="true">
<td width="100" align="center">'.$per_details['FDEGREE5'].'</td>
<td width="420" align="left">'.$degdet[$per_details['FDEGREE5']].'</td>
</tr>';
}
if($per_details['FDEGREE6'] != '' || $per_details['FDEGREE6'] != NULL)
{
$table2 .= '<tr nobr="true">
<td width="100" align="center">'.$per_details['FDEGREE6'].'</td>
<td width="420" align="left">'.$degdet[$per_details['FDEGREE6']].'</td>
</tr>';
}
$table2 .='</table>';
$pdf->SetX(11);
$pdf->writeHTML($table2, true, true, false, false, 'L');
$pdf->ln(20);
$pdf->SetFont('Times','B',10);
$pdf->Cell(160,4,'Date',0,0,'L');
$pdf->Cell(30,4,'Signature of the Document Receiver ',0,1,'R');
}
function SendOutput()
{
$this->pdf->Output("Application_letter{$this->current_date}.pdf","D");
}
}
function applicationFormPGReport($aobj_context)
{
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$query = "select distinct fdegree,fdescpn from degree where fdegree like 'm%'";
$result = $aobj_context->mobj_db->GetAll($query);
$degdet = [];
foreach($result as $value)
{
$degdet[$value['fdegree']] = $value['fdescpn'];
}
$get_coll_name="select FUNIVNAME as 'FUNIVNAME',FUNIVCODE,
FUNIVADD1 as 'state', pdf_logo_path,
ifnull(FEXAMAPPREQ,'F') as FEXAMAPPREQ From control";
$lobj_get_coll_name=$aobj_context->mobj_db->GetRow($get_coll_name);
$appno = trim($aobj_context->mobj_data["appno"]);
$per_details_query = "select * from pgstudadm where fappno = '{$appno}' and ifnull(FPAYSTATUS,'') = 'success'";
$per_details = $aobj_context->mobj_db->GetRow($per_details_query);
$cnt = 0;
$class_obj = new AddmissionApplication();
$class_obj->DefaultConstructor($aobj_context);
$query = "select * from admfeedetl where fappno = '{$appno}'";
$fee_det = $aobj_context->mobj_db->GetAll($query);
if($per_details['FDEGREE1'] != '' || $per_details['FDEGREE1'] != NULL)
{
$class_obj->writeApplication($per_details, $fee_det,$degdet,$per_details['FDEGREE1']);
}
if($per_details['FDEGREE2'] != '' || $per_details['FDEGREE2'] != NULL)
{
$class_obj->writeApplication($per_details, $fee_det,$degdet,$per_details['FDEGREE2']);
}
if($per_details['FDEGREE3'] != '' || $per_details['FDEGREE3'] != NULL)
{
$class_obj->writeApplication($per_details, $fee_det,$degdet,$per_details['FDEGREE3']);
}
if($per_details['FDEGREE4'] != '' || $per_details['FDEGREE4'] != NULL)
{
$class_obj->writeApplication($per_details, $fee_det,$degdet,$per_details['FDEGREE4']);
}
if($per_details['FDEGREE5'] != '' || $per_details['FDEGREE5'] != NULL)
{
$class_obj->writeApplication($per_details, $fee_det,$degdet,$per_details['FDEGREE5']);
}
if($per_details['FDEGREE6'] != '' || $per_details['FDEGREE6'] != NULL)
{
$class_obj->writeApplication($per_details, $fee_det,$degdet,$per_details['FDEGREE6']);
}
$class_obj->SendOutput();
}
?>
|