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


Current Path : /var/www/html/pget/js/pg/
Upload File :
Current File : //var/www/html/pget/js/pg/reprint.js

// var $host_url =
//   "http://" +
//   window.location.host +
//   "/" +
//   window.location.pathname.split("/")[1] +
//   "/app.php?a=";
var gAppNo = "";
function rePrintApplication(degree) {
  // $.blockUI({ message: "<img src='img/Loading_icon.gif' border='0'>" });
  $.ajax({
    type: "POST",
    async: false,
    url: $host_url + "pgRePrintApplication",
    success: function(responce) {
      // $.unblockUI();
      responce = eval("(" + responce + ")");
      if (responce.error_code == 0) {
        gAppNo = responce.fappno;
        //var ffinsub = responce.ffinsub;
        var fpaystatus = responce.fpaystatus;
        var db = responce.db;
        // if (db == "rcub") {
        //   alert("Application download will be available from 08.10.2020");
        //   return;
        // }
        if (fpaystatus != "success") {
          alert("Payment not made.");
          return;
        }

        reprint(gAppNo, degree);
      } else {
        alert("Application Not found or Session Expired.");
      }
    }
  });
}

function reprint(gAppNo, degree) {
  if (db == "vskub") {
    window.location.href =
      $host_url + "vkuapplicationFormPGReport&appno=" + gAppNo+"&degree=" +
      degree;
  } else {
    window.location.href =
      $host_url +
      "applicationFormPGReport&appno=" +
      gAppNo +
      "&degree=" +
      degree;
  }
}

function downloadht() {
  var gAppNo = $("#htappno").html();

  window.location.href =
    $host_url +
    "reportadm_admission_ticket&fdept=All&afrom=" +
    gAppNo +
    "&ato=" +
    gAppNo;
}