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


Current Path : /proc/thread-self/root/var/www/oasis/js/
Upload File :
Current File : //proc/thread-self/root/var/www/oasis/js/subjectAppearing_PopUp.js

function subjectAppearing_PopUp($subCode) {
  $div_data =
    "<div id='main_grid_div3' style='cursor:pointer'><table id='table_grid3' ></table>";
  $div_data +=
    "<div id='sub_grid_div3'  style='text-align:center;'></div></div>";
  $div = "<script> ";
  $div += " ";
  //enable_left_navi_div('main_grid_div3');
  $div += " ";
  $div +=
    "document.getElementById('main_grid_div3').innerHTML=\"<table id='table_grid3' class='scroll' ></table> <div id='sub_grid_div3' class='scroll' style='text-align:center;'></div>\";";
  $div += "jQuery('#table_grid3').jqGrid({";
  // the url parameter tells from where to get the data from server
  // adding ?nd='+new Date().getTime() prevent IE caching
  $div +=
    "url:'" +
    $host_url +
    "subjectDetailsPopup.demo&subCode=" +
    trim($subCode) +
    "',";
  $div += "datatype: 'json',";
  $div += "colNames:['Code','Short Name','Subject Name'],";
  $div += "colModel:[{name:'FSUBCODE',index:'FSUBCODE', width:115 },";
  $div +=
    "{name:'FSUBSHORT',index:'FSUBSHORT', width:115 },{name:'FSUBNAME',index:'FSUBNAME', width:115 }],";
  $div +=
    "rowNum:10,rowList:[5,10,15,20,25,30],pager: jQuery('#sub_grid_div3'),sortname: 'id',";
  $div += "imgpath:'" + $img_path + "',";
  $div +=
    "height:'70%',width:'400',viewrecords: true,sortorder: 'desc',multiselect: false,cellEdit: true,";
  $div += "caption:'Degree Details',addCaption: 'Add Record'";
  $div += "}).navGrid('#sub_grid_div3',{edit:false,add:false,del:false}).";
  $div += "navButtonAdd('#sub_grid_div3',{caption:'Select',";
  $div += "onClickButton:function(){selectSubjectCode();} });</script>";
  //console.log($div);
  $.blockUI({ message: $div_data + $div, css: { width: "275px" } });
  return;
}
function selectSubjectCode() {
  var id = jQuery("#table_grid3").getGridParam("selrow");
  if (id != null) {
    $.ajax({
      type: "POST",
      async: false,
      data: "subject_code=" + id,
      url: $host_url + "getdegreeNames.demo",
      success: PopulateDegreeCodeResponse,
    });
    tb_remove();
    $.unblockUI();
  } else {
    alert("Please select row");
  }
  return;
}