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


Current Path : /var/www/html/studentportal_wait/js_old/
Upload File :
Current File : //var/www/html/studentportal_wait/js_old/iamarks.js

function getIaMarks()
{
    var config = null;
    var FCSUBCODE;
    var conducted;
    var attended;
    var percent;
    var  parameters = "&screen=iamarks";
    var fname, fexamname, fregno, fexamdate, fdegree, fvalmax;
    $.blockUI({ message: "<img src='images/Loading_icon.gif' border='0'>" });
    $.ajax({
      type: 'post',
      url: 'src/iamarks.php',
      data:parameters,
     success: function(response)
      {
        $.unblockUI();
        response = JSON.parse(response);
        if(response.error_code == 0)
        {
          swal({
              title: response.data,
              type: "warning",
              showCancelButton: false,
              confirmButtonColor: "#5495ff",
              confirmButtonText: "OK",
              closeOnConfirm: false
          }, function(isConfirm){
              if(isConfirm)
                  swal.close();
              loadProfile();
              $("#profile").addClass("active");
              $("#IaMarksMenu").removeClass("active"); 
          });
        }else
        { 
          fcsubcode = response.fcsubcode;
          fsubname = response.fsubname;
          fvalmax = response.fvalmax;
          fmarks = response.fmarks;
          ({ fname, fexamname, fregno, fexamdate, fdegree } = response);
        
          $("#idIAMarksHeader").html(`<h2><center> ${ fexamdate } IA Marks </center></h2>`)        
          /*$("#studinfo").append(`<tr><td width='20%'><b>Reg. No.  </td><td> : ${fregno}
                </b></td></tr><tr><td width='20%'><b>Student Name  </td><td> : ${fname}
                </b></td></tr><tr><td width='20%'><b>Degree </td><td> : ${ fdegree }</b></td></tr>
                <tr><td width='20%'><b>Semester </td><td> : ${ fexamname + " - " +fexamdate }</b></td></tr>`);

*/
          var table = `<table class="m-b-20 table table-condensed table-bordered table-striped table-hover">
                      <tr><th style = "width:8%;"><center>Sl. No.</center></th>
                      <th style = "width:10%;" ><center>Subject Code</center></th>
                      <th><center>Subject Name</center></th>
                      <th style = "width:8%;"><center>Max. Marks</center></th> 
                      <th style = "width:8%;"><center>Marks</center></th>`;
          for(let i in fcsubcode)
          {

              table += `<tr style = "height:30px;"><td><center>${parseInt(i)+1}</center></td>
              <td><center>${fcsubcode[i]}</center></td>
              <td>${fsubname[i]}</td>
              <td><center>${fvalmax[i]}</center></td>
              <td><center>${fmarks[i]}</center></td></tr>`;
          }
          table += `</table>`;
          $('#ia_table_det').html(table);
       }
      }
    });
    
    
}