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


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

function Enablesubjectinvigilator_dairy() {
  $("#page_main_div").load(
    "../html_modules/subjectwise_invigilator_dairy.html",
    function () {
      document.getElementById("display_module_name").innerHTML =
        "Roomwise Register Nos List (Degreewise)";
      document.getElementById("module_name_for_save").value =
        "Subjectwise Invigilators Dairy";
      getDefaultHeadFooterLinks("Subjectwise Invigilators Dairy");
      // getBatchdet();
      getExam();
      if (db == "demo") {
        $("#frm_date").val("10/03/2021");
        $("#session").val("M%");
      } else {
        var today = new Date();
        var dd = today.getDate();
        var mm = today.getMonth() + 1;
        var yyyy = today.getFullYear();
        if (dd < 10) dd = "0" + dd;
        if (mm < 10) mm = "0" + mm;
        var date = dd + "/" + mm + "/" + yyyy;
        $("#frm_date").val(date);
      }
    }
  );
}

function getExam() {
  $.ajax({
    type: "POST",
    url: $host_url + "loaddeggrprmsNew",
    success: function (res) {
      let response = JSON.parse(res);
      console.log(response, "hii");
      if (response.error_code == 0) {
        var opt = `<option value=''>--Select--</option>`;
        for (var i = 0; i < response.data.exmmonth.length; i++) {
          opt += `<option value='${
            response.data.exmmonth[i].fyear +
            "*" +
            response.data.exmmonth[i].fexamtype
          }'>${response.data.exmmonth[i].fexamdate}</option>`;
        }

        $("#exam").html(opt);
      }
    },
  });
}
//

function getBatchdet() {
  $.ajax({
    type: "POST",
    url: $host_url + "getBatchdet",
    data: "id=",
    success: getBatchdetSuccess,
  });
}

function getBatchdetSuccess($responce) {
  $responce = eval("(" + $responce + ")");
  var batch = $responce.data["batchdet"];
  console.log(batch);
  var batchoptins = `<option value = ''>-Select-</option>`;
  for ($i = 0; $i < batch.length; $i++) {
    batchoptins += `<option value = '${batch[$i]["fbatch"]}'>${batch[$i]["fdescpn"]}</option>`;
  }
  console.log(batchoptins);
  $("#fbatch").html(batchoptins);
}

function GeneratesubjectwiseInvigilatorsDairy() {
  var degree_code = $("#degree_code").val();
  var examno = $("#examno").val();
  var date = $("#frm_date").val();
  var session = $("#session").val();
  var degree_name = $("#degree_name").val();
  var exam_name = $("#exam_name").val();
  var exam = $("#exam").val();
  var fbatch = ""; //$("#fbatch").val();
  console.log(
    exam,
    "exam",
    degree_code,
    "degree_code",
    examno,
    "examno",
    date,
    "date",
    session,
    "sression",
    degree_name,
    "dehree_name",
    exam_name,
    "exam_name",
    "bzxjhcvhvcxjhsv"
  );

  // if ($("#fbatch").val() == "") {
  //   alert("Select Batch.");
  //   $("#fbatch").focus();
  //   return false;
  // }

  //   var from_subcode = $("#from_subcode").val();
  //   var to_subcode = $("#to_subcode").val();
  //   var spr = $("#spr").val();

  // if (empty(degree_code)) {
  //   alert("Please Enter Degree Code");
  //   return false;
  // }

  // if (empty(examno)) {
  //   alert("Please Enter Examno");
  //   return false;
  // }

  //   if (from_subcode == "") {
  //     alert("Please Enter Subject Code from");
  //     return false;
  //   }

  //   if (to_subcode == "") {
  //     alert("Please Enter Subject Code to");
  //     return false;
  //   }

  //   if (empty(spr)) {
  //     alert("Please Enter Subject Code");
  //     return false;
  //   }

  //   window.location.href =
  //     $host_url +
  //     "GeneratesubjectwiseInvigilatorsDairy&degree_code=" +
  //     degree_code +
  //     "&examno=" +
  //     examno +
  //     "&from_subcode=" +
  //     from_subcode +
  //     "&to_subcode=" +
  //     to_subcode +
  //     "&spr=" +
  //     spr;

  window.open(
    $host_url +
      // `GenerateRoomwiseRegisterNoListdegreewse&room_range_from=0&room_range_to=ZZZ&pageeject=F&roomchart=F&fromdate=${date}&fqpcode=0&tqpcode=ZZZ&qpeject=F&session=${session}&wtqp=F&noticeboard=T&noticedgw=F&fdegree=${degree_code}&fexamno=${examno}&degname=${degree_name}&examname=${exam_name}&fbatch=${fbatch}`
      `GenerateRoomwiseRegisterNoListdegreewseNew&room_range_from=0&room_range_to=ZZZ&pageeject=F&roomchart=F&fromdate=${date}&fqpcode=0&tqpcode=ZZZ&qpeject=F&session=${session}&wtqp=F&noticeboard=T&noticedgw=F&&exmmonth=${exam}`
  );
}