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.141.25.125
<?php
function loadPreviewDetails($aobj_context)
{
session_start();
$userid = $_SESSION['userid'];
if($userid == '')
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$appno = trim($aobj_context->mobj_data["appno"]);
$postname = trim($aobj_context->mobj_data["postname"]);
$post_subject = trim($aobj_context->mobj_data["post_subject"]);
$ug = 0;
$mphil = 0;
$phd = 0;
$pg = 0;
$jre = 0;
$net = 0;
$slet = 0;
$query = "select p.*,GROUP_CONCAT(DISTINCT flanguage,'->',fwrite,'->',fread,'->',fspoken) AS lang,c.fcatcode as fcatcode
from perdetl p inner join languagedetl l on l.fuserid = p.fuserid
inner join mascat c on p.fcatcode = c.fcatid
where p.fuserid = '{$userid}'
group by p.fuserid";
$results = $aobj_context->mobj_db->GetRow($query);
$query99 = "select ifnull(sum(if(fenttype = 'rcphd',`fpoints`,0)),0) as cat1,
ifnull(sum(if(fenttype = 'rcotj',`fpoints`,0)),0) as cat2,
ifnull(sum(if(fenttype = 'rcfl',`fpoints`,0)),0) as cat2b
from researchexp
where fappno = '{$appno}' and fuserid = '{$userid}'";
$results99 = $aobj_context->mobj_db->GetRow($query99);
$cat1 = $results99['cat1'];
$cat2 = $results99['cat2'];
$cat2b = $results99['cat2b'];
$query99 = "select ifnull(sum(if(fenttype = 'rcpout',`fpoints`,0)),0) as cat5a,
ifnull(sum(if(fenttype = 'rccons',`fpoints`,0)),0) as cat4c,
ifnull(sum(if(fenttype = 'rcspon',`fpoints`,0)),0) as cat4b,
ifnull(sum(if(fenttype = 'rcconslt',`fpoints`,0)),0) as cat4d
from rcprojct
where fappno = '{$appno}' and fuserid = '{$userid}'";
$results99 = $aobj_context->mobj_db->GetRow($query99);
$cat4c = $results99['cat4c'];
$cat4b = $results99['cat4b'];
$cat4d = $results99['cat4d'];
$query99 = "select
ifnull(sum(if(fenttype = 'rcpout' && ffaculty = 'Major Policy Document Prepared for International bodies like WHO / UNO / UNESCO / UNICEF ect. central / state / Govt. / Local Bodies',`fpoints`,0)),0) as cat5b,
ifnull(sum(if(fenttype = 'rcpout' && ffaculty = 'Patent / Technology Transfer / Product / Process',`fpoints`,0)),0) as cat5a
from rcprojct
where fappno = '{$appno}' and fuserid = '{$userid}' and fenttype = 'rcpout'";
$results99 = $aobj_context->mobj_db->GetRow($query99);
$cat5a = $results99['cat5a'];
$cat5b = $results99['cat5b'];
$query99 = "select ifnull(sum(if(fenttype = 'rcgm',`fpoints`,0)),0) as mphil,
ifnull(sum(if(fenttype = 'rcgp',`fpoints`,0)),0) as cat4a,
ifnull(sum(if(fenttype = 'rcfs',`fpoints`,0)),0) as cat5c
from rechguid
where fappno = '{$appno}' and fuserid = '{$userid}'";
$results99 = $aobj_context->mobj_db->GetRow($query99);
$mphil1 = $results99['mphil'];
$cat4a = $results99['cat4a'];
$cat5c = $results99['cat5c'];
$query99 = "select ifnull(sum(if(fenttype = 'rcil',`fpoints`,0)),0) as cat6,
ifnull(sum(if(fenttype = 'rcde',`fpoints`,0)),0) as cat3,
ifnull(sum(if(fenttype = 'rcec',`fpoints`,0)),0) as cat3d
from rclecture
where fappno = '{$appno}' and fuserid = '{$userid}'";
$results99 = $aobj_context->mobj_db->GetRow($query99);
$cat6 = $results99['cat6'];
$cat3 = $results99['cat3'];
$cat3d = $results99['cat3d'];
$acd = 0;
$teach = 0;
$table.='<table class="table table-bordered" style="width:90%;" id="postdettable">';
$table.='<thead>';
$table.='<th colspan=13 style="text-align:center;background-color:lightblue;font-family:italic;font-size:110%;">API Summary Points</th> ';
$table.='</thead>';
$table.='<tbody>';
$table.='<tr>';
if($postname == 'ASSISTANT PROFESSOR')
{
$table.='<td style = "text-align:center;" >Acad. Score</td>';
$table.='<td style = "text-align:center;" >Teac. Score</td>';
$query99 = "select ifnull(sum(if(fenttype = 'teach',`fpoints`,0)),0) as teach,
ifnull(sum(if(fenttype = 'phd',`fpoints`,0)),0) as phd
from expdetl
where fappno = '{$appno}' and fuserid = '{$userid}'";
$results99 = $aobj_context->mobj_db->GetRow($query99);
$teach1 = $results99['teach'];
$teachphd = $results99['phd'];
$teach = $teach1+$teachphd;
$query99 = "select ifnull(sum(if(fenttype = 'bachelor',`fpoints`,0)),0) as bachelor,
ifnull(sum(if(fenttype = 'masters',`fpoints`,0)),0) as masters
from qualdetl
where fuserid = '{$userid}'";
$results99 = $aobj_context->mobj_db->GetRow($query99);
$ug = $results99['bachelor'];
$pg = $results99['masters'];
$query99 = "select ifnull(sum(if(fenttype = 'mphil',`fpoints`,0)),0) as mphil,
ifnull(sum(if(fenttype = 'phd',`fpoints`,0)),0) as phd
from phddetl
where fuserid = '{$userid}'";
$results99 = $aobj_context->mobj_db->GetRow($query99);
$mphil = $results99['mphil'];
$phd = $results99['phd'];
$sum = $phd+$mphil;
if($sum > 30)
$mphil = 0;
$jre = $results['fjrpoints'];
$net = $results['fnetpoints'];
$slet = $results['fsletpoints'];
$sum2 = $slet+$net+$slet;
if($sum2 > 7)
{
$jre = 0;
$net = 0;
$slet = 7;
}
$acd = $jre+$net+$slet+$ug+$pg+$mphil+$phd;
}
$table.='<td style = "text-align:center;" >Cat-1</td>';
$table.='<td style = "text-align:center;" >Cat-2</td>';
$table.='<td style = "text-align:center;" >Cat-3</td>';
$table.='<td style = "text-align:center;" colspan = "3">Cat-4</td>';
$table.='<td style = "text-align:center;" colspan = "3">Cat-5</td>';
$table.='<td style = "text-align:center;" >Cat-6</td>';
$table.='<td style = "text-align:center;" >Total</td>';
$table.='</tr>';
$table.='<tr>';
if($postname == 'ASSISTANT PROFESSOR')
{
$table.='<td></td>';
$table.='<td></td>';
}
$table.='<td></td>';
$table.='<td></td>';
$table.='<td></td>';
$table.='<td style = "text-align:center;" >Ph.D</td>';
$table.='<td style = "text-align:center;" >M.Phil / PG Dessertation</td>';
$table.='<td style = "text-align:center;" >(b),(c)&(d)</td>';
$table.='<td style = "text-align:center;" >(a)</td>';
$table.='<td style = "text-align:center;">(b)</td>';
$table.='<td style = "text-align:center;">(c)</td>';
$table.='<td></td>';
$table.='<td></td>';
$table.='</tr>';
// $table.='<td style="width:10%;text-align:center;">I</td>';
// $table.="<td style='width:10%'>II</td>";
// $table.='<td style="width:10%;text-align:center;">IIB</td>';
// $table.='<td style="width:10%;text-align:center;">III</td>';
// $table.="<td style='width:10%;text-align:center;'>IIID</td>";
// $table.='<td style="width:10%;text-align:center;">IVA</td>';
// $table.='<td style="width:10%;text-align:center;">M.Phil</td>';
// $table.='<td style="width:10%;text-align:center;">IVB</td>';
// $table.='<td style="width:10%;text-align:center;">IVC</td>';
// $table.='<td style="width:10%;text-align:center;">IVD</td>';
// $table.='<td style="width:10%;text-align:center;">VA</td>';
// $table.='<td style="width:10%;text-align:center;">VC</td>';
// $table.='<td style="width:10%;text-align:center;">VI</td>';
// $table.='</tr>';
$cat2tot = $cat2+$cat2b;
$cat3tot = $cat3+$cat3d;
$cat4tot = $cat4b+$cat4c+$cat4d;
$tot = $cat2tot+$cat3tot+$cat4tot+$cat1+$mphil1+$cat4a+$cat5a+$cat5b+$cat5c+$cat6+$acd+$teach;
$table.='<tr>';
if($postname == 'ASSISTANT PROFESSOR')
{
$table.="<td style = 'text-align:center;' >{$acd}</td>";
$table.="<td style = 'text-align:center;' >{$teach}</td>";
}
$table.="<td style='width:10%;text-align:center;'>{$cat1}</td>";
$table.="<td style='width:10%;text-align:center;'>{$cat2tot}</td>";
//$table.="<td style='width:10%;text-align:center;'>{$cat2b}</td>";
$table.="<td style='width:10%;text-align:center;'>{$cat3tot}</td>";
//$table.="<td style='width:10%;text-align:center;'>{$cat3d}</td>";
$table.="<td style='width:10%;text-align:center;'>{$cat4a}</td>";
$table.="<td style='width:10%;text-align:center;'>{$mphil1}</td>";
$table.="<td style='width:10%;text-align:center;'>{$cat4tot}</td>";
// $table.="<td style='width:10%;text-align:center;'>{$cat4c}</td>";
// $table.="<td style='width:10%;text-align:center;'>{$$tot}</td>";
$table.="<td style='width:10%;text-align:center;'>{$cat5a}</td>";
$table.="<td style='width:10%;text-align:center;'>{$cat5b}</td>";
$table.="<td style='width:10%;text-align:center;'>{$cat5c}</td>";
$table.="<td style='width:10%;text-align:center;'>{$cat6}</td>";
$table.="<td style='width:10%;text-align:center;'>{$tot}</td>";
$table.='</tr>';
$table.='</tbody>';
$table.='</table>';
$table.='<p><b>Note : Score calculated by the system is provisional. Score calculated by the screening committee shall be final score.</b></p><br>';
$query2 = "select * from qualdetl where fuserid = '{$userid}'";
$results2 = $aobj_context->mobj_db->GetAll($query2);
$lan = $results['lang'];
$lang = explode(',',$lan);
$div3.= "<span>Language</span>";
$div3.= "<span>Write</span>";
$div3.= "<span>Read</span>";
$div3.= "<span>Spoken</span>";
foreach($lang as $value)
{
$lang = explode('->',$value);
$div4.="<span>{$lang[0]}, </span>";
$div1.="<span>{$lang[1]}, </span>";
$div2.="<span>{$lang[2]}, </span>";
$div5.="<span>{$lang[3]}, </span>";
}
if($results)
{
$table.='<table class="table table-bordered" style="width:90%;" id="postdettable">';
$table.='<thead>';
$table.='<th colspan=6 style="text-align:center;font-weight:bold;background-color:lightblue;font-family:italic;font-size:110%;">Personal Details</th> ';
$table.='</thead>';
$table.='<tbody>';
$table.='<tr>';
$table.='<td style="width:10%;font-weight: bold;font-family:italic;">Name</td>';
$table.="<td style='width:10%'>{$results['fname']}</td>";
$table.='<td style="width:10%;font-weight: bold;;font-family:italic;">Date of Birth</td>';
$table.="<td style='width:10%'>{$results['fdob']}</td>";
$table.='<td style="width:10%;font-weight: bold;font-family:italic;">Age</td>';
$table.="<td style='width:10%'>{$results['fage']}</td></tr>";
$table.='<tr>';
$table.='<td style="width:10%;font-weight: bold;font-family:italic;">Place of Birth</td>';
$table.="<td style='width:10%'>{$results['fbirthplace']}</td>";
$table.='<td style="width:10%;font-weight: bold;font-family:italic;"> Father`s Name</td>';
$table.="<td style='width:10%'>{$results['ffatname']}</td>";
$table.='<td style="width:10%;font-weight: bold;font-family:italic;"> Mother`s Name </td>';
$table.="<td style='width:10%'>{$results['fmotname']}</td></tr>";
$table.='<tr>';
$table.='<td style="width:10%;font-weight: bold;font-family:italic;">Religion</td>';
$table.="<td style='width:10%'>{$results['freligion']}</td>";
$table.='<td style="width:10%;font-weight: bold;font-family:italic;"> Nationality</td>';
$table.="<td style='width:10%'>{$results['fnational']}</td>";
$table.='<td style="width:10%;font-weight: bold;font-family:italic;"> Gender</td>';
$table.="<td style='width:10%'>{$results['fgender']}</td></tr>";
$table.='<tr>';
$table.='<td style="width:10%;font-weight: bold;">Category</td>';
$table.="<td style='width:10%'>{$results['fcatcode']}</td>";
$table.='<td style="width:10%;font-weight: bold;"> Marital Status </td>';
$table.="<td style='width:10%'>{$results['fmarstatus']}</td>";
$table.='<td style="width:10%;font-weight: bold;">Aadhar No.</td>';
$table.="<td style='width:10%'>{$results['faadhar']}</td></tr>";
$comadd = $results['fcomadd1'].' '.$results['fcomadd2'].''.$results['fcomadd3'].''.$results['fcomadd4'];
$peradd = $results['fperadd1'].' '.$results['fperadd2'].''.$results['fperadd3'].''.$results['fperadd4'];
$table.='<tr>';
$table.='<td style="width:10%;font-weight: bold;">Address for Correspondence</td>';
$table.="<td style='width:10%'>{$comadd}</td>";
$table.='<td style="width:10%;font-weight: bold;">Address for Correspondence</td>';
$table.="<td style='width:10%'>{$peradd}</td>";
$table.='<td style="width:10%;font-weight: bold;"> Marital Status </td>';
$table.="<td style='width:10%'>{$results['fmarstatus']}</td>";
$table.="</tr>";
$table.='<td style="width:10%;font-weight: bold;"> If physically challenged,indicate relevant particulars</td>';
$table.="<td style='width:10%'>{$results['fphtype']}</td>";
$table.='<td style="width:10%;font-weight: bold;">Email</td>';
$table.="<td style='width:10%'>{$results['femailid']}</td>";
$table.='<td style="width:10%;font-weight: bold;">Phone No. </td>';
$table.="<td style='width:10%'>{$results['fphone']}</td></tr>";
$table.="</tr>";
$table.='<td style="width:10%;font-weight: bold;">Mobile No.</td>';
$table.="<td style='width:10%'>{$results['fmobile']}</td>";
$table.='<td style="width:10%;font-weight: bold;" >Languages Known</td>';
//$table.="<td style='width:10%' colspan=3><div><b>{$div4}</b></div><div>{$div4}</div><div>{$div1}</div><div>{$div2}</div><div>{$div5}</div> </td></tr></tbody></table><br>";
$table.="<td style='width:10%' colspan=3><div><b>{$div4}</b></div> </td></tr></tbody></table><br>";
$table.='<table class="table table-bordered" style="width:90%;" id="postdettable">';
$table.='<thead>';
$table.='<th colspan=8 style="text-align:center;background-color:lightblue;font-family:italic;font-size:110%;">Educational details</th>';
$table.='</thead>';
$table.='<tbody>';
$table.='<tr>';
$table.='<td style="width:10%;font-weight: bold;">Degree</td>';
$table.="<td style='width:10%'>Name of the Board / University</td>";
$table.='<td style="width:10%;font-weight: ;">Year</td>';
$table.="<td style='width:10%'>Max. Marks</td>";
$table.='<td style="width:10%;font-weight: ;">Sec. Marks</td>';
$table.="<td style='width:10%'>Percentage / CGPA</td>";
$table.='<td style="width:10%;font-weight: ;">Division</td>';
$table.='<td style="width:10%;font-weight: ;">Subject studied</td>';
$table.='</tr>';
$query2 = "select * from qualdetl where fuserid = '{$userid}' order by fenttype";
$results2 = $aobj_context->mobj_db->GetAll($query2);
foreach($results2 as $value)
{
$table.='<tr>';
$table.="<td style='width:10%;font-weight: bold;'>{$value[fdegree]}</td>";
$table.="<td style='width:10%'>{$value[funivname]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fyear]}</td>";
$table.="<td style='width:10%'>{$value[fmaxmarks]}</td>"; //
$table.="<td style='width:10%;font-weight: ;'>{$value[fsecmarks]}</td>";
$table.="<td style='width:10%'>{$value[fpercentage]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fdivision]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fsubjects]}</td>";
$table.='</tr>';
}
$table.='</table><br>';
$query2 = "select * from phddetl where fuserid = '{$userid}' order by fenttype";
$results3 = $aobj_context->mobj_db->GetAll($query2);
$table.='<table class="table table-bordered" style="width:90%;" id="postdettable">';
$table.='<tr>';
$table.="<td style='width:10%;font-weight: bold;'>Degree</td>";
$table.="<td style='width:10%;font-weight: bold;'>Date of Registration / Admission</td>";
$table.="<td style='width:10%;font-weight: bold;'>Date of Submission</td>";
$table.="<td style='width:10%;font-weight: bold;'>Date of Award</td>";
$table.="<td style='width:10%;font-weight: bold;'>University / Institute</td>";
$table.="<td style='width:10%;font-weight: bold;'>Thesis / DissertationTitle</td>";
$table.="<td style='width:10%;font-weight: bold;'>Overall % / GP(Out of 10)</td>";
$table.='</tr>';
foreach($results3 as $value)
{
$table.='<tr>';
$table.="<td style='width:10%;font-weight: bold;'>{$value[fdegree]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fdor]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fdos]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fdoa]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[funivname]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[ftitle]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fpercent]}</td>";
$table.='</tr>';
}
$table.="</table>";
$table.='<table class="table table-bordered" style="width:90%;" id="postdettable">';
$table.='<tr>';
$table.="<td style='width:10%;font-weight: bold;'>Details of JRF /NET / SLET</td>";
$table.="<td style='width:10%;font-weight: bold;'>NET Subject</td>";
$table.="<td style='width:10%;font-weight: bold;'>Certificate No. / Roll No.</td>";
$table.="<td style='width:10%;font-weight: bold;'>Year of Passing</td>";
$table.='</tr>';
$table.='<tr>';
$table.="<td style='width:10%;font-weight: bold;'>NET - JRF</td>";
$table.="<td style='width:10%;font-weight: ;'>{$results[fjrfsub]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$results[fjrfcertno]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$results[fjrfpassmth]}</td>";
$table.='</tr>';
$table.='<tr>';
$table.="<td style='width:10%;font-weight: bold;'>NET</td>";
$table.="<td style='width:10%;font-weight: ;'>{$results[fnetsub]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$results[fnetcertno]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$results[fnetpassmth]}</td>";
$table.='</tr>';
$table.='<tr>';
$table.="<td style='width:10%;font-weight: bold;'>SLET</td>";
$table.="<td style='width:10%;font-weight: ;'>{$results[fsletsub]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$results[fsletcertno]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$results[fsletpassmth]}</td>";
$table.='</tr>';
$table.="</table><br>";
$query4 = "select funivname,date_format(ffromdate,'%d/%m/%Y') as ffromdate,fdegncode,fpayscale,fstatus,
date_format(ftodate,'%d/%m/%Y') as ftodate,fexp,fpoints,fenclosureno from expdetl where fuserid = '{$userid}' and fappno = '{$appno}' and fenttype = 'teach' order by fenttype";
$results4 = $aobj_context->mobj_db->GetAll($query4);
$table.='<table class="table table-bordered" style="width:90%;" id="postdettable">';
$table.='<thead>';
$table.='<th colspan = 9 style = "text-align:center;background-color:lightblue;font-family:italic;font-size=110%;">3.1 Full-time Teaching Experience</th> ';
$table.='</thead>';
$table.='<tbody>';
$table.='<tr>';
$table.='<td style="width:10%;font-weight: ;">Name of University / College / Institute / Organization</td>';
$table.="<td style='width:10%'>Designation</td>";
$table.='<td style="width:10%;font-weight: ;">Status</td>';
$table.="<td style='width:10%'>Pay Scale / Consolidated salary</td>";
$table.='<td style="width:10%;font-weight: ;">From</td>';
$table.="<td style='width:10%'>To</td>";
$table.='<td style="width:10%;font-weight: ;">Effective Time Period (Excluding 2 years of Residency Period)</td>';
$table.='<td style="width:10%;font-weight: ;">Points</td>';
$table.='<td style="width:10%;font-weight: ;">Enclosure No.</td>';
$table.='</tr>';
$sumexpfpoints = '';
$fexp = '';
foreach($results4 as $value)
{
$table.='<tr>';
$table.="<td style='width:10%'>{$value[funivname]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fdegncode]}</td>";
$table.="<td style='width:10%'>{$value[fstatus]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fpayscale]}</td>";
$table.="<td style='width:10%'>{$value[ffromdate]}</td>";
$table.="<td style='width:10%'>{$value[ftodate]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fexp]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fpoints]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fenclosureno]}</td>";
$table.='</tr>';
$sumexpfpoints+=$value[fpoints];
$yeararry = explode('.',$value[fexp]);
$fexpyear+=$yeararry[0];
$fexpyear1+=$yeararry[1];
}
$year = $fexpyear1/12;
$year = explode('.',$year);
$fexpyear = $fexpyear+$year[0];
$moth = $fexpyear1%12;
$fexp = $fexpyear.'.'.$moth;
$table.='<tr style = "font-weight: bold;">';
$table.="<td style='width:10%;text-align:right;' colspan = 6>Total</td>";
$table.="<td style='width:10%;font-weight: ;'>{$fexp}</td>";
$table.="<td style='width:10%' >{$sumexpfpoints}</td><tr>";
$table.='</table><br>';
$query4 = "select funivname,date_format(ffromdate,'%d/%m/%Y') as ffromdate,fdegncode,fpayscale,
date_format(ftodate,'%d/%m/%Y') as ftodate,fexp,fpoints,fenclosureno
from expdetl where fuserid = '{$userid}' and fappno = '{$appno}' and fenttype = 'phd' order by fenttype";
$results4 = $aobj_context->mobj_db->GetAll($query4);
$table.='<table class="table table-bordered" style="width:90%;" id="postdettable">';
$table.='<thead>';
$table.='<th colspan = 8 style = "text-align:center;background-color:lightblue;font-family:italic;font-size:110%;">3.2 Full-time Post-Ph.D. Research Experience</th> ';
$table.='</thead>';
$table.='<tbody>';
$table.='<tr>';
$table.='<td style="width:10%;font-weight: ;">University / Institute / Industry</td>';
$table.="<td style='width:10%'>Designation</td>";
$table.='<td style="width:10%;font-weight: ;">Pay scale / consolidated salary</td>';
$table.='<td style="width:10%;font-weight: ;">From</td>';
$table.="<td style='width:10%'>To</td>";
$table.='<td style="width:10%;font-weight: ;">Time Period</td>';
$table.='<td style="width:10%;font-weight: ;">Points</td>';
$table.='<td style="width:10%;font-weight: ;">Enclosure No.</td>';
$table.='</tr>';
$sumexpfpoints = '';
$fexp = '';
foreach($results4 as $value)
{
$table.='<tr>';
$table.="<td style='width:10%'>{$value[funivname]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fdegncode]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fpayscale]}</td>";
$table.="<td style='width:10%'>{$value[ffromdate]}</td>";
$table.="<td style='width:10%'>{$value[ftodate]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fexp]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fpoints]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fenclosureno]}</td>";
$table.='</tr>';
$sumexpfpoints+=$value[fpoints];
$fexp+=$value[fexp];
}
$table.='<tr style = "font-weight: bold;">';
$table.="<td style='width:10%;text-align:right;' colspan = 5>Total</td>";
$table.="<td style='width:10%;font-weight: ;'>{$fexp}</td>";
$table.="<td style='width:10%'>{$sumexpfpoints}</td><tr>";
$table.='</table><br>';
$query4 = "select funivname,date_format(ffromdate,'%d/%m/%Y') as ffromdate,fdegncode,fpayscale,fstatus,
date_format(ftodate,'%d/%m/%Y') as ftodate,fexp,fpoints,fenclosureno from expdetl where fuserid = '{$userid}' and fappno='{$appno}' and fenttype='present' order by fenttype";
$results4 = $aobj_context->mobj_db->GetAll($query4);
$table.='<table class="table table-bordered" style="width:90%;" id="postdettable">';
$table.='<thead>';
$table.='<th colspan=8 style="text-align:center background-color:lightblue;font-family:italic;font-size:110%;">3.3 Present Employment Details</th> ';
$table.='</thead>';
$table.='<tbody>';
$table.='<tr>';
$table.='<td style="width:10%;font-weight: ;">Organization Name</td>';
$table.="<td style='width:10%'>Position Held</td>";
$table.='<td style="width:10%;font-weight: ;">Date of Appointment</td>';
$table.='<td style="width:10%;font-weight: ;">Present Status</td>';
$table.='</tr>';
foreach($results4 as $value)
{
$table.='<tr>';
$table.="<td style='width:10%'>{$value[funivname]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fdegncode]}</td>";
$table.="<td style='width:10%'>{$value[ffromdate]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fstatus]}</td>";
$table.='</tr>';
}
$table.='</table><br>';
$query4 = "select fenttype,fslno,fpublication,r1.freasonname as fpublicationname, ftitle,fjournalname,fyear,
fvolno,fpageno,fissnno,frefereed,r2.freasonname as ffauthorname, fauthor,fpoints,fimpfact,fjournalno,fenclosureno,fautaddrs
from researchexp
left join reason r1 on researchexp.fpublication = r1.freasoncode
left join reason r2 on researchexp.fauthor = r2.freasoncode
where fuserid = '{$userid}' and fappno = '{$appno}' order by fenttype desc";
$results4 = $aobj_context->mobj_db->getAll($query4);
$table.='<table class="table table-bordered" style="width:90%;" id="postdettable">';
$table.='<thead>';
$table.='<th colspan=12 style="text-align:center;background-color:lightblue;font-family:italic;font-size:110%;">SI.No.1 / Category-1 Research Papers in Peer-Reviewed or UGC listed Journals</th> ';
$table.='</thead>';
$table.='<tbody>';
$table.='<tr>';
$table.='<td style="width:10%;font-weight: ;">Publication Type</td>';
$table.="<td style='width:10%'>Title of the Paper</td>";
$table.='<td style="width:10%;font-weight: ;">Journal Name</td>';
$table.='<td style="width:10%;font-weight: ;">Year</td>';
$table.="<td style='width:10%'>Vol. No.</td>";
$table.='<td style="width:10%;font-weight: ;">Page No.</td>';
$table.='<td style="width:10%;font-weight: ;">ISSN / ISBN No.</td>';
$table.='<td style="width:10%;font-weight: ;">Journal No. Given By UGC</td>';
$table.='<td style="width:10%;font-weight: ;">Author</td>';
$table.='<td style="width:10%;font-weight: ;">Impact Factors</td>';
$table.='<td style="width:10%;font-weight: ;">Points</td>';
$table.='<td style="width:10%;font-weight: ;">Enclosure No.</td>';
$table.='</tr>';
$first = true;
$second = true;
$third = true;
$otjpoints = '';
$rcflpoints = '';
$phdpoints = '';
foreach($results4 as $value)
{
if($value['fenttype'] == 'rcphd')
{
$table.='<tr>';
$table.="<td style='width:10%'>{$value['fpublicationname']}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value['ftitle']}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value['fjournalname']}</td>";
$table.="<td style='width:10%'>{$value['fyear']}</td>";
$table.="<td style='width:10%'>{$value['fvolno']}</td>";
$table.="<td style='width:10%'>{$value['fpageno']}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value['fissnno']}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value['fjournalno']}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value['ffauthorname']}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value['fimpfact']}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value['fpoints']}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value['fenclosureno']}</td>";
$table.='</tr>';
$phdpoints+=$value['fpoints'];
}
else if($value['fenttype'] == 'rcotj')
{
if($second)
{
$table.="<tr style = 'font-weight: bold;'><td style='width:10%;text-align:right;' colspan = 10>Total</td><td style='width:10%;font-weight: ;'>{$phdpoints}</td></tr><table class='table table-bordered' style='width:90%;' id='postdettable'>";
$table.='<thead>';
$table.='<th colspan = 10 style = "text-align:center;background-color:lightblue;font-family:italic;font-size110%;">SI.No.2 /Category -2 Publication (other than Research Papers)</th> ';
$table.='</thead>';
$table.='<tbody>';
$table.='<tr>';
$table.='<td style="width:10%;font-weight: ;">Publication Type</td>';
$table.="<td style='width:10%'>Title of the Book</td>";
$table.='<td style="width:10%;font-weight: ;">Title of the Paper</td>';
$table.='<td style="width:10%;font-weight: ;">Year</td>';
$table.="<td style='width:10%'>Page No.</td>";
$table.='<td style="width:10%;font-weight: ;">ISSN/ ISBN No.</td>';
$table.='<td style="width:10%;font-weight: ;">Publisher Details & Address</td>';
$table.='<td style="width:10%;font-weight: ;">Author</td>';
$table.='<td style="width:10%;font-weight: ;">Points</td>';
$table.='<td style="width:10%;font-weight: ;">Enclosure No.</td>';
$table.='</tr>';
$second = false;
}
$table.='<tr>';
$table.="<td style='width:10%'>{$value[fpublicationname]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[ftitle]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fjournalname]}</td>";
$table.="<td style='width:10%'>{$value[fyear]}</td>";
$table.="<td style='width:10%'>{$value[fpageno]}</td>";
$table.="<td style='width:10%'>{$value[fissnno]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fautaddrs]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[ffauthorname]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fpoints]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fenclosureno]}</td>";
$table.='</tr>';
$otjpoints+=$value['fpoints'];
}
else if($value['fenttype'] == 'rcfl')
{
if($third)
{
$table.="<tr style = 'font-weight: bold;'><td style='width:10%;text-align:right;' colspan = 8>Total</td><td style='width:10%;font-weight: ;'>{$otjpoints}</td></tr><table class='table table-bordered' style='width:90%;' id='postdettable'>";
$table.='<thead>';
$table.='<th colspan = 10 style = "text-align:center;background-color:lightblue;font-family:italic;font-size110%;">SI.No.2 / Category-2 (b) Translation works in Indian and Foreign Languages by qualified faculties</th> ';
$table.='</thead>';
$table.='<tbody>';
$table.='<tr>';
$table.='<td style="width:10%;font-weight: ;">Publication Type</td>';
$table.="<td style='width:10%'>Title of the Book</td>";
$table.='<td style="width:10%;font-weight: ;">Title of the Paper</td>';
$table.='<td style="width:10%;font-weight: ;">Year</td>';
$table.="<td style='width:10%'>Page No.</td>";
$table.='<td style="width:10%;font-weight: ;">ISSN/ ISBN No.</td>';
$table.='<td style="width:10%;font-weight: ;">Publisher Details & Address</td>';
$table.='<td style="width:10%;font-weight: ;">Author</td>';
$table.='<td style="width:10%;font-weight: ;">Points</td>';
$table.='<td style="width:10%;font-weight: ;">Enclosure No.</td>';
$table.='</tr>';
$third = false;
}
$table.='<tr>';
$table.="<td style='width:10%'>{$value[fpublicationname]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[ftitle]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fjournalname]}</td>";
$table.="<td style='width:10%'>{$value[fyear]}</td>";
$table.="<td style='width:10%'>{$value[fpageno]}</td>";
$table.="<td style='width:10%'>{$value[fissnno]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fautaddrs]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[ffauthorname]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fpoints]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fenclosureno]}</td>";
$table.='</tr>';
$rcflpoints+=$value['fpoints'];
}
}
$table.="<tr style = 'font-weight: bold;'><td style='width:10%;text-align:right;' colspan = 8>Total</td><td style='width:10%;font-weight: ;'>{$rcflpoints}</td></tr></table><br>";
$query4 = "select fslno,fuserid,fappno,ftitle,fsubmitted,fnom,fpoints,fenclosureno,fenttype
from rclecture
where fuserid = '{$userid}' and fappno = '{$appno}' and fenttype = 'rcde'";
$results4 = $aobj_context->mobj_db->getAll($query4);
$table.='<table class="table table-bordered" style="width:90%;" id="postdettable">';
$table.='<thead>';
$table.='<th colspan =6 style = "text-align:center;background-color:lightblue;font-family:italic;font-size:110%;">SI.No.3/Category-3 : Creation of ICT mediated Teaching Learning Pedagogy and content and development of new and innovative courses and curricula</th> ';
$table.='</thead>';
$table.='<tbody>';
$table.='<tr>';
$table.='<td style="width:10%;font-weight: ;">Title of module</td>';
$table.="<td style='width:10%'>Recognized by / Submitted at / Delivered at</td>";
$table.="<td style='width:10%'>No. of Modules</td>";
$table.="<td style='width:10%'>Points</td>";
$table.='<td style="width:10%;font-weight: ;">Enclosure No.</td>';
$table.='</tr>';
$sumexpfpoints = '';
$fexp = '';
foreach($results4 as $value)
{
$table.='<tr>';
$table.="<td style='width:10%'>{$value[ftitle]}</td>";
$table.="<td style='width:10%'>{$value[fsubmitted]}</td>";
$table.="<td style='width:10%'>{$value[fnom]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fpoints]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fenclosureno]}</td>";
$table.='</tr>';
$sumexpfpoints+=$value[fpoints];
}
$table.='<tr style = "font-weight: bold;">';
$table.="<td style='width:10%;text-align:right;' colspan = 3>Total</td>";
$table.="<td style='width:10%;font-weight: ;'>{$sumexpfpoints}</td>";
$table.='</table><br>';
$query4 = "select fslno,fuserid,fappno,ftitle,fsubmitted,fnom,fpoints,fenclosureno,fenttype
from rclecture
where fuserid = '{$userid}' and fappno = '{$appno}' and fenttype = 'rcec'";
$results4 = $aobj_context->mobj_db->getAll($query4);
$table.='<table class="table table-bordered" style="width:90%;" id="postdettable">';
$table.='<thead>';
$table.='<th colspan =6 style = "text-align:center;background-color:lightblue;font-family:italic;font-size:110%;">SI.No.03/Category-3: (d)E-Content</th> ';
$table.='</thead>';
$table.='<tbody>';
$table.='<tr>';
$table.='<td style="width:10%;font-weight: ;">Title of module</td>';
$table.="<td style='width:10%'>Recognized by / Submitted at / Delivered at</td>";
$table.="<td style='width:10%'>No. of Modules</td>";
$table.="<td style='width:10%'>Points</td>";
$table.='<td style="width:10%;font-weight: ;">Enclosure No.</td>';
$table.='</tr>';
$sumexpfpoints = '';
$fexp = '';
foreach($results4 as $value)
{
$table.='<tr>';
$table.="<td style='width:10%'>{$value[ftitle]}</td>";
$table.="<td style='width:10%'>{$value[fsubmitted]}</td>";
$table.="<td style='width:10%'>{$value[fnom]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fpoints]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fenclosureno]}</td>";
$table.='</tr>';
$sumexpfpoints+=$value[fpoints];
}
$table.='<tr style = "font-weight: bold;">';
$table.="<td style='width:10%;text-align:right;' colspan = 3>Total</td>";
$table.="<td style='width:10%;font-weight: ;'>{$sumexpfpoints}</td>";
$table.='</table><br>';
$query = "select fslno,fuserid,fappno,fnostud,fpoints,fenclosureno,fenttype,fawareded,r1.freasonname as fawarededname
from rechguid
left join reason r1 on rechguid.fawareded = r1.freasoncode
where fuserid = '{$userid}' and fappno = '{$appno}' and fenttype = 'rcgp'";
$results4 = $aobj_context->mobj_db->getAll($query);
$table.='<table class="table table-bordered" style="width:90%;" id="postdettable">';
$table.='<thead>';
$table.='<th colspan = 4 style = "text-align:center;background-color:lightblue;font-family:italic;font-size:110%;">SI.No. / Category-4: (a) Research Guidance: Ph.D.</th> ';
$table.='</thead>';
$table.='<tbody>';
$table.='<tr>';
$table.='<td style="width:10%;font-weight: ;">Awareded / Submitted</td>';
$table.="<td style='width:10%'>No of students</td>";
$table.="<td style='width:10%'>Points</td>";
$table.='<td style="width:10%;font-weight: ;">Enclosure No.</td>';
$table.='</tr>';
$sumexpfpoints = '';
$fexp = '';
foreach($results4 as $value)
{
$table.='<tr>';
$table.="<td style='width:10%'>{$value[fawarededname]}</td>";
$table.="<td style='width:10%'>{$value[fnostud]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fpoints]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fenclosureno]}</td>";
$table.='</tr>';
$sumexpfpoints+=$value[fpoints];
}
$table.='<tr style = "font-weight: bold;">';
$table.="<td style='width:10%;text-align:right;' colspan = 2>Total</td>";
$table.="<td style='width:10%;font-weight: ;'>{$sumexpfpoints}</td>";
$table.='</table><br>';
$query = "select fslno,fuserid,fappno,fnostud,fpoints,fenclosureno,fenttype
from rechguid
where fuserid = '{$userid}' and fappno = '{$appno}' and fenttype = 'rcgm'";
$results4 = $aobj_context->mobj_db->getAll($query);
$table.='<table class="table table-bordered" style="width:90%;" id="postdettable">';
$table.='<thead>';
$table.='<th colspan = 3 style = "text-align:center;background-color:lightblue;font-family:italic;font-size:110%;">M.Phil / P.G Dissertation</th> ';
$table.='</thead>';
$table.='<tbody>';
$table.='<tr>';
$table.='<td style="width:10%;font-weight: ;">No. of students</td>';
$table.="<td style='width:10%'>Points</td>";
$table.='<td style="width:10%;font-weight: ;">Enclosure No.</td>';
$table.='</tr>';
$sumexpfpoints = '';
$fexp = '';
foreach($results4 as $value)
{
$table.='<tr>';
$table.="<td style='width:10%'>{$value[fnostud]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fpoints]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fenclosureno]}</td>";
$table.='</tr>';
$sumexpfpoints+=$value[fpoints];
}
$table.='<tr style = "font-weight: bold;">';
$table.="<td style='width:10%;text-align:right;' colspan = 1>Total</td>";
$table.="<td style='width:10%;font-weight: ;'>{$sumexpfpoints}</td>";
$table.='</table><br>';
$query4 = " select fslno,ffaculty,r1.freasonname as ffacultyname, ftitle,fagency,fperiod,famount,fpoints,fenclosureno,fenttype
from rcprojct
left join reason r1 on rcprojct.ffaculty = r1.freasoncode
where fuserid = '{$userid}' and fappno = '{$appno}' and fenttype = 'rcspon'";
$results4 = $aobj_context->mobj_db->GetAll($query4);
$table.='<table class="table table-bordered" style="width:90%;" id="postdettable">';
$table.='<thead>';
$table.='<th colspan = 7 style = "text-align:center;background-color:lightblue;font-family:italic;font-size:110%;">SI.No.4 / Category-4: (b) Research Projects Completed</th> ';
$table.='</thead>';
$table.='<tbody>';
$table.='<tr>';
$table.='<td style="width:10%;font-weight: ;">Faculty</td>';
$table.="<td style='width:10%'>Title of the Project</td>";
$table.='<td style="width:10%;font-weight: ;">Funding Agency / Agency</td>';
$table.='<td style="width:10%;font-weight: ;">Period</td>';
$table.="<td style='width:10%'>Amount</td>";
$table.='<td style="width:10%;font-weight: ;">Points</td>';
$table.='<td style="width:10%;font-weight: ;">Enclosure No.</td>';
$table.='</tr>';
$sumexpfpoints = '';
$fexp = '';
foreach($results4 as $value)
{
$table.='<tr>';
$table.="<td style='width:10%'>{$value[ffacultyname]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[ftitle]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fagency]}</td>";
$table.="<td style='width:10%'>{$value[fperiod]}</td>";
$table.="<td style='width:10%'>{$value[famount]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fpoints]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fenclosureno]}</td>";
$table.='</tr>';
$sumexpfpoints+=$value[fpoints];
}
$table.='<tr style = "font-weight: bold;">';
$table.="<td style='width:10%;text-align:right;' colspan = 5>Total</td>";
$table.="<td style='width:10%;font-weight: ;'>{$sumexpfpoints}</td>";
$table.='</table><br>';
$query4 = "select fslno,ffaculty,r1.freasonname as ffacultyname, ftitle,fagency,fperiod,famount,fpoints,fenclosureno,fenttype
from rcprojct
left join reason r1 on rcprojct.ffaculty = r1.freasoncode
where fuserid = '{$userid}' and fappno = '{$appno}' and fenttype = 'rccons'";
$results4 = $aobj_context->mobj_db->GetAll($query4);
$table.='<table class="table table-bordered" style="width:90%;" id="postdettable">';
$table.='<thead>';
$table.='<th colspan = 7 style = "text-align:center;background-color:lightblue;font-family:italic;font-size:110%;">SI.No.4 / Category-4: (c) Research Projects Ongoing</th> ';
$table.='</thead>';
$table.='<tbody>';
$table.='<tr>';
$table.='<td style="width:10%;font-weight: ;">Faculty</td>';
$table.="<td style='width:10%'>Title of the Project</td>";
$table.='<td style="width:10%;font-weight: ;">Funding Agency / Agency</td>';
$table.='<td style="width:10%;font-weight: ;">Period</td>';
$table.="<td style='width:10%'>Amount</td>";
$table.='<td style="width:10%;font-weight: ;">Points</td>';
$table.='<td style="width:10%;font-weight: ;">Enclosure No.</td>';
$table.='</tr>';
$sumexpfpoints = '';
$fexp = '';
foreach($results4 as $value)
{
$table.='<tr>';
$table.="<td style='width:10%'>{$value[ffacultyname]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[ftitle]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fagency]}</td>";
$table.="<td style='width:10%'>{$value[fperiod]}</td>";
$table.="<td style='width:10%'>{$value[famount]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fpoints]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fenclosureno]}</td>";
$table.='</tr>';
$sumexpfpoints+=$value[fpoints];
}
$table.='<tr style = "font-weight: bold;">';
$table.="<td style='width:10%;text-align:right;' colspan = 5>Total</td>";
$table.="<td style='width:10%;font-weight: ;'>{$sumexpfpoints}</td>";
$table.='</table><br>';
$query4 = "select fslno,ffaculty,r1.freasonname as ffacultyname, ftitle,fagency,fperiod,famount,fpoints,fenclosureno,fenttype
from rcprojct
left join reason r1 on rcprojct.ffaculty = r1.freasoncode
where fuserid = '{$userid}' and fappno = '{$appno}' and fenttype = 'rcconslt'";
$results4 = $aobj_context->mobj_db->GetAll($query4);
$table.='<table class="table table-bordered" style="width:90%;" id="postdettable">';
$table.='<thead>';
$table.='<th colspan = 7 style = "text-align:center;background-color:lightblue;font-family:italic;font-size:110%;">SI.No.4 / Category-4: (d) Consultancy</th> ';
$table.='</thead>';
$table.='<tbody>';
$table.='<tr>';
$table.='<td style="width:10%;font-weight: ;">Faculty</td>';
$table.="<td style='width:10%'>Title of the Project</td>";
$table.='<td style="width:10%;font-weight: ;">Funding Agency / Agency</td>';
$table.='<td style="width:10%;font-weight: ;">Period</td>';
$table.="<td style='width:10%'>Amount</td>";
$table.='<td style="width:10%;font-weight: ;">Points</td>';
$table.='<td style="width:10%;font-weight: ;">Enclosure No.</td>';
$table.='</tr>';
$sumexpfpoints = '';
$fexp = '';
foreach($results4 as $value)
{
$table.='<tr>';
$table.="<td style='width:10%'>{$value[ffacultyname]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[ftitle]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fagency]}</td>";
$table.="<td style='width:10%'>{$value[fperiod]}</td>";
$table.="<td style='width:10%'>{$value[famount]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fpoints]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fenclosureno]}</td>";
$table.='</tr>';
$sumexpfpoints+=$value[fpoints];
}
$table.='<tr style = "font-weight: bold;">';
$table.="<td style='width:10%;text-align:right;' colspan = 5>Total</td>";
$table.="<td style='width:10%;font-weight: ;'>{$sumexpfpoints}</td>";
$table.='</table><br>';
$query4 = "select fslno,ffaculty,r1.freasonname as flevelname, flevel,ftitle,fagency,fperiod,famount,fpoints,fenclosureno,fenttype
from rcprojct
left join reason r1 on rcprojct.flevel = r1.freasoncode
where fuserid = '{$userid}' and fappno = '{$appno}' and fenttype = 'rcpout'";
$results4 = $aobj_context->mobj_db->GetAll($query4);
$table.='<table class="table table-bordered" style="width:90%;" id="postdettable">';
$table.='<thead>';
$table.='<th colspan = 6 style = "text-align:center;background-color:lightblue;font-family:italic;font-size:110%;">SI.No.5 / Category-5: (a) Patents</th> ';
$table.='</thead>';
$table.='<tbody>';
$table.='<tr>';
$table.='<td style="width:10%;font-weight: ;">Nature of Patents</td>';
$table.="<td style='width:10%'>Title of the Patent Name</td>";
$table.='<td style="width:10%;font-weight: ;">Funding Agency / Agency</td>';
$table.='<td style="width:10%;font-weight: ;">Level</td>';
$table.="<td style='width:10%'>Points</td>";
$table.='<td style="width:10%;font-weight: ;">Enclosure No.</td>';
$table.='</tr>';
$sumexpfpoints = '';
$fexp = '';
foreach($results4 as $value)
{
$table.='<tr>';
$table.="<td style='width:10%'>{$value[ffaculty]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[ftitle]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fagency]}</td>";
$table.="<td style='width:10%'>{$value[flevelname]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fpoints]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fenclosureno]}</td>";
$table.='</tr>';
$sumexpfpoints+=$value[fpoints];
}
$table.='<tr style = "font-weight: bold;">';
$table.="<td style='width:10%;text-align:right;' colspan = 4>Total</td>";
$table.="<td style='width:10%;font-weight: ;'>{$sumexpfpoints}</td>";
$table.='</table><br>';
$query4 = "select fslno,fuserid,fappno,fname,facademic,flevel,fawareded,fpoints,fenclosureno,fenttype,
r1.freasonname as fawarededname,r2.freasonname as flevelname
from rechguid
left join reason r1 on rechguid.fawareded = r1.freasoncode
left join reason r2 on rechguid.flevel = r2.freasoncode
where fuserid = '{$userid}' and fappno = '{$appno}' and fenttype = 'rcfs'";
$results4 = $aobj_context->mobj_db->getAll($query4);
$table.='<table class="table table-bordered" style="width:90%;" id="postdettable">';
$table.='<thead>';
$table.='<th colspan = 7 style = "text-align:center;background-color:lightblue;font-family:italic;font-size:110%;">SI.No.5 / Category-5: (c) Awards / Fellowship</th> ';
$table.='</thead>';
$table.='<tbody>';
$table.='<tr>';
$table.='<td style="width:10%;font-weight: ;">Name of the Fellowship / Award</td>';
$table.="<td style='width:10%'>Academic body / association</td>";
$table.="<td style='width:10%'>Type</td>";
$table.="<td style='width:10%'>Level</td>";
$table.="<td style='width:10%'>Points</td>";
$table.='<td style="width:10%;font-weight: ;">Enclosure No.</td>';
$table.='</tr>';
$sumexpfpoints = '';
$fexp = '';
foreach($results4 as $value)
{
$table.='<tr>';
$table.="<td style='width:10%'>{$value[fname]}</td>";
$table.="<td style='width:10%'>{$value[facademic]}</td>";
$table.="<td style='width:10%'>{$value[fawarededname]}</td>";
$table.="<td style='width:10%'>{$value[flevelname]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fpoints]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fenclosureno]}</td>";
$table.='</tr>';
$sumexpfpoints+=$value[fpoints];
}
$table.='<tr style = "font-weight: bold;">';
$table.="<td style='width:10%;text-align:right;' colspan = 4>Total</td>";
$table.="<td style='width:10%;font-weight: ;'>{$sumexpfpoints}</td>";
$table.='</table><br>';
$query4 = "select fslno,fuserid,fappno,ftitle,fsubmitted,forganized,flevel,date_format(fdate,'%d/%m/%Y') as fdate,ftype,fpoints,fenclosureno,
r1.freasonname as ftypename,r2.freasonname as flevelname
from rclecture
left join reason r1 on rclecture.ftype = r1.freasoncode
left join reason r2 on rclecture.flevel = r2.freasoncode
where fuserid = '{$userid}' and fappno = '{$appno}' and fenttype = 'rcil'";
$results4 = $aobj_context->mobj_db->getAll($query4);
$table.='<table class="table table-bordered" style="width:90%;" id="postdettable">';
$table.='<thead>';
$table.='<th colspan = 8 style = "text-align:center;background-color:lightblue;font-family:italic;font-size:110%;">SI.No./Category 6: * Invited lectures/Resource Person/Paper Presentation in Seminars/Conferences/Full paper in Conference Proceedings (Paper presented in Seminars/Conferences and also Published as full paper in Conference Proceedings will be counted only once)</th> ';
$table.='</thead>';
$table.='<tbody>';
$table.='<tr>';
$table.='<td style="width:10%;font-weight: ;">Title of the Invited Lecture Delivered / Paper Presented</td>';
$table.="<td style='width:10%'>Title of the conference / Seminar</td>";
$table.="<td style='width:10%'>Organized By</td>";
$table.="<td style='width:10%'>Date</td>";
$table.="<td style='width:10%'>Type</td>";
$table.="<td style='width:10%'>Level</td>";
$table.="<td style='width:10%'>Points</td>";
$table.='<td style="width:10%;font-weight: ;">Enclosure No.</td>';
$table.='</tr>';
$sumexpfpoints = '';
$fexp = '';
foreach($results4 as $value)
{
$table.='<tr>';
$table.="<td style='width:10%'>{$value[ftitle]}</td>";
$table.="<td style='width:10%'>{$value[fsubmitted]}</td>";
$table.="<td style='width:10%'>{$value[forganized]}</td>";
$table.="<td style='width:10%'>{$value[fdate]}</td>";
$table.="<td style='width:10%'>{$value[flevelname]}</td>";
$table.="<td style='width:10%'>{$value[ftypename]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fpoints]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$value[fenclosureno]}</td>";
$table.='</tr>';
$sumexpfpoints+=$value[fpoints];
}
$table.='<tr style = "font-weight: bold;">';
$table.="<td style='width:10%;text-align:right;' colspan = 6>Total</td>";
$table.="<td style='width:10%;font-weight: ;'>{$sumexpfpoints}</td>";
$table.='</table><br>';
$query4 = "select * from otherdet
where fuserid = '{$userid}' and fappno = '{$appno}'";
$results4 = $aobj_context->mobj_db->getRow($query4);
$table.='<table class="table table-bordered" style="width:90%;" id="postdettable">';
$table.='<thead>';
$table.='<th colspan = 2 style = "text-align:center;background-color:lightblue;font-family:italic;font-size110%;">Other Activities / Reponsibilities</th> ';
$table.='</thead>';
$table.='<tbody>';
$table.='<tr>';
$table.="<td>{$results4[FANYDET]}</td>";
$table.='</tr>';
$table.='</tbody>';
$table.='</html><br>';
$table.='<table class="table table-bordered" style="width:90%;" id="postdettable">';
$table.='<thead>';
$table.='<th colspan = 2 style = "text-align:center;background-color:lightblue;font-family:italic;font-size110%;">6.1 Miscellaneous Information</th> ';
$table.='</thead>';
$table.='<tbody>';
$table.='<tr>';
$table.="<td style='width:10%'>Have you ever been punished for Gender/Caste related offences or convicted by a court of law? If yes, give details.</td>";
$table.="<td style='width:10%;font-weight: ;'>{$results4[FPUNISHEDGC]}</td>";
$table.='</tr>';
$table.='<tr>';
$table.="<td style='width:10%'>Were you at any time declared medically unfit or asked to submit your resignation or discharged or dismissed? If yes, give details</td>";
$table.="<td style='width:10%;font-weight: ;'>{$results4[FUNFIT]}</td>";
$table.='</tr>';
$table.='<tr>';
$table.="<td style='width:10%'>Do you have any criminal case pending against you in a court of law? If yes, give details.</td>";
$table.="<td style='width:10%;font-weight: ;'>{$results4[FCRIMINAL]}</td>";
$table.='</tr></table>';
$table.='<table class="table table-bordered" style="width:90%;" id="postdettable">';
$table.='<thead>';
$table.='<th colspan=7 style="text-align:center;background-color:lightblue;font-family:italic;font-size110%;">Two References familiar with your academic work</th> ';
$table.='</thead>';
$table.='<tbody>';
$table.='<tr>';
$table.="<td style='width:10%'>Sl. No.</td>";
$table.="<td style='width:10%;font-weight: ;'>Full Name</td>";
$table.="<td style='width:10%;font-weight: ;'>Institutional Affiliation (Present/Former)</td>";
$table.="<td style='width:10%;font-weight: ;'>Designation</td>";
$table.="<td style='width:10%;font-weight: ;'>Address</td>";
$table.="<td style='width:10%;font-weight: ;'>Mobile / Phone No.</td>";
$table.="<td style='width:10%;font-weight: ;'>Email</td>";
$table.='</tr>';
$table.='<tr>';
$table.="<td style='width:10%'>1</td>";
$table.="<td style='width:10%;font-weight: ;'>{$results4[FREFNAME1]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$results4[FREFINST1]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$results4[FREFDESG1]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$results4[FREFADD1]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$results4[FREFMOBILE1]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$results4[FREFEMAIL1]}</td>";
$table.='</tr>';
$table.='<tr>';
$table.="<td style='width:10%'>2</td>";
$table.="<td style='width:10%;font-weight: ;'>{$results4[FREFNAME2]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$results4[FREFINST2]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$results4[FREFDESG2]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$results4[FREFADD2]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$results4[FREFMOBILE2]}</td>";
$table.="<td style='width:10%;font-weight: ;'>{$results4[FREFEMAIL2]}</td>";
$table.='</tr>';
$rst['table'] = $table;
echo $aobj_context->mobj_output->ToJSONEnvelope($rst,0,"success");
}else
{
$query = "select md.fdegndesc,mc.fdescpn,p.fappno from postdet p inner join mascourse mc on p.fdegree = mc.fdegree
inner join masdegn md on md.fdegncode = p.fdegncode
where fuserid = '{$userid}'";
$results = $aobj_context->mobj_db->getAll($query);
/* $table ='<table class="table table-bordered" style="width:900px;" id="postdettable">';
$table.='<thead>';
$table.='<tr>';
$table.='<th style="width:50px;">Sl. No.</th>';
$table.='<th style="width:200px;">Post Applied for</th>';
$table.='<th style="width:250px;">Department Name (subject)</th>';
$table.='<th style="width:100px;">Application Number</th>';
$table.='<th style="width:50px;">Action</th>';
$table.='</tr></thead><tbody>'; */
$i = 1;
$table ='';
foreach($results as $value)
{
$table.="<tr style = 'height:25px;'>";
$table.="<td><input type = 'text' id='postid_{$i}' disabled class='form-control1' value = '{$i}'></td>";
$table.="<td><input type = 'text' id='postdeg_{$i}' value = '{$value['fdegndesc']}' disabled class='form-control1'></td>";
$table.="<td><input type = 'text' id='postsub_{$i}' disabled value = '{$value['fdescpn']}' class='form-control1'></td>";
$table.="<td><input type = 'text' id='postapplication_{$i}' disabled value = '{$value['fappno']}' class='form-control1'></td>";
$table.="<td><button id='postapp_{$i}' onclick = 'main_menu({$i});' class='form-control1'>Apply<button></td>";
$table.='</tr>';
$i++;
}
$rst['table'] = $table;
echo $aobj_context->mobj_output->ToJSONEnvelope($rst,-1,"success");
}
}
function loadapplieddetails($aobj_context)
{
$userid = $_SESSION['userid'];
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$query = "select md.fdegndesc,mc.fdescpn,p.fappno from postdet p inner join mascourse mc on p.fdegree = mc.fdegree
inner join masdegn md on md.fdegncode = p.fdegncode
where fuserid = '{$userid}'";
$results = $aobj_context->mobj_db->getAll($query);
/* $table ='<table class="table table-bordered" style="width:900px;" id="postdettable">';
$table.='<thead>';
$table.='<tr>';
$table.='<th style="width:50px;">Sl. No.</th>';
$table.='<th style="width:200px;">Post Applied for</th>';
$table.='<th style="width:250px;">Department Name (subject)</th>';
$table.='<th style="width:100px;">Application Number</th>';
$table.='<th style="width:50px;">Action</th>';
$table.='</tr></thead><tbody>'; */
$i = 1;
$table ='';
foreach($results as $value)
{
$table.="<tr style = 'height:25px;'>";
$table.="<td><input type = 'text' id='postid_{$i}' disabled class='form-control1' value = '{$i}'></td>";
$table.="<td><input type = 'text' id='postdeg_{$i}' value = '{$value['fdegndesc']}' disabled class='form-control1'></td>";
$table.="<td><input type = 'text' id='postsub_{$i}' disabled value = '{$value['fdescpn']}' class='form-control1'></td>";
$table.="<td><input type = 'text' id='postapplication_{$i}' disabled value = '{$value['fappno']}' class='form-control1'></td>";
$table.="<td><button id='postapp_{$i}' onclick = 'main_menu({$i});' class='form-control1'>Apply<button></td>";
$table.='</tr>';
$i++;
}
if($results)
{
$rst['table'] = $table;
echo $aobj_context->mobj_output->ToJSONEnvelope($rst,0,"success");
}else
{
$rst['msg'] = '';
echo $aobj_context->mobj_output->ToJSONEnvelope($rst,-1,"Failure");
}
}
?>
|