EVOLUTION-NINJA
Edit File: exp_letter.php
<!DOCTYPE html> <?php $this->load->view('includes/header.php')?> <link rel="stylesheet" href="<?php echo base_url('assets/css/jquery-ui.css');?>" /> <script src="<?php echo base_url('assets/js/jquery-ui.js');?>"></script> <input type="button" class="btn btn-primary pull-right print_button" value="Print" onclick="printDiv();" style="margin-top: 50px; margin-right:50px;"> <a href="<?php echo site_url('employee-list');?>"><button type="reset" class="btn btn-secondary pull-right back_button" style="margin-top: 50px; margin-right:10px;">Back</button></a> <section class="certificate" id="print_table"> <div class="container"> <h1 style="font-size: 35px;font-weight: bold;margin-bottom: 5%;margin-left: 35%;"> CERTIFICATE </h1> <p style="text-align: justify; line-height: 1.7; padding-top: 10px; padding-bottom: 10px;">This is to certify that Mrs/Mr. <input type="text" value="<?php echo $details->full_name;?>" class="" style="width:25%;margin-bottom: 10px;"/>.worked as <input type="text" class="" style="width:20%;margin-bottom: 10px;" value="<?php echo $details->dept_name;?>"/>.in our company from <input type="text" value="" class="from_date" style="width:20%;"/> to <input type="text" value="" class="from_date" style="width:25%;margin-bottom: 10px;"/> with our entire satisfaction. During this working period we found her/him a sincere, honest, hardworking, dedicated employee with a professional attitude and very good job knowledge. She is amiable in nature and character is well. We have no objection to allow her/him in any better position and have no liabilities in our company. </p> <p>We wish her every success in life. </p> <br> <p>Yours Faithfully</p> <br><br> <p>Place: Mysore</p> <P>Dated: <input type="text" value="" class="from_date" style="width:20%;"/></P> </div> </section> </body> </html> <style type="text/css"> p{ text-align: justify; } .certificate{ width: 900px; margin: 0 auto; padding-top: 20px; font-size: 15px; } </style> <script type="text/javascript"> $('.from_date').datepicker({ format: "dd-mm-yyyy", }).on('changeDate', function(ev){ $('.from_date').datepicker('hide'); }); function printDiv() { var divToPrint=document.getElementById('print_table'); newWin= window.open(""); newWin.document.write('<html><head><title></title>'); newWin.document.write('</head>'); newWin.document.write(divToPrint.outerHTML); newWin.document.write('</html>'); document.getElementById('print_table').style.display=newWin; newWin.close(); var originalTitle = document.title; document.title = "MMG"; $(".print_button").hide(); $(".back_button").hide(); window.print(); //window.history.back(); document.title = originalTitle; } </script> <?php $this->load->view('includes/footer.php')?>