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


Current Path : /var/www/html/pget/js/admin/
Upload File :
Current File : //var/www/html/pget/js/admin/downloadhallticket.js

var $photo_url =
  "http://" +
  window.location.host +
  "/" +
  window.location.pathname.split("/")[1];



  
function loadhallticket() {
  $.ajax({
    type: "POST",
    url: $host_url + "loadRange",
    async: false,
    success: function(response) {
      //  console.log(response);
      var { error_code, data, status } = JSON.parse(response);
      console.log(data);
      if (error_code == "0") {
        $("#loadTab").load("downloadhallticket.html", function() {
          var degrees = data;
          var dept_opt = `<option value=" ">--Select--</option>`;
          for (let deg of degrees) {
            dept_opt += `<option value="${deg.fdegree}">${deg.fdescpn}</option>`;
          }
          $("#fdeptt").html(dept_opt);
        });
        // var date = getDate();
        // console.log(date);
        // document.getElementById('dtfrom').value = date;
        // document.getElementById('dtto').value = date;
        // $('#dtfrom').val(date);
        // $('#dtto').val(date);
      } else {
        alert("Please try after some time");
        return;
      }
    }
  });
}


function genhallticket(){
  var fdeptt = $("#fdeptt").val();
  var afrom = $("#afrom").val();
  var ato = $("#ato").val();

   window.open(
      $host_url +
        "reportadm_admission_ticket" +
        "&fdept=" +
        fdeptt +
        "&afrom=" +
        afrom +
        "&ato=" +
        ato,
      "_blank"
    );
  

}