Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.145.89.181
// var gdegree = "";
// var gappfrom = "";
// var gappto = "";
// var gstatus = "";
// var gentrytype = "";
// var gexamno = "";
// var alldeg = [];
/*
chnged address field updation
*/
function CallEnableViewLedger() {
$("#page_main_div").load("../html_modules/view_ledger.html", function () {
document.getElementById("display_module_name").innerHTML = "View Ledger";
document.getElementById("module_name_for_save").value = "View Ledger";
getDefaultHeadFooterLinks("View Ledger");
// loadAdmDegree();
getCollegeDet();
});
}
// function loadAdmDegree() {
// $.ajax({
// type: "POST",
// async: false,
// url: $host_url + "loaddegreeviewledg",
// success: loaddegreeviewledgResponseAdm,
// });
// }
// function loaddegreeviewledgResponseAdm($responceCat) {
// $responceCat = eval("(" + $responceCat + ")");
// if ($responceCat.error_code == 0) {
// var optionsAsString = "<option value=''>--Select Degree--</option>";
// for (var i = 0; i < $responceCat.data.length; i++) {
// alldeg[i] = $responceCat.data[i].internal_code;
// optionsAsString +=
// "<option value='" +
// $responceCat.data[i].internal_code +
// "'>" +
// $responceCat.data[i].internal_code +
// "-" +
// $responceCat.data[i].value +
// "</option>";
// }
// $("#ttd_degree").append(optionsAsString);
// }
// }
// function loadexamno_ttd() {
// var ttd_degree = $("#ttd_degree").val();
// var parameters = `°ree=${$("#ttd_degree").val()}`;
// $.ajax({
// type: "POST",
// data: parameters,
// url: $host_url + "loadexamno_ttd",
// success: loadexamno_ttdResponce,
// });
// }
// function loadexamno_ttdResponce(responce) {
// responce = eval("(" + responce + ")");
// $.unblockUI();
// // console.log(responce);
// var optionsAsString = "";
// if (responce.error_code == 0) {
// var optionsAsString = "<option value=''>--All--</option>";
// for (var i = 0; i < responce.data.length; i++) {
// optionsAsString +=
// "<option value='" +
// responce.data[i].fexamno +
// "'>" +
// responce.data[i].fexamname +
// "</option>";
// }
// // console.log(optionsAsString);
// $("#ttd_examno").html(optionsAsString);
// }
// }
function DisplayViewLedger() {
// var ttd_degree = $("#ttd_degree").val();
// var ttd_examno = $("#ttd_examno").val();
var collcode = $("#coldet").val();
var degree = $("#degdet").val();
var examno = $("#examno").val();
var examination = $("#examination").val();
// if (empty(ttd_degree)) {
// alert("Please Select Degree");
// $("#ttd_degree").focus();
// return false;
// }
// gdegree = ttd_degree;
// gexamno = ttd_examno;
$.blockUI({
message:
"<h1 class='h1' style='font-size:12px'><img src='img/ajax-loader.gif' border='0'></h1>",
});
var parameters =
"collcode=" +
collcode +
"°ree=" +
degree +
"&examno=" +
examno +
"&examination=" +
examination;
// console.log(parameters);
$.ajax({
type: "POST",
data: parameters,
url: $host_url + "DisplayViewLedger",
success: DisplayViewLedgerResponce,
});
}
function DisplayViewLedgerResponce(responce) {
responce = eval("(" + responce + ")");
$.unblockUI();
var tab = responce.data;
// console.log(tab);
$("#ack_rv_rt_application_details").show();
if (responce.error_code == 0) {
var str_reval = "";
var sl_no = 1;
var k = 0;
// console.log(tab[1]["ffilename"]);
var folder = window.location.pathname;
var res = folder.split("/");
for (var i = 0; i < tab.length; i++) {
str_reval += "<tr>";
str_reval +=
"<td class='tbl_row_new' style='text-align:center; border-left:1px solid #C5DBEC; border-right:1px solid #C5DBEC; padding:2px;' >" +
sl_no +
"</td>";
str_reval +=
"<td class='tbl_row_new' style='text-align:left; border-left:0px solid #C5DBEC; border-right:1px solid #C5DBEC; padding:2px; ;text-align:left; ' >" +
tab[i]["fdegree"] +
"-" +
tab[i]["fdescpn"] +
" </td>";
str_reval +=
"<td class='tbl_row_new' style='text-align:left; border-left:0px solid #C5DBEC; border-right:1px solid #C5DBEC; padding:2px; ; ;text-align:center; ' >" +
tab[i]["fexamno"] +
"</td>";
str_reval +=
"<td class='tbl_row_new' style='border-left:0px solid #C5DBEC; border-right:1px solid #C5DBEC; padding:2px; font-size:11px;text-align:center; ' > " +
tab[i]["fexamdate"] +
"</td>";
str_reval +=
`<td class='tbl_row_new' style='text-align:left; border-left:0px solid #C5DBEC; border-right:1px solid #C5DBEC; padding:2px; ;text-align:center; display:flex;justify-content:center; ' ><center>
<a href="misc_files/${tab[i]["ffilename"]}" target='_blank'><span class='raval_submit1' style='background-color: #008CBA; border: none; color: white; padding: 4px 15px; text-align: center; text-decoration: none; display: inline-block; font-size: 12px; cursor: pointer;' ><b>View</b></a></span></center><center><a href="misc_files/${tab[i]["ffilename"]}" target='_blank' download><span class='raval_submit1' style='background-color: #ff4a45; border: none; color: white; padding: 4px 15px; text-align: center; text-decoration: none; display: inline-block; font-size: 12px; cursor: pointer;'><b>Download</b></a></span></center></td>`;
str_reval += "</tr>";
sl_no++;
k++;
}
} else {
str_reval = "";
str_reval += "<tr>";
str_reval +=
"<td class='tbl_row_new' colspan='5' style='text-align:center; border-left:1px solid #C5DBEC; border-right:1px solid #C5DBEC; padding:2px;' ><b>" +
responce.data.msg +
"</b></td>";
str_reval += "</tr>";
}
$("#view_ledg_table_data").html(str_reval);
}
function GenerateTimeTableDegreewise() {
var ttd_degree = $("#ttd_degree").val();
var ttd_examno = $("#ttd_examno").val();
var parameters =
"°ree=" + ttd_degree + "&examno=" + ttd_examno + "&alldeg=" + alldeg;
// console.log(alldeg);
// return;
window.location.href = $host_url + "generatetimetabledegreewise" + parameters;
}
function getCollegeDet() {
$.ajax({
type: "GET",
url: $host_url + "getCollegeDet",
success: function (res) {
var status = JSON.parse(res);
if (status.error_code == 0) {
var degload = `<option value="all">All</option>`;
var laodexamno = `<option value="all">All</option>`;
var loadexamination = `<option value="all">All</option>`;
for (i = 0; i < status.data.length; i++) {
degload += `<option value="${status.data[i].fdegree}">${status.data[i].fdescpn}</option>`;
}
$("#degdet").html(degload);
$("#examno").html(laodexamno);
$("#examination").html(loadexamination);
}
},
});
}
// function getDegreeDet() {
// var collcode = $("#coldet").val();
// $.ajax({
// type: "POST",
// url: $host_url + "getDegreeDet",
// data: "collcode=" + collcode,
// success: function (res) {
// var status = JSON.parse(res);
// var load = `<option value="all">All</option>`;
// var laodexamno = `<option value="all">All</option>`;
// var loadexamination = `<option value="all">All</option>`;
// if (status.error_code == 0) {
// for (i = 0; i < status.data.length; i++) {
// load += `<option value="${status.data[i].fdegree}">${status.data[i].fdescpn}</option>`;
// }
// $("#degdet").html(load);
// $("#examno").html(laodexamno);
// $("#examination").html(loadexamination);
// } else {
// alert("No data Found for this collcode");
// }
// },
// });
// }
|