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.12.71.166


Current Path : /var/www/oasis/js/
Upload File :
Current File : /var/www/oasis/js/ia_subjectwise_invigilator_dairy.js

function Enableiasubjectinvigilator_dairy() {
  $("#page_main_div").load(
    "../html_modules/ia_subjectwise_invigilator_dairy.html",
    function() {
      document.getElementById("display_module_name").innerHTML =
        "IA Roomwise Register Nos List (Degreewise)";
      document.getElementById("module_name_for_save").value =
        "IA Subjectwise Invigilators Dairy";
      getDefaultHeadFooterLinks("IA Subjectwise Invigilators Dairy");
      getIAAllotmentDegreeName();
    }
  );
}


function GenerateiasubjectwiseInvigilatorsDairy() {

  var degree = $("#degree").val();
  var degexam = $("#degexam").val();

  if (date_format($("#frm_date").val()) == "") {
    alert("Enter Date");
    $("#frm_date").focus();
    return false;
  }

  if (date_format($("#session").val()) == "") {
    alert("Enter Date");
    $("#session").focus();
    return false;
  }

  var datastring =
    "&frm_date=" +
    trim($("#frm_date").val()) +
    "&session=" +
    trim($("#session").val()) +
    "&degree=" + degree+"&degexam="+degexam;

  window.location.href =
    $host_url +
    `GenerateIARoomwiseRegisterNoListdegreewse${datastring}`;
}


function getIAExamDates()
{
  var degree = $("#degree").val();
  var degexam = $("#degexam").val();

  $.ajax({
    type: "POST",
    url: $host_url + "getIAExamDates",
    data: "&degree=" + degree+"&degexam="+degexam,
    success: getIAExamDatesSuccess,
  });  
}

function getIAExamDatesSuccess($responce)
{
  $responce = eval("(" + $responce + ")");
  document.getElementById("frm_date").options.length = 0;
  var deg = $responce.data["iadoe"];
  $op = new Option("--Select--", "");
  document.getElementById("frm_date").options.add($op);
  for ($i = 0; $i < deg.length; $i++) {
    $op = new Option(deg[$i]["VALUE"], deg[$i]["internal_code"]);
    $op.id = deg[$i]["internal_code"];
    document.getElementById("frm_date").options.add($op);
    
  }  

}

function getIASession()
{
  var degree = $("#degree").val();
  var degexam = $("#degexam").val();
  var frm_date = $("#frm_date").val();
  
  $.ajax({
    type: "POST",
    url: $host_url + "getIASession",
    data: "&degree=" + degree+"&degexam="+degexam+"&frm_date="+frm_date,
    success: getIASessionSuccess,
  });  
}

function getIASessionSuccess($responce)
{
  $responce = eval("(" + $responce + ")");
  document.getElementById("session").options.length = 0;
  
  var deg = $responce.data["iasession"];

  $op = new Option("--Select--", "");
  document.getElementById("session").options.add($op);
  for ($i = 0; $i < deg.length; $i++) {
    $op = new Option(deg[$i]["VALUE"], deg[$i]["internal_code"]);
    $op.id = deg[$i]["internal_code"];
    document.getElementById("session").options.add($op);
    
  }  
}

function getIAAllotmentDegreeName()
{
  $.ajax({
    type: "POST",
    url: $host_url + "getIaDegName",
    success: getIAAllotmentDegreeNameSuccess,
  });
}

function getIAAllotmentDegreeNameSuccess($responce)
{
    $responce = eval("(" + $responce + ")");
    document.getElementById("degree").options.length = 0;
    var deg = $responce.data["degree"];

    $op = new Option("--Select--", "");
    document.getElementById("degree").options.add($op);
    for ($i = 0; $i < deg.length; $i++) {
      $op = new Option(deg[$i]["VALUE"], deg[$i]["internal_code"]);
      $op.id = deg[$i]["internal_code"];
      document.getElementById("degree").options.add($op);
    }
}

function getIAAllotmentDegreeExamName() {
  var degree = $("#degree").val();

  $.ajax({
    type: "POST",
    url: $host_url + "getIADegreeExamName",
    data: "&degree=" + degree,
    success: getIAAllotmentDegreeExamNameSuccess,
  });
}

function getIAAllotmentDegreeExamNameSuccess($responce) {
  $responce = eval("(" + $responce + ")");
  document.getElementById("degexam").options.length = 0;
  var deg = $responce.data["degexam"];
  $op = new Option("--Select--", "");
  document.getElementById("degexam").options.add($op);
  for ($i = 0; $i < deg.length; $i++) {
    $op = new Option(deg[$i]["VALUE"], deg[$i]["internal_code"]);
    $op.id = deg[$i]["internal_code"];
    document.getElementById("degexam").options.add($op);
    
  }
}