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.217.241.235
function load_valcntr() {
var deggrp = $('#seldeggrp').val()
$.ajax({
type: 'POST',
url: 'val_status.php',
data: {
load_data: 'valcntr',
deggrp: deggrp,
},
cache: false,
success: function (data) {
$('#selvalcntr').html(data);
},
})
}
function load_program() {
var deggrp = $('#seldeggrp').val()
$.ajax({
type: 'POST',
url: 'val_status.php',
data: {
load_data: 'program',
deggrp: deggrp,
},
cache: false,
success: function (data) {
$('#selprogram').html(data)
},
})
}
function load_examno() {
var deggrp = $('#seldeggrp').val()
$.ajax({
type: 'POST',
url: 'val_status.php',
data: {
load_data: 'examno',
deggrp: deggrp,
},
cache: false,
success: function (data) {
$('#selexamno').html(data)
},
})
}
function load_board() {
var deggrp = $('#seldeggrp').val()
var valcntr = $('#selvalcntr').val()
var program = $('#selprogram').val()
var examno = $('#selexamno').val()
$.ajax({
type: 'POST',
url: 'val_status.php',
data: {
load_data: 'board',
deggrp: deggrp,
valcntr: valcntr,
program: program,
examno: examno,
},
cache: false,
success: function (data) {
$('#selboard').html(data)
},
})
}
function disp_data() {
var rept_sele = "";
var rept_type = "";
var deggrp = $('#seldeggrp').val()
var valcntr = $('#selvalcntr').val()
var program = $('#selprogram').val()
var examno = $('#selexamno').val()
var board = $('#selboard').val()
var qpstat = $('#selqpstat').val()
var reptype = $('#selreptype').val()
if(deggrp.val==''){
alert("Please select degree group");
}
if(valcntr.val==''){
alert("Please select degree group");
}
if(program.val==''){
alert("Please select degree group");
}
if(examno.val==''){
alert("Please select degree group");
}
if(board.val==''){
alert("Please select degree group");
}
$.ajax({
type: 'POST',
url: 'val_status.php',
data: {
load_data: 'disp_data',
deggrp: deggrp,
valcntr: valcntr,
program: program,
examno: examno,
board: board,
qpstat: qpstat,
reptype: reptype,
},
cache: false,
success: function (data) {
const ldate = new Date();
rept_sele = $("#seldeggrp option:selected").text();
rept_sele = rept_sele + ', '+ $("#selvalcntr option:selected").text();
rept_sele = rept_sele + ', '+ $("#selprogram option:selected").text();
rept_sele = rept_sele + ', '+ $("#selexamno option:selected").text();
rept_sele = rept_sele + ', '+ $("#selboard option:selected").text();
rept_sele = rept_sele + ', '+ $("#selqpstat option:selected").text();
rept_type = $("#selreptype option:selected").text();
$('#data_header').html('Valuation Statistics - ' + rept_type + '<br>(' + rept_sele + ') <br>'+ldate)
$('#data_content').html(data)
},
})
}
|