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.145.196.141
<?php
function saveexperiencedetails($aobj_context)
{
session_start();
$userid = $_SESSION['userid'];
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$appno = stripslashes($aobj_context->mobj_data["appno"]);
$funivname = stripslashes($aobj_context->mobj_data["funivname"]);
$fdegncode = stripslashes($aobj_context->mobj_data["fdegncode"]);
$ffromdate = stripslashes($aobj_context->mobj_data["ffromdate"]);
$fstatus = stripslashes($aobj_context->mobj_data["fstatus"]);
$query = "delete from expdetl
where fuserid = '{$userid}' and fappno = '{$appno}' and fenttype = 'present'";
$results =$aobj_context->mobj_db->Execute($query);
$funivname = str_replace("'","`",$funivname);
$fdegncode = str_replace("'","`",$fdegncode);
$query = "insert into expdetl(fuserid,fappno,funivname,fdegncode,fstatus,ffromdate,fenttype)
values('{$userid}','{$appno}','{$funivname}','{$fdegncode}','{$fstatus}',DATE_FORMAT(str_to_date('{$ffromdate}','%d/%m/%Y'),'%Y-%m-%d'),'present')";
$results = $aobj_context->mobj_db->Execute($query);
if($results)
{
$query = "select funivname, fdegncode, fstatus, date_format(ffromdate,'%d/%m/%Y') as ffromdate from expdetl
where fuserid = '{$userid}' and fappno = '{$appno}' and fenttype = 'present'";
$results = $aobj_context->mobj_db->getRow($query);
$arr=$results;
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");
return;
}
else
{
$arr='Insertion Failed';
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failure");
return;
}
}
function loadexperiencedetails($aobj_context)
{
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
session_start();
$userid = $_SESSION['userid'];
$appno = stripslashes($aobj_context->mobj_data["appno"]);
$query = "select fslno,fuserid,fappno,funivname,fdegncode,fstatus,fpayscale,date_format(ffromdate,'%d/%m/%Y') as ffromdate,date_format(ftodate,'%d/%m/%Y') as ftodate,fexp,fpoints,fenclosureno,fenttype from expdetl
where fuserid = '{$userid}' and fappno = '{$appno}' and fenttype = 'teach'";
$results = $aobj_context->mobj_db->getAll($query);
//var_dump($query);
$i = 2;
$table ='';
foreach($results as $value)
{
$slno = $value[fslno];
$table.="<tr style = 'width:90%'>";
$table.="<td>";
$table.="<input type = 'hidden' value = '{$value[fslno]}' id='postid_{$i}'/><textarea type='text' style='width:90%;' disabled id = '{$i}BT1' name='fulltimeexp' >{$value[funivname]}</textarea>";
$table.="</td>";
$table.="<td>";
$table.="<textarea type='text' style='width:90%;' disabled id = '{$i}BT2' >{$value[fdegncode]}</textarea>";
$table.="</td>";
$table.="<td>";
$table.="<input type='text' style='width:90%;' disabled id = '{$i}BT3' value = '{$value[fstatus]}' />";
$table.="</td>";
$table.="<td><textarea type='text' style='width:90%;' disabled id = '{$i}BT4' >{$value[fpayscale]}</textarea></td>";
$table.="<td><input type='text' style='width:90%;' disabled id = '{$i}BT5' value = '{$value[ffromdate]}' /></td>";
$table.="<td><input type='text' style='width:90%;' disabled id = '{$i}BT6' value = '{$value[ftodate]}' /></td>";
$table.="<td><input type='text' style='width:90%;' disabled id = '{$i}BT7' value = '{$value[fexp]}' /></td>";
//$table.="<td><input type='text' style='width:90%;' disabled id = '{$i}BT8' value = '{$value[fpoints]}' /></td>";
$table.="<td><input type='text' style='width:90%;' disabled id = '{$i}BT22' value = '{$value[fenclosureno]}' /></td>";
$table.="<td><input type='submit' class='btn btn_3 btn btn-info' value = 'Edit' onclick = 'editexperience(\"$slno\",\"$i\")' id='{$i}BT9' style='width:90%;' ><br><br><input type='submit' value = 'delete' class='btn btn_3 btn btn-danger' onclick = 'deleteexperience(\"$slno\",\"$i\")' id='{$i}BT10' style='width:90%;' ></td>";
$table.="</tr>";
$i++;
}
$query = "select fslno,fuserid,fappno,funivname,fdegncode,fstatus,fpayscale,date_format(ffromdate,'%d/%m/%Y') as ffromdate,date_format(ftodate,'%d/%m/%Y') as ftodate,fexp,fpoints,fenclosureno,fenttype from expdetl
where fuserid = '{$userid}' and fappno = '{$appno}' and fenttype = 'phd'";
$results = $aobj_context->mobj_db->getAll($query);
$i = 2;
$table2 ='';
foreach($results as $value)
{
$slno = $value[fslno];
$table2.="<tr>";
$table2.="<td>";
$table2.="<input type = 'hidden' value = '{$value[fslno]}' disabled id='postid1_{$i}'/><textarea type='text' style='width:90%;' id = '{$i}BT10' name='fulltimeexp' >{$value[funivname]}</textarea>";
$table2.="</td>";
$table2.="<td>";
$table2.="<textarea type='text' style='width:90%;' disabled id = '{$i}BT11' >{$value[fdegncode]}</textarea>";
$table2.="</td>";
$table2.="<td><textarea type='text' style='width:90%;' disabled id = '{$i}BT12' >{$value[fpayscale]}</textarea></td>";
$table2.="<td><input type='text' style='width:90%;' disabled id = '{$i}BT13' value = '{$value[ffromdate]}' /></td>";
$table2.="<td><input type='text' style='width:90%;' disabled id = '{$i}BT14' value = '{$value[ftodate]}' /></td>";
$table2.="<td><input type='text' style='width:90%;' disabled id = '{$i}BT15' value = '{$value[fexp]}' /></td>";
//$table2.="<td><input type='text' style='width:90%;' disabled id = '{$i}BT16' value = '{$value[fpoints]}' /></td>";
$table2.="<td><input type='text' style='width:90%;' disabled id = '{$i}BT23' value = '{$value[fenclosureno]}' /></td>";
$table2.="<td><input type='submit' value = 'Edit' class='btn btn_3 btn btn-info' onclick = 'editexperience2(\"$slno\",\"$i\")' id='{$i}BT9' style='width:90%;' ><br><br><input type='submit' class='btn btn_3 btn btn-danger' value = 'delete' onclick = 'deleteexperience2(\"$slno\",\"$i\")' id='{$i}BT10' style='width:90%;' ></td>";
$table2.="</tr>";
$i++;
}
$query = "select ifnull(funivname,'') as funivname,ifnull(fdegncode,'') as fdegncode,ifnull(fstatus,'') as fstatus,ifnull(date_format(ffromdate,'%d/%m/%Y'),'DD/MM/YYYY') as ffromdate from expdetl
where fuserid = '{$userid}' and fappno = '{$appno}' and fenttype = 'present'";
$results = $aobj_context->mobj_db->getRow($query);
$rst['table'] = $table;
$rst['table2'] = $table2;
$rst['table3'] = $results;
echo $aobj_context->mobj_output->ToJSONEnvelope($rst,0,"success");
}
function deleteexperience($aobj_context)
{
session_start();
$userid = $_SESSION['userid'];
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$appno = trim($aobj_context->mobj_data["appno"]);
$slno = trim($aobj_context->mobj_data["slno"]);
$query = "delete from expdetl where fuserid = '{$userid}' and fappno = '{$appno}' and fslno = '{$slno}' and fenttype = 'teach'";
$results = $aobj_context->mobj_db->Execute($query);
if($results)
{
$query = "select fslno,fuserid,fappno,funivname,fdegncode,fstatus,fpayscale,date_format(ffromdate,'%d/%m/%Y') as ffromdate,date_format(ftodate,'%d/%m/%Y') as ftodate,fexp,fpoints,fenclosureno,fenttype from expdetl
where fuserid = '{$userid}' and fappno = '{$appno}' and fenttype = 'teach'";
$results = $aobj_context->mobj_db->getAll($query);
//var_dump($query);
$i = 2;
$table ='';
foreach($results as $value)
{
$slno = $value[fslno];
$table.="<tr style = 'width:90%'>";
$table.="<td>";
$table.="<input type = 'hidden' value = '{$value[fslno]}' id='postid_{$i}'/><textarea type='text' style='width:90%;' disabled id = '{$i}BT1' name='fulltimeexp' >{$value[funivname]}</textarea>";
$table.="</td>";
$table.="<td>";
$table.="<textarea type='text' style='width:90%;' disabled id = '{$i}BT2' >{$value[fdegncode]}</textarea>";
$table.="</td>";
$table.="<td>";
$table.="<input type='text' style='width:90%;' disabled id = '{$i}BT3' value = '{$value[fstatus]}' />";
$table.="</td>";
$table.="<td><textarea type='text' style='width:90%;' disabled id = '{$i}BT4' >{$value[fpayscale]}</textarea></td>";
$table.="<td><input type='text' style='width:90%;' disabled id = '{$i}BT5' value = '{$value[ffromdate]}' /></td>";
$table.="<td><input type='text' style='width:90%;' disabled id = '{$i}BT6' value = '{$value[ftodate]}' /></td>";
$table.="<td><input type='text' style='width:90%;' disabled id = '{$i}BT7' value = '{$value[fexp]}' /></td>";
//$table.="<td><input type='text' style='width:90%;' disabled id = '{$i}BT8' value = '{$value[fpoints]}' /></td>";
$table.="<td><input type='text' style='width:90%;' disabled id = '{$i}BT22' value = '{$value[fenclosureno]}' /></td>";
$table.="<td><input type='submit' class='btn btn_3 btn btn-info' value = 'Edit' onclick = 'editexperience(\"$slno\",\"$i\")' id='{$i}BT9' style='width:90%;' ><br><br><input type='submit' value = 'delete' class='btn btn_3 btn btn-danger' onclick = 'deleteexperience(\"$slno\",\"$i\")' id='{$i}BT10' style='width:90%;' ></td>";
$table.="</tr>";
$i++;
}
$rst['table'] = $table;
echo $aobj_context->mobj_output->ToJSONEnvelope($rst,0,"success");
/* $rst['table'] = $table;
echo $aobj_context->mobj_output->ToJSONEnvelope($rst,0,"success"); */
}
}
function saveexperience($aobj_context)
{
session_start();
$userid = $_SESSION['userid'];
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$funivname = trim($aobj_context->mobj_data["funivname"]);
$fdegncode = trim($aobj_context->mobj_data["fdesgcode"]);
$fstatus = trim($aobj_context->mobj_data["fstatus"]);
$fpayscale = trim($aobj_context->mobj_data["fpayscale"]);
$fromdate = trim($aobj_context->mobj_data["fromdate"]);
$ftodate = trim($aobj_context->mobj_data["ftodate"]);
$ftpe = trim($aobj_context->mobj_data["ftpe"]);
$fpoints = trim($aobj_context->mobj_data["fpoints"]);
$experience = trim($aobj_context->mobj_data["experience"]);
$fenclosureno = trim($aobj_context->mobj_data["fenclosureno"]);
$appno = trim($aobj_context->mobj_data["appno"]);
//$_SESSION['appno'] = $appno;
if($experience == 'I')
{
$query = "insert into expdetl(fuserid,fappno,funivname,fdegncode,fstatus,fpayscale,ffromdate,ftodate,fexp,fpoints,fenclosureno,fenttype)
values('{$userid}','{$appno}','{$funivname}','{$fdegncode}','{$fstatus}','{$fpayscale}',DATE_FORMAT(str_to_date('{$fromdate}','%d/%m/%Y'),'%Y-%m-%d'),DATE_FORMAT(str_to_date('{$ftodate}','%d/%m/%Y'),'%Y-%m-%d'),'{$ftpe}','{$fpoints}','{$fenclosureno}','teach')";
$results = $aobj_context->mobj_db->Execute($query);
}
else
{
$query = "update expdetl set funivname = '{$funivname}',fdegncode = '{$fdegncode}',
fstatus = '{$fstatus}',fpayscale = '{$fpayscale}',ffromdate =DATE_FORMAT(str_to_date('{$fromdate}','%d/%m/%Y'),'%Y-%m-%d'),
ftodate=DATE_FORMAT(str_to_date('{$ftodate}','%d/%m/%Y'),'%Y-%m-%d'),
fexp = '{$ftpe}',fpoints = '{$fpoints}',fenclosureno = '{$fenclosureno}'
where fuserid = '{$userid}' and fappno = '{$appno}' and fslno = '{$experience}'";
$results = $aobj_context->mobj_db->Execute($query);
}
if($results)
{
$query = "select fslno,fuserid,fappno,funivname,fdegncode,fstatus,fpayscale,date_format(ffromdate,'%d/%m/%Y') as ffromdate,date_format(ftodate,'%d/%m/%Y') as ftodate,fexp,fpoints,fenclosureno,fenttype from expdetl
where fuserid = '{$userid}' and fappno = '{$appno}' and fenttype = 'teach'";
$results = $aobj_context->mobj_db->getAll($query);
$i = 2;
$table ='';
foreach($results as $value)
{
$slno = $value[fslno];
$table.="<tr style = 'width:90%'>";
$table.="<td>";
$table.="<input type = 'hidden' value = '{$value[fslno]}' id='postid_{$i}'/><textarea type='text' style='width:90%;' disabled id = '{$i}BT1' name='fulltimeexp' >{$value[funivname]}</textarea>";
$table.="</td>";
$table.="<td>";
$table.="<textarea type='text' style='width:90%;' disabled id = '{$i}BT2' >{$value[fdegncode]}</textarea>";
$table.="</td>";
$table.="<td>";
$table.="<input type='text' style='width:90%;' disabled id = '{$i}BT3' value = '{$value[fstatus]}' />";
/* $table.="<select style='width:90%;' id = '{$i}BT3' disabled value = '{$value[fstatus]}' >";
$table.="<option value = '' >Select</option>";
$table.="<option value = 'Permanent'>Permanent</option>";
$table.="<option value = 'Ad-hoc'>Ad-hoc</option>";
$table.="<option value = 'Temporay'>Temporay</option>";
$table.="<option value = 'Contractual'>Contractual</option>";
$table.="</select>"; */
$table.="</td>";
$table.="<td><textarea type='text' style='width:90%;' disabled id = '{$i}BT4' >{$value[fpayscale]}</textarea></td>";
$table.="<td><input type='text' style='width:90%;' disabled id = '{$i}BT5' value = '{$value[ffromdate]}' /></td>";
$table.="<td><input type='text' style='width:90%;' disabled id = '{$i}BT6' value = '{$value[ftodate]}' /></td>";
$table.="<td><input type='text' style='width:90%;' disabled id = '{$i}BT7' value = '{$value[fexp]}' /></td>";
//$table.="<td><input type='text' style='width:90%;' disabled id = '{$i}BT8' value = '{$value[fpoints]}' /></td>";
$table.="<td><input type='text' style='width:90%;' disabled id = '{$i}BT22' value = '{$value[fenclosureno]}' /></td>";
$table.="<td><input type='submit' class='btn btn_3 btn btn-info' value = 'Edit' onclick = 'editexperience(\"$slno\",\"$i\")' id='{$i}BT9' style='width:90%;' ><br><br><input type='submit' value = 'delete' class='btn btn_3 btn btn-danger' onclick = 'deleteexperience(\"$slno\",\"$i\")' id='{$i}BT10' style='width:90%;' ></td>";
$table.="</tr>";
$i++;
}
$rst['table'] = $table;
echo $aobj_context->mobj_output->ToJSONEnvelope($rst,0,"success");
}else
{
$query = "select fslno,fuserid,fappno,funivname,fdegncode,fstatus,fpayscale,date_format(ffromdate,'%d/%m/%Y') as ffromdate,date_format(ftodate,'%d/%m/%Y') as ftodate,fexp,fpoints,fenclosureno,fenttype from expdetl
where fuserid = '{$userid}' and fappno = '{$appno}' and fenttype = 'teach'";
$results = $aobj_context->mobj_db->getAll($query);
//var_dump($query);
$i = 2;
$table ='';
foreach($results as $value)
{
$slno = $value[fslno];
$table.="<tr style = 'width:90%'>";
$table.="<td>";
$table.="<input type = 'hidden' value = '{$value[fslno]}' id='postid_{$i}'/><textarea type='text' style='width:90%;' disabled id = '{$i}BT1' name='fulltimeexp' >{$value[funivname]}</textarea>";
$table.="</td>";
$table.="<td>";
$table.="<textarea type='text' style='width:90%;' disabled id = '{$i}BT2' >{$value[fdegncode]}</textarea>";
$table.="</td>";
$table.="<td>";
$table.="<input type='text' style='width:90%;' disabled id = '{$i}BT3' value = '{$value[fstatus]}' />";
/* $table.="<select style='width:90%;' id = '{$i}BT3' disabled value = '{$value[fstatus]}' >";
$table.="<option value = '' >Select</option>";
$table.="<option value = 'Permanent'>Permanent</option>";
$table.="<option value = 'Ad-hoc'>Ad-hoc</option>";
$table.="<option value = 'Temporay'>Temporay</option>";
$table.="<option value = 'Contractual'>Contractual</option>";
$table.="</select>"; */
$table.="</td>";
$table.="<td><textarea type='text' style='width:90%;' disabled id = '{$i}BT4' >{$value[fpayscale]}</textarea></td>";
$table.="<td><input type='text' style='width:90%;' disabled id = '{$i}BT5' value = '{$value[ffromdate]}' /></td>";
$table.="<td><input type='text' style='width:90%;' disabled id = '{$i}BT6' value = '{$value[ftodate]}' /></td>";
$table.="<td><input type='text' style='width:90%;' disabled id = '{$i}BT7' value = '{$value[fexp]}' /></td>";
//$table.="<td><input type='text' style='width:90%;' disabled id = '{$i}BT8' value = '{$value[fpoints]}' /></td>";
$table.="<td><input type='text' style='width:90%;' disabled id = '{$i}BT22' value = '{$value[fenclosureno]}' /></td>";
$table.="<td><input type='submit' class='btn btn_3 btn btn-info' value = 'Edit' onclick = 'editexperience(\"$slno\",\"$i\")' id='{$i}BT9' style='width:90%;' ><br><br><input type='submit' value = 'delete' class='btn btn_3 btn btn-danger' onclick = 'deleteexperience(\"$slno\",\"$i\")' id='{$i}BT10' style='width:90%;' ></td>";
$table.="</tr>";
$i++;
}
$rst['table'] = $table;
echo $aobj_context->mobj_output->ToJSONEnvelope($rst,0,"success");
}
}
function deleteexperience2($aobj_context)
{
session_start();
$userid = $_SESSION['userid'];
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$appno = trim($aobj_context->mobj_data["appno"]);
$slno = trim($aobj_context->mobj_data["slno"]);
$query = "delete from expdetl where fuserid = '{$userid}' and fappno = '{$appno}' and fslno = '{$slno}' and fenttype = 'phd'";
$results = $aobj_context->mobj_db->Execute($query);
if($results)
{
$query = "select fslno,fuserid,fappno,funivname,fdegncode,fstatus,fpayscale,ffromdate,ftodate,fexp,fpoints,fenclosureno,fenttype from expdetl
where fuserid = '{$userid}' and fappno = '{$appno}' and fenttype = 'phd'";
$results = $aobj_context->mobj_db->getAll($query);
$i = 2;
$table2 ='';
foreach($results as $value)
{
$slno = $value[fslno];
$table2.="<tr>";
$table2.="<td>";
$table2.="<input type = 'hidden' value = '{$value[fslno]}' disabled id='postid1_{$i}'/><textarea type='text' style='width:90%;' id = '{$i}BT10' name='fulltimeexp' >{$value[funivname]}</textarea>";
$table2.="</td>";
$table2.="<td>";
$table2.="<textarea type='text' style='width:90%;' disabled id = '{$i}BT11' >{$value[fdegncode]}</textarea>";
$table2.="</td>";
$table2.="<td><textarea type='text' style='width:90%;' disabled id = '{$i}BT12' >{$value[fpayscale]}</textarea></td>";
$table2.="<td><input type='text' style='width:90%;' disabled id = '{$i}BT13' value = '{$value[ffromdate]}' /></td>";
$table2.="<td><input type='text' style='width:90%;' disabled id = '{$i}BT14' value = '{$value[ftodate]}' /></td>";
$table2.="<td><input type='text' style='width:90%;' disabled id = '{$i}BT15' value = '{$value[fexp]}' /></td>";
//$table2.="<td><input type='text' style='width:90%;' disabled id = '{$i}BT16' value = '{$value[fpoints]}' /></td>";
$table2.="<td><input type='text' style='width:90%;' disabled id = '{$i}BT23' value = '{$value[fenclosureno]}' /></td>";
$table2.="<td><input type='submit' value = 'Edit' class='btn btn_3 btn btn-info' onclick = 'editexperience2(\"$slno\",\"$i\")' id='{$i}BT9' style='width:90%;' ><br><br><input type='submit' class='btn btn_3 btn btn-danger' value = 'delete' onclick = 'deleteexperience2(\"$slno\",\"$i\")' id='{$i}BT10' style='width:90%;' ></td>";
$table2.="</tr>";
$i++;
}
$rst['table'] = $table2;
echo $aobj_context->mobj_output->ToJSONEnvelope($rst,0,"success");
}
}
function saveexperience2($aobj_context)
{
session_start();
$userid = $_SESSION['userid'];
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$funivname = trim($aobj_context->mobj_data["funivname"]);
$fdegncode = trim($aobj_context->mobj_data["fdesgcode"]);
$fstatus = trim($aobj_context->mobj_data["fstatus"]);
$fpayscale = trim($aobj_context->mobj_data["fpayscale"]);
$fromdate = trim($aobj_context->mobj_data["fromdate"]);
$ftodate = trim($aobj_context->mobj_data["ftodate"]);
$ftpe = trim($aobj_context->mobj_data["ftpe"]);
$fpoints = trim($aobj_context->mobj_data["fpoints"]);
$fenclosureno = trim($aobj_context->mobj_data["fenclosureno"]);
$experience = trim($aobj_context->mobj_data["experience"]);
$appno = trim($aobj_context->mobj_data["appno"]);
//$_SESSION['appno'] = $appno;
if($experience == 'I')
{
$query = "insert into expdetl(fuserid,fappno,funivname,fdegncode,fstatus,fpayscale,ffromdate,ftodate,fexp,fpoints,fenclosureno,fenttype)
values('{$userid}','{$appno}','{$funivname}','{$fdegncode}','{$fstatus}','{$fpayscale}',DATE_FORMAT(str_to_date('{$fromdate}','%d/%m/%Y'),'%Y-%m-%d'),DATE_FORMAT(str_to_date('{$ftodate}','%d/%m/%Y'),'%Y-%m-%d'),'{$ftpe}','{$fpoints}','{$fenclosureno}','phd')";
$results = $aobj_context->mobj_db->Execute($query);
}
else
{
$query = "update expdetl set funivname = '{$funivname}',fdegncode = '{$fdegncode}',
fstatus = '{$fstatus}',fpayscale = '{$fpayscale}',ffromdate =DATE_FORMAT(str_to_date('{$fromdate}','%d/%m/%Y'),'%Y-%m-%d'),
ftodate=DATE_FORMAT(str_to_date('{$ftodate}','%d/%m/%Y'),'%Y-%m-%d'),fenclosureno = '{$fenclosureno}',
fexp = '{$ftpe}',fpoints = '{$fpoints}' where fuserid = '{$userid}' and fappno = '{$appno}' and fslno = '{$experience}'";
$results = $aobj_context->mobj_db->Execute($query);
}
if($results)
{
$query = "select fslno,fuserid,fappno,funivname,fdegncode,fstatus,fpayscale,date_format(ffromdate,'%d/%m/%Y') as ffromdate,date_format(ftodate,'%d/%m/%Y') as ftodate,fexp,fpoints,fenclosureno,fenttype from expdetl
where fuserid = '{$userid}' and fappno = '{$appno}' and fenttype = 'phd'";
$results = $aobj_context->mobj_db->getAll($query);
$i = 2;
$table2 ='';
foreach($results as $value)
{
$slno = $value[fslno];
$table2.="<tr>";
$table2.="<td>";
$table2.="<input type = 'hidden' value = '{$value[fslno]}' disabled id='postid1_{$i}'/><textarea type='text' style='width:90%;' id = '{$i}BT10' name='fulltimeexp' >{$value[funivname]}</textarea>";
$table2.="</td>";
$table2.="<td>";
$table2.="<textarea type='text' style='width:90%;' disabled id = '{$i}BT11' >{$value[fdegncode]}</textarea>";
$table2.="</td>";
$table2.="<td><textarea type='text' style='width:90%;' disabled id = '{$i}BT12' >{$value[fpayscale]}</textarea></td>";
$table2.="<td><input type='text' style='width:90%;' disabled id = '{$i}BT13' value = '{$value[ffromdate]}' /></td>";
$table2.="<td><input type='text' style='width:90%;' disabled id = '{$i}BT14' value = '{$value[ftodate]}' /></td>";
$table2.="<td><input type='text' style='width:90%;' disabled id = '{$i}BT15' value = '{$value[fexp]}' /></td>";
//$table2.="<td><input type='text' style='width:90%;' disabled id = '{$i}BT16' value = '{$value[fpoints]}' /></td>";
$table2.="<td><input type='text' style='width:90%;' disabled id = '{$i}BT23' value = '{$value[fenclosureno]}' /></td>";
$table2.="<td><input type='submit' value = 'Edit' class='btn btn_3 btn btn-info' onclick = 'editexperience2(\"$slno\",\"$i\")' id='{$i}BT9' style='width:90%;' ><br><br><input type='submit' class='btn btn_3 btn btn-danger' value = 'delete' onclick = 'deleteexperience2(\"$slno\",\"$i\")' id='{$i}BT10' style='width:90%;' ></td>";
$table2.="</tr>";
$i++;
}
$rst['table'] = $table2;
echo $aobj_context->mobj_output->ToJSONEnvelope($rst,0,"success");
}else
{
$query = "select fslno,fuserid,fappno,funivname,fdegncode,fstatus,fpayscale,ffromdate,ftodate,fexp,fpoints,fenclosureno,fenttype from expdetl
where fuserid = '{$userid}' and fappno = '{$appno}' and fenttype = 'phd'";
$results = $aobj_context->mobj_db->getAll($query);
$i = 2;
$table2 ='';
foreach($results as $value)
{
$slno = $value[fslno];
$table2.="<tr>";
$table2.="<td>";
$table2.="<input type = 'hidden' value = '{$value[fslno]}' disabled id='postid1_{$i}'/><textarea type='text' style='width:90%;' id = '{$i}BT10' name='fulltimeexp' >{$value[funivname]}</textarea>";
$table2.="</td>";
$table2.="<td>";
$table2.="<textarea type='text' style='width:90%;' disabled id = '{$i}BT11' >{$value[fdegncode]}</textarea>";
$table2.="</td>";
$table2.="<td><textarea type='text' style='width:90%;' disabled id = '{$i}BT12' >{$value[fpayscale]}</textarea></td>";
$table2.="<td><input type='text' style='width:90%;' disabled id = '{$i}BT13' value = '{$value[ffromdate]}' /></td>";
$table2.="<td><input type='text' style='width:90%;' disabled id = '{$i}BT14' value = '{$value[ftodate]}' /></td>";
$table2.="<td><input type='text' style='width:90%;' disabled id = '{$i}BT15' value = '{$value[fexp]}' /></td>";
//$table2.="<td><input type='text' style='width:90%;' disabled id = '{$i}BT16' value = '{$value[fpoints]}' /></td>";
$table2.="<td><input type='text' style='width:90%;' disabled id = '{$i}BT23' value = '{$value[fenclosureno]}' /></td>";
$table2.="<td><input type='submit' value = 'Edit' class='btn btn_3 btn btn-info' onclick = 'editexperience2(\"$slno\",\"$i\")' id='{$i}BT9' style='width:90%;' ><br><br><input type='submit' class='btn btn_3 btn btn-danger' value = 'delete' onclick = 'deleteexperience2(\"$slno\",\"$i\")' id='{$i}BT10' style='width:90%;' ></td>";
$table2.="</tr>";
$i++;
}
$rst['table'] = $table2;
echo $aobj_context->mobj_output->ToJSONEnvelope($rst,0,"success");
}
}
?>
|