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


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

// var $host_url =
//   "http://" +
//   window.location.host +
//   "/" +
//   window.location.pathname.split("/")[1] +
// 	"/app.php?a=";

function loadDegreeDetails() {
  $.ajax({
    type: "POST",
    url: $host_url + "loadDegreeDetails",
    async: false,
    success: function(response) {
      var { error_code, data, status } = JSON.parse(response);
      // console.log(data);
      if (error_code == "0") {
        $("#loadTab").load("degreedetails.html", function() {
          var degers = data;
          deglen = degers.length;
          var str = `<table class="table table-bordered" style="width: auto;">
                    <thead>
                      <tr class="bg-cyan">
                        <th style = "text-align: center;width: 85px;">Sl. No.</th>
                        <th style = "text-align: center;width: 115px">Degree Code</th>
                        <th style = "text-align: center;width: 660px;"> Degree Description</th>
                      </tr>
                    </thead>
                    <tbody>`;
          for (var i = 1; i < degers.length; i++) {
            str += `<tr>
              <td style = 'text-align: center;'>${i}</td>
              <td style = 'text-align: center;'>${degers[i]["fdegree"]}</td>
              <td>${degers[i]["fdescpn"]}</td>
            </tr>`;
          }
          $("#degtable").html(str);
        });
      } else {
        alert("Please try after some time");
        return;
      }
    }
  });
}