MOON
Server: Apache
System: Linux nserver.cafsindia.com 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: cafsindia (1002)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: /home/cafsindia/uds.cafsinfotech.in/smart_hrms_dev/dist/smart_hrms_js.js
function view_upload_file(url,url_file_type){
  if(url_file_type === "pdf"){
    PDFObject.embed(url, "#view_pdf");
    // $("#myModal").modal("show");
    $("#myModal").show();
    $('.modal-content').css({'height':'600px'});
  }else{
    $.confirm({
      title: 'View Image',
      content: '<img src="'+url+'" width="250" height="200">',
      type: 'red',
      typeAnimated: true,
      buttons: {
        close: function () {
          
        }
      }
    });
  }
}

function close_popup_div(){
  $("#myModal").hide();
  $('.modal-content').css({'height':'auto'});
}