EVOLUTION-NINJA
Edit File: appointment_order.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> <?php if($details != 'No data Found'){?> <input type="button" class="btn btn-primary pull-right" value="Print" onclick="printDiv();" style="margin-top: 50px; margin-right:100px;"> <a href="<?php echo site_url('employee-list');?>"><button type="reset" class="btn btn-secondary pull-right" style="margin-top: 50px; margin-right:10px;">Back</button></a> <div id='DivIdToPrint' style="width:80%; margin: 0 auto;"> <section class="part_main"> <div class="container"> <div class="row d-block"> <p>To</p> <p><br> <span><?php echo $details->first_name.' '.$details->last_name.', ';?></span><br> <span><?php echo $details->address;?></span> </p> <br/> <h4 class="mb-5 text-center"><ins>APPOINTMENT ORDER</ins></h4> <p class="pb-3">Dear Sir/Madam,</p><br/> <?php $number = $details->gross_earning; $no = floor($number); $point = round($number - $no, 2) * 100; $hundred = null; $digits_1 = strlen($no); $i = 0; $str = array(); $words = array('0' => '', '1' => 'one', '2' => 'two', '3' => 'three', '4' => 'four', '5' => 'five', '6' => 'six', '7' => 'seven', '8' => 'eight', '9' => 'nine', '10' => 'ten', '11' => 'eleven', '12' => 'twelve', '13' => 'thirteen', '14' => 'fourteen', '15' => 'fifteen', '16' => 'sixteen', '17' => 'seventeen', '18' => 'eighteen', '19' =>'nineteen', '20' => 'twenty', '30' => 'thirty', '40' => 'forty', '50' => 'fifty', '60' => 'sixty', '70' => 'seventy', '80' => 'eighty', '90' => 'ninety'); $digits = array('', 'hundred', 'thousand', 'lakh', 'crore'); while ($i < $digits_1) { $divider = ($i == 2) ? 10 : 100; $number = floor($no % $divider); $no = floor($no / $divider); $i += ($divider == 10) ? 1 : 2; if ($number) { $plural = (($counter = count($str)) && $number > 9) ? 's' : null; $hundred = ($counter == 1 && $str[0]) ? ' and ' : null; $str [] = ($number < 21) ? $words[$number] . " " . $digits[$counter] . $plural . " " . $hundred : $words[floor($number / 10) * 10] . " " . $words[$number % 10] . " " . $digits[$counter] . $plural . " " . $hundred; } else $str[] = null; } $str = array_reverse($str); $result = implode('', $str); $points = ($point) ? "." . $words[$point / 10] . " " . $words[$point = $point % 10] : ''; $amount = $result . "Rupees "; ?> <p>We are glad to offer you an appointment as Inventory cum Accountant our organization. Your monthly consolidated salary is <strong><span><?php echo $details->gross_earning;?></span>/-(<?php echo ucfirst($amount);?>).</strong> You will be eligible for incentives, as per the rules of the Firm. The statutory dues will be deducted as per rules. The appointment is subject to the following further conditions.</p> <ol> <li>This offer of employment is based on the information/details furnished by you while considering your candidature. If at any time it comes to the knowledge of the management that, the information furnished by you are incorrect or if you have suppressed any material facts which you should have disclosed, your services are liable for termination without any notice.</li> <li>You shall furnish your address and change if any, during the course of your employment shall be notified to the management and it shall be your duty to intimate the same in writing within 3 days from the date of any such change and shall also get the change so affected /recorded in the register of addresses maintained for the purpose by the management. All communication sent to you by the management at your last given address shall be deemed to have been delivered to you at the correct address.</li> <li>You will be on whole time employment in the organization and shall not engage yourself in any work or business or profession either honorary or otherwise without permission of the management.</li> <li>Initially you shall be on probation for a period of 12 months from the date of your joining and the said period of probation shall be liable to be extended further or dispensed with earlier at the discretion of the management. During or at the expiry of your said probationary period or the extended period of probation, the management will have the right to terminate your services without any notice or without assigning any reasons thereof. Unless confirmed in writing, you will continue to be on probation.</li> <li>Your appointment and continuance in the employment of the management will always be subject to your being medically fit and the management will have the right to get you examined/re-examined from any registered medical practitioner, whose finding shall be final and binding upon you.</li> <li>If you are absent or over stay for a period of eight consecutive days without permission, you shall be deemed to have voluntarily abandoned from the services of the firm.</li> <li>a) You shall not utilize, disclose or divulge to any person, any trade secrets or know-how of the management of affairs, administrations technology, research and development carried out in the organization.<br>b) You shall sign and deliver a confidentiality agreement, on reporting to duty in this regard.</li> <li>You shall not accept or receive any presents, commissions, loans, advances, or any sort of gratification or benefits or help or favor in cash or in kind from any person, party or agency, with whom the company has business dealings.</li> <li>In case of any act, commission or omission which constitutes misconduct, you may be placed under suspension pending enquiry any disciplinary actions may be initiated against you.</li> <li>Your services will be liable to be transferred from one place to another and / or from one post to another either in the same unit or any sister concerns of the establishment anywhere in India either existing or that may be set up in future.</li> <li>You will be responsible for the safe custody of the articles entrusted to you or that may come to your possession and in case of any damage or loss of such goods or articles, you shall be liable to make good of the same from your salary, besides taking any other disciplinary actions as may be deemed fit and proper. You shall be governed by these Services, rules and work according to directions/instructions given to you from time to time by your superiors.</li> <li>Even after the confirmation of your services, the management reserves the right to terminate your services after providing Two months notice or payment of Two months salary in lieu of notice. Similarly when you opt to leave the services of the company, you may do so by giving two months notice or surrendering or paying one month salary in lieu of the notice.</li> <li>After leaving the services of the firm due to any reason whatsoever, you are restrained from engaging in any of the businesses which the firm was engaged in, either in your individual capacity or in association with any other person in any manner or doing such business in the name of the third party under your supervision, contribution, control etc.,</li> <li>After leaving the services of the firm, you are restrained from engaging in any of the businesses which the firm was engaged in, either in your individual capacity or in association with any other person in any manner or doing such business in the name of the third party under your supervision, contribution, control etc.,</li> <li>In case of disputes, jurisdiction will be Mysore city courts only.</li> <li>This offer is valid if you report for duties on or before 1st of April 2017 year along with requirements as mentioned in enclosure.</li> <li>Apart from above conditions you will be governed by the rules and regulations of the firm, as may be in existence or as may be amended from time to time.</li> <li>You are governed by the rules of the firm in respect of all matters including working hours, leave, transfer etc., which will be communicated to you at the time of joining.</li> </ol> <p class="pt-3">In case the above terms and conditions are acceptable to you, please return the copy of this offer of appointment after affixing your signature in token of your having accepted the same.</p> <p class="text-right">For MMG Constructions LLP</p> <p class="text-right pt-5 mt-5">Authorized Signatory.</p> <p>I have read and understood the above terms and conditions of the employment and agree to abide by the same.</p> <p class="pt-4">Place: Mysore</p> <div style="display: flex;justify-content: space-between;"> <p>Date: <span><?php echo $details->date_of_joining;?></span></p> <p>Signature of the Employee.</p> </div> <p class="pt-4">Dear <span><?php echo $details->first_name.' '.$details->last_name.', ';?></span></p> <p>You are hereby required to produce the following while joining for duty.</p> <ul> <li>Attested copies of certificates supporting your qualification and experience</li> <li>Proof of Date of Birth.</li> <li>Evidence of salary in your previous employment.</li> <li>Relieving letter.</li> <li>Your recent color stamp and passport size photos two each.</li> <li>Comprehensive medical report.</li> </ul> <p>For MMG Constructions LLP</p> <p class="pt-3">Authorized Signatory.</p> </div> </div> </section> </div><?php } else { ?> echo '<script type="text/javascript">swal({ title: "Salary details not added!",text: "", type: "warning", showCancelButton: false, closeOnCancel: false }, function(isConfirm){ if (isConfirm) { $(".sweet-alert").hide(); $(".sweet-overlay").hide(); window.location = '<?php echo site_url("Add-Salary")?>'; } } );</script>'; <?php } ?> <script type="text/javascript"> function printDiv() { var id = "<?php echo $this->uri->segment(2);?>"; $.ajax({ type : 'post', url : "<?php echo site_url('change-Appointment-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); } } }); } </script> <?php $this->load->view('includes/footer.php')?>