Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 18.219.44.171
const loadSavedData = fappno => {
$.ajax({
type: "POST",
async: false,
url: $host_url + "getSavedData&fappno=" + fappno,
success: function getSavedDataResponce(responce) {
responce = eval("(" + responce + ")");
var { data, error_code, status } = responce;
console.log(data);
$("#personal_det input[type=text],#personal_det select").each(function() {
// console.log('hii');
$(this).val(data.student[$(this).attr("id")]);
});
// $('#fname').val(data.student['fname'])
$("#prefDet select").each(function() {
$(this).val(data.student[$(this).attr("id")]);
});
console.log(data.ackvfd);
if (data.ackvfd === "T") {
// $('#vfd').is(':checked');
console.log("hi");
$("#vfd").prop("checked", true);
// checkbox.filter(`[ackvfd="T"]`).prop("checked", true);
} else {
$("#vfd").prop("checked", false);
}
if (data.student["fphotopath"] != "") {
photo_path = data.student["fphotopath"];
$("#frmFileUpload").hide();
$("#studphoto_img").attr(
"src",
$host_url1 + "" + data.student["fphotopath"]
);
$("#studphoto").show();
}
table = `
<table class="table table-bordered table-hover" id='mainTable'>
<thead style = 'height:40px;background-color: #184F76 !important;color: #fff;'>
<tr>
<th> SL. No. </th>
<th> Head Code </th>
<th> Fee </th>
</tr>
</thead>`;
data.feedetl.map((el, i) => {
table += `<tr class="tblRow" id="tblid">
<td> ${i + 1} </td>
<td id="fheadcode${i}"> ${el.fheadcode} </td>
<td id="fmaxfee${i}"> ${el.fmaxfee} </td>
</tr>`;
totalFee += parseInt(el.fmaxfee);
});
table += `
<tr>
<td colspan="2" class="text-left">Total</td>
<td id="ttlAmt">${totalFee}</td>
</tr>
</table>`;
$("#FeeTbl").html(table);
if (data.student["fgender"] != "") {
var $radios = $("input:radio[name=fgender]");
$radios
.filter("[value=" + data.student["fgender"] + "]")
.prop("checked", true);
}
var radio_names = [
"fgender",
"fbpl",
"fogirl",
"fkarstudy",
"fkashmir",
"fhk",
"fjk",
"frural",
"fkannada",
"fbcue",
"fpumat",
"fqutype",
"fpubio",
"fbcuetype",
"fpgdegree",
"fpgunivtype",
"fmngetexam"
];
for (var i = 0; i < radio_names.length; i++) {
if (data.student[radio_names[i]] != "") {
var $radios = $("input:radio[name=" + radio_names[i] + "]");
var value = data.student[radio_names[i]];
$radios.filter(`[value="${value}"]`).prop("checked", true);
}
}
var checkbox_names = [
"fsports",
"fculture",
"fncc",
"fnss",
"fdefence",
"fhandicap"
];
// var checkboxes = $("#quota input[type=checkbox]");
for (var i = 0, n = checkbox_names.length; i < n; i++) {
var checkbox = $(
"#quota input[type=checkbox][name=" + checkbox_names[i] + "]"
);
var value = data.student[checkbox_names[i]];
checkbox.filter(`[value="${value}"]`).prop("checked", true);
}
$("#prevAcadDet input[type=text],#prevAcadDet select").each(function() {
$(this).val(data.student[$(this).attr("id")]);
});
$("#marksDet input[type=text]").each(function() {
$(this).val(data.student[$(this).attr("id")]);
});
$("#prevAcdMarks input[type=text]").each(() => {
$(this).val(data.student[$(this).attr("id")]);
});
$("#prevPGDet input[type=text],#prevPGDet select").each(function() {
$(this).val(data.student[$(this).attr("id")]);
});
$("#mbaEntrance input[type=text],#mbaEntrance a").each(function() {
$(this).val(data.student[$(this).attr("id")]);
});
$("#fwrkexp1").attr("href", data.student["fwrkexppath"]);
// $("#mbaEntrance a").each(function() {
// // var oldUrl = $(this).attr("href"); // Get current url
// // var newUrl = oldUrl.replace("#", data.student[$(this).attr("id")]); // Create new url
// $(this).attr("href", data.student[$(this).attr("id")]); // Set herf value
// });
$("#OtherInfo input[type=text],#OtherInfo textarea").each(function() {
$(this).val(data.student[$(this).attr("id")]);
});
$("#fdegree").val(data.student["fqdegree"]);
loadcombination();
$("#fcombcode").val(data.student["fcombcode"]);
$("#idUnvExam").val(data.student["fquniv"]);
$("#qulcollname").val(data.student["FQCOLLEGE"]);
$("#qulregno").val(data.student["fqregno"]);
$("#flangttlmm").val(data.student["FLANMM"]);
$("#flangttlms").val(data.student["FLANMO"]);
$("#flang1").val(data.student["flang1"]);
$("#flang2").val(data.student["flang2"]);
var table = ` <thead>
<tr class='bg-cyan'>
<td class="qaltablefisrtrd" rowspan="2">
Sl.No.
</td>
<td class="qaltabletd" style="width: 200px;" rowspan="2">
Subject
</td>
<td class="qaltabletd" colspan="2">
Sem / Year I
</td>
<td class="qaltabletd" colspan="2">
Sem / Year II
</td>
<td class="qaltabletd" colspan="2">
Sem / Year III
</td>
<td class="qaltabletd" colspan="2">
Sem / Year IV
</td>
<td class="qaltabletd" colspan="2">
Sem / Year V
</td>
<td class="qaltabletd" colspan="2">
Sem / Year VI
</td>
<td class="qaltabletd" colspan="2">
Total Marks
</td>
<td class="qaltabletd" rowspan="2">
% of Marks
</td>
</tr>
<tr class='bg-cyan'>
<td class="qaltabletd">
Max
</td>
<td class="qaltabletd">
Obt
</td>
<td class="qaltabletd">
Max
</td>
<td class="qaltabletd">
Obt
</td>
<td class="qaltabletd">
Max
</td>
<td class="qaltabletd">
Obt
</td>
<td class="qaltabletd">
Max
</td>
<td class="qaltabletd">
Obt
</td>
<td class="qaltabletd">
Max
</td>
<td class="qaltabletd">
Obt
</td>
<td class="qaltabletd">
Max
</td>
<td class="qaltabletd">
Obt
</td>
<td class="qaltabletd">
Max
</td>
<td class="qaltabletd">
Obt
</td>
</tr>
</thead>
<tbody>`;
var subdet = data.optsub;
var i = 1;
subdet.forEach(element => {
var subname = element.subname;
var value = subname.split("-");
table += `<tr id='${i}' class="ui-widget-content jqgrow">
<td class='tbl_row_new tdfirst'>
<centre>${i}. </centre>
</td>
<td class='tbl_row_new'>
<input type="text" name="subsem1_${i}" id="subsem1_${i}"
style="max-width: 200px !important;" disabled value = '${value[1]}'>
<input type="hidden" name="subcode_${i}" id="subcode_${i}" value="${
value[0]
}">
</td>
<td class='tbl_row_new' mx1>
<input type="text" name="subsem1mm_${i}" maxlength="4"
value = '${element.famm}'
onkeypress="return acceptNumbersOnlyForModule(event);" id="subsem1mm_${i}"
style="text-align: center;"
onchange="gettoal('${i}')">
</td>
<td class='tbl_row_new' ot1>
<input type="text" name="subsem1mo_${i}" maxlength="4"
value = '${element.famo}'
style="text-align: center;"
onkeypress="return acceptNumbersOnlyForModule(event);" onchange="gettoal('${i}')"
id="subsem1mo_${i}">
</td>
<td class='tbl_row_new' mx2>
<input type="text" name="subsem2mm_${i}" maxlength="4"
value = '${element.fbmm}'
style="text-align: center;"
onkeypress="return acceptNumbersOnlyForModule(event);" id="subsem2mm_${i}"
onchange="gettoal('${i}')">
</td>
<td class='tbl_row_new' ot2>
<input type="text" name="subsem2mo_${i}" maxlength="4"
value = '${element.fbmo}'
style="text-align: center;"
onkeypress="return acceptNumbersOnlyForModule(event);" id="subsem2mo_${i}"
onchange="gettoal('${i}')">
</td>
<td class='tbl_row_new' mx3>
<input type="text" name="subsem3mm_1" maxlength="4"
value = '${element.fcmm}'
style="text-align: center;"
onkeypress="return acceptNumbersOnlyForModule(event);" id="subsem3mm_${i}"
onchange="gettoal('${i}')">
</td>
<td class='tbl_row_new' ot3>
<input type="text" name="subsem3mo_${i}" maxlength="4"
value = '${element.fcmo}'
style="text-align: center;"
onkeypress="return acceptNumbersOnlyForModule(event);" id="subsem3mo_${i}"
onchange="gettoal('${i}')">
</td>
<td class='tbl_row_new' mx4>
<input type="text" name="subsem4mm_${i}" maxlength="4"
value = '${element.fdmm}'
style="text-align: center;"
onkeypress="return acceptNumbersOnlyForModule(event);" id="subsem4mm_${i}"
onchange="gettoal('${i}')">
</td>
<td class='tbl_row_new' ot4>
<input type="text" name="subsem4mo_${i}" maxlength="4"
value = '${element.fdmo}'
style="text-align: center;"
onkeypress="return acceptNumbersOnlyForModule(event);" id="subsem4mo_${i}"
onchange="gettoal('${i}')">
</td>
<td class='tbl_row_new' mx5>
<input type="text" name="subsem5mm_${i}" maxlength="4"
value = '${element.femm}'
style="text-align: center;"
onkeypress="return acceptNumbersOnlyForModule(event);" id="subsem5mm_${i}"
onchange="gettoal('${i}')">
</td>
<td class='tbl_row_new' ot5>
<input type="text" name="subsem5mo_${i}" maxlength="4"
value = '${element.femo}'
style="text-align: center;"
onkeypress="return acceptNumbersOnlyForModule(event);" id="subsem5mo_${i}"
onchange="gettoal('${i}')">
</td>
<td class='tbl_row_new' mx6>
<input type="text" name="subsem6mm_${i}" maxlength="4"
value = '${element.ffmm}'
style="text-align: center;"
onkeypress="return acceptNumbersOnlyForModule(event);" id="subsem6mm_${i}"
onchange="gettoal('${i}')">
</td>
<td class='tbl_row_new' ot6>
<input type="text" name="subsem6mo_${i}" maxlength="4"
value = '${element.ffmo}'
style="text-align: center;"
onkeypress="return acceptNumbersOnlyForModule(event);" id="subsem6mo_${i}"
onchange="gettoal('${i}')">
</td>
<td class='tbl_row_new'>
<input type="text" name="subtotalmo_${i}" maxlength="4" readonly
value = '${element.fsecmarks}'
style="text-align: center;"
onkeypress="return acceptNumbersOnlyForModule(event);" id="subtotalmo_${i}">
</td>
<td class='tbl_row_new'>
<input type="text" name="subtotalmm_${i}" maxlength="4" readonly
value = '${element.fmaxmarks}'
style="text-align: center;"
onkeypress="return acceptNumbersOnlyForModule(event);" id="subtotalmm_${i}">
</td>
<td class='tbl_row_new'>
<input type="text" name="subpercentagemm_${i}" maxlength="5" readonly
value = '${element.fpercent}'
style="text-align: center;"
style="max-width: 70px" onkeypress="return acceptNumbersOnlyForModule(event);"
id="subpercentagemm_${i}">
</td>
</tr>`;
i++;
});
table += `</tbody>`;
$("#qalsemdet").html(table);
var studoc = data.studoc;
var doctable = `<table class='table table-bordered table-striped table-upd' id="uploaddet">
<thead>
<tr class="bg-cyan">
<td style="width :5%">Sl. No.</td>
<td style="width : 40%;">Description</td>
<td style="width : 30%;">Upload</td>
<td style="width : 25%;">File Name <br>(Click to View)</br></td>
</tr>
</thead>
<tbody>`;
var doctype = [
"SSLC Marks Card",
"UG Marks Cards",
"Caste & Income Certificate",
"HK Certificate"
];
var i = 1;
var z = 0;
studoc.forEach(element => {
doctable += `<tr>
<td style="text-align: center;">${i}</td>
<td id="doc_upload_1" style="text-align: left;" >${doctype[z]}</td>
<td>
<input type="file" name="${element.fdoctype}" id="${element.fdoctype}" class="upd-file"
style="width:100px;padding:5px 0px;width: 165px;" />
<input type="hidden" id="h_${element.fdoctype}">
<button class="btn btn-success waves-effect btn-lg" style="padding: 5px;margin-bottom: 2px;margin-top: 4px;"
onclick='UploadEmployeeDocuments("${element.fdoctype}")'>Upload
</button>
</td>`;
if (element.fpath == "") {
doctable += `<td id="attach_td_${element.fdoctype}"></td>`;
} else {
doctable += `<td id="attach_td_${element.fdoctype}"><a href = 'http://universitysolutions.in/pget/${element.fpath}' target = '_blank' >${element.fdoctype}</a></td>`;
}
doctable += `</tr>`;
i++;
z++;
});
doctable += `</tbody></table>`;
$("#upddet").html(doctable);
loadotdeg();
}
});
};
function loadcombination() {
var degcomb = combcode[$("#fdegree").val()];
console.log(nolan);
var deglan = nolan[$("#fdegree").val()];
if (deglan == "T") {
$("#landiv").hide();
} else {
$("#landiv").show();
}
var options = "";
options += `<option value="">--Select--</option>`;
if (degcomb != undefined) {
var res = degcomb.split("*");
res.forEach(element => {
var value = element.split("-");
options += `<option value="${value[0]}">${value[1]}</options>`;
});
}
$("#fcombcode").html(options);
}
|