EVOLUTION-NINJA
Edit File: experience_letter.php
<?php $this->load->view('includes/header.php')?> <link rel="stylesheet" type="text/css" href="<?php echo base_url('dashboard_assets/css/main.css'); ?>" /> <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet"> <script type="text/javascript" src="<?php echo base_url('dashboard_assets/js/popper.min.js'); ?>" ></script> <input type="button" class="btn btn-primary pull-right" value="Print" onclick="printDiv();" style="margin: 50px;" > <div id='DivIdToPrint'> <section class="part_main "> <div class="container"> <div class="row" id="print_experience_letter"> <div class="col-sm-2"></div> <div class="col-sm-8" style="border: 1px solid gray; padding: 20px 30px; margin-bottom: 20px; margin-top: 20px;" > <p>Date: <span><?php echo date("d-m-yy"); ?></span></p> <!-- <p class="pb-3">Ref.No. MMG/HR/F&F/<input type="text" value="18-19/05" style="border: initial;"/></p> --> <p>Name:<span><?php echo $experience_letter->first_name.' '.$experience_letter->last_name.' ';?></span></p> <p>Address:<span><?php echo $experience_letter->address ;?></span></p> <h4 class="py-3 text-center"><ins>Subject: Releaving Letter</ins></h4> <p style="text-align: justify; line-height: 1.7; padding-top: 10px; padding-bottom: 10px;">This has reference to you resignation letter dated <input type="text" value="" style="width:90px;"/>. The Firm has accepted your resignation and relieved you from the services of the firm from the close of business hours of <input type="text" class="doclose" style="width:90px;"/>.</p> <p style="padding-bottom: 20px;">The Firm hereby confirms your employment details as below:</p> <table class="table table-sm table-bordered w-75 text-center mx-auto pt-3"> <tr class=""> <td class="border-dark">Date of Joining</td> <td class="border-dark"><?php echo $experience_letter->date_of_joining ;?></td> </tr> <tr> <td class="border-dark">Designation</td> <td class="border-dark"><?php echo $experience_letter->role_id ;?></td> </tr> <tr> <td class="border-dark">Department</td> <td class="border-dark"><?php echo $experience_letter->dept_name ;?></td> </tr> <tr> <td class="border-dark">Date of Leaving</td> <td class="border-dark"><input type="text" class="dol" style="width:110px;border: initial;"/></td> </tr> </table> <div class="row"> <div class="col-sm-8"></div> <div class="col-sm-4"><p class="pt-3">Signature of Employee</p></div> </div> <div class="row pt-5"> <div class="col-sm-8"><p>Authorized Signatory</p></div> <div class="col-sm-4"><input type="text" style="border: initial;"/></div> </div> </div> </div> </div> </section> </div> <script type="text/javascript"> function printDiv() { var id = "<?php echo $this->uri->segment(2);?>"; $.ajax({ type : 'post', url : "<?php echo site_url('change-exp-status');?>", data : {'employee_id':id}, success:function(response) { response=jQuery.parseJSON(response); console.log(response); if(response.result==1) { var divToPrint=document.getElementById('DivIdToPrint'); var newWin=window.open('','Print-Window'); newWin.document.open(); newWin.document.write('<html><body onload="window.print()">'+divToPrint.innerHTML+'</body></html>'); newWin.document.close(); setTimeout(function(){newWin.close();},10); } } }); } $('.dol').focusout(function(e){ e.preventDefault(); var dol = $(".dol").val(); $('.doclose').val(dol); }); </script> <?php $this->load->view('includes/footer.php')?>