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/hrms_cafsinfotech_in/application_bk14FEB2026/views/employment_details/manage.php
<?php 
	$this->load->view("partial/header"); 
	$page_name      = ucwords(str_replace("_"," ",$controller_name));
	$prime_id       = "prime_".$controller_name."_id";
	
	$category   = $this->session->userdata('logged_role');
	$emp_code   = $this->session->userdata('logged_emp_code');

?>
<div class='row title_content'>
	<div class='col-md-2 col-xs-4'>
		<h1 class='page_txt'><?php echo $page_name;?></h1>
	</div>
</div>
<div id="employee_table_view" style="margin-top:30px !important; margin-left:30px !important; padding:15px;"></div>
<!--------------------------- MODEL VIEW PROCESS --------------------->
<div class="modal" id="myModal">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <h4 class="modal-title">Offer Letter</h4>
        <button type="button" class="close" data-dismiss="modal">&times;</button>
      </div>

      <div class="modal-body" id="example1">
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>
      </div>
    </div>
  </div>
</div>

<script type="text/javascript">
$(document).ready(function (){
	// $('#employee_table_view').hide();
	$("#search").html("<i class='fa fa-spinner fa-spin'></i> Processing...");
	$('#search').attr('disabled','disabled');
	var category   = '<?php echo $category;?>';
	var emp_code   = '<?php echo $emp_code;?>';
	
	var send_url   = '<?php echo site_url("$controller_name/check_offer_letter");?>'
	//Encryption
	var key        = '<?php echo $key; ?>';
	var data       = {category:category,emp_code:emp_code};
	var encData    = encrypt(key,data);
	$.ajax({
		type: 'POST',
		url: send_url,
		data:encData,				
		contentType: 'text/plain',
		success: function(data) {
			$('#search').attr('disabled',false);
			$("#search").html("View");
			var rslt = JSON.parse(data);
			// $('#employee_table_view').show();
			$('#employee_table_view').html(rslt.table_data);
		}
	});
	
});
function pdf_viewer(url){
	PDFObject.embed(url, "#example1");
	$("#myModal").modal("show");
}
</script>
<style>
	.pdfobject-container { 
		height: 70rem; border: 1rem solid rgba(0,0,0,.1); 
	}
</style>
<?php $this->load->view("partial/footer"); ?>