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.144.104.175
var urlarr = window.location.pathname.split("/");
var $url = "http://" + window.location.host + "/";
var $hoststr = "";
for (var j = 1; j < urlarr.length - 1; j++) {
$hoststr += window.location.pathname.split("/")[j] + "/";
}
$host_url = $url + $hoststr + "app.php?a=";
$image_path = $url + $hoststr + "jqGrid3.5/cmes/tarka/images/";
function loadhomedropdown() {
$("#TDISABILITY").hide();
$("#PDISABILITY").hide();
$("#chapsw").hide();
$("#home").show();
$.ajax({
type: "POST",
async: false,
url: $host_url + "getdropdown",
success: function getcatcoderesponce(responce) {
responce = eval("(" + responce + ")");
$("#postdetails").hide();
document.getElementById("1S1").options.length = 0;
//document.getElementById("1S3").value = '';
var post = responce.data["post"];
$op = new Option("-Select-", 0);
$op.id = 0; //specifying the id for options
document.getElementById("1S1").options.add($op);
for ($i = 0; $i < post.length; $i++) {
$op = new Option(post[$i]["value"], post[$i]["internal_code"]);
$op.id = post[$i]["internal_code"]; //specifying the id for options
document.getElementById("1S1").options.add($op);
}
/* document.getElementById("1S2").options.length = 0;
var course =responce.data['course'];
setCookie('course',course);
$op = new Option("-Select-","");
$op.id=0;//specifying the id for options
document.getElementById("1S2").options.add($op)
for($i=0;$i < course.length;$i++)
{
$op = new Option(course[$i]['value'], course[$i]['internal_code']);
$op.id=course[$i]['internal_code'];//specifying the id for options
document.getElementById("1S2").options.add($op);
} */
loadapplieddetails();
}
});
}
function loadchangepassword() {
$("#home").hide();
$("#chapsw").show();
}
function chanpswvalidate() {
var myobject;
fldorder = "T1,T2";
mandfields = "T1,T2";
myobject = onsavevalidate.call(myobject, 999);
if (myobject != 999) {
document.getElementById(myobject).focus();
return false;
}
var pswold = $("#T1").val();
var pswnew = $("#T2").val();
var parameters = "pswold=" + pswold + "&pswnew=" + pswnew;
$.ajax({
url: $host_url + "chanpswvalidate",
data: parameters,
success: chanpswvalidateResponse
});
}
function chanpswvalidateResponse(responce) {
responce = eval("(" + responce + ")");
if (responce.error_code == 0) {
alert(responce.data);
loadhomedropdown();
} else {
alert(responce.data);
document.getElementById("T1").value = "";
document.getElementById("T2").value = "";
document.getElementById("T1").focus();
return false;
}
}
function postdeportment() {
$.ajax({
type: "POST",
async: false,
url: $host_url + "getdropdown",
success: function getcatcoderesponce(responce) {
responce = eval("(" + responce + ")");
document.getElementById("S3").options.length = 0;
var catcode = responce.data["catcode"];
$op = new Option("--Select--", 0);
$op.id = 0; //specifying the id for options
document.getElementById("S3").options.add($op);
for ($i = 0; $i < catcode.length; $i++) {
$op = new Option(catcode[$i]["value"], catcode[$i]["internal_code"]);
$op.id = catcode[$i]["internal_code"]; //specifying the id for options
document.getElementById("S3").options.add($op);
}
}
});
}
/* function getage()
{
alert(Date.getTime);
date = document.getElementById('T2').value;
} */
function getage() {
if (isDate($("#T2").val())) {
var age = calculateAge(parseDate($("#T2").val()), new Date());
$("#T3").val(age);
} else {
$("#T3").val("");
}
}
//convert the date string in the format of dd/mm/yyyy into a JS date object
function parseDate(dateStr) {
var dateParts = dateStr.split("/");
return new Date(dateParts[2], dateParts[1] - 1, dateParts[0]);
}
//is valid date format
function calculateAge(dateOfBirth, dateToCalculate) {
var calculateYear = 2019;
var calculateMonth = 10;
var calculateDay = 05;
var birthYear = dateOfBirth.getFullYear();
var birthMonth = dateOfBirth.getMonth();
var birthDay = dateOfBirth.getDate();
var age = calculateYear - birthYear;
var ageMonth = calculateMonth - birthMonth;
var ageDay = calculateDay - birthDay;
if (ageMonth < 0 || (ageMonth == 0 && ageDay < 0)) {
age = parseInt(age) - 1;
}
return age;
}
function isDate(txtDate) {
var currVal = txtDate;
if (currVal == "") return true;
//Declare Regex
var rxDatePattern = /^(\d{1,2})(\/|-)(\d{1,2})(\/|-)(\d{4})$/;
var dtArray = currVal.match(rxDatePattern); // is format OK?
if (dtArray == null) return false;
//Checks for dd/mm/yyyy format.
var dtDay = dtArray[1];
var dtMonth = dtArray[3];
var dtYear = dtArray[5];
if (dtMonth < 1 || dtMonth > 12) return false;
else if (dtDay < 1 || dtDay > 31) return false;
else if (
(dtMonth == 4 || dtMonth == 6 || dtMonth == 9 || dtMonth == 11) &&
dtDay == 31
)
return false;
else if (dtMonth == 2) {
var isleap = dtYear % 4 == 0 && (dtYear % 100 != 0 || dtYear % 400 == 0);
if (dtDay > 29 || (dtDay == 29 && !isleap)) return false;
}
return true;
}
function enableappeared(id) {
//$("input[name=fqualify]:checked").val();
if (document.getElementById(id).value == "T") {
$("#TDISABILITY").show();
$("#PDISABILITY").show();
} else {
$("#TDISABILITY").hide();
$("#PDISABILITY").hide();
}
}
/* function savepersonaldetails()
{
var myobject = {};
fldorder = 'T1,T2,T3,T4,T5,T6,T7,T8,T9,S3,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27';
mandfields = 'T1';
fieldarr = fldorder.split(",");
myobject = onsavevalidate.call(myobject, 999);
if (myobject != 999)
{
document.getElementById(myobject).focus();
return false;
}
var fieldarrval = new Object();
for(i=0; i<fieldarr.length; i++)
{
alert(document.getElementById(fieldarr[i]).value);
fieldarrval[fieldarr[i]] = document.getElementById(fieldarr[i]).value;
}
var fieldarrvalue = encodeURIComponent(JSON.stringify(fieldarrval));
var data = "fieldarrvalue="+fieldarrvalue;
if(Object.size(fieldarrval)>0)
{
$upload = $host_url+"savepersonaldetails&"+data;
document.getElementById("form_module_image_upload").setAttribute("action",$upload);
return AIM.submit(document.getElementById("form_module_image_upload"), 'same_tab',{'onComplete' : savepersonaldetailssuccess});
/* $.ajax({
type: "POST",
url: $host_url+"savepersonaldetails",
data:"fieldarrvalue="+fieldarrvalue,
success:savepersonaldetailssuccess
});
}
}
function savepersonaldetailssuccess()
{
} */
/* function saveeducationaldetails()
{
var myobject = {};
fldorder = 'T28,T29,T30,T31,T32,T33,T34,T35,T36,T37,T38,T39,T40,T41,T42,T43,T44,T45,T46,T47,T48,T49,T50';
fldorder +=',T51,T52,T53,T54,T55,T56,T57,T58,T59,T60,T61,T62,T63,T64,T65,T66,T67,T68,T69,T70,T71,T72,T73,T74,T75,T76,T77,T78,T79,T80';
mandfields = 'T28';
var fieldarrval = new Object();
fieldarr = fldorder.split(",");
myobject = onsavevalidate.call(myobject, 999);
if (myobject != 999)
{
document.getElementById(myobject).focus();
return false;
}
for(i=0; i<fieldarr.length; i++)
{
fieldarrval[fieldarr[i]] = document.getElementById(fieldarr[i]).value;
}
var fieldarrvalue = encodeURIComponent(JSON.stringify(fieldarrval));
if(Object.size(fieldarrval)>0)
{
$.ajax({
type: "POST",
url: $host_url+"saveeducationaldetails",
data:"fieldarrvalue="+fieldarrvalue,
success:saveeducationaldetailsssuccess
});
}
}
function saveeducationaldetailsssuccess()
{
}
function saveeducationaldetails()
{
var myobject = {};
fldorder = 'T28,T29,T30,T31,T32,T33,T34,T35,T36,T37,T38,T39,T40,T41,T42,T43,T44,T45,T46,T47,T48,T50';
fldorder +=',T51,T52,T53,T54,T55,T56,T57,T58,T59,T60,T61,T62,T63,T64,T65,T66,T67,T68,T69,T70,T71,T72,T73,T74,T75,T76,T77,T78,T79,T80';
mandfields = 'T28';
var fieldarrval = new Object();
fieldarr = fldorder.split(",");
myobject = onsavevalidate.call(myobject, 999);
if (myobject != 999)
{
document.getElementById(myobject).focus();
return false;
}
var ug = document.getElementById('TBA42').value;
var pg = document.getElementById('T49').value;
for(i=0; i<fieldarr.length; i++)
{
fieldarrval[fieldarr[i]] = document.getElementById(fieldarr[i]).value;
}
var fieldarrvalue = encodeURIComponent(JSON.stringify(fieldarrval));
if(Object.size(fieldarrval)>0)
{
$.ajax({
type: "POST",
url: $host_url+"saveeducationaldetails",
data:"fieldarrvalue="+fieldarrvalue+"&ug="+ug+"&pg="+pg,
success:saveeducationaldetailsssuccess
});
}
}
function saveeducationaldetailsssuccess($responce)
{
$responce = eval('(' + $responce + ')');
if($responce.error_code==0)
{
alert($responce.data);
return;
}
else
{
alert($responce.data);
return;
}
}
*/
function saveresearchcat() {
var myobject = {};
fldorder =
"T501,T502,T503,T504,T505,T506,T507,T508,T509,T513,T514,T515,T516,T517,T518,T519,T520,T521";
mandfields =
"T501,T502,T503,T504,T505,T506,T507,T508,T509,T513,T514,T515,T516,T517,T518,T519,T520,T521";
var fieldarrval = new Object();
fieldarr = fldorder.split(",");
myobject = onsavevalidate.call(myobject, 999);
if (myobject != 999) {
document.getElementById(myobject).focus();
return false;
}
var appno = document.getElementById("appno").value;
//var pg = document.getElementById('T49').value;
for (i = 0; i < fieldarr.length; i++) {
fieldarrval[fieldarr[i]] = document.getElementById(fieldarr[i]).value;
}
var fieldarrvalue =
encodeURIComponent(JSON.stringify(fieldarrval)) + "&appno=" + appno;
if (Object.size(fieldarrval) > 0) {
$.ajax({
type: "POST",
url: $host_url + "saveresearchcat",
data: "fieldarrvalue=" + fieldarrvalue,
success: saveresearchcatsssuccess
});
}
}
function saveresearchcatsssuccess($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
alert($responce.data);
return;
} else {
alert($responce.data);
return;
}
}
function saveeducationaldetails() {
var myobject = {};
fldorder =
"T28,T29,T30,T31,T32,T33,T34,T35,T36,T37,T38,T39,T40,T41,T42,T43,T44,T45,T46,T47,T48,T49,T50";
fldorder +=
",T51,T52,T53,T54,T55,T56,T57,T58,T59,T60,T61,T62,T63,T64,T65,T66,T67,T68,T69,T200,T201,T202,T203,T204,T205,T206,T207,T208,T209,T210,T211,T212,T213";
mandfields = "T28,T29,T30,T31,T32,T33,T34";
var subject = document.getElementById("post_subject").value;
if (
subject == "Education 1-GM-1(Others)" ||
subject == "Education 1-II A-1(Others)"
) {
mandfields +=
",T200,T201,T202,T203,T204,T205,T206,T207,T208,T209,T210,T211,T212,T213";
} else {
mandfields += ""; //",T51,T52,T53,T54,T55,T56,T57";
}
var fieldarrval = new Object();
fieldarr = fldorder.split(",");
myobject = onsavevalidate.call(myobject, 999);
if (myobject != 999) {
document.getElementById(myobject).focus();
return false;
}
var appno = document.getElementById("appno").value;
var post_id = document.getElementById("post_id").value;
console.log(post_id);
//var pg = document.getElementById('T49').value;
for (i = 0; i < fieldarr.length; i++) {
fieldarrval[fieldarr[i]] = document.getElementById(fieldarr[i]).value;
}
var fieldarrvalue =
encodeURIComponent(JSON.stringify(fieldarrval)) +
"&appno=" +
appno +
"&post_id=" +
post_id;
if (Object.size(fieldarrval) > 0) {
$.ajax({
type: "POST",
url: $host_url + "saveeducationaldetails",
data: "fieldarrvalue=" + fieldarrvalue + "&subject=" + subject,
success: saveeducationaldetailsssuccess
});
}
}
function saveeducationaldetailsssuccess($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
alert($responce.data);
return;
} else {
alert($responce.data);
return;
}
}
function enablemphil() {
var str = "T58,T59,T60,T61,T62,T63";
fieldarr = str.split(",");
if (document.getElementById("mphil").checked == true) {
for (i = 0; i < fieldarr.length; i++) {
document.getElementById(fieldarr[i]).disabled = false;
}
} else {
for (i = 0; i < fieldarr.length; i++) {
document.getElementById(fieldarr[i]).disabled = true;
}
}
}
function enablephd() {
var str = "T64,T65,T66,T67,T68,T69";
fieldarr = str.split(",");
if (document.getElementById("phd").checked == true) {
for (i = 0; i < fieldarr.length; i++) {
document.getElementById(fieldarr[i]).disabled = false;
}
} else {
for (i = 0; i < fieldarr.length; i++) {
document.getElementById(fieldarr[i]).disabled = true;
}
}
}
function saveexperiencedetails() {
var appno = document.getElementById("appno").value;
var funivname = document.getElementById("1BT18").value;
var fdegncode = document.getElementById("1BT19").value;
var ffromdate = document.getElementById("1BT20").value;
var fstatus = document.getElementById("1BT21").value;
var dataString =
"&appno=" +
appno +
"&funivname=" +
funivname +
"&fdegncode=" +
fdegncode +
"&ffromdate=" +
ffromdate +
"&fstatus=" +
fstatus;
$.ajax({
type: "POST",
url: $host_url + "saveexperiencedetails",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
alert("Updated Successfuly");
document.getElementById("1BT18").value = $responce.data["funivname"];
document.getElementById("1BT19").value = $responce.data["fdegncode"];
document.getElementById("1BT20").value = $responce.data["ffromdate"];
document.getElementById("1BT21").value = $responce.data["fstatus"];
} else {
alert($responce.data);
document.getElementById("1BT18").value = "";
document.getElementById("1BT19").value = "";
document.getElementById("1BT20").value = "";
document.getElementById("1BT21").value = "";
}
}
});
}
function savepublicationdetails() {
var myobject;
fldorder =
"S1,S2,S3,S4,S6,S8,S12,S9,S10,S11,S12,S13,S14,S15,S16,S17,S18,S19,S20,S21,S22,S23";
mandfields = "S1,S2,S3,S4,S6,S19,S20,S21,S22,S23";
myobject = onsavevalidate.call(myobject, 999);
if (myobject != 999) {
document.getElementById(myobject).focus();
return false;
}
}
function saveforeignvisit() {
var myobject;
fldorder =
"S1,S2,S3,S4,S6,S8,S12,S9,S10,S11,S12,S13,S14,S15,S16,S17,S18,S19,S20,S21,S22,S23";
mandfields = "S1,S2,S3,S4,S6,S19,S20,S21,S22,S23";
myobject = onsavevalidate.call(myobject, 999);
if (myobject != 999) {
document.getElementById(myobject).focus();
return false;
}
}
/* function savereferences()
{
var myobject;
fldorder = 'S24,S25,S26,S27,S28,S29,S30,S31,S32,S33,S34,S35,S36,S37,S38,S39,S40,S41';
mandfields = 'S24,S27,S30,S33,S36,S39';
myobject = onsavevalidate.call(myobject, 999);
if (myobject != 999)
{
document.getElementById(myobject).focus();
return false;
}
} */
function savereferences() {
var myobject;
fldorder =
"S24,S25,S26,S27,S28,S29,S30,S31,S32,S33,S34,S35,S36,S37,S38,S39,S40,S41";
mandfields = "S24,S27,S30,S33,S36,S39";
var fieldarrval = new Object();
fieldarr = fldorder.split(",");
myobject = onsavevalidate.call(myobject, 999);
if (myobject != 999) {
document.getElementById(myobject).focus();
return false;
}
for (i = 0; i < fieldarr.length; i++) {
fieldarrval[fieldarr[i]] = document.getElementById(fieldarr[i]).value;
}
var fieldarrvalue = encodeURIComponent(JSON.stringify(fieldarrval));
if (Object.size(fieldarrval) > 0) {
$.ajax({
type: "POST",
url: $host_url + "savereferences",
data: "fieldarrvalue=" + fieldarrvalue,
success: savereferencesuccess
});
}
}
function savereferencesuccess($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
alert($responce.data);
return;
} else {
alert($responce.data);
return;
}
}
/* function DisplayUserSelectedPhoto()
{
var filepath;
var valid_file_extentions = new Array("jpg");
var ext=$("#student_photo_upload").val();
filepath=ext;
ext = ext.substring(ext.length-3,ext.length);
ext = ext.toLowerCase();
if(ext != "" && valid_file_extentions == 'jpg' && valid_file_extentions == 'jpeg')
{
alert("Please Select the Valid Photo!");
$("#student_photo_upload").val('')
return false;
}
var lstr_data="filepath="+filepath;
$upload = $host_url+"saveUserSelectedPhoto&"+lstr_data;
//$.blockUI({ message: "<h1 class='h1' style='font-size:12px'><img src='img/ajax-loader.gif' border='0'></h1>" });
document.getElementById("form_module_image_upload").setAttribute("action",$upload);
return AIM.submit(document.getElementById("form_module_image_upload"), 'same_tab',{'onComplete' : DiaplayUserSelectedPhotoResponse});
}
function DiaplayUserSelectedPhotoResponse($responce)
{
$responce = eval('(' + $responce + ')');
// $.unblockUI();
if($responce.error_code==0)
{
$("#student_photo").attr("src", $responce.data);
}
else if($responce.error_code==-1)
$("#student_photo").attr("src", "img/default_photo.jpg");
else if($responce.error_code==-2)
{
alert($responce.data);
$("#student_photo").attr("src", "img/default_photo.jpg");
$("#student_photo_upload").val("");
}
}
function DisplayUserSelectedSign()
{
var filepath;
var valid_file_extentions = new Array("jpg");
var ext=$("#student_sign_upload").val();
filepath=ext;
ext = ext.substring(ext.length-3,ext.length);
ext = ext.toLowerCase();
if(ext != "" && valid_file_extentions == 'jpg' && valid_file_extentions == 'jpeg')
{
alert("Please Select the Valid Photo!");
$("#student_sign_upload").val('')
return false;
}
var lstr_data="filepath="+filepath;
$upload = $host_url+"saveUserSelectedSign&"+lstr_data;
//$.blockUI({ message: "<h1 class='h1' style='font-size:12px'><img src='img/ajax-loader.gif' border='0'></h1>" });
document.getElementById("form_module_image_upload").setAttribute("action",$upload);
return AIM.submit(document.getElementById("form_module_image_upload"), 'same_tab',{'onComplete' : DiaplayUserSelectedSignResponse});
}
function DiaplayUserSelectedSignResponse($responce)
{
$responce = eval('(' + $responce + ')');
// $.unblockUI();
if($responce.error_code==0)
{
$("#student_sign").attr("src", $responce.data);
}
else if($responce.error_code==-1)
$("#student_sign").attr("src", "img/default_photo.jpg");
else if($responce.error_code==-2)
{
alert($responce.data);
$("#student_sign").attr("src", "img/default_photo.jpg");
$("#student_sign_upload").val("");
}
} */
function savepostdetails() {
var myobject;
fldorder = "1S1,1S2";
mandfields = "1S1,1S2";
myobject = onsavevalidate.call(myobject, 999);
if (myobject != 999) {
document.getElementById(myobject).focus();
return false;
}
//alert( document.getElementById("student_photo").src);
if ($("#student_photo").val() == "default_photo.jpg") {
alert("Select valid photo file(accepts only jpg or jpeg)");
$("#student_photo_upload").val("");
return false;
}
if ($("#student_sign").val() == "signature.png") {
alert("Select valid sign file(accepts only jpg or jpeg)");
$("#student_sign_upload").val("");
return false;
}
var inputFileds = document.getElementsByTagName("input");
var chkCnt = 0;
var rowCnt = 0;
var post_arr = {};
for (var counter = 0; counter < inputFileds.length; counter++) {
if (
inputFileds[counter].type.toUpperCase() == "HIDDEN" &&
inputFileds[counter].name == "postname"
) {
++rowCnt;
if (document.getElementById(rowCnt + "HS3").value != "T") {
++chkCnt;
if (trim(document.getElementById(chkCnt + "S1").value) == "") {
alert("Select Post");
document.getElementById(chkCnt + "S1").focus();
return false;
}
if (trim(document.getElementById(chkCnt + "S2").value) == "") {
alert("Select Qualifying Exam");
document.getElementById(chkCnt + "S2").focus();
return false;
}
post_arr[chkCnt] = new Object();
post_arr[chkCnt]["post"] = document.getElementById(rowCnt + "S1").value;
post_arr[chkCnt]["course"] = document.getElementById(
rowCnt + "S2"
).value;
}
}
}
var dataString = "&post_arr=" + encodeURIComponent(JSON.stringify(post_arr));
$.ajax({
type: "POST",
url: $host_url + "savePostDetails",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
alert($responce.data);
document.getElementById("ctab_post").className = "vsuccess";
/* var post = document.getElementById('1S1').value;
var subject = document.getElementById('1S2').value;
document.getElementById('postdata').value = 'Application for "'+post+'" in Department of "'+subject+'"'; */
} else alert($responce.data);
}
});
}
/* function savepersonaldetails()
{
var myobject = {};
fldorder = 'T1,T2,T3,T4,T5,T6,T7,T8,T9,T11,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26';
mandfields = 'T1';
fieldarr = fldorder.split(",");
myobject = onsavevalidate.call(myobject, 999);
if (myobject != 999)
{
document.getElementById(myobject).focus();
return false;
}
var fieldarrval = new Object();
for(i=0; i<fieldarr.length; i++)
{
fieldarrval[fieldarr[i]] = document.getElementById(fieldarr[i]).value;
}
var fqualify = $('input[name=fqualify]:checked').val();
var fcatcode = document.getElementById('S3').value;
var appno = document.getElementById('appno').value;
var fieldarrvalue = encodeURIComponent(JSON.stringify(fieldarrval));
//var data = "fieldarrvalue="+fieldarrvalue;
var inputFileds = document.getElementsByTagName('input');
var chkCnt = 0;
var rowCnt = 0;
var foreign_arr = {};
for (var counter=0; counter < inputFileds.length; counter++)
{
if ( inputFileds[counter].type.toUpperCase()=='TEXT' && inputFileds[counter].name == "language" )
{
++rowCnt;
if(document.getElementById(rowCnt+'HT3').value != 'T')
{
++chkCnt;
foreign_arr[chkCnt] = new Object();
foreign_arr[chkCnt]['language'] = document.getElementById(rowCnt+'HT1').value;
if(document.getElementById(rowCnt+'HT2').value == "on")
{
foreign_arr[chkCnt]['read'] = document.getElementById(rowCnt+'HT2').value;
} else {
foreign_arr[chkCnt]['read'] = "off";
}
if(document.getElementById(rowCnt+'HT3').value == "on")
{
foreign_arr[chkCnt]['write'] = document.getElementById(rowCnt+'HT3').value;
} else {
foreign_arr[chkCnt]['write'] = "off";
}
if(document.getElementById(rowCnt+'HT4').value == "on")
{
foreign_arr[chkCnt]['spoken'] = document.getElementById(rowCnt+'HT4').value;
} else {
foreign_arr[chkCnt]['spoken'] = "off";
}
alert(foreign_arr[chkCnt]['read']+"$"+foreign_arr[chkCnt]['write']+"$"+foreign_arr[chkCnt]['spoken']);
}
}
}
if(Object.size(fieldarrval)>0)
{
$.ajax({
type: "POST",
url: $host_url+"savepersonaldetails",
data:"fieldarrvalue="+fieldarrvalue+"&fqualify="+fqualify+"&fcatcode="+fcatcode+"&foreign_arr="+encodeURIComponent(JSON.stringify(foreign_arr))+"&appno="+appno,
success:savepersonaldetailsuccess
});
}
}
function savepersonaldetailsuccess($responce)
{
$responce = eval('(' + $responce + ')');
if($responce.error_code==0)
{
alert($responce.data);
return;
}
else
{
alert($responce.data);
return;
}
} */
function savepersonaldetails() {
var myobject = {};
fldorder =
"T1,T2,T3,T4,T5,T6,T7,T8,T9,T11,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T602,T601,T603,T604";
mandfields = "T1,T2,T3,T4,T5,T6,T8,T9,T11,T16,T17,T20,T21,T24,T26";
fieldarr = fldorder.split(",");
myobject = onsavevalidate.call(myobject, 999);
if (myobject != 999) {
document.getElementById(myobject).focus();
return false;
}
var fieldarrval = new Object();
for (i = 0; i < fieldarr.length; i++) {
console.log(fieldarr[i]);
fieldarrval[fieldarr[i]] = document.getElementById(fieldarr[i]).value;
}
var fqualify = $("input[name=fqualify]:checked").val();
/* if(fqualify = 'T')
{
if($('#T14').val() == '')
{
alert('Type of Disability');
$('#T14').focus()
return;
}
if($('#T15').val() == '')
{
alert('Percentage of Disability');
$('#T15').focus()
return;
}
} */
var fcatcode = document.getElementById("S3").value;
var kan = $("input[name=kan]:checked").val();
var r371j = $("input[name=371j]:checked").val();
/*if(r371j == "")
{
alert('Please Select r371j');
return;
} */
var rural = $("input[name=rural]:checked").val();
var ex = $("input[name=ex]:checked").val();
var pd = $("input[name=pd]:checked").val();
if ($("#T9").val() == "0") {
alert("Please Select Gender");
$("#T9").focus();
return;
}
if ($("#S3").val() == "0") {
alert("Please Select Category");
$("#S3").focus();
return;
}
if ($("#T11").val() == "0") {
alert("Please Select Marital Status");
$("#T11").focus();
return;
}
var appno = document.getElementById("appno").value;
var fieldarrvalue = encodeURIComponent(JSON.stringify(fieldarrval));
//var data = "fieldarrvalue="+fieldarrvalue;
var inputFileds = document.getElementsByTagName("input");
var chkCnt = 0;
var rowCnt = 0;
var foreign_arr = {};
for (var counter = 0; counter < inputFileds.length; counter++) {
if (
inputFileds[counter].type.toUpperCase() == "TEXT" &&
inputFileds[counter].name == "language"
) {
++rowCnt;
if (document.getElementById(rowCnt + "HT3").value != "T") {
++chkCnt;
foreign_arr[chkCnt] = new Object();
foreign_arr[chkCnt]["language"] = document.getElementById(
rowCnt + "HT1"
).value;
if (document.getElementById(rowCnt + "HT2").checked == true)
read = "YES";
else read = "NO";
if (document.getElementById(rowCnt + "HT3").checked == true)
write = "YES";
else write = "NO";
if (document.getElementById(rowCnt + "HT4").checked == true)
spoken = "YES";
else spoken = "NO";
foreign_arr[chkCnt]["read"] = read;
foreign_arr[chkCnt]["write"] = write;
foreign_arr[chkCnt]["spoken"] = spoken;
}
}
}
var pwd = "FALSE";
if (document.getElementById("T901").checked == true) {
pwd = "TRUE";
} else {
pwd = "FALSE";
}
if (Object.size(fieldarrval) > 0) {
$.ajax({
type: "POST",
url: $host_url + "savepersonaldetails",
data:
"fieldarrvalue=" +
fieldarrvalue +
"&fqualify=" +
fqualify +
"&fcatcode=" +
fcatcode +
"&foreign_arr=" +
encodeURIComponent(JSON.stringify(foreign_arr)) +
"&appno=" +
appno +
"&pwd=" +
pwd +
"&pwddet=" +
$("#T904").val() +
"&fcaste=" +
$("#T905").val(),
success: savepersonaldetailsuccess
});
}
}
function savepersonaldetailsuccess($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
alert($responce.data);
return;
} else {
alert($responce.data);
return;
}
}
function saveresearchdetails() {
//////To read Multiple Records///////
var inputFileds = document.getElementsByTagName("input");
var chkCnt = 0;
var rowCnt = 0;
var research_arr = {};
for (var counter = 0; counter < inputFileds.length; counter++) {
if (
inputFileds[counter].type.toUpperCase() == "TEXT" &&
inputFileds[counter].name == "researchexp"
) {
++rowCnt;
if (document.getElementById(rowCnt + "BT7").value != "T") {
++chkCnt;
research_arr[chkCnt] = new Object();
research_arr[chkCnt]["Position"] = document.getElementById(
rowCnt + "BT1"
).value;
research_arr[chkCnt]["Emoluments"] = document.getElementById(
rowCnt + "BT2"
).value;
research_arr[chkCnt]["Uname"] = document.getElementById(
rowCnt + "BT3"
).value;
research_arr[chkCnt]["From"] = document.getElementById(
rowCnt + "BT4"
).value;
research_arr[chkCnt]["To"] = document.getElementById(
rowCnt + "BT5"
).value;
research_arr[chkCnt]["Noyears"] = document.getElementById(
rowCnt + "BT6"
).value;
}
}
}
var dataString =
"&research_arr=" + encodeURIComponent(JSON.stringify(research_arr));
$.ajax({
type: "POST",
url: $host_url + "saveresearchdetails",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
alert($responce.data);
} else alert($responce.data);
}
});
}
function saveDetailsofOtherExp() {
var dataString = "&othexpdet=" + document.getElementById("S23").value;
$.ajax({
type: "POST",
url: $host_url + "saveDetailsofOtherExp",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
alert($responce.data);
} else alert($responce.data);
}
});
}
function saveorientationdetails() {
//////To read Multiple Records///////
var inputFileds = document.getElementsByTagName("input");
var chkCnt = 0;
var rowCnt = 0;
var orientation_arr = {};
for (var counter = 0; counter < inputFileds.length; counter++) {
if (
inputFileds[counter].type.toUpperCase() == "TEXT" &&
inputFileds[counter].name == "orientationdet"
) {
++rowCnt;
if (document.getElementById(rowCnt + "DT7").value != "T") {
++chkCnt;
orientation_arr[chkCnt] = new Object();
orientation_arr[chkCnt]["Name"] = document.getElementById(
rowCnt + "DT1"
).value;
orientation_arr[chkCnt]["Rname"] = document.getElementById(
rowCnt + "DT2"
).value;
orientation_arr[chkCnt]["Sname"] = document.getElementById(
rowCnt + "DT3"
).value;
orientation_arr[chkCnt]["From"] = document.getElementById(
rowCnt + "DT4"
).value;
orientation_arr[chkCnt]["To"] = document.getElementById(
rowCnt + "DT5"
).value;
orientation_arr[chkCnt]["Remarks"] = document.getElementById(
rowCnt + "DT6"
).value;
}
}
}
//alert(Object.size(orientation_arr));
var dataString =
"&orientation_arr=" + encodeURIComponent(JSON.stringify(orientation_arr));
$.ajax({
type: "POST",
url: $host_url + "saveorientationdetails",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
alert($responce.data);
} else alert($responce.data);
}
});
}
function saveDetailsofForeignvisit() {
var inputFileds = document.getElementsByTagName("input");
var chkCnt = 0;
var rowCnt = 0;
var foreign_arr = {};
for (var counter = 0; counter < inputFileds.length; counter++) {
if (
inputFileds[counter].type.toUpperCase() == "TEXT" &&
inputFileds[counter].name == "foreignvisit"
) {
++rowCnt;
if (document.getElementById(rowCnt + "IT7").value != "T") {
++chkCnt;
foreign_arr[chkCnt] = new Object();
foreign_arr[chkCnt]["country"] = document.getElementById(
rowCnt + "IT1"
).value;
foreign_arr[chkCnt]["purpose"] = document.getElementById(
rowCnt + "IT2"
).value;
foreign_arr[chkCnt]["from"] = document.getElementById(
rowCnt + "IT3"
).value;
foreign_arr[chkCnt]["to"] = document.getElementById(
rowCnt + "IT4"
).value;
foreign_arr[chkCnt]["total"] = document.getElementById(
rowCnt + "IT5"
).value;
foreign_arr[chkCnt]["period"] = document.getElementById(
rowCnt + "IT6"
).value;
}
}
}
var dataString =
"&foreign_arr=" + encodeURIComponent(JSON.stringify(foreign_arr));
$.ajax({
type: "POST",
url: $host_url + "saveDetailsofForeignvisit",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
alert($responce.data);
} else alert($responce.data);
}
});
}
function DisplayUserSelectedPhoto() {
var filepath;
var valid_file_extentions = new Array("jpg");
var ext = $("#student_photo_uploads").val();
filepath = ext;
ext = ext.substring(ext.length - 3, ext.length);
ext = ext.toLowerCase();
if (
ext != "" &&
valid_file_extentions == "jpg" &&
valid_file_extentions == "jpeg"
) {
alert("Please Select the Valid Photo!");
$("#student_photo_uploads").val("");
return false;
}
var lstr_data = "filepath=" + filepath;
$upload = $host_url + "saveUserSelectedPhoto&" + lstr_data;
//$.blockUI({ message: "<h1 class='h1' style='font-size:12px'><img src='img/ajax-loader.gif' border='0'></h1>" });
document
.getElementById("form_module_image_upload")
.setAttribute("action", $upload);
return AIM.submit(
document.getElementById("form_module_image_upload"),
"same_tab",
{ onComplete: DiaplayUserSelectedPhotoResponse }
);
}
function DiaplayUserSelectedPhotoResponse($responce) {
$responce = eval("(" + $responce + ")");
// $.unblockUI();
if ($responce.error_code == 0) {
$("#student_photo").attr("src", $responce.data);
} else if ($responce.error_code == -1)
$("#student_photo").attr("src", "img/default_photo.jpg");
else if ($responce.error_code == -2) {
alert($responce.data);
$("#student_photo").attr("src", "img/default_photo.jpg");
$("#student_photo_upload").val("");
}
}
function DisplayUserSelectedSign() {
var filepath;
var valid_file_extentions = new Array("jpg");
var ext = $("#student_sign_upload").val();
filepath = ext;
ext = ext.substring(ext.length - 3, ext.length);
ext = ext.toLowerCase();
if (
ext != "" &&
valid_file_extentions == "jpg" &&
valid_file_extentions == "jpeg"
) {
alert("Please Select the Valid Photo!");
$("#student_sign_upload").val("");
return false;
}
var lstr_data = "filepath=" + filepath;
$upload = $host_url + "saveUserSelectedSign&" + lstr_data;
//$.blockUI({ message: "<h1 class='h1' style='font-size:12px'><img src='img/ajax-loader.gif' border='0'></h1>" });
document
.getElementById("form_module_image_upload")
.setAttribute("action", $upload);
return AIM.submit(
document.getElementById("form_module_image_upload"),
"same_tab",
{ onComplete: DiaplayUserSelectedSignResponse }
);
}
function DiaplayUserSelectedSignResponse($responce) {
$responce = eval("(" + $responce + ")");
// $.unblockUI();
if ($responce.error_code == 0) {
$("#student_sign").attr("src", $responce.data);
} else if ($responce.error_code == -1)
$("#student_sign").attr("src", "img/default_photo.jpg");
else if ($responce.error_code == -2) {
alert($responce.data);
$("#student_sign").attr("src", "img/default_photo.jpg");
$("#student_sign_upload").val("");
}
}
function getaddress() {
var add1 = document.getElementById("T16").value;
var add2 = document.getElementById("T17").value;
var add3 = document.getElementById("T18").value;
var add4 = document.getElementById("T19").value;
var city = document.getElementById("T601").value;
var pincode = document.getElementById("T602").value;
document.getElementById("T20").value = add1;
document.getElementById("T21").value = add2;
document.getElementById("T22").value = add3;
document.getElementById("T23").value = add4;
document.getElementById("T603").value = city;
document.getElementById("T604").value = pincode;
}
function savepost() {
var postappiled = document.getElementById("1S1").value;
if (postappiled == "0") {
alert("Select Post");
return;
}
var dataString = "&postappiled=" + postappiled;
$.ajax({
type: "POST",
url: $host_url + "savepost",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
$("#postdetails").show();
$("#postdettable tbody").remove();
$("#postdettable").append($responce.data.table);
} else {
$("#postdetails").show();
$("#postdettable tbody").remove();
$("#postdettable").append($responce.data.table);
alert("Details already selected!");
}
}
});
}
function loadapplieddetails() {
var dataString = "";
$.ajax({
type: "POST",
url: $host_url + "loadapplieddetails",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
$("#postdetails").show();
$("#postdettable tbody").remove();
$("#postdettable").append($responce.data.table);
} else {
$("#postdetails").hide();
}
}
});
}
function main_menu(id) {
/* var vacancies = document.getElementById('postvac_'+id).value;
setCookie("vacancies",vacancies); */
var post = document.getElementById("postdeg_" + id).value;
setCookie("post", post);
var app = document.getElementById("postapplication_" + id).value;
setCookie("app", app);
/* var vacancies = document.getElementById('postvac_'+id).value;
setCookie("vacancies",vacancies); */
window.location.href =
"main_page.html?post=" + post + "&app=" + app + "&id=" + id + "";
}
function savecurricular() {
var myobject = {};
fldorder = "1CA1,1CA2,1CA3";
mandfields = "1CA1";
fieldarr = fldorder.split(",");
var appno = document.getElementById("appno").value;
myobject = onsavevalidate.call(myobject, 999);
if (myobject != 999) {
document.getElementById(myobject).focus();
return false;
}
var fieldarrval = new Object();
for (i = 0; i < fieldarr.length; i++) {
fieldarrval[fieldarr[i]] = document.getElementById(fieldarr[i]).value;
}
var fieldarrvalue = encodeURIComponent(JSON.stringify(fieldarrval));
if (Object.size(fieldarrval) > 0) {
$.ajax({
type: "POST",
url: $host_url + "savecurricular",
data: "fieldarrvalue=" + fieldarrvalue + "&appno=" + appno,
success: savecurricularsuccess
});
}
}
function savecurricularsuccess($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
alert($responce.data);
return;
} else {
alert($responce.data);
return;
}
}
function saveotherdetails() {
var myobject = {};
fldorder =
"OD13,OD14,OD15,OD16,OD17,OD18,OD19,OD20,OD21,OD22,OD23,OD24,OD25,OD26,OD27";
mandfields = "";
fieldarr = fldorder.split(",");
var appno = document.getElementById("appno").value;
var fanydet = document.getElementById("OD40").value;
/* myobject = onsavevalidate.call(myobject, 999);
if (myobject != 999)
{
document.getElementById(myobject).focus();
return false;
} */
//var teachlan = document.querySelector('input[name="teachlan"]:checked').value;
var teachlan = "";
var gc = document.querySelector('input[name="gc"]:checked').value;
var unfit = document.querySelector('input[name="unfit"]:checked').value;
var criminal = document.querySelector('input[name="criminal"]:checked').value;
var FPUNISHEDNAME = "";
var FUNFITNAME = "";
var FCRIMINALNAME = "";
if (document.getElementById("OD8").checked == true) {
FPUNISHEDNAME = document.getElementById("OD30").value;
if (FPUNISHEDNAME == "") {
alert("Enter Punished Details");
return;
}
}
if (document.getElementById("OD10").checked == true) {
FUNFITNAME = document.getElementById("OD31").value;
if (FUNFITNAME == "") {
alert("Enter Unfit Details");
return;
}
}
if (document.getElementById("OD12").checked == true) {
FCRIMINALNAME = document.getElementById("OD32").value;
if (FCRIMINALNAME == "") {
alert("Enter Criminal Details");
return;
}
}
var fieldarrval = new Object();
for (i = 0; i < fieldarr.length; i++) {
fieldarrval[fieldarr[i]] = document.getElementById(fieldarr[i]).value;
}
var fieldarrvalue = encodeURIComponent(JSON.stringify(fieldarrval));
if (Object.size(fieldarrval) > 0) {
$.ajax({
type: "POST",
url: $host_url + "saveotherdetails",
data:
"fieldarrvalue=" +
fieldarrvalue +
"&appno=" +
appno +
"&teachlan=" +
teachlan +
"&gc=" +
gc +
"&unfit=" +
unfit +
"&criminal=" +
criminal +
"&FCRIMINALNAME=" +
FCRIMINALNAME +
"&FUNFITNAME=" +
FUNFITNAME +
"&FPUNISHEDNAME=" +
FPUNISHEDNAME +
"&fanydet=" +
fanydet,
success: saveotherdetailssuccess
});
}
}
function saveotherdetailssuccess($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
alert($responce.data);
return;
} else {
alert($responce.data);
return;
}
}
function saveexperience() {
var funivname = document.getElementById("1BT1").value;
var fdesgcode = document.getElementById("1BT2").value;
var fstatus = document.getElementById("1BT3").value;
var fpayscale = document.getElementById("1BT4").value;
var fromdate = document.getElementById("1BT5").value;
var ftodate = document.getElementById("1BT6").value;
var ftpe = document.getElementById("1BT7").value;
var gradepay = document.getElementById("1BT99").value;
//var fpoints = document.getElementById('1BT8').value;
var fenclosureno = document.getElementById("1BT22").value;
var experience = document.getElementById("experience").value;
var appno = document.getElementById("appno").value;
if (funivname == "") {
alert("Enter Name of University / College / Institute / Organization");
document.getElementById("1BT1").focus();
return;
}
if (fdesgcode == "") {
alert("Enter Designation");
document.getElementById("1BT2").focus();
return;
}
if (fstatus == "") {
alert("Enter Status");
document.getElementById("1BT3").focus();
return;
}
if (fpayscale == "") {
alert("Enter Pay Scale / Consolidated salary");
document.getElementById("1BT4").focus();
return;
}
if (fromdate == "") {
alert("Enter From Date");
document.getElementById("1BT5").focus();
return;
}
if (ftodate == "") {
alert("Enter To Date");
document.getElementById("1BT6").focus();
return;
}
if (fenclosureno == "") {
alert("Enter Enclosure No.");
document.getElementById("1BT22").focus();
return;
}
if (gradepay == "") {
alert("Enter Grade Pay");
document.getElementById("1BT99").focus();
return;
}
var dataString =
"&funivname=" +
funivname +
"&fdesgcode=" +
fdesgcode +
"&fstatus=" +
fstatus +
"&fpayscale=" +
fpayscale +
"&fromdate=" +
fromdate +
"&ftodate=" +
ftodate +
"&ftpe=" +
ftpe +
"&experience=" +
experience +
"&appno=" +
appno +
"&fenclosureno=" +
fenclosureno +
"&gradepay=" +
gradepay;
$.ajax({
type: "POST",
url: $host_url + "saveexperience",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
$("#fulltimeexptable tbody").remove();
$("#fulltimeexptable").append($responce.data.table);
document.getElementById("1BT1").value = "";
document.getElementById("1BT2").value = "";
document.getElementById("1BT3").value = "";
document.getElementById("1BT4").value = "";
document.getElementById("1BT5").value = "";
document.getElementById("1BT6").value = "";
document.getElementById("1BT7").value = "";
document.getElementById("1BT99").value = "";
//document.getElementById('1BT8').value = '';
document.getElementById("1BT22").value = "";
document.getElementById("experience").value = "I";
} else {
$("#fulltimeexptable tbody").remove();
alert($responce.status);
document.getElementById("1BT1").value = "";
document.getElementById("1BT2").value = "";
document.getElementById("1BT3").value = "";
document.getElementById("1BT4").value = "";
document.getElementById("1BT5").value = "";
document.getElementById("1BT6").value = "";
document.getElementById("1BT7").value = "";
document.getElementById("1BT22").value = "";
document.getElementById("1BT99").value = "";
//document.getElementById('1BT8').value = '';
document.getElementById("experience").value = "I";
}
}
});
}
function editexperience(slno, id) {
document.getElementById("1BT1").value = document.getElementById(
id + "BT1"
).value;
document.getElementById("1BT2").value = document.getElementById(
id + "BT2"
).value;
document.getElementById("1BT3").value = document.getElementById(
id + "BT3"
).value;
document.getElementById("1BT4").value = document.getElementById(
id + "BT4"
).value;
document.getElementById("1BT5").value = document.getElementById(
id + "BT5"
).value;
document.getElementById("1BT6").value = document.getElementById(
id + "BT6"
).value;
document.getElementById("1BT7").value = document.getElementById(
id + "BT7"
).value;
//document.getElementById('1BT8').value = document.getElementById(id+'BT8').value;
document.getElementById("1BT22").value = document.getElementById(
id + "BT22"
).value;
document.getElementById("1BT99").value = document.getElementById(
id + "BT99"
).value;
document.getElementById("experience").value = document.getElementById(
"postid_" + id
).value;
}
function deleteexperience(slno, id) {
var appno = document.getElementById("appno").value;
if (confirm("Are you sure you want to delete.")) {
var dataString = "&slno=" + slno + "&appno=" + appno;
$.ajax({
type: "POST",
url: $host_url + "deleteexperience",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
$("#fulltimeexptable tbody").remove();
$("#fulltimeexptable").append($responce.data.table);
} else {
$("#fulltimeexptable tbody").remove();
$("#fulltimeexptable").append($responce.data.table);
}
}
});
}
}
function saveexperience2() {
var funivname = document.getElementById("1BT10").value;
var fdesgcode = document.getElementById("1BT11").value;
var fpayscale = document.getElementById("1BT12").value;
var fromdate = document.getElementById("1BT13").value;
var ftodate = document.getElementById("1BT14").value;
var ftpe = document.getElementById("1BT15").value;
//var fpoints = document.getElementById('1BT16').value;
var fenclosureno = document.getElementById("1BT23").value;
if (funivname == "") {
alert("Enter Name of University / College / Institute / Organization");
document.getElementById("1BT10").focus();
return;
}
if (fdesgcode == "") {
alert("Enter Designation");
document.getElementById("1BT11").focus();
return;
}
if (fpayscale == "") {
alert("Enter Pay Scale / Consolidated salary");
document.getElementById("1BT12").focus();
return;
}
if (fromdate == "") {
alert("Enter From Date");
document.getElementById("1BT13").focus();
return;
}
if (ftodate == "") {
alert("Enter To Date");
document.getElementById("1BT14").focus();
return;
}
if (fenclosureno == "") {
alert("Enter Enclosure No.");
document.getElementById("1BT23").focus();
return;
}
var experience = document.getElementById("experience1").value;
var appno = document.getElementById("appno").value;
var dataString =
"&funivname=" +
funivname +
"&fdesgcode=" +
fdesgcode +
"&fpayscale=" +
fpayscale +
"&fromdate=" +
fromdate +
"&ftodate=" +
ftodate +
"&ftpe=" +
ftpe +
"&experience=" +
experience +
"&appno=" +
appno +
"&fenclosureno=" +
fenclosureno;
$.ajax({
type: "POST",
url: $host_url + "saveexperience2",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
$("#fulltimephdexptable tbody").remove();
$("#fulltimephdexptable").append($responce.data.table);
document.getElementById("1BT10").value = "";
document.getElementById("1BT11").value = "";
document.getElementById("1BT12").value = "";
document.getElementById("1BT13").value = "";
document.getElementById("1BT14").value = "";
document.getElementById("1BT15").value = "";
//document.getElementById('1BT16').value = '';
document.getElementById("1BT23").value = "";
document.getElementById("experience1").value = "I";
} else {
$("#fulltimephdexptable tbody").remove();
$("#fulltimephdexptable").append($responce.data.table);
document.getElementById("1BT10").value = "";
document.getElementById("1BT11").value = "";
document.getElementById("1BT12").value = "";
document.getElementById("1BT13").value = "";
document.getElementById("1BT14").value = "";
document.getElementById("1BT15").value = "";
//document.getElementById('1BT16').value = '';
document.getElementById("1BT23").value = "";
document.getElementById("experience1").value = "I";
}
}
});
}
function saveresearch() {
var fpublication = document.getElementById("1RA1").value;
var ftitle = document.getElementById("1RA2").value;
var fjournalname = document.getElementById("1RA3").value;
var fyear = document.getElementById("1RA4").value;
var fvolno = document.getElementById("1RA5").value;
var fpageno = document.getElementById("1RA6").value;
var fissnno = document.getElementById("1RA7").value;
var fauthor = document.getElementById("1RA8").value;
//var impfact = document.getElementById('1RA9').value;
var impfact = "";
var fpoints = document.getElementById("1RA10").value;
var fpoints = document.getElementById("1RA10").value;
var fjournalno = document.getElementById("1RA31").value;
var fenclosureno = document.getElementById("1RA32").value;
var RA1 = document.getElementById("rechid1_1").value;
var appno = document.getElementById("appno").value;
if (fpublication == "") {
alert("Select Publication Type");
document.getElementById("1RA1").focus();
return;
}
if (ftitle == "") {
alert("Enter Title of the Paper");
document.getElementById("1RA2").focus();
return;
}
if (fjournalname == "") {
alert("Enter Journal Name");
document.getElementById("1RA3").focus();
return;
}
if (fyear == "") {
alert("Enter Pay Scale / Consolidated salary");
document.getElementById("1RA4").focus();
return;
}
if (fvolno == "") {
alert("Enter Vol. No.");
document.getElementById("1RA5").focus();
return;
}
if (fpageno == "") {
alert("Enter Page No.");
document.getElementById("1RA6").focus();
return;
}
if (fissnno == "") {
alert("Select ISSN/ ISBN No.");
document.getElementById("1RA7").focus();
return;
}
if (fauthor == "") {
alert("Select Refereed");
document.getElementById("1RA8").focus();
return;
}
/*if(impfact == '')
{
alert('Impact Factors');
document.getElementById('1RA9').focus();
return;
}*/
if (fjournalno == "") {
alert("Journal Number");
document.getElementById("1RA31").focus();
return;
}
if (fenclosureno == "") {
alert("Enter Enclosure No");
document.getElementById("1RA32").focus();
return;
}
var dataString =
"&fpublication=" +
fpublication +
"&ftitle=" +
ftitle +
"&fjournalname=" +
fjournalname +
"&fyear=" +
fyear +
"&fvolno=" +
fvolno +
"&fpageno=" +
fpageno +
"&fissnno=" +
fissnno +
"&impfact=" +
impfact +
"&fauthor=" +
fauthor +
"&appno=" +
appno +
"&fpoints=" +
fpoints +
"&RA1=" +
RA1 +
"&fjournalno=" +
fjournalno +
"&fenclosureno=" +
fenclosureno;
$.ajax({
type: "POST",
url: $host_url + "saveresearch",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
$("#researchpaperatable tbody").remove();
$("#researchpaperatable").append($responce.data.table);
document.getElementById("1RA1").value = "";
document.getElementById("1RA2").value = "";
document.getElementById("1RA3").value = "";
document.getElementById("1RA4").value = "";
document.getElementById("1RA5").value = "";
document.getElementById("1RA6").value = "";
document.getElementById("1RA7").value = "";
document.getElementById("1RA8").value = "";
//document.getElementById('1RA9').value = '';
document.getElementById("1RA10").value = "";
document.getElementById("1RA31").value = "";
document.getElementById("1RA32").value = "";
document.getElementById("rechid1_1").value = "I";
} else {
$("#researchpaperatable tbody").remove();
$("#researchpaperatable").append($responce.data.table);
document.getElementById("1RA1").value = "";
document.getElementById("1RA2").value = "";
document.getElementById("1RA3").value = "";
document.getElementById("1RA4").value = "";
document.getElementById("1RA5").value = "";
document.getElementById("1RA6").value = "";
document.getElementById("1RA7").value = "";
document.getElementById("1RA8").value = "";
//document.getElementById('1RA9').value = '';
document.getElementById("1RA10").value = "";
document.getElementById("1RA31").value = "";
document.getElementById("1RA32").value = "";
document.getElementById("rechid1_1").value = "I";
}
}
});
}
function editresearch(slno, id) {
document.getElementById("1RA1").value = document.getElementById(
id + "HRA1"
).value;
document.getElementById("1RA2").value = document.getElementById(
id + "RA2"
).value;
document.getElementById("1RA3").value = document.getElementById(
id + "RA3"
).value;
document.getElementById("1RA4").value = document.getElementById(
id + "RA4"
).value;
document.getElementById("1RA5").value = document.getElementById(
id + "RA5"
).value;
document.getElementById("1RA6").value = document.getElementById(
id + "RA6"
).value;
document.getElementById("1RA7").value = document.getElementById(
id + "RA7"
).value;
document.getElementById("1RA8").value = document.getElementById(
id + "HRA8"
).value;
//document.getElementById('1RA9').value = document.getElementById(id+'RA9').value;
document.getElementById("1RA31").value = document.getElementById(
id + "RA31"
).value;
document.getElementById("1RA32").value = document.getElementById(
id + "RA32"
).value;
document.getElementById("1RA10").value = document.getElementById(
id + "RA10"
).value;
document.getElementById("rechid1_1").value = document.getElementById(
"rechid1_" + id
).value;
}
function deleteresearch(slno, id) {
var appno = document.getElementById("appno").value;
var dataString = "&slno=" + slno + "&appno=" + appno;
if (confirm("Are you sure you want to delete.")) {
$.ajax({
type: "POST",
url: $host_url + "deleteresearch",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
$("#researchpaperatable tbody").remove();
$("#researchpaperatable").append($responce.data.table);
} else {
$("#researchpaperatable tbody").remove();
$("#researchpaperatable").append($responce.data.table);
}
}
});
}
}
function saveresearch2() {
var fpublication = document.getElementById("1RA11").value;
var ftitle = document.getElementById("1RA12").value;
var fjournalname = document.getElementById("1RA13").value;
var fyear = document.getElementById("1RA14").value;
var fvolno = document.getElementById("1RA15").value;
var fpageno = document.getElementById("1RA16").value;
var fissnno = document.getElementById("1RA17").value;
var fauthor = document.getElementById("1RA18").value;
var fimpfact = document.getElementById("1RA19").value;
//var fpoints = document.getElementById('1RA21').value;
var fenclosureno = document.getElementById("1RA35").value;
var RA1 = document.getElementById("rechid2_1").value;
var appno = document.getElementById("appno").value;
if (fpublication == "") {
alert("Select Publication Type");
document.getElementById("1RA11").focus();
return;
}
if (ftitle == "") {
alert("Enter Title of the Paper");
document.getElementById("1RA12").focus();
return;
}
if (fjournalname == "") {
alert("Enter Journal Name");
document.getElementById("1RA13").focus();
return;
}
if (fyear == "") {
alert("Enter Pay Scale / Consolidated salary");
document.getElementById("1RA14").focus();
return;
}
if (fvolno == "") {
alert("Enter Vol. No.");
document.getElementById("1RA15").focus();
return;
}
if (fpageno == "") {
alert("Enter Page No.");
document.getElementById("1RA16").focus();
return;
}
if (fissnno == "") {
alert("Select ISSN/ ISBN No.");
document.getElementById("1RA17").focus();
return;
}
if (fimpfact == "") {
alert("Enter Impact Factors");
document.getElementById("1RA19").focus();
return;
}
if (fauthor == "") {
alert("Enter Author");
document.getElementById("1RA20").focus();
return;
}
if (fenclosureno == "") {
alert("Enter Enenclosure No.");
document.getElementById("1RA35").focus();
return;
}
var dataString =
"&fpublication=" +
fpublication +
"&ftitle=" +
ftitle +
"&fjournalname=" +
fjournalname +
"&fyear=" +
fyear +
"&fvolno=" +
fvolno +
"&fpageno=" +
fpageno +
"&fissnno=" +
fissnno +
"&fimpfact=" +
fimpfact +
"&fauthor=" +
fauthor +
"&appno=" +
appno +
"&RA1=" +
RA1 +
"&fenclosureno=" +
fenclosureno;
$.ajax({
type: "POST",
url: $host_url + "saveresearch2",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
$("#researchpaperatableb tbody").remove();
$("#researchpaperatableb").append($responce.data.table);
document.getElementById("1RA11").value = "";
document.getElementById("1RA12").value = "";
document.getElementById("1RA13").value = "";
document.getElementById("1RA14").value = "";
document.getElementById("1RA15").value = "";
document.getElementById("1RA16").value = "";
document.getElementById("1RA17").value = "";
document.getElementById("1RA18").value = "";
document.getElementById("1RA19").value = "";
document.getElementById("1RA35").value = "";
document.getElementById("rechid2_1").value = "I";
} else {
$("#researchpaperatableb tbody").remove();
$("#researchpaperatableb").append($responce.data.table);
document.getElementById("1RA11").value = "";
document.getElementById("1RA12").value = "";
document.getElementById("1RA13").value = "";
document.getElementById("1RA14").value = "";
document.getElementById("1RA15").value = "";
document.getElementById("1RA16").value = "";
document.getElementById("1RA17").value = "";
document.getElementById("1RA18").value = "";
document.getElementById("1RA19").value = "";
document.getElementById("1RA35").value = "";
document.getElementById("rechid2_1").value = "I";
}
}
});
}
function editresearch2(slno, id) {
document.getElementById("1RA11").value = document.getElementById(
id + "HRA11"
).value;
document.getElementById("1RA12").value = document.getElementById(
id + "RA12"
).value;
document.getElementById("1RA13").value = document.getElementById(
id + "RA13"
).value;
document.getElementById("1RA14").value = document.getElementById(
id + "RA14"
).value;
document.getElementById("1RA15").value = document.getElementById(
id + "RA15"
).value;
document.getElementById("1RA16").value = document.getElementById(
id + "RA16"
).value;
document.getElementById("1RA17").value = document.getElementById(
id + "RA17"
).value;
document.getElementById("1RA18").value = document.getElementById(
id + "HRA18"
).value;
document.getElementById("1RA19").value = document.getElementById(
id + "RA19"
).value;
document.getElementById("1RA35").value = document.getElementById(
id + "RA35"
).value;
document.getElementById("rechid2_1").value = document.getElementById(
"rechid2_" + id
).value;
}
function deleteresearch2(slno, id) {
var appno = document.getElementById("appno").value;
var dataString = "&slno=" + slno + "&appno=" + appno;
if (confirm("Are you sure you want to delete.")) {
$.ajax({
type: "POST",
url: $host_url + "deleteresearch2",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
$("#researchpaperatableb tbody").remove();
$("#researchpaperatableb").append($responce.data.table);
} else {
$("#researchpaperatableb tbody").remove();
$("#researchpaperatableb").append($responce.data.table);
}
}
});
}
}
function saveresearch3() {
var fpublication = document.getElementById("1RA20").value;
var ftitle = document.getElementById("1RA21").value;
var fjournalname = document.getElementById("1RA22").value;
var fyear = document.getElementById("1RA23").value;
var fpageno = document.getElementById("1RA24").value;
var fissnno = document.getElementById("1RA25").value;
//var frefereed = document.getElementById('1RA26').value;
//var flevel = document.getElementById('1RA27').value;
var fautaddrs = document.getElementById("1RA28").value;
var fauthor = document.getElementById("1RA29").value;
var fpoints = document.getElementById("1RA30").value;
var fenclosureno = document.getElementById("1RA33").value;
var RA1 = document.getElementById("rechid3_1").value;
var appno = document.getElementById("appno").value;
if (fpublication == "") {
alert("Select Publication Type");
document.getElementById("1RA23").focus();
return;
}
if (ftitle == "") {
alert("Enter Title of the Paper");
document.getElementById("1RA24").focus();
return;
}
if (fjournalname == "") {
alert("Enter Journal Name");
document.getElementById("1RA25").focus();
return;
}
if (fyear == "") {
alert("Enter Pay Scale / Consolidated salary");
document.getElementById("1RA26").focus();
return;
}
if (fissnno == "") {
alert("Select ISSN/ ISBN No.");
document.getElementById("1RA27").focus();
return;
}
if (fauthor == "") {
alert("Enter Author");
document.getElementById("1RA28").focus();
return;
}
if (fenclosureno == "") {
alert("Enter Enclosure No");
document.getElementById("1RA33").focus();
return;
}
var dataString =
"&fpublication=" +
fpublication +
"&ftitle=" +
ftitle +
"&fjournalname=" +
fjournalname +
"&fyear=" +
fyear +
"&fpageno=" +
fpageno +
"&fissnno=" +
fissnno +
"&fautaddrs=" +
fautaddrs +
"&fauthor=" +
fauthor +
"&appno=" +
appno +
"&fpoints=" +
fpoints +
"&RA1=" +
RA1 +
"&fenclosureno=" +
fenclosureno;
$.ajax({
type: "POST",
url: $host_url + "saveresearch3",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
$("#researchpaperatablec tbody").remove();
$("#researchpaperatablec").append($responce.data.table);
document.getElementById("1RA20").value = "";
document.getElementById("1RA21").value = "";
document.getElementById("1RA22").value = "";
document.getElementById("1RA23").value = "";
document.getElementById("1RA24").value = "";
document.getElementById("1RA25").value = "";
//document.getElementById('1RA26').value = '';
//document.getElementById('1RA27').value = '';
document.getElementById("1RA28").value = "";
document.getElementById("1RA29").value = "";
document.getElementById("1RA30").value = "";
document.getElementById("1RA33").value = "";
document.getElementById("rechid3_1").value = "I";
} else {
$("#researchpaperatablec tbody").remove();
$("#researchpaperatablec").append($responce.data.table);
document.getElementById("1RA20").value = "";
document.getElementById("1RA21").value = "";
document.getElementById("1RA22").value = "";
document.getElementById("1RA23").value = "";
document.getElementById("1RA24").value = "";
document.getElementById("1RA25").value = "";
//document.getElementById('1RA26').value = '';
//document.getElementById('1RA27').value = '';
document.getElementById("1RA28").value = "";
document.getElementById("1RA29").value = "";
document.getElementById("1RA30").value = "";
document.getElementById("1RA33").value = "";
document.getElementById("rechid3_1").value = "I";
}
}
});
}
function editresearch3(slno, id) {
document.getElementById("1RA20").value = document.getElementById(
id + "HRA20"
).value;
document.getElementById("1RA21").value = document.getElementById(
id + "RA21"
).value;
document.getElementById("1RA22").value = document.getElementById(
id + "RA22"
).value;
document.getElementById("1RA23").value = document.getElementById(
id + "RA23"
).value;
document.getElementById("1RA24").value = document.getElementById(
id + "RA24"
).value;
document.getElementById("1RA25").value = document.getElementById(
id + "RA25"
).value;
//document.getElementById('1RA26').value = document.getElementById(id+'RA26').value;
//document.getElementById('1RA27').value = document.getElementById(id+'HRA27').value;
document.getElementById("1RA28").value = document.getElementById(
id + "RA28"
).value;
document.getElementById("1RA29").value = document.getElementById(
id + "HRA29"
).value;
document.getElementById("1RA30").value = document.getElementById(
id + "RA30"
).value;
document.getElementById("1RA33").value = document.getElementById(
id + "RA33"
).value;
document.getElementById("rechid3_1").value = document.getElementById(
"rechid3_" + id
).value;
}
function deleteresearch3(slno, id) {
var appno = document.getElementById("appno").value;
var dataString = "&slno=" + slno + "&appno=" + appno;
if (confirm("Are you sure you want to delete.")) {
$.ajax({
type: "POST",
url: $host_url + "deleteresearch3",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
$("#researchpaperatablec tbody").remove();
$("#researchpaperatablec").append($responce.data.table);
} else {
$("#researchpaperatablec tbody").remove();
$("#researchpaperatablec").append($responce.data.table);
}
}
});
}
}
function saveresearch4() {
var fpublication = document.getElementById("1RA32").value;
var ftitle = document.getElementById("1RA33").value;
var fissnno = document.getElementById("1RA34").value;
var fauthor = document.getElementById("1RA35").value;
var fjournalname = document.getElementById("1RA36").value;
var fyear = document.getElementById("1RA37").value;
var flevel = document.getElementById("1RA38").value;
var fpoints = document.getElementById("1RA39").value;
var RA1 = document.getElementById("rechid4_1").value;
var appno = document.getElementById("appno").value;
if (fpublication == "") {
alert("Select Publication Type");
document.getElementById("1RA23").focus();
return;
}
if (ftitle == "") {
alert("Enter Title of the Paper");
document.getElementById("1RA24").focus();
return;
}
if (fjournalname == "") {
alert("Enter Journal Name");
document.getElementById("1RA25").focus();
return;
}
if (fyear == "") {
alert("Enter Pay Scale / Consolidated salary");
document.getElementById("1RA26").focus();
return;
}
if (fissnno == "") {
alert("Select ISSN/ ISBN No.");
document.getElementById("1RA27").focus();
return;
}
if (fauthor == "") {
alert("Enter Author");
document.getElementById("1RA28").focus();
return;
}
var dataString =
"&fpublication=" +
fpublication +
"&ftitle=" +
ftitle +
"&fjournalname=" +
fjournalname +
"&fyear=" +
fyear +
"&fissnno=" +
fissnno +
"&fauthor=" +
fauthor +
"&appno=" +
appno +
"&fpoints=" +
fpoints +
"&RA1=" +
RA1 +
"&flevel=" +
flevel;
$.ajax({
type: "POST",
url: $host_url + "saveresearch4",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
$("#researchpaperatabled tbody").remove();
$("#researchpaperatabled").append($responce.data.table);
document.getElementById("1RA32").value = "";
document.getElementById("1RA33").value = "";
document.getElementById("1RA34").value = "";
document.getElementById("1RA35").value = "";
document.getElementById("1RA36").value = "";
document.getElementById("1RA37").value = "";
document.getElementById("1RA38").value = "";
document.getElementById("1RA39").value = "";
document.getElementById("rechid4_1").value = "I";
} else {
$("#researchpaperatabled tbody").remove();
$("#researchpaperatabled").append($responce.data.table);
document.getElementById("1RA32").value = "";
document.getElementById("1RA33").value = "";
document.getElementById("1RA34").value = "";
document.getElementById("1RA35").value = "";
document.getElementById("1RA36").value = "";
document.getElementById("1RA37").value = "";
document.getElementById("1RA38").value = "";
document.getElementById("1RA39").value = "";
document.getElementById("rechid4_1").value = "I";
}
}
});
}
function editresearch4(slno, id) {
document.getElementById("1RA32").value = document.getElementById(
id + "HRA32"
).value;
document.getElementById("1RA33").value = document.getElementById(
id + "RA33"
).value;
document.getElementById("1RA34").value = document.getElementById(
id + "RA34"
).value;
document.getElementById("1RA35").value = document.getElementById(
id + "HRA35"
).value;
document.getElementById("1RA36").value = document.getElementById(
id + "RA36"
).value;
document.getElementById("1RA37").value = document.getElementById(
id + "RA37"
).value;
document.getElementById("1RA38").value = document.getElementById(
id + "HRA38"
).value;
document.getElementById("1RA39").value = document.getElementById(
id + "RA39"
).value;
document.getElementById("rechid4_1").value = document.getElementById(
"rechid4_" + id
).value;
}
function deleteresearch4(slno, id) {
var appno = document.getElementById("appno").value;
var dataString = "&slno=" + slno + "&appno=" + appno;
if (confirm("Are you sure you want to delete.")) {
$.ajax({
type: "POST",
url: $host_url + "deleteresearch4",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
$("#researchpaperatabled tbody").remove();
$("#researchpaperatabled").append($responce.data.table);
} else {
$("#researchpaperatabled tbody").remove();
$("#researchpaperatabled").append($responce.data.table);
}
}
});
}
}
function editexperience2(slno, id) {
document.getElementById("1BT10").value = $("#" + id + "BT10").val();
document.getElementById("1BT11").value = document.getElementById(
id + "BT11"
).value;
document.getElementById("1BT12").value = document.getElementById(
id + "BT12"
).value;
document.getElementById("1BT13").value = document.getElementById(
id + "BT13"
).value;
document.getElementById("1BT14").value = document.getElementById(
id + "BT14"
).value;
document.getElementById("1BT15").value = document.getElementById(
id + "BT15"
).value;
document.getElementById("1BT23").value = document.getElementById(
id + "BT23"
).value;
document.getElementById("experience1").value = document.getElementById(
"postid1_" + id
).value;
}
function deleteexperience2(slno, id) {
var appno = document.getElementById("appno").value;
var dataString = "&slno=" + slno + "&appno=" + appno;
if (confirm("Are you sure you want to delete.")) {
$.ajax({
type: "POST",
url: $host_url + "deleteexperience2",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
$("#fulltimephdexptable tbody").remove();
$("#fulltimephdexptable").append($responce.data.table);
} else {
$("#fulltimephdexptable tbody").remove();
$("#fulltimephdexptable").append($responce.data.table);
}
}
});
}
}
/* function saveresearch()
{
var fpublication = document.getElementById('1RA1').value;
var ftitle = document.getElementById('1RA2').value;
var fjournalname = document.getElementById('1RA3').value;
var fyear = document.getElementById('1RA4').value;
var fvolno = document.getElementById('1RA5').value;
var fpageno = document.getElementById('1RA6').value;
var fissnno = document.getElementById('1RA7').value;
var frefereed = document.getElementById('1RA8').value;
var fauthor = document.getElementById('1RA9').value;
var flevel = document.getElementById('1RA10').value;
var experience = document.getElementById('research').value;
var appno = document.getElementById('appno').value;
var dataString ="&funivname="+funivname+"&fdesgcode="+fdesgcode+"&fpayscale="+fpayscale+"&fromdate="+fromdate+"&ftodate="+ftodate+"&ftpe="+ftpe+"&fpoints="+fpoints+"&experience="+experience+"&appno="+appno;
$.ajax({
type:"POST",
url:$host_url+"saveexperience2",
data:dataString,
cache:false,
success:function($responce)
{
$responce = eval('('+$responce+')');
if($responce.error_code == 0)
{
$("#fulltimephdexptable tbody").remove();
$("#fulltimephdexptable").append($responce.data.table);
document.getElementById('1BT10').value = '';
document.getElementById('1BT11').value = '';
document.getElementById('1BT12').value = '';
document.getElementById('1BT13').value = '';
document.getElementById('1BT14').value = '';
document.getElementById('1BT15').value = '';
document.getElementById('1BT16').value = '';
document.getElementById('experience1').value = 'I';
}
else
{
$("#fulltimephdexptable tbody").remove();
$("#fulltimephdexptable").append($responce.data.table);
document.getElementById('1BT10').value = '';
document.getElementById('1BT11').value = '';
document.getElementById('1BT12').value = '';
document.getElementById('1BT13').value = '';
document.getElementById('1BT14').value = '';
document.getElementById('1BT15').value = '';
document.getElementById('1BT16').value = '';
document.getElementById('experience1').value = 'I';
}
}
});
} */
function saveexpoth() {
var degree = document.getElementById("T90").value;
var funivname = document.getElementById("T91").value;
var fyear = document.getElementById("T92").value;
var fmaxmarks = document.getElementById("T93").value;
var fsecuremarks = document.getElementById("T94").value;
var percent = document.getElementById("T95").value;
var fclass = document.getElementById("T96").value;
var fsub = document.getElementById("T97").value;
var degname = document.getElementById("T999").value;
var ach = document.getElementById("achid1_1").value;
var appno = document.getElementById("appno").value;
if (degree == "") {
alert("Select Degree");
document.getElementById("T90").focus();
return;
}
/* if(funivname == '')
{
alert('Enter Name of the Board');
document.getElementById('T91').focus();
return;
}
if(fyear == '')
{
alert('Enter Year');
document.getElementById('T92').focus();
return;
}
if(percent == '')
{
alert('Percentage / CGPA');
document.getElementById('T95').focus();
return;
}
if(fmaxmarks == '')
{
alert('Enter Max Marks');
document.getElementById('T93').focus();
return;
}
if(fsecuremarks == '')
{
alert('Enter Sec. Marks');
document.getElementById('T74').focus();
return;
}
if(fsub == '')
{
alert('Enter Subjects studied');
document.getElementById('T77').focus();
return;
}
if(fclass == '')
{
alert('Enter Division');
document.getElementById('T76').focus();
return;
} */
var dataString =
"°ree=" +
degree +
"&fsecuremarks=" +
fsecuremarks +
"&funivname=" +
funivname +
"&percent=" +
percent +
"&appno=" +
appno +
"&ach=" +
ach +
"&fmaxmarks=" +
fmaxmarks +
"&fyear=" +
fyear +
"&fclass=" +
fclass +
"&fsub=" +
fsub +
"°name=" +
degname;
$.ajax({
type: "POST",
url: $host_url + "saveexpoth",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
$("#othdegree tbody").remove();
$("#othdegree").append($responce.data.table);
document.getElementById("T90").value = "";
document.getElementById("T91").value = "";
document.getElementById("T92").value = "";
document.getElementById("T93").value = "";
document.getElementById("T94").value = "";
document.getElementById("T95").value = "";
document.getElementById("T96").value = "";
document.getElementById("T97").value = "";
document.getElementById("T999").value = "";
document.getElementById("achid1_1").value = "I";
} else {
$("#othdegree tbody").remove();
$("#othdegree").append($responce.data.table);
document.getElementById("T90").value = "";
document.getElementById("T91").value = "";
document.getElementById("T92").value = "";
document.getElementById("T93").value = "";
document.getElementById("T94").value = "";
document.getElementById("T95").value = "";
document.getElementById("T96").value = "";
document.getElementById("T97").value = "";
document.getElementById("T999").value = "";
document.getElementById("achid1_1").value = "I";
}
}
});
}
function editxpoth(slno, id) {
document.getElementById("T90").value = document.getElementById(
id + "TH90"
).value;
document.getElementById("T91").value = document.getElementById(
id + "T91"
).value;
document.getElementById("T92").value = document.getElementById(
id + "T92"
).value;
document.getElementById("T999").value = document.getElementById(
id + "T999"
).value;
document.getElementById("T93").value = document.getElementById(
id + "T93"
).value;
document.getElementById("T94").value = document.getElementById(
id + "T94"
).value;
document.getElementById("T95").value = document.getElementById(
id + "T95"
).value;
document.getElementById("T96").value = document.getElementById(
id + "T96"
).value;
document.getElementById("T97").value = document.getElementById(
id + "T97"
).value;
document.getElementById("achid1_1").value = document.getElementById(
"achid1_" + id
).value;
}
function deletexpoth(slno, id) {
var appno = document.getElementById("appno").value;
var dataString = "&slno=" + slno + "&appno=" + appno;
if (confirm("Are you sure you want to delete.")) {
$.ajax({
type: "POST",
url: $host_url + "deletexpoth",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
$("#othdegree tbody").remove();
$("#othdegree").append($responce.data.table);
} else {
$("#othdegree tbody").remove();
$("#othdegree").append($responce.data.table);
}
}
});
}
}
function saveresearchassociate() {
var fpublication = document.getElementById("1RC1").value;
var ftitle = document.getElementById("1RC2").value;
var fjournalname = document.getElementById("1RC3").value;
var fjournalno = document.getElementById("1RC81").value;
var fyear = document.getElementById("1RC4").value;
var fvolno = document.getElementById("1RC5").value;
var fpageno = document.getElementById("1RC6").value;
var fissnno = document.getElementById("1RC7").value;
var fauthor = document.getElementById("1RC8").value;
var impfact = document.getElementById("1RC9").value;
var fpoints = document.getElementById("1RC10").value;
var fenclosureno = document.getElementById("1RC70").value;
var associate = document.getElementById("research21_1").value;
var appno = document.getElementById("appno").value;
if (fpublication == "") {
alert("Select Publication Type");
document.getElementById("1RC1").focus();
return;
}
if (ftitle == "") {
alert("Enter Title of the Paper");
document.getElementById("1RC2").focus();
return;
}
if (fjournalname == "") {
alert("Enter Journal Name");
document.getElementById("1RC3").focus();
return;
}
if (fyear == "") {
alert("Enter Pay Scale / Consolidated salary");
document.getElementById("1RC4").focus();
return;
}
if (fvolno == "") {
alert("Enter Vol. No.");
document.getElementById("1RC5").focus();
return;
}
if (fpageno == "") {
alert("Enter Page No.");
document.getElementById("1RC6").focus();
return;
}
if (fissnno == "") {
alert("Select ISSN/ ISBN No.");
document.getElementById("1RC7").focus();
return;
}
if (fjournalno == "") {
alert("Enter Journal No. Given By UGC");
document.getElementById("1RC81").focus();
return;
}
if (fauthor == "") {
alert("Select Refereed");
document.getElementById("1RC8").focus();
return;
}
if (impfact == "") {
alert("Impact Factors");
document.getElementById("1RC9").focus();
return;
}
if (fenclosureno == "") {
alert("Enter Enclosure No");
document.getElementById("1RC70").focus();
return;
}
var dataString =
"&fpublication=" +
fpublication +
"&ftitle=" +
ftitle +
"&fjournalname=" +
fjournalname +
"&fyear=" +
fyear +
"&fvolno=" +
fvolno +
"&fpageno=" +
fpageno +
"&fissnno=" +
fissnno +
"&impfact=" +
impfact +
"&fauthor=" +
fauthor +
"&appno=" +
appno +
"&fpoints=" +
fpoints +
"&associate=" +
associate +
"&fenclosureno=" +
fenclosureno +
"&fjournalno=" +
fjournalno;
$.ajax({
type: "POST",
url: $host_url + "saveresearchassociate",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
$("#researchassociatetable tbody").remove();
$("#researchassociatetable").append($responce.data.table);
document.getElementById("1RC1").value = "";
document.getElementById("1RC2").value = "";
document.getElementById("1RC3").value = "";
document.getElementById("1RC4").value = "";
document.getElementById("1RC5").value = "";
document.getElementById("1RC6").value = "";
document.getElementById("1RC7").value = "";
document.getElementById("1RC8").value = "";
document.getElementById("1RC9").value = "";
document.getElementById("1RC10").value = "";
document.getElementById("1RC70").value = "";
document.getElementById("1RC81").value = "";
document.getElementById("research21_1").value = "I";
} else {
$("#researchassociatetable tbody").remove();
$("#researchassociatetable").append($responce.data.table);
document.getElementById("1RC1").value = "";
document.getElementById("1RC2").value = "";
document.getElementById("1RC3").value = "";
document.getElementById("1RC4").value = "";
document.getElementById("1RC5").value = "";
document.getElementById("1RC6").value = "";
document.getElementById("1RC7").value = "";
document.getElementById("1RC8").value = "";
document.getElementById("1RC9").value = "";
document.getElementById("1RC10").value = "";
document.getElementById("1RC70").value = "";
document.getElementById("1RC81").value = "";
document.getElementById("research21_1").value = "I";
}
}
});
}
function editassociate(slno, id) {
document.getElementById("1RC1").value = document.getElementById(
id + "HRC1"
).value;
document.getElementById("1RC2").value = document.getElementById(
id + "RC2"
).value;
document.getElementById("1RC3").value = document.getElementById(
id + "RC3"
).value;
document.getElementById("1RC4").value = document.getElementById(
id + "RC4"
).value;
document.getElementById("1RC5").value = document.getElementById(
id + "RC5"
).value;
document.getElementById("1RC6").value = document.getElementById(
id + "RC6"
).value;
document.getElementById("1RC7").value = document.getElementById(
id + "RC7"
).value;
document.getElementById("1RC8").value = document.getElementById(
id + "HRC8"
).value;
document.getElementById("1RC9").value = document.getElementById(
id + "RC9"
).value;
document.getElementById("1RC10").value = document.getElementById(
id + "RC10"
).value;
document.getElementById("1RC70").value = document.getElementById(
id + "RC70"
).value;
document.getElementById("1RC81").value = document.getElementById(
id + "RC81"
).value;
document.getElementById("research21_1").value = document.getElementById(
"research21_" + id
).value;
}
function deleteassociate(slno, id) {
var appno = document.getElementById("appno").value;
var dataString = "&slno=" + slno + "&appno=" + appno;
if (confirm("Are you sure you want to delete.")) {
$.ajax({
type: "POST",
url: $host_url + "deleteassociate",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
$("#researchassociatetable tbody").remove();
$("#researchassociatetable").append($responce.data.table);
} else {
$("#researchassociatetable tbody").remove();
$("#researchassociatetable").append($responce.data.table);
}
}
});
}
}
function saveresearchassociate2() {
var fpublication = document.getElementById("1RC11").value;
var ftitle = document.getElementById("1RC12").value;
var fjournalname = document.getElementById("1RC13").value;
var fyear = document.getElementById("1RC14").value;
var fvolno = document.getElementById("1RC15").value;
var fpageno = document.getElementById("1RC16").value;
var fissnno = document.getElementById("1RC17").value;
var fauthor = document.getElementById("1RC18").value;
var impfact = document.getElementById("1RC19").value;
var fenclosureno = document.getElementById("1RC71").value;
var associate = document.getElementById("research22_1").value;
var appno = document.getElementById("appno").value;
if (fpublication == "") {
alert("Select Publication Type");
document.getElementById("1RC11").focus();
return;
}
if (ftitle == "") {
alert("Enter Title of the Paper");
document.getElementById("1RC12").focus();
return;
}
if (fjournalname == "") {
alert("Enter Journal Name");
document.getElementById("1RC13").focus();
return;
}
if (fyear == "") {
alert("Enter Pay Scale / Consolidated salary");
document.getElementById("1RC14").focus();
return;
}
if (fvolno == "") {
alert("Enter Vol. No.");
document.getElementById("1RC15").focus();
return;
}
if (fpageno == "") {
alert("Enter Page No.");
document.getElementById("1RC16").focus();
return;
}
if (fissnno == "") {
alert("Select ISSN/ ISBN No.");
document.getElementById("1RC17").focus();
return;
}
/* if(fjournalno == '')
{
alert('Enter Journal No. Given By UGC');
document.getElementById('1RC81').focus();
return;
} */
if (fauthor == "") {
alert("Select Refereed");
document.getElementById("1RC18").focus();
return;
}
if (impfact == "") {
alert("Impact Factors");
document.getElementById("1RC19").focus();
return;
}
if (fenclosureno == "") {
alert("Enter Enclosure No");
document.getElementById("1RC71").focus();
return;
}
var dataString =
"&fpublication=" +
fpublication +
"&ftitle=" +
ftitle +
"&fjournalname=" +
fjournalname +
"&fyear=" +
fyear +
"&fvolno=" +
fvolno +
"&fpageno=" +
fpageno +
"&fissnno=" +
fissnno +
"&impfact=" +
impfact +
"&fauthor=" +
fauthor +
"&appno=" +
appno +
"&associate=" +
associate +
"&fenclosureno=" +
fenclosureno;
$.ajax({
type: "POST",
url: $host_url + "saveresearchassociate2",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
$("#researchassociatetablea tbody").remove();
$("#researchassociatetablea").append($responce.data.table);
document.getElementById("1RC11").value = "";
document.getElementById("1RC12").value = "";
document.getElementById("1RC13").value = "";
document.getElementById("1RC14").value = "";
document.getElementById("1RC15").value = "";
document.getElementById("1RC16").value = "";
document.getElementById("1RC17").value = "";
document.getElementById("1RC18").value = "";
document.getElementById("1RC19").value = "";
document.getElementById("1RC71").value = "";
document.getElementById("research22_1").value = "I";
} else {
$("#researchassociatetablea tbody").remove();
$("#researchassociatetablea").append($responce.data.table);
document.getElementById("1RC11").value = "";
document.getElementById("1RC12").value = "";
document.getElementById("1RC13").value = "";
document.getElementById("1RC14").value = "";
document.getElementById("1RC15").value = "";
document.getElementById("1RC16").value = "";
document.getElementById("1RC17").value = "";
document.getElementById("1RC18").value = "";
document.getElementById("1RC19").value = "";
document.getElementById("1RC71").value = "";
//document.getElementById('1RC81').value = '';
document.getElementById("research22_1").value = "I";
}
}
});
}
function editassociate2(slno, id) {
document.getElementById("1RC11").value = document.getElementById(
id + "HRC11"
).value;
document.getElementById("1RC12").value = document.getElementById(
id + "RC12"
).value;
document.getElementById("1RC13").value = document.getElementById(
id + "RC13"
).value;
document.getElementById("1RC14").value = document.getElementById(
id + "RC14"
).value;
document.getElementById("1RC15").value = document.getElementById(
id + "RC15"
).value;
document.getElementById("1RC16").value = document.getElementById(
id + "RC16"
).value;
document.getElementById("1RC17").value = document.getElementById(
id + "RC17"
).value;
document.getElementById("1RC18").value = document.getElementById(
id + "HRC18"
).value;
document.getElementById("1RC19").value = document.getElementById(
id + "RC19"
).value;
document.getElementById("1RC71").value = document.getElementById(
id + "RC71"
).value;
document.getElementById("research22_1").value = document.getElementById(
"research22_" + id
).value;
}
function deleteassociate2(slno, id) {
var appno = document.getElementById("appno").value;
var dataString = "&slno=" + slno + "&appno=" + appno;
if (confirm("Are you sure you want to delete.")) {
$.ajax({
type: "POST",
url: $host_url + "deleteassociate2",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
$("#researchassociatetablea tbody").remove();
$("#researchassociatetablea").append($responce.data.table);
} else {
$("#researchassociatetablea tbody").remove();
$("#researchassociatetablea").append($responce.data.table);
}
}
});
}
}
function saveresearchassociate3() {
var fpublication = document.getElementById("1RC20").value;
var ftitle = document.getElementById("1RC21").value;
var fjournalname = document.getElementById("1RC22").value;
var fyear = document.getElementById("1RC23").value;
var fpageno = document.getElementById("1RC24").value;
var fissnno = document.getElementById("1RC25").value;
//var frefereed = document.getElementById('1RA26').value;
//var flevel = document.getElementById('1RA27').value;
var fautaddrs = document.getElementById("1RC28").value;
var fauthor = document.getElementById("1RC29").value;
var fpoints = document.getElementById("1RC30").value;
var fenclosureno = document.getElementById("1RC72").value;
var RA1 = document.getElementById("rechid23_1").value;
var appno = document.getElementById("appno").value;
if (fpublication == "") {
alert("Select Publication Type");
document.getElementById("1RC20").focus();
return;
}
if (ftitle == "") {
alert("Enter Title of the Paper");
document.getElementById("1RC21").focus();
return;
}
if (fjournalname == "") {
alert("Title of the Paper / chapter");
document.getElementById("1RC22").focus();
return;
}
if (fyear == "") {
alert("Enter Year");
document.getElementById("1RA23").focus();
return;
}
if (fpageno == "") {
alert("Enter Page No.");
document.getElementById("1RA25").focus();
return;
}
if (fissnno == "") {
alert("Enter ISSN / ISBN No.");
document.getElementById("1RA25").focus();
return;
}
if (fauthor == "") {
alert("Enter Author");
document.getElementById("1RA29").focus();
return;
}
if (fenclosureno == "") {
alert("Enter Enclosure Number");
}
var dataString =
"&fpublication=" +
fpublication +
"&ftitle=" +
ftitle +
"&fjournalname=" +
fjournalname +
"&fyear=" +
fyear +
"&fpageno=" +
fpageno +
"&fissnno=" +
fissnno +
"&fautaddrs=" +
fautaddrs +
"&fauthor=" +
fauthor +
"&appno=" +
appno +
"&fpoints=" +
fpoints +
"&RA1=" +
RA1 +
"&fenclosureno=" +
fenclosureno;
$.ajax({
type: "POST",
url: $host_url + "saveresearchassociate3",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
$("#researchassociatetableb tbody").remove();
$("#researchassociatetableb").append($responce.data.table);
document.getElementById("1RC20").value = "";
document.getElementById("1RC21").value = "";
document.getElementById("1RC22").value = "";
document.getElementById("1RC23").value = "";
document.getElementById("1RC24").value = "";
document.getElementById("1RC25").value = "";
//document.getElementById('1RA26').value = '';
//document.getElementById('1RA27').value = '';
document.getElementById("1RC28").value = "";
document.getElementById("1RC29").value = "";
document.getElementById("1RC30").value = "";
document.getElementById("1RC33").value = "";
document.getElementById("rechid23_1").value = "I";
} else {
$("#researchassociatetableb tbody").remove();
$("#researchassociatetableb").append($responce.data.table);
document.getElementById("1RC20").value = "";
document.getElementById("1RC21").value = "";
document.getElementById("1RC22").value = "";
document.getElementById("1RC23").value = "";
document.getElementById("1RC24").value = "";
document.getElementById("1RC25").value = "";
//document.getElementById('1RA26').value = '';
//document.getElementById('1RA27').value = '';
document.getElementById("1RC28").value = "";
document.getElementById("1RC29").value = "";
document.getElementById("1RC30").value = "";
document.getElementById("1RC33").value = "";
document.getElementById("rechid23_1").value = "I";
}
}
});
}
function editassociate3(slno, id) {
document.getElementById("1RC20").value = document.getElementById(
id + "HRC20"
).value;
document.getElementById("1RC21").value = document.getElementById(
id + "RC21"
).value;
document.getElementById("1RC22").value = document.getElementById(
id + "RC22"
).value;
document.getElementById("1RC23").value = document.getElementById(
id + "RC23"
).value;
document.getElementById("1RC24").value = document.getElementById(
id + "RC24"
).value;
document.getElementById("1RC25").value = document.getElementById(
id + "RC25"
).value;
//document.getElementById('1RC26').value = document.getElementById(id+'RC26').value;
//document.getElementById('1RC27').value = document.getElementById(id+'HRC27').value;
document.getElementById("1RC28").value = document.getElementById(
id + "RC28"
).value;
document.getElementById("1RC29").value = document.getElementById(
id + "HRC29"
).value;
document.getElementById("1RC30").value = document.getElementById(
id + "RC30"
).value;
document.getElementById("1RC72").value = document.getElementById(
id + "RC72"
).value;
document.getElementById("rechid23_1").value = document.getElementById(
"rechid23_" + id
).value;
}
function deleteassociate3(slno, id) {
var appno = document.getElementById("appno").value;
var dataString = "&slno=" + slno + "&appno=" + appno;
if (confirm("Are you sure you want to delete.")) {
$.ajax({
type: "POST",
url: $host_url + "deleteassociate3",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
$("#researchassociatetableb tbody").remove();
$("#researchassociatetableb").append($responce.data.table);
} else {
$("#researchassociatetableb tbody").remove();
$("#researchassociatetableb").append($responce.data.table);
}
}
});
}
}
function saveresearchassociate4() {
var faculty = document.getElementById("1RC31").value;
var ftitle = document.getElementById("1RC32").value;
var fagency = document.getElementById("1RC33").value;
var fperiod = document.getElementById("1RC34").value;
var famount = document.getElementById("1RC35").value;
var fpoints = document.getElementById("1RC36").value;
var fenclosureno = document.getElementById("1RC73").value;
var RA1 = document.getElementById("rechid24_1").value;
var appno = document.getElementById("appno").value;
if (faculty == "") {
alert("Select Faculty Type");
document.getElementById("1RC31").focus();
return;
}
if (ftitle == "") {
alert("Enter Title of the Project");
document.getElementById("1RC32").focus();
return;
}
if (fagency == "") {
alert("Funding Agency / Agency");
document.getElementById("1RC33").focus();
return;
}
if (fperiod == "") {
alert("Enter Period");
document.getElementById("1RC34").focus();
return;
}
if (famount == "") {
alert("Select Amount");
document.getElementById("1RA35").focus();
return;
}
if (fenclosureno == "") {
document.getElementById("1RC73").focus();
return;
}
var dataString =
"&faculty=" +
faculty +
"&ftitle=" +
ftitle +
"&fagency=" +
fagency +
"&fperiod=" +
fperiod +
"&famount=" +
famount +
"&appno=" +
appno +
"&fpoints=" +
fpoints +
"&RA1=" +
RA1 +
"&fenclosureno=" +
fenclosureno;
$.ajax({
type: "POST",
url: $host_url + "saveresearchassociate4",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
$("#researchassociatetablec tbody").remove();
$("#researchassociatetablec").append($responce.data.table);
document.getElementById("1RC31").value = "";
document.getElementById("1RC32").value = "";
document.getElementById("1RC33").value = "";
document.getElementById("1RC34").value = "";
document.getElementById("1RC35").value = "";
document.getElementById("1RC36").value = "";
document.getElementById("1RC73").value = "";
document.getElementById("rechid24_1").value = "I";
} else {
$("#researchassociatetablec tbody").remove();
$("#researchassociatetablec").append($responce.data.table);
document.getElementById("1RC31").value = "";
document.getElementById("1RC32").value = "";
document.getElementById("1RC33").value = "";
document.getElementById("1RC34").value = "";
document.getElementById("1RC35").value = "";
document.getElementById("1RC36").value = "";
document.getElementById("1RC73").value = "";
document.getElementById("rechid24_1").value = "I";
}
}
});
}
function editassociate4(slno, id) {
document.getElementById("1RC31").value = document.getElementById(
id + "HRC31"
).value;
document.getElementById("1RC32").value = document.getElementById(
id + "RC32"
).value;
document.getElementById("1RC33").value = document.getElementById(
id + "RC33"
).value;
document.getElementById("1RC34").value = document.getElementById(
id + "RC34"
).value;
document.getElementById("1RC35").value = document.getElementById(
id + "RC35"
).value;
document.getElementById("1RC36").value = document.getElementById(
id + "RC36"
).value;
document.getElementById("1RC73").value = document.getElementById(
id + "RC73"
).value;
document.getElementById("rechid24_1").value = document.getElementById(
"rechid24_" + id
).value;
}
function deleteassociate4(slno, id) {
var appno = document.getElementById("appno").value;
var dataString = "&slno=" + slno + "&appno=" + appno;
if (confirm("Are you sure you want to delete.")) {
$.ajax({
type: "POST",
url: $host_url + "deleteassociate4",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
$("#researchassociatetablec tbody").remove();
$("#researchassociatetablec").append($responce.data.table);
} else {
$("#researchassociatetablec tbody").remove();
$("#researchassociatetablec").append($responce.data.table);
}
}
});
}
}
function saveresearchassociate5() {
var faculty = document.getElementById("1RC37").value;
var ftitle = document.getElementById("1RC38").value;
var fagency = document.getElementById("1RC39").value;
var fperiod = document.getElementById("1RC40").value;
var famount = document.getElementById("1RC41").value;
var fpoints = document.getElementById("1RC42").value;
var fenclosureno = document.getElementById("1RC74").value;
var RA1 = document.getElementById("rechid25_1").value;
var appno = document.getElementById("appno").value;
if (faculty == "") {
alert("Select Faculty");
document.getElementById("1RC37").focus();
return;
}
if (ftitle == "") {
alert("Enter Title of the Project");
document.getElementById("1RC38").focus();
return;
}
if (fagency == "") {
alert("Enter Funding Agency");
document.getElementById("1RC39").focus();
return;
}
if (fperiod == "") {
alert("Enter Period");
document.getElementById("1RC40").focus();
return;
}
if (famount == "") {
alert("Select Amount");
document.getElementById("1RC41").focus();
return;
}
if (fenclosureno == "") {
alert("Enclosure No");
document.getElementById("1RC74").focus();
return;
}
var dataString =
"&faculty=" +
faculty +
"&ftitle=" +
ftitle +
"&fagency=" +
fagency +
"&fperiod=" +
fperiod +
"&famount=" +
famount +
"&appno=" +
appno +
"&fpoints=" +
fpoints +
"&RA1=" +
RA1 +
"&fenclosureno=" +
fenclosureno;
$.ajax({
type: "POST",
url: $host_url + "saveresearchassociate5",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
$("#researchassociatetabled tbody").remove();
$("#researchassociatetabled").append($responce.data.table);
document.getElementById("1RC37").value = "";
document.getElementById("1RC38").value = "";
document.getElementById("1RC39").value = "";
document.getElementById("1RC40").value = "";
document.getElementById("1RC41").value = "";
document.getElementById("1RC42").value = "";
document.getElementById("1RC74").value = "";
document.getElementById("rechid25_1").value = "I";
} else {
$("#researchassociatetabled tbody").remove();
$("#researchassociatetabled").append($responce.data.table);
document.getElementById("1RC37").value = "";
document.getElementById("1RC38").value = "";
document.getElementById("1RC39").value = "";
document.getElementById("1RC40").value = "";
document.getElementById("1RC41").value = "";
document.getElementById("1RC42").value = "";
document.getElementById("1RC74").value = "";
document.getElementById("rechid25_1").value = "I";
}
}
});
}
function editassociate5(slno, id) {
document.getElementById("1RC37").value = document.getElementById(
id + "HRC37"
).value;
document.getElementById("1RC38").value = document.getElementById(
id + "RC38"
).value;
document.getElementById("1RC39").value = document.getElementById(
id + "RC39"
).value;
document.getElementById("1RC40").value = document.getElementById(
id + "RC40"
).value;
document.getElementById("1RC41").value = document.getElementById(
id + "RC41"
).value;
document.getElementById("1RC42").value = document.getElementById(
id + "RC42"
).value;
document.getElementById("1RC74").value = document.getElementById(
id + "RC74"
).value;
document.getElementById("rechid25_1").value = document.getElementById(
"rechid25_" + id
).value;
}
function deleteassociate5(slno, id) {
var appno = document.getElementById("appno").value;
var dataString = "&slno=" + slno + "&appno=" + appno;
if (confirm("Are you sure you want to delete.")) {
$.ajax({
type: "POST",
url: $host_url + "deleteassociate5",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
$("#researchassociatetabled tbody").remove();
$("#researchassociatetabled").append($responce.data.table);
} else {
$("#researchassociatetabled tbody").remove();
$("#researchassociatetabled").append($responce.data.table);
}
}
});
}
}
function saveresearchassociate6() {
var faculty = document.getElementById("1RC43").value;
var ftitle = document.getElementById("1RC44").value;
var fagency = document.getElementById("1RC45").value;
var flevel = document.getElementById("1RC46").value;
var fpoints = document.getElementById("1RC47").value;
var fenclosureno = document.getElementById("1RC75").value;
var RA1 = document.getElementById("rechid26_1").value;
var appno = document.getElementById("appno").value;
if (faculty == "") {
alert("Select Faculty");
document.getElementById("1RC43").focus();
return;
}
if (ftitle == "") {
alert("Enter Title of the Project");
document.getElementById("1RC44").focus();
return;
}
if (fagency == "") {
alert("Enter Funding Agency");
document.getElementById("1RC45").focus();
return;
}
if (flevel == "") {
alert("Enter Level");
document.getElementById("1RC46").focus();
return;
}
if (fenclosureno == "") {
alert("Enter Enclosure No");
document.getElementById("1RC75").focus();
return;
}
/* if(famount == '')
{
alert('Select Amount');
document.getElementById('1RC47').focus();
return;
} */
var dataString =
"&faculty=" +
faculty +
"&ftitle=" +
ftitle +
"&fagency=" +
fagency +
"&flevel=" +
flevel +
"&appno=" +
appno +
"&fpoints=" +
fpoints +
"&RA1=" +
RA1 +
"&fenclosureno=" +
fenclosureno;
$.ajax({
type: "POST",
url: $host_url + "saveresearchassociate6",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
$("#researchassociatetablee tbody").remove();
$("#researchassociatetablee").append($responce.data.table);
document.getElementById("1RC43").value = "";
document.getElementById("1RC44").value = "";
document.getElementById("1RC45").value = "";
document.getElementById("1RC46").value = "";
document.getElementById("1RC47").value = "";
document.getElementById("1RC75").value = "";
document.getElementById("rechid26_1").value = "I";
} else {
$("#researchassociatetablee tbody").remove();
$("#researchassociatetablee").append($responce.data.table);
document.getElementById("1RC43").value = "";
document.getElementById("1RC44").value = "";
document.getElementById("1RC45").value = "";
document.getElementById("1RC46").value = "";
document.getElementById("1RC47").value = "";
document.getElementById("1RC75").value = "";
document.getElementById("rechid26_1").value = "I";
}
}
});
}
function editassociate6(slno, id) {
document.getElementById("1RC43").value = document.getElementById(
id + "RC43"
).value;
document.getElementById("1RC44").value = document.getElementById(
id + "RC44"
).value;
document.getElementById("1RC45").value = document.getElementById(
id + "RC45"
).value;
document.getElementById("1RC46").value = document.getElementById(
id + "HRC46"
).value;
document.getElementById("1RC47").value = document.getElementById(
id + "RC47"
).value;
document.getElementById("1RC75").value = document.getElementById(
id + "RC75"
).value;
document.getElementById("rechid26_1").value = document.getElementById(
"rechid26_" + id
).value;
}
function deleteassociate6(slno, id) {
var appno = document.getElementById("appno").value;
var dataString = "&slno=" + slno + "&appno=" + appno;
if (confirm("Are you sure you want to delete.")) {
$.ajax({
type: "POST",
url: $host_url + "deleteassociate6",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
$("#researchassociatetablee tbody").remove();
$("#researchassociatetablee").append($responce.data.table);
} else {
$("#researchassociatetablee tbody").remove();
$("#researchassociatetablee").append($responce.data.table);
}
}
});
}
}
function saveresearchassociate7() {
var fnostud = document.getElementById("1RC48").value;
var fpoints = document.getElementById("1RC49").value;
var fenclosureno = document.getElementById("1RC76").value;
var RA1 = document.getElementById("rechid27_1").value;
var appno = document.getElementById("appno").value;
if (fnostud == "") {
alert("Enter No. of students");
document.getElementById("1RC48").focus();
return;
}
if (fenclosureno == "") {
alert("Enter Enclosure No");
document.getElementById("1RC76").focus();
return;
}
var dataString =
"&fnostud=" +
fnostud +
"&appno=" +
appno +
"&fpoints=" +
fpoints +
"&RA1=" +
RA1 +
"&fenclosureno=" +
fenclosureno;
$.ajax({
type: "POST",
url: $host_url + "saveresearchassociate7",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
$("#researchassociatetablef tbody").remove();
$("#researchassociatetablef").append($responce.data.table);
document.getElementById("1RC48").value = "";
document.getElementById("1RC49").value = "";
document.getElementById("1RC76").value = "";
document.getElementById("rechid27_1").value = "I";
} else {
$("#researchassociatetablef tbody").remove();
$("#researchassociatetablef").append($responce.data.table);
document.getElementById("1RC48").value = "";
document.getElementById("1RC49").value = "";
document.getElementById("1RC76").value = "";
document.getElementById("rechid27_1").value = "I";
}
}
});
}
function editassociate7(slno, id) {
document.getElementById("1RC48").value = document.getElementById(
id + "RC48"
).value;
document.getElementById("1RC49").value = document.getElementById(
id + "RC49"
).value;
document.getElementById("1RC76").value = document.getElementById(
id + "RC76"
).value;
document.getElementById("rechid27_1").value = document.getElementById(
"rechid27_" + id
).value;
}
function deleteassociate7(slno, id) {
var appno = document.getElementById("appno").value;
var dataString = "&slno=" + slno + "&appno=" + appno;
if (confirm("Are you sure you want to delete.")) {
$.ajax({
type: "POST",
url: $host_url + "deleteassociate7",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
$("#researchassociatetablef tbody").remove();
$("#researchassociatetablef").append($responce.data.table);
} else {
$("#researchassociatetablef tbody").remove();
$("#researchassociatetablef").append($responce.data.table);
}
}
});
}
}
function saveresearchassociate8() {
var fawareded = document.getElementById("1RC50").value;
var fnostud = document.getElementById("1RC51").value;
var fpoints = document.getElementById("1RC52").value;
var fenclosureno = document.getElementById("1RC77").value;
var RA1 = document.getElementById("rechid28_1").value;
var appno = document.getElementById("appno").value;
if (fnostud == "") {
alert("Enter No. of students");
document.getElementById("1RC51").focus();
return;
}
if (fenclosureno == "") {
alert("Enter Enclosure No");
document.getElementById("1RC76").focus();
return;
}
if (fawareded == "") {
alert("Enter Enclosure No");
document.getElementById("1RC50").focus();
return;
}
var dataString =
"&fnostud=" +
fnostud +
"&appno=" +
appno +
"&fpoints=" +
fpoints +
"&RA1=" +
RA1 +
"&fenclosureno=" +
fenclosureno +
"&fawareded=" +
fawareded;
$.ajax({
type: "POST",
url: $host_url + "saveresearchassociate8",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
$("#researchassociatetableg tbody").remove();
$("#researchassociatetableg").append($responce.data.table);
document.getElementById("1RC50").value = "";
document.getElementById("1RC51").value = "";
document.getElementById("1RC52").value = "";
document.getElementById("1RC77").value = "";
document.getElementById("rechid28_1").value = "I";
} else {
$("#researchassociatetableg tbody").remove();
$("#researchassociatetableg").append($responce.data.table);
document.getElementById("1RC50").value = "";
document.getElementById("1RC51").value = "";
document.getElementById("1RC52").value = "";
document.getElementById("1RC77").value = "";
document.getElementById("rechid28_1").value = "I";
}
}
});
}
function editassociate8(slno, id) {
document.getElementById("1RC50").value = document.getElementById(
id + "RC50"
).value;
document.getElementById("1RC51").value = document.getElementById(
id + "RC51"
).value;
document.getElementById("1RC52").value = document.getElementById(
id + "RC52"
).value;
document.getElementById("1RC77").value = document.getElementById(
id + "RC77"
).value;
document.getElementById("rechid28_1").value = document.getElementById(
"rechid28_" + id
).value;
}
function deleteassociate8(slno, id) {
var appno = document.getElementById("appno").value;
var dataString = "&slno=" + slno + "&appno=" + appno;
if (confirm("Are you sure you want to delete.")) {
$.ajax({
type: "POST",
url: $host_url + "deleteassociate8",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
$("#researchassociatetableg tbody").remove();
$("#researchassociatetableg").append($responce.data.table);
} else {
$("#researchassociatetableg tbody").remove();
$("#researchassociatetableg").append($responce.data.table);
}
}
});
}
}
function saveresearchassociate9() {
var fname = document.getElementById("1RC53").value;
var facademic = document.getElementById("1RC54").value;
var fawareded = document.getElementById("1RC55").value;
var flevel = document.getElementById("1RC56").value;
var fpoints = document.getElementById("1RC57").value;
var fenclosureno = document.getElementById("1RC78").value;
var RA1 = document.getElementById("rechid29_1").value;
var appno = document.getElementById("appno").value;
if (fname == "") {
alert("Name of the award");
document.getElementById("1RC53").focus();
return;
}
if (facademic == "") {
alert("Enter Academic body / association");
document.getElementById("1RC54").focus();
return;
}
if (fawareded == "") {
alert("Select Type");
document.getElementById("1RC56").focus();
return;
}
if (fenclosureno == "") {
alert("Enter Enclosure No");
return;
}
var dataString =
"&facademic=" +
facademic +
"&appno=" +
appno +
"&fpoints=" +
fpoints +
"&RA1=" +
RA1 +
"&fenclosureno=" +
fenclosureno +
"&fawareded=" +
fawareded +
"&fname=" +
fname +
"&flevel=" +
flevel;
$.ajax({
type: "POST",
url: $host_url + "saveresearchassociate9",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
$("#researchassociatetableh tbody").remove();
$("#researchassociatetableh").append($responce.data.table);
document.getElementById("1RC53").value = "";
document.getElementById("1RC54").value = "";
document.getElementById("1RC55").value = "";
document.getElementById("1RC56").value = "";
document.getElementById("1RC57").value = "";
document.getElementById("1RC78").value = "";
document.getElementById("rechid29_1").value = "I";
} else {
$("#researchassociatetableh tbody").remove();
$("#researchassociatetableh").append($responce.data.table);
document.getElementById("1RC53").value = "";
document.getElementById("1RC54").value = "";
document.getElementById("1RC55").value = "";
document.getElementById("1RC56").value = "";
document.getElementById("1RC57").value = "";
document.getElementById("1RC78").value = "";
document.getElementById("rechid29_1").value = "I";
}
}
});
}
function editassociate9(slno, id) {
document.getElementById("1RC53").value = document.getElementById(
id + "RC53"
).value;
document.getElementById("1RC54").value = document.getElementById(
id + "RC54"
).value;
document.getElementById("1RC55").value = document.getElementById(
id + "HRC55"
).value;
document.getElementById("1RC56").value = document.getElementById(
id + "HRC56"
).value;
document.getElementById("1RC57").value = document.getElementById(
id + "RC57"
).value;
document.getElementById("1RC78").value = document.getElementById(
id + "RC78"
).value;
document.getElementById("rechid29_1").value = document.getElementById(
"rechid29_" + id
).value;
}
function deleteassociate9(slno, id) {
var appno = document.getElementById("appno").value;
var dataString = "&slno=" + slno + "&appno=" + appno;
if (confirm("Are you sure you want to delete.")) {
$.ajax({
type: "POST",
url: $host_url + "deleteassociate9",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
$("#researchassociatetableh tbody").remove();
$("#researchassociatetableh").append($responce.data.table);
} else {
$("#researchassociatetableh tbody").remove();
$("#researchassociatetableh").append($responce.data.table);
}
}
});
}
}
function saveresearchassociate10() {
var ftitle = document.getElementById("1RC58").value;
var fsubmitted = document.getElementById("1RC59").value;
var forganized = document.getElementById("1RC60").value;
var fdate = document.getElementById("1RC61").value;
var ftype = document.getElementById("1RC62").value;
var flevel = document.getElementById("1RC63").value;
var fpoints = document.getElementById("1RC64").value;
var fenclosureno = document.getElementById("1RC79").value;
var RA1 = document.getElementById("rechid30_1").value;
var appno = document.getElementById("appno").value;
if (ftitle == "") {
alert("Enter Title of the lecture / Academic session");
document.getElementById("1RC58").focus();
return;
}
if (fsubmitted == "") {
alert("Enter Title of the conference / Seminar");
document.getElementById("1RC59").focus();
return;
}
if (forganized == "") {
alert("Entrer Organized By");
document.getElementById("1RC60").focus();
return;
}
if (fdate == "") {
alert("Entrer Date");
document.getElementById("1RC61").focus();
return;
}
if (ftype == "") {
alert("select Type");
document.getElementById("1RC62").focus();
return;
}
if (fenclosureno == "") {
alert("Enter Enclosure No");
document.getElementById("1RC79").focus();
return;
}
if (flevel == "") {
alert("select Level");
document.getElementById("1RC62").focus();
return;
}
var dataString =
"&ftitle=" +
ftitle +
"&appno=" +
appno +
"&fpoints=" +
fpoints +
"&RA1=" +
RA1 +
"&fenclosureno=" +
fenclosureno +
"&fsubmitted=" +
fsubmitted +
"&forganized=" +
forganized +
"&flevel=" +
flevel +
"&fdate=" +
fdate +
"&ftype=" +
ftype;
$.ajax({
type: "POST",
url: $host_url + "saveresearchassociate10",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
$("#researchassociatetablei tbody").remove();
$("#researchassociatetablei").append($responce.data.table);
document.getElementById("1RC58").value = "";
document.getElementById("1RC59").value = "";
document.getElementById("1RC60").value = "";
document.getElementById("1RC61").value = "";
document.getElementById("1RC62").value = "";
document.getElementById("1RC63").value = "";
document.getElementById("1RC64").value = "";
document.getElementById("1RC79").value = "";
document.getElementById("rechid30_1").value = "I";
} else {
$("#researchassociatetablei tbody").remove();
$("#researchassociatetablei").append($responce.data.table);
document.getElementById("1RC58").value = "";
document.getElementById("1RC59").value = "";
document.getElementById("1RC60").value = "";
document.getElementById("1RC61").value = "";
document.getElementById("1RC62").value = "";
document.getElementById("1RC63").value = "";
document.getElementById("1RC64").value = "";
document.getElementById("1RC79").value = "";
document.getElementById("rechid30_1").value = "I";
}
}
});
}
function editassociate10(slno, id) {
document.getElementById("1RC58").value = document.getElementById(
id + "RC58"
).value;
document.getElementById("1RC59").value = document.getElementById(
id + "RC59"
).value;
document.getElementById("1RC60").value = document.getElementById(
id + "RC60"
).value;
document.getElementById("1RC61").value = document.getElementById(
id + "RC61"
).value;
document.getElementById("1RC62").value = document.getElementById(
id + "HRC62"
).value;
document.getElementById("1RC63").value = document.getElementById(
id + "HRC63"
).value;
document.getElementById("1RC64").value = document.getElementById(
id + "RC64"
).value;
document.getElementById("1RC79").value = document.getElementById(
id + "RC79"
).value;
document.getElementById("rechid30_1").value = document.getElementById(
"rechid30_" + id
).value;
}
function deleteassociate10(slno, id) {
var appno = document.getElementById("appno").value;
var dataString = "&slno=" + slno + "&appno=" + appno;
if (confirm("Are you sure you want to delete.")) {
$.ajax({
type: "POST",
url: $host_url + "deleteassociate8",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
$("#researchassociatetablei tbody").remove();
$("#researchassociatetablei").append($responce.data.table);
} else {
$("#researchassociatetablei tbody").remove();
$("#researchassociatetablei").append($responce.data.table);
}
}
});
}
}
function saveresearchassociate11() {
var ftitle = document.getElementById("1RC65").value;
var fsubmitted = document.getElementById("1RC66").value;
var fnom = document.getElementById("1RC67").value;
var fpoints = document.getElementById("1RC68").value;
var fenclosureno = document.getElementById("1RC80").value;
var RA1 = document.getElementById("rechid31_1").value;
var appno = document.getElementById("appno").value;
if (ftitle == "") {
alert("Enter Title of the lecture / Academic session");
document.getElementById("1RC65").focus();
return;
}
if (fsubmitted == "") {
alert("Enter Title of the conference / Seminar");
document.getElementById("1RC66").focus();
return;
}
if (fnom == "") {
alert("Entrer Organized By");
document.getElementById("1RC67").focus();
return;
}
if (fenclosureno == "") {
alert("Enter Enclosure No");
document.getElementById("1RC80").focus();
return;
}
var dataString =
"&ftitle=" +
ftitle +
"&appno=" +
appno +
"&fpoints=" +
fpoints +
"&RA1=" +
RA1 +
"&fenclosureno=" +
fenclosureno +
"&fsubmitted=" +
fsubmitted +
"&fnom=" +
fnom;
$.ajax({
type: "POST",
url: $host_url + "saveresearchassociate11",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
$("#researchassociatetablej tbody").remove();
$("#researchassociatetablej").append($responce.data.table);
document.getElementById("1RC65").value = "";
document.getElementById("1RC66").value = "";
document.getElementById("1RC67").value = "";
document.getElementById("1RC68").value = "";
document.getElementById("1RC80").value = "";
document.getElementById("rechid31_1").value = "I";
} else {
$("#researchassociatetablej tbody").remove();
$("#researchassociatetablej").append($responce.data.table);
document.getElementById("1RC65").value = "";
document.getElementById("1RC66").value = "";
document.getElementById("1RC67").value = "";
document.getElementById("1RC68").value = "";
document.getElementById("1RC80").value = "";
document.getElementById("rechid31_1").value = "I";
}
}
});
}
function editassociate11(slno, id) {
document.getElementById("1RC65").value = document.getElementById(
id + "RC65"
).value;
document.getElementById("1RC66").value = document.getElementById(
id + "RC66"
).value;
document.getElementById("1RC67").value = document.getElementById(
id + "RC67"
).value;
document.getElementById("1RC68").value = document.getElementById(
id + "RC68"
).value;
document.getElementById("1RC80").value = document.getElementById(
id + "RC80"
).value;
document.getElementById("rechid31_1").value = document.getElementById(
"rechid31_" + id
).value;
}
function deleteassociate11(slno, id) {
var appno = document.getElementById("appno").value;
var dataString = "&slno=" + slno + "&appno=" + appno;
if (confirm("Are you sure you want to delete.")) {
$.ajax({
type: "POST",
url: $host_url + "deleteassociate11",
data: dataString,
cache: false,
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
$("#researchassociatetablej tbody").remove();
$("#researchassociatetablej").append($responce.data.table);
} else {
$("#researchassociatetablej tbody").remove();
$("#researchassociatetablej").append($responce.data.table);
}
}
});
}
}
function getapiassistantresearch() {
//var impfact = document.getElementById('1RA9').value;
var publication = document.getElementById("1RA1").value;
var author = document.getElementById("1RA8").value;
var points = "";
if (publication == "1065") {
if (author == "1069") points = 1;
if (author == "1067" || author == "1068") points = 1 * 0.7;
if (author == "1070") points = 1 * 0.3;
/*if(impfact == 'No Impact Factor')
{
if(author == '1069')
points = 1;
if(author == '1067' || author == '1068')
points = 1*0.7;
if(author == '1070')
points = 1*0.3;
}
if(impfact == '<1')
{
if(author == '1069')
points = 1+5;
if(author == '1067' || author == '1068')
points = (1+5)*0.7;
if(author == '1070')
points = (1+5)*0.3;
}
if(impfact == '1-2')
{
if(author == '1069')
points = 1+10;
if(author == '1067' || author == '1068')
points = (1+10)*0.7;
if(author == '1070')
points = (1+10)*0.3;
}
if(impfact == '2-5')
{
if(author == '1069')
points = 1+15;
if(author == '1067' || author == '1068')
points = (1+15)*0.7;
if(author == '1070')
points = (1+15)*0.3;
}
if(impfact == '5-10')
{
if(author == '1069')
points = (1+20);
if(author == '1067' || author == '1068')
points = (1+20)*0.7;
if(author == '1070')
points = (1+20)*0.3;
}
if(impfact == '>10')
{
if(author == '1069')
points = (1+25);
if(author == '1067' || author == '1068')
points = (1+25)*0.7;
if(author == '1070')
points = (1+25)*0.3;
}*/
}
if (publication == "1066") {
if (author == "1069") points = 2;
if (author == "1067" || author == "1068") points = 2 * 0.7;
if (author == "1070") points = 2 * 0.3;
/*if(impfact == 'No Impact Factor')
{
if(author == '1069')
points = 2;
if(author == '1067' || author == '1068')
points = 2*0.7;
if(author == '1070')
points = 2*0.3;
}
if(impfact == '<1')
{
if(author == '1069')
points = 2;
if(author == '1067' || author == '1068')
points = 2*0.7;
if(author == '1070')
points = 2*0.3;
}
if(impfact == '1-2')
{
if(author == '1069')
points = 2;
if(author == '1067' || author == '1068')
points = 2*0.7;
if(author == '1070')
points = 2*0.3;
}
if(impfact == '2-5')
{
if(author == '1069')
points = 2;
if(author == '1067' || author == '1068')
points = 2*0.7;
if(author == '1070')
points = 2*0.3;
}
if(impfact == '5-10')
{
if(author == '1069')
points = 2;
if(author == '1067' || author == '1068')
points = 2*0.7;
if(author == '1070')
points = 2*0.3;
}
if(impfact == '>10')
{
if(author == '1069')
points = 2+30;
if(author == '1067' || author == '1068')
points = 2*0.7;
if(author == '1070')
points = 2*0.3;
}*/
}
document.getElementById("1RA10").value = points;
}
function getapiassistantresearch2() {
var publication = document.getElementById("1RC1").value;
var author = document.getElementById("1RC8").value;
var impfact = document.getElementById("1RC9").value;
var points = "";
if (publication == "1009") {
points = 1;
}
if (publication == "1010") {
points = 2;
}
document.getElementById("1RC10").value = points;
}
function calculateexppoint(id1, id2) {
if (
isDate(document.getElementById(id1).value) &&
isDate(document.getElementById(id2).value)
) {
var points = calculateexppoints(
parseDate(document.getElementById(id1).value),
parseDate(document.getElementById(id2).value)
);
document.getElementById("1BT7").value = points.years + "." + points.months;
document.getElementById("1BT8").value =
points.years * 4 + parseInt(points.months / 4) * 1;
} else {
}
}
function calculateexppoint2(id1, id2) {
if (
isDate(document.getElementById(id1).value) &&
isDate(document.getElementById(id2).value)
) {
var points = calculateexppoints(
parseDate(document.getElementById(id1).value),
parseDate(document.getElementById(id2).value)
);
document.getElementById("1BT15").value = points.years + "." + points.months;
document.getElementById("1BT16").value =
points.years * 4 + parseInt(points.months / 4) * 1;
} else {
//$("#T3").val('');
}
}
/* function calculateexppoints(dateOfBirth, dateToCalculate)
{
/* var dateOfBirth = document.getElementById(dateOfBirth).value;
var dateOfBirth = new Date(dateOfBirth);
var dateToCalculate = document.getElementById(dateToCalculate).value;
var dateToCalculate = new Date(dateToCalculate);
var calculateYear = dateToCalculate.getFullYear();
var calculateMonth = dateToCalculate.getMonth();
var calculateDay = dateToCalculate.getDate();
var birthYear = dateOfBirth.getFullYear();
var birthMonth = dateOfBirth.getMonth();
var birthDay = dateOfBirth.getDate();
var year = calculateYear - birthYear;
var month = calculateMonth - birthMonth;
var age = year+''+month;
var ageDay = calculateDay - birthDay;
if (ageMonth < 0 || (ageMonth == 0 && ageDay < 0))
{
age = parseInt(age) - 1;
}
return age;
} */
function calculateexppoints(dt1, dt2) {
/*
* setup 'empty' return object
*/
var ret = { days: 0, months: 0, years: 0 };
/*
* If the dates are equal, return the 'empty' object
*/
if (dt1 == dt2) return ret;
/*
* ensure dt2 > dt1
*/
if (dt1 > dt2) {
var dtmp = dt2;
dt2 = dt1;
dt1 = dtmp;
}
/*
* First get the number of full years
*/
var year1 = dt1.getFullYear();
var year2 = dt2.getFullYear();
/* if(1993 <= 1995)
{
}else
alert('11'); */
var month1 = dt1.getMonth();
var month2 = dt2.getMonth();
var day1 = dt1.getDate();
var day2 = dt2.getDate();
/*
* Set initial values bearing in mind the months or days may be negative
*/
ret["years"] = year2 - year1;
ret["months"] = month2 - month1;
ret["days"] = day2 - day1;
/*
* Now we deal with the negatives
*/
/*
* First if the day difference is negative
* eg dt2 = 13 oct, dt1 = 25 sept
*/
if (ret["days"] < 0) {
/*
* Use temporary dates to get the number of days remaining in the month
*/
var dtmp1 = new Date(dt1.getFullYear(), dt1.getMonth() + 1, 1, 0, 0, -1);
var numDays = dtmp1.getDate();
ret["months"] -= 1;
ret["days"] += numDays;
}
/*
* Now if the month difference is negative
*/
if (ret["months"] < 0) {
ret["months"] += 12;
ret["years"] -= 1;
}
return ret;
}
function getotj(id1, id2) {
var publication = document.getElementById(id1).value;
var author = document.getElementById(id2).value;
var $rcpoints = 0;
if (publication == "1079") {
if (author == "1086") {
$rcpoints = 05;
} else if (author == "1087") {
$rcpoints = 3.5; // (30/70*100)
} else if (author == "1088") {
$rcpoints = 1.5; //(5*30)/100
}
}
if (publication == "1080") {
if (author == "1086") {
$rcpoints = 05;
} else if (author == "1087") {
$rcpoints = 3.5;
} else if (author == "1088") {
$rcpoints = 1.5;
}
}
if (publication == "1081") {
if (author == "1086") {
$rcpoints = 5;
} else if (author == "1087") {
$rcpoints = 3.5;
} else if (author == "1088") {
$rcpoints = 1.5;
}
}
if (publication == "1082") {
if (author == "1086") {
$rcpoints = 2.5;
} else if (author == "1087") {
$rcpoints = 1.75;
} else if (author == "1088") {
$rcpoints = 0.75;
}
}
if (publication == "1204") {
if (author == "1086") {
$rcpoints = 2.5;
} else if (author == "1087") {
$rcpoints = 1.75;
} else if (author == "1088") {
$rcpoints = 0.75;
}
}
document.getElementById("1RA30").value = $rcpoints;
}
function getotj2(id1, id2) {
var publication = document.getElementById(id1).value;
var author = document.getElementById(id2).value;
var $rcpoints = 0;
if (publication == "1023") {
$rcpoints = 5;
}
if (publication == "1025") {
$rcpoints = 5;
}
if (publication == "1024") {
$rcpoints = 5;
}
if (publication == "1026") {
$rcpoints = 2.5;
}
if (publication == "1200") {
$rcpoints = 2.5;
}
document.getElementById("1RC30").value = $rcpoints;
}
function getsponseredamount() {
var faculty = document.getElementById("1RC31").value;
var amount = document.getElementById("1RC35").value;
var points = 0;
if (amount == "1-3LAKH") {
points = 5;
} else if (amount == "3-5LAKH") {
points = 5;
} else if (amount == ">5LAKH") {
points = 10;
}
document.getElementById("1RC36").value = points;
}
function getsponseredamount2() {
var faculty = document.getElementById("1RC37").value;
var amount = document.getElementById("1RC41").value;
var points = 0;
if (amount == ">=2LAKH") {
points = 2;
}
document.getElementById("1RC42").value = points;
}
function xfile(id) {
alert(id);
var filepath;
var valid_file_extentions = new Array("jpg");
var ext = $("#stud_photo").val();
filepath = ext;
ext = ext.substring(ext.length - 3, ext.length);
ext = ext.toLowerCase();
if (
ext != "" &&
valid_file_extentions == "jpg" &&
valid_file_extentions == "jpeg"
) {
alert("Please Select the Valid Photo!");
$("#stud_photo").val("");
return false;
}
var lstr_data = "filepath=" + filepath;
$upload = $host_url + "savephoto&" + lstr_data;
//$.blockUI({ message: "<h1 class='h1' style='font-size:12px'><img src='img/ajax-loader.gif' border='0'></h1>" });
document.getElementById("form_module_upload").setAttribute("action", $upload);
return AIM.submit(document.getElementById("form_module_upload"), "same_tab", {
onComplete: xfileResponse
});
}
function xfileResponse() {}
function xfileResponse($responce) {
$responce = eval("(" + $responce + ")");
// $.unblockUI();
if ($responce.error_code == 0) {
$("#student_photo").attr("src", $responce.data);
} else if ($responce.error_code == -1)
$("#student_photo").attr("src", "img/default_photo.jpg");
else if ($responce.error_code == -2) {
alert($responce.data);
$("#student_photo").attr("src", "img/default_photo.jpg");
$("#stud_photo").val("");
}
}
function getselfscore(id1, id2, id3) {
var first = document.getElementById(id2).value;
var max = document.getElementById(id1).value;
if (id2 == "T502") {
var score = first / 7.75;
if (score > max) score = max;
document.getElementById(id3).value = score;
} else {
var score = first / 10;
if (score > max) score = max;
document.getElementById(id3).value = score;
}
}
function getselfscoretotal(id1, id2, id3, id4) {
first = document.getElementById(id1).value;
second = document.getElementById(id2).value;
third = document.getElementById(id3).value;
document.getElementById(id4).value = (
parseFloat(first) +
parseFloat(second) +
parseFloat(third)
).toFixed(2);
}
function getprojectout() {
var level = document.getElementById("1RC46").value;
var faculty = document.getElementById("1RC43").value;
var points = 0;
if (faculty == "Patent / Technology Transfer / Product / Process") {
if (level == "International") points = 30;
if (level == "National") points = 20;
} else if (
faculty ==
"Major Policy Document Prepared for International bodies like WHO / UNO / UNESCO / UNICEF ect. central / state / Govt. / Local Bodies"
) {
if (level == "International Bodies") points = 30;
if (level == "Central Government") points = 20;
if (level == "State Govt.") points = 10;
if (level == "Local Bodies") points = 5;
}
document.getElementById("1RC47").value = points;
}
function getpoints() {
var studno = document.getElementById("1RC48").value;
document.getElementById("1RC49").value = parseInt(studno) * 1;
}
function getphdpoints() {
var award = document.getElementById("1RC50").value;
var studno = document.getElementById("1RC51").value;
if (award == "1054")
document.getElementById("1RC52").value = parseInt(studno) * 3;
if (award == "1055")
document.getElementById("1RC52").value = parseInt(studno) * 3;
}
function getlearningpoints() {
var nomodule = document.getElementById("1RC67").value;
document.getElementById("1RC68").value = 5 * nomodule;
}
function getfellowshipfpoints() {
var level = document.getElementById("1RC56").value;
var type = document.getElementById("1RC55").value;
if (type == "1057") {
if (level == "1059") document.getElementById("1RC57").value = 1;
if (level == "1058") document.getElementById("1RC57").value = 2;
if (level == "1201") document.getElementById("1RC57").value = 3;
} else if (type == "1056") {
if (level == "1059") document.getElementById("1RC57").value = 0;
if (level == "1058") document.getElementById("1RC57").value = 2;
if (level == "1201") document.getElementById("1RC57").value = 3;
}
}
function getInvitedfpoints() {
var type = document.getElementById("1RC62").value;
var level = document.getElementById("1RC63").value;
var points = 0;
if (type == "1060") {
if (level == "1062") {
points = 1;
}
if (level == "1063") {
points = 1;
}
if (level == "1064") {
points = 1;
}
} else if (type == "1061") {
if (level == "1062") {
points = 1;
}
if (level == "1063") {
points = 1;
}
if (level == "1064") {
points = 1;
}
}
document.getElementById("1RC64").value = points;
}
function MakeOnlinePayment(appno) {
$.ajax({
type: "POST",
async: false,
url: $host_url + "makeOnlinepaymentdetails",
data: "&appno=" + appno,
success: function(responce) {
responce = eval("(" + responce + ")");
if (responce.error_code == 0) {
window.location.href = "payment_gateway.php?productinfo=" + appno;
} else {
}
}
});
}
function Printapplication(app_no) {
$.ajax({
type: "POST",
async: false,
url: $host_url + "Printapplicationdetails",
data: "&app_no=" + app_no,
success: function(responce) {
responce = eval("(" + responce + ")");
if (responce.error_code == 0) {
window.location.href = $host_url + "Printapplication&app_no=" + app_no;
window.location.href = "home.html";
//window.location.href="index.html";
} else {
}
}
});
}
function Printapplicationhome(app_no) {
window.location.href = $host_url + "Printapplication&app_no=" + app_no;
}
function submit_declare() {
loadPreviewDetails();
loadtabs("tab8");
}
function submithprint() {
loadPaymentDetails();
loadtabs("tab9");
}
function pergetdeatils(id1, id2, id3) {
var maxmarks = $("#" + id1).val();
var secure = $("#" + id2).val();
maxmarks = Number(maxmarks);
secure = Number(secure);
if (secure > maxmarks) {
alert("Secured marks should be less than max. marks");
$("#" + id2).val("");
$("#" + id3).val("");
document.getElementById(id2).focus();
return;
}
var percent = (secure / maxmarks) * 100;
document.getElementById(id3).value = percent;
}
function yeardeatils(id) {
var year = $("#" + id).val();
if (year <= 2019 && year >= 1970) {
} else {
alert("Please select vaild passing year");
$("#" + id).val("");
$("#" + id).focus();
return;
}
}
function singlequtes(id) {
console.log(id);
var x = document.getElementById(id).value;
addvaue = x.replace("'", "`");
document.getElementById(id).value = addvaue;
}
function getPWDdet() {
$("#pwddet").hide();
if (document.getElementById("T901").checked == true) {
$("#pwddet").show();
} else {
$("#pwddet").hide();
}
}
|