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


Current Path : /proc/thread-self/root/var/www/oasis/js/
Upload File :
Current File : //proc/thread-self/root/var/www/oasis/js/ia_roomwise_regno.js

//10561 10655
function EnableIARoomwise_Nos_List() {
  $("#page_main_div").load("../html_modules/ia_roomwise_regno.html", function() {
    document.getElementById("display_module_name").innerHTML =
      "IA Room Notice Board";
    document.getElementById("module_name_for_save").value = "IA Roomwise Nos List";
    getDefaultHeadFooterLinks("IA Roomwise Nos List");
    getRoomRegIAAllotmentDegreeName();
  });
}



function GenerateIARoomwise_Nos_List() {

  if ($("#pageejt").is(":checked")) {
    var pageejt = "T";
  } else {
    var pageejt = "F";
  }
 
  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 wtqp = "T";
  var datastring =
    "&frm_date=" +
    trim($("#frm_date").val()) +
    "&session=" +
    trim($("#session").val()) +
    "&degree=" + degree+"&degexam="+degexam+"&wtqp="+wtqp+"&pageejt="+pageejt;
  
  window.location.href =
    $host_url +
    "GenerateIARoomwise_Nos_List" +datastring;
}

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

function getRoomRegIAAllotmentDegreeNameSuccess($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);
    
  }
}

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);
    
  }  
}