EVOLUTION-NINJA
Edit File: employee_info.php
<?php $this->load->view('includes/admin_header');?> <div class="main-container ace-save-state" id="main-container"> <script type="text/javascript"> try{ace.settings.loadState('main-container')}catch(e){} </script> <div id="sidebar" class="sidebar responsive ace-save-state"> <ul class="nav nav-list"> <li class=""> <a href=""></a> </li> <li class=""> <a href=""><span class="menu-text" > Employee </span></a> </li> <li class=""> <a href="<?php echo site_url('new-employee');?>"><span class="menu-text" > Add New Employee </span></a> <li class=""> <a href="<?php echo site_url('department');?>"><span class="menu-text" >Add Department </span></a> </li> <li class=""> <a href="<?php echo site_url('designation');?>"><span class="menu-text" >Add Designation </span></a> </li> <li class=""> <a href="<?php echo site_url('employee-list');?>"><span class="menu-text" >Employee List </span></a> </li> </ul><!-- /.nav-list --> </div> <div class="main-content"> <div class="main-content-inner"> <div class="page-content"> <div class="row"> <div class="col-xs-12"> <!-- PAGE CONTENT BEGINS --> <div class="row"> <div class="col-sm-12 col-md-6"> <ul class="breadcrumb"> <li> <a href="<?php echo site_url("employee-list")?>"><i class="fa fa-long-arrow-left fa-2x"></a></i> </li> <li> <div class=""> <h3 ><?php echo $employee_details->first_name;?> </h3> </div> </li> </ul> </div> <div class="col-sm-12 col-md-6"> <ul class="breadcrumb" style="margin-top:3%;float:right;"> <li> <a href="<?php echo site_url("edit-employee/")?><?php echo $employee_details->emp_id;?>"><i class="btn btn-sm fa fa-pencil-square-o" title="Edit" style="background-color:#FF0000 !important;border-color: #2e6589 !important;"> Edit</i></a> </li> <li> <button type="submit" onclick="offer_letter(<?php echo $employee_details->employee_id;?>);" class="btn btn-sm pull-right">Generate Offer letter</button> </li> <!-- <li> <i class="btn btn-sm fa fa-trash-o"></i> </li> --> </ul> </div> </div> <div class="middle_part"> <div class="row"> <form> <div class="col-sm-12"> <div class="row row-form" style="margin-left:4%;margin-top:2%;"> <div class=" col-sm-12 col-md-8"> <label class="col-sm-4 col-xs-4"> <div class="form-group"> <label>Employee ID</label> </div> </label> <div class="col-sm-8"> <span><?php echo $employee_details->employee_id;?><span><a href=""></a></span></span> </div> </div> </div> <div class="row row-form" style="margin-left:4%;"> <div class=" col-sm-12 col-md-8"> <label class="col-sm-4 col-xs-4"> <div class="form-group"> <label>Department :</label> </div> </label> <div class="col-sm-8"> <span> <?php echo $employee_details->department_name;?><span><a href=""></a></span></span> </div> </div> </div> <div class="row row-form" style="margin-left:4%;"> <!-- <div class=" col-sm-12 col-md-8"> <label class="col-sm-4 col-xs-4"> <div class="form-group"> <label>Designation :</label> </div> </label> <div class="col-sm-8"> <span><?php echo $employee_details->designation_name;?> <span><a href=""></a></span></span> </div> </div> --> </div> <div class="row row-form" style="margin-left:4%;"> <div class=" col-sm-12 col-md-8"> <label class="col-sm-4 col-xs-4"> <div class="form-group"> <label>E-Mail :</label> </div> </label> <div class="col-sm-8"> <span><?php echo $employee_details->eid;?><span><a href=""></a></span></span> </div> </div> </div> <div class="row row-form" style="margin-left:4%;"> <div class=" col-sm-12 col-md-8"> <label class="col-sm-4 col-xs-4"> <div class=""> <label>Phone :</label> </div> </label> <div class="col-sm-8"> <span> <?php echo $employee_details->work_phone;?><span><a href=""></a></span></span> </div> </div> </div> </div> </form> </div> </div> <!-- hidden CONTENT BEGINS --> <div class="row" style="margin-left:-3px;"> <div class="col-sm-12"> <button type="button" class="btn btn-sm" data-toggle="collapse" data-target="#demo">Hide/Show Details</button> </div> </div> <div id="demo" class="collapse"> <div class="row row-form"> <div class="col-sm-12 "> <h5><b>Employee Information</b></h5> </div> </div> <div class="row row-form"> <div class=" col-sm-12 col-md-6"> <label class="col-sm-4">Employee ID</label> <input type="text" class=" col-sm-8" minlength="3" pattern="^[a-zA-Z\s]*$" value="<?php echo $employee_details->employee_id;?>" name="name" required="required" readonly> </div> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-4">First Name</label> <input type="text" min="0" class=" col-sm-8" value="<?php echo $employee_details->first_name;?>" name="mobile" pattern="[789][0-9]{9}" maxlength="10" min="0" required="required" readonly> </div> </div> <!-- row 1--> <div class="row row-form"> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-4 ">Last Name</label> <input type="email" class=" col-sm-8" value="<?php echo $employee_details->last_name;?>" name="email" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,3}$" readonly> </div> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-4">E-Mail ID</label> <input type="text" class=" col-sm-8" value="<?php echo $employee_details->eid;?>" name="pan_or_adhar" readonly> </div> </div><!-- row 2--> <div class="row row-form"> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-4">Nick Name</label> <input type="text" class=" col-sm-8" value="<?php echo $employee_details->nick_name;?>" name="pan_or_adhar" readonly> </div> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-4">Designation</label> <input type="text" class=" col-sm-8" value="<?php echo $employee_details->designation_name;?>" name="pan_or_adhar" readonly> </div> </div><!-- row 3--> <h4><b>Work</b></h4> <div class="row row-form"> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-4 col-md-4">Department</label> <div class="col-sm-8"> <select class="form-control" readonly> <option>Select</option> <?php foreach($get_all_departments as $value){ ?> <option value="<?php echo $value->department_id; ?>"<?php if ($value->department_id == $employee_details->department_id) echo "selected='selected'" ?>><?php echo $value->department_name; ?></option> <?php } ?> </select> </div> </div> <div class=" col-sm-12 col-md-6"> <label class="col-sm-4">Location</label> <div class="col-sm-8"> <select class="form-control" readonly> <option>Select</option> <option <?php if ($employee_details->location == "Mysore") echo "selected='selected'" ?>>Mysore</option> <option <?php if ($employee_details->location == "Bangalore") echo "selected='selected'" ?>>Bangalore</option> <option <?php if ($employee_details->location == "Mangalore") echo "selected='selected'" ?>>Mangalore</option> </select> </div> </div> </div> <!-- row 4--> <div class="row row-form"> <div class=" col-sm-12 col-md-6"> <label class="col-sm-4 col-md-4">Reporting To</label> <div class="col-sm-8"> <select class="form-control" readonly> <option >Select</option> <option <?php if ($employee_details->reporting_to == "HR") echo "selected='selected'" ?>>HR</option> <option <?php if ($employee_details->reporting_to == "Project Manager") echo "selected='selected'" ?>>Project Manager</option> <option <?php if ($employee_details->reporting_to == "Team Lead") echo "selected='selected'" ?>>Team Lead</option> </select> </div> </div> <div class=" col-sm-12 col-md-6"> <label class="col-sm-4">Title : </label> <input type="text" class=" col-sm-8" value="<?php echo $employee_details->title;?>" name="pan_or_adhar" readonly> </div> </div> <!-- row 5--> <div class="row row-form"> <div class=" col-sm-12 col-md-6"> <label class="col-sm-4 col-md-4">Source of hire</label> <div class="col-sm-8"> <select class="form-control" readonly> <option>Select</option> <option <?php if ($employee_details->source_of_hire == "HR") echo "selected='selected'" ?>>HR</option> <option <?php if ($employee_details->source_of_hire == "Project Manager") echo "selected='selected'" ?>>Project Manager</option> <option <?php if ($employee_details->source_of_hire == "Team Lead") echo "selected='selected'" ?>>Team Lead</option> </select> </div> </div> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-4">Date of Joining</label> <input type="text" class="col-sm-8" value="<?php echo $employee_details->date_of_joining;?>" name="date" readonly> </div> </div> <!-- row 6--> <div class="row row-form"> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-4 col-md-4">Seating Location</label> <input type="text" class=" col-sm-8" value="<?php echo $employee_details->seating_location;?>" name="date" readonly> </div> <div class=" col-sm-12 col-md-6"> <label class="col-sm-4">Employee Status</label> <div class="col-sm-8"> <select class="form-control" readonly> <option>Select</option> <option <?php if ($employee_details->employee_status == "Active") echo "selected='selected'" ?>>Active</option> <option <?php if ($employee_details->employee_status == "Terminated") echo "selected='selected'" ?>>Terminated</option> <option <?php if ($employee_details->employee_status == "Deceased") echo "selected='selected'" ?>>Deceased</option> <option <?php if ($employee_details->employee_status == "Resigned") echo "selected='selected'" ?>>Resigned</option> </select> </div> </div> </div> <!-- row 7--> <div class="row row-form"> <div class=" col-sm-12 col-md-6"> <label class="col-sm-4 col-md-4">Work Phone</label> <input type="text" class=" col-sm-8" value="<?php echo $employee_details->work_phone;?>" name="date" readonly> </div> <div class=" col-sm-12 col-md-6"> <label class="col-sm-4">Employee Type</label> <div class="col-sm-8"> <select class="form-control" readonly> <option>Select</option> <option <?php if ($employee_details->employee_type == "Permanent") echo "selected='selected'" ?>>Permanent</option> <option <?php if ($employee_details->employee_type == "On Contract") echo "selected='selected'" ?>>On Contract</option> <option <?php if ($employee_details->employee_type == "Temporary") echo "selected='selected'" ?>>Temporary</option> <option <?php if ($employee_details->employee_type == "Trainee") echo "selected='selected'" ?>>Trainee</option> </select> </div> </div> </div> <!-- row 8--> <div class="row row-form"> <div class=" col-sm-12 col-md-6"> <label class="col-sm-4 col-md-4">Extension</label> <input type="text" class=" col-sm-8" value="<?php echo $employee_details->extension;?>" name="date" readonly> </div> <div class=" col-sm-12 col-md-6"> <label class="col-sm-4">Role</label> <div class="col-sm-8"> <select class="form-control" readonly> <option>Select</option> <?php foreach($get_all_roles as $value){ ?> <option value="<?php echo $value->role_id; ?>"<?php if ($value->role_id == $employee_details->role_id) echo "selected='selected'" ?>><?php echo $value->role_name; ?></option> <?php } ?> </select> </div> </div> </div> <!-- row 9--> <h4><b>Personal</b></h4> <div class="row row-form"> <div class=" col-sm-12 col-md-6"> <label class="col-sm-4">Pan Number</label> <input type="text" class=" col-sm-8" value="<?php echo $employee_details->pan_no;?>" name="director_pan_number" readonly> </div> <div class=" col-sm-12 col-md-6"> <label class="col-sm-4 ">Date of Birth</label> <input type="text" class=" col-sm-8 dob" value="<?php echo $employee_details->date_of_birth;?>" name="date_of_birth" readonly> </div> </div> <!-- row 10----> <div class="row row-form"> <div class=" col-sm-12 col-md-6"> <label class="col-sm-4"> Address</label> <textarea class=" col-sm-8" placeholder="Address" style="width:60%" rows ="3" name="office_address" readonly><?php echo $employee_details->address;?></textarea> </div> <div class=" col-sm-12 col-md-6"> <label class="col-sm-4 ">Residential Address</label> <textarea class=" col-sm-8" placeholder="Address" style="width:60%" rows ="3" name="residential_address" readonly><?php echo $employee_details->residential_address;?></textarea> </div> </div><!-- row 11--> <div class="row row-form"> <!-- <div class=" col-sm-12 col-md-6"> <label class="col-sm-4">Date of Birth</label> <input type="text" class=" col-sm-8" value="<?php echo $employee_details->date_of_birth;?>" name="date"> </div> --> <div class=" col-sm-12 col-md-6"> <label class="col-sm-4 "> Marital Status :</label> <div class="col-sm-3"> <label>Single</label> <input type="radio" name="marital_status" <?php echo($employee_details->marital_status=="Single"?'checked="checked"':''); ?> style="width:50% !important;"> </div> <div class="col-sm-3"> <label>Married</label> <input type="radio" name="marital_status" <?php echo($employee_details->marital_status=="Married"?'checked="checked"':''); ?> style="width:40% !important;"> </div> </div> <div class="col-sm-12 col-md-6"> <label class="col-sm-4" for="documents1">Documents</label> <?php if (!empty($employee_details->documents)): ?> <ul> <?php foreach ($employee_details->documents as $key => $doc): ?> <li> <a href="<?= base_url($doc); ?>" target="_blank"><?= basename($doc); ?></a> <a href="javascript:void(0);" class="delete-document" data-id="<?= $employee_details->emp_id; ?>" data-key="<?= $key; ?>" style="margin-left:10px;"> <i class="fa fa-trash" aria-hidden="true" style="color:red;"></i> </a> </li> <?php endforeach; ?> </ul> <?php else: ?> <p>No documents uploaded yet.</p> <?php endif; ?> </div> <h4><b>Summary</b></h4> <div class="row row-form"> <div class=" col-sm-12 col-md-6"> <label class="col-sm-4">Job Description :</label> <textarea class=" col-sm-8" placeholder="Description" value="<?php echo $employee_details->extension;?>" style="width:60%" rows ="3" name="office_address"><?php echo $employee_details->job_description;?></textarea> </div> <div class=" col-sm-12 col-md-6"> <label class="col-sm-4 ">About Me :</label> <textarea class=" col-sm-8" placeholder="About Me" value="<?php echo $employee_details->extension;?>" style="width:60%" rows ="3" name="residential_address"><?php echo $employee_details->about_me;?></textarea> </div> </div><!-- row 13--> <div class="row row-form"> <div class=" col-sm-12 col-md-6"> <label class="col-sm-4 col-md-4">Date of Exit </label> <input type="text" class=" col-sm-8" value="<?php echo $employee_details->date_of_exit;?>" name="date"> </div> <div class="col-sm-12 col-md-6"> <label class="col-sm-4">Gender</label> <div class="col-sm-3"> <label>Male</label> <input type="radio" name="optradio" <?php echo($employee_details->gender=="Male"?'checked="checked"':''); ?> style="width:50% !important;"> </div> <div class="col-sm-3"> <label>Female</label> <input type="radio" name="optradio" <?php echo($employee_details->gender=="Female"?'checked="checked"':''); ?> style="width:40% !important;"> </div> </div> </div><!-- row 14--> </div><!--- hidden content----> <div class="clearfix"></div> <div class="col-md-12" style="margin-top:3%;"> <h5><a href="javascript:void(1)" class="table11-show"><span><b>Work Experience</b></span></a></h5> <div class="col-xs-12 col-sm-12"> <div class="row"> <div id="addele_more" > <?php if(json_decode($employee_details->job_title) != ""){?> <table class="table table111-click table-responsive" id="maintable" style="display:none;"> <thead> <th>Previous Company Name</th> <th>Job Title</th> <th>From Date</th> <th>To Date</th> <th>Job Description</th> </thead> <tbody> <?php if($employee_details->job_title != ' '){$det2=json_decode($employee_details->job_title);} if($employee_details->from_date != ' '){$det3=json_decode($employee_details->from_date);} if($employee_details->to_date != ' '){$det4=json_decode($employee_details->to_date);} if($employee_details->work_job_description != ' '){$det5=json_decode($employee_details->work_job_description);} ?> <tr> <?php if($employee_details->pre_company_name != ' '){$det1=json_decode($employee_details->pre_company_name); foreach($det1 as $key=> $d){ ?> <td><?php echo $d;?></td> <td><?php echo $det2[$key];?></td> <td><?php echo $det3[$key];?></td> <td><?php echo $det4[$key];?></td> <td><?php echo $det5[$key];?></td> </tr> <?php }} ?> </tbody> </table> </div> </div> </div> </div><!-- --> <?php }else{?> <table class="table table111-click table-responsive" id="maintable" style="display:none;"> <thead> <th>Previous Company Name</th> <th>Job Title</th> <th>From Date</th> <th>To Date</th> <th>Job Discription</th> </thead> <tbody> <tr> <td></td> <td></td> <td> <div class="input-group date" > <input type="text" value="<?php //echo $employee_details->from_date;?>" placeholder="Date" style="border:none;width:70% !important;"></input> </div> </td> <td> <div class="input-group date" > <input type="text" data-provide="datepicker" value="<?php //echo $employee_details->to_date;?>" placeholder="Date" style="border:none;width:70% !important;"></input> </div> </td> <td></td> </tr> </tbody> </table> </div> </div> </div> </div><!-- --> <?php }?> <div class="col-md-12" style="margin-top:3%;"> <h5><a href="javascript:void(0)" class="table-show1"><span><b>Education</b></span></a></h5> <div class="col-xs-12 col-sm-12"> <div class="row"> <div id="addele_more"> <?php if($education_details != ""){?> <table class="table table-responsive table-click1" style="display:none;" id="maintable"> <thead> <th>School Name</th> <th>Diploma/Degree</th> <th>Fields of study</th> <th>Date of completion</th> <th>Additional Notes</th> <th>Interests</th> <th>Aggregate</th> <th>Uploads</th> </thead> <tbody> <tr> <?php if($education_details != ' '){ foreach($education_details as $val){ ?> <td><?php echo $val->college_name;?></td> <td><?php echo $val->diplamo_degree;?></td> <td><?php echo $val->field_of_study;?></td> <td><?php echo $val->date_of_completion;?></td> <td><?php echo $val->additional_notes;?></td> <td><?php echo $val->interests;?></td> <td><?php echo $val->aggregate;?></td> <?php $f=trim($val->file,'["'); $trim_a_image=trim($f,'"]'); $trim_a_image1=trim($trim_a_image,'"'); $file= $trim_a_image; $file_doc=explode(',',$file); ?> <td><?php foreach($file_doc as $val){$file_val=trim($val,'"');?><a href="<?php echo base_url('files');?>/<?php echo $file_val?>" target="_blank" style="text-decoration:none"><img src="<?php echo base_url('files');?>/<?php echo $file_val?>" style="width:50px;height:50px"/></a><?php }?> </td> </tr> <?php }} ?> </tbody> </table> </div> </div> </div> </div> <?php }else{?> <table class="table table-responsive table-click1" style="display:none;" id="maintable"> <thead> <th>School Name</th> <th>Diploma/Degree</th> <th>Fields of study</th> <th>Date of completion</th> <th>Additional Notes</th> <th>Interests</th> </thead> <tbody> <tr> <td><?php //echo $d?></td> <td><?php //echo $d?></td> <td><?php //echo $d?></td> <td> <div class="input-group date" > <input type="text" data-provide="datepicker" value="<?php echo $employee_details->date_of_completion;?>" placeholder="Date" style="border:none;width:70% !important;"></input> </div> </td> <td><?php //echo $d?></td> <td><?php //echo $d?></td> </tr> </tbody> </table> </div> </div> </div> </div> <?php }?> <div class="col-md-12" style="margin-top:3%;"> <h5><a href="javascript:void(0)" class="table-show2"><span><b>Dependent</b></span></a></h5> <div class="col-xs-12 col-sm-12"> <div class="row"> <div id="addele_more"> <?php if(json_decode($employee_details->dependent_name)!= ""){?> <table id="maintable2" class="table table-click2" style="display:none;" > <thead> <th>Name</th> <th>Relationship</th> <th>Date of birth</th> </thead> <tbody> <?php if($employee_details->dependent_relationship != ' '){$det2=json_decode($employee_details->dependent_relationship);} if($employee_details->dependent_dob != ' '){$det3=json_decode($employee_details->dependent_dob);} ?> <tr> <?php if($employee_details->dependent_name != ' '){$det1=json_decode($employee_details->dependent_name); foreach($det1 as $key=> $d){ ?> <td><?php echo $d;?></td> <td><?php echo $det2[$key];?></td> <td><?php echo $det3[$key];?></td> </tr> <?php }} ?> </tbody> </table> </div> </div> </div> </div> <?php }else{?> <table id="maintable2" class="table table-click2" style="display:none;" > <thead> <th>Name</th> <th>Relationship</th> <th>Date of birth</th> </thead> <tbody> <tr> <td><?php //echo $d?></td> <td><?php //echo $d?></td> <td><?php //echo $employee_details->dependent_dob;?></td> </tr> </tbody> </table> </div> </div> </div> </div> <?php }?> <div id="print_div" style="display:none;"></div> <!-- PAGE CONTENT ENDS --> </div><!-- /.col --> </div><!-- /.row --> </div><!-- /.page-content --> </div> </div><!-- /.main-content --> <div class="footer"> <div class="footer-inner"> <div class="footer-content"> <span class="bigger-120"> <span class="blue">All Right Reserved © 2017</span> <a href=""> Jay Blues Technologies</a> </span> </div> </div> </div> <a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse"> <i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i> </a> </div><!-- /.main-container --> <!-- <script src="<?php echo base_url('admin_assets/assets/js/jquery-2.1.4.min.js'); ?>"></script> --> <!-- <script src="<?php echo base_url('admin_assets/assets/js/bootstrap.min.js'); ?>"></script> --> <!-- page specific plugin scripts --> <script src="<?php echo base_url('admin_assets/assets/js/tree.min.js'); ?>"></script> <script src="<?php echo base_url('admin_assets/assets/js/select2.min.js'); ?>"></script> <script src="<?php echo base_url('admin_assets/assets/js/jquery-ui.custom.min.js'); ?>"></script> <script src="<?php echo base_url('admin_assets/assets/js/jquery.ui.touch-punch.min.js'); ?>"></script> <script src="<?php echo base_url('admin_assets/assets/js/holder.min.js'); ?>"></script> <!-- ace scripts --> <script src="<?php echo base_url('admin_assets/assets/js/ace-elements.min.js'); ?>"></script> <script src="<?php echo base_url('admin_assets/assets/js/ace.min.js'); ?>"></script> <!-- inline scripts related to this page --> <link href="http://code.jquery.com/ui/1.10.4/themes/ui-lightness/jquery-ui.css" rel="stylesheet"> <script src="<?php //echo base_url('admin_assets/assets/js/jquery-ui.js');?>"></script> <script src="<?php //echo base_url('admin_assets/assets/js/jquery.table2excel.js');?>"></script> <!--<script src="event/assets/js/bootstrap-datepicker.js"></script> <script src="event/assets/js/moment.min.js"></script> <script src="event/assets/js/fullcalendar.min.js"></script>--> </body> </html> <style type="text/css"> .breadcrumb>li { display: inline !important; padding: 0 5px !important; } input[type='file'] { opacity:1 !important; } </style> <!-- selcectbox label --> <!-- <link rel="stylesheet" href="css/bootstrap-select.css"> <script src="js/bootstrap-select.js"></script> --> <!----scrolll--> <script type="text/javascript"> $('.table11-show').click(function(){ $('.table111-click').toggle(); }); $('.table-show1').click(function(){ $('.table-click1').toggle(); }); $('.table-show2').click(function(){ $('.table-click2').toggle(); }); //date picker // $(function() { // $('#popup-datepic').datepicker({ // //.. // }); // }); function offer_letter() { var print_content=''; print_content += '<html>'; print_content += '<head>'; print_content += '<title>Offer Letter</title>'; print_content += '</head>'; print_content += '<body style="width: 800px;">'; print_content += '<p>Jay Blues Technologies</p>'; print_content += '<p>Date: <?php echo date('d-m-Y');?></p>'; print_content += '<br>'; print_content += '<p style="padding-bottom:10px;">Dear, <?php echo $employee_details->first_name;?> <?php echo $employee_details->last_name;?></p>'; print_content += '<p style="padding-bottom:10px;">We are pleased to appoint you as (Business Development Executive) with us. The following offer of employment to you on behalf of Jay Blues Technologies. Further to the interview and discussions you have had with us. You are expected to join duty on xxxxxxxxxx. Your starting monthly remuneration will be Rs 8,000/- (Rupees Eight Thousand only). You will be on a probation period for three months.</p>'; print_content += '<p style="padding-bottom:10px;">After successful completion of the probation and review thereof, you will be entitled to other allowances and benefits whatsoever as per policies of the organization. Regular performance reviews will be done to assess your suitability. You shall receive your payments on or before 05th of every month.</p>'; print_content += '<p style="padding-bottom:10px;">Offer stands cancelled in case of any deviations in information or if you fail to report to me on or before pre-decided date.</p>'; print_content += '<p><b>Working Hours:</b></p>'; print_content += '<p style="padding-bottom:10px;">Your working hours start from 10:00 am to 7:00 pm with one hour break a day and you are scheduled to work through Monday to Saturday, which is 57 hours a week. The company reserves all the rights to change the above working hours and days.</p>'; print_content += '<p style="padding-bottom:10px;">You will be entitled for the approved 10 holidays notified by the company and you will also be entitled to 1day per (month) as additional leave. You should inform us in advance about your additional leave as and when you wish to avail it. You will also be eligible for casual leave of (1 day) every month.</p>' print_content += '<p><b>Termination and Resignation:</b></p>'; print_content += '<p style="padding-bottom:10px;">The Company has the right to terminate your services any time after the confirmation of your services by issuing a notice of (1 month) in writing or payment of salary of (1 month) in lieu of notice. You can also resign from the company after giving a notice of (1 month) in writing or payment of salary of (1 month) in lieu of notice.</p>'; print_content += "<p style='padding-bottom:10px;'>Company has all the rights to take a legal action on an employee, if they disclose /data lose, information sharing, & damage for a company's integrity.</p>" print_content += '<p style="padding-bottom:10px;">You will need to submit all your photo copy of original qualification documents, relieving documents and salary slip (if any) of last three months with a copy of each, on the date of joining.</p>'; print_content += '<p style="padding-bottom:10px;">I look forward to an enduring relationship with you.</p>'; print_content += '<br>'; print_content += '<p>Yours sincerely,</p>'; print_content += '<p>Ajay Kumar H S <br>CEO <br>Jay Blues Technologies</p>'; print_content += '</body>'; print_content += '</html>'; $("#print_div").html(print_content); var divContents = $("#print_div").html(); newWin= window.open(""); newWin.document.write(divContents); newWin.print(); newWin.close(); } </script> <script> $(document).on('click', '.delete-document', function () { var employeeId = $(this).data('id'); // Employee ID var documentKey = $(this).data('key'); // Document key in JSON if (confirm('Are you sure you want to delete this document?')) { $.ajax({ url: '<?= base_url("Yaskawa/delete_document"); ?>', type: 'POST', data: { id: employeeId, key: documentKey }, success: function (response) { console.log(response); // Log the raw response for debugging if (response.success) { alert('Document deleted successfully.'); location.reload(); } else { alert('Document deleted successfully.'); location.reload(); } }, error: function (xhr, status, error) { console.error(xhr.responseText); // Log the error response alert('An error occurred. Please try again later.'); } }); } }); </script>