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 : 18.226.166.207


Current Path : /proc/thread-self/root/var/www/html/college/js/
Upload File :
Current File : //proc/thread-self/root/var/www/html/college/js/time_table_degreewise.js

var gdegree = "";
var gappfrom = "";
var gappto = "";
var gstatus = "";
var gentrytype = "";
var gexamno = "";
var alldeg = [];
/*
chnged address field updation
*/
function CallEnableTimeTableDegreewise() {
  $("#page_main_div").load(
    "../html_modules/time_table_degreewise.html?v=22092018",
    function () {
      document.getElementById("display_module_name").innerHTML =
        "Time Table Degreewise";
      document.getElementById("module_name_for_save").value =
        "Time Table Degreewise";
      getDefaultHeadFooterLinks("Time Table Degreewise");
      loadAdmDegree();
    }
  );
}

function loadAdmDegree() {
  $.ajax({
    type: "POST",
    async: false,
    url: $host_url + "loadcolldegree",
    success: loadcolldegreeResponse,
  });
}

function loadcolldegreeResponse($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].fdegree;
      optionsAsString +=
        "<option value='" +
        $responceCat.data[i].fdegree +
        "'>" +
        $responceCat.data[i].fdegree +
        "-" +
        $responceCat.data[i].fdescpn +
        "</option>";
    }

    $("#ttd_degree").append(optionsAsString);
  }
}

function loadexamno_ttd() {
  var ttd_degree = $("#ttd_degree").val();
  var parameters = `&degree=${$("#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 DisplayTimetableDegreewise() {
  var ttd_degree = $("#ttd_degree").val();
  var ttd_examno = $("#ttd_examno").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 = `&degree=${$("#ttd_degree").val()}&examno=${$(
    "#ttd_examno"
  ).val()}&alldeg=${alldeg}`;
  console.log(parameters);
  $.ajax({
    type: "POST",
    data: parameters,
    url: $host_url + "DisplayTimetableDegreewise",
    success: DisplayTimetableDegreewiseResponce,
  });
}

function DisplayTimetableDegreewiseResponce(responce) {
  responce = eval("(" + responce + ")");
  $.unblockUI();
  $("#ttd_timetable").html("");
  $("#ttd_timetable").html(responce.data["html"]);
}

function GenerateTimeTableDegreewise() {
  var ttd_degree = $("#ttd_degree").val();
  var ttd_examno = $("#ttd_examno").val();
  var parameters =
    "&degree=" + ttd_degree + "&examno=" + ttd_examno + "&alldeg=" + alldeg;
  // console.log(alldeg);
  // return;
  window.open($host_url + "generatetimetabledegreewise" + parameters);
}