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


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

function clearresultsheet() {
  $("#page_main_div").load("html_modules/resultsheet.html", function () {
    document.getElementById("display_module_name").innerHTML = "Result Sheet";
    document.getElementById("module_name_for_save").value = "Result Sheet";
    getDefaultHeadFooterLinks("Result Sheet");
    getDegreeName();
  });
}

function getpopup() {
  $.ajax({
    type: "POST",
    url: $host_url + "getDegreeGroup",
    success: degreeDropDownMenusSuccess,
  });
}

function degreeDropDownMenusSuccess($responce) {
  $responce = eval("(" + $responce + ")");

  document.getElementById("deggrp").options.length = 0;
  var deg = $responce.data["deggrp"];

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

function getDegreeName() {
  $.ajax({
    type: "POST",
    url: $host_url + "getResDegreeName",
    success: getResDegreeNameSuccess,
  });
}

function getResDegreeNameSuccess($responce) {
  $responce = eval("(" + $responce + ")");

  document.getElementById("degree").options.length = 0;
  var deg = $responce.data["degree"];

  //console.log(deg);
  $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"]);
    //console.log(deg[$i]['value']);
    $op.id = deg[$i]["internal_code"];
    document.getElementById("degree").options.add($op);
  }
}

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

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

function getDegreeResExamNameSuccess($responce) {
  $responce = eval("(" + $responce + ")");

  document.getElementById("degexam").options.length = 0;
  var deg = $responce.data["degexam"];

  //console.log(deg);
  $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"]);
    //console.log(deg[$i]['value']);
    $op.id = deg[$i]["internal_code"];
    document.getElementById("degexam").options.add($op);
    //console.log(degree);
  }
}

function generesultsheet() {
  var degree = document.getElementById("degree").value;
  var degexam = document.getElementById("degexam").value;
  var reporttype = document.getElementById("reporttype").value;

  if (degree == "") {
    alert("Please Select Degree");
    $("#degree").focus();
    return;
  }

  if (degexam == "") {
    alert("Please Select Exam");
    $("#degexam").focus();
    return;
  }
  if (reporttype == "") {
    alert("Please select Report Type..!");
    $("#reporttype").focus();
    return;
  }

  if (reporttype === "CW") {
    window.location.href =
      $host_url +
      "categorywiseresultsheet.demo&degree=" +
      degree +
      "&degexam=" +
      degexam;
  } else if (reporttype === "GW") {
    window.location.href =
      $host_url +
      "genwiseressheet.demo&degree=" +
      degree +
      "&degexam=" +
      degexam;
  } else if (reporttype === "RS") {
    window.location.href =
      $host_url +
      "generesultsheet.demo&degree=" +
      degree +
      "&degexam=" +
      degexam;
  } else if (reporttype === "SWPP") {
    window.open(
      $host_url +
        "subjwisepasspercentage.demo&degree=" +
        degree +
        "&degexam=" +
        degexam
      // +
      // "&yearmode=" +
      // yearmode +
      // "&section=" +
      // section
    );
  } else {
    window.location.href =
      $host_url +
      "generesultsheet.demo&degree=" +
      degree +
      "&degexam=" +
      degexam;
  }

  //   window.location.href =
  //     $host_url + "generesultsheet.demo&degree=" + degree + "&degexam=" + degexam;
}