EVOLUTION-NINJA
Edit File: Contract_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> <div id="contract_offer_letter_print"> <input type="button" class="btn btn-primary pull-right" value="Print" onclick="print_contract();" style="margin: 50px;" > <section class="part_main"> <div class="container"> <div class="row d-block"> <h4 class="mb-5 text-center"><ins>PRIVATE & CONFIDENTIAL</ins></h4> <p><br> Ms.<span><?php echo $details->first_name.' '.$details->last_name.', ';?></span><br> <!-- <?php print_r($details) ?> --> <span><?php echo $details->address;?></span> </p> <p>SN:CA/ </p> <p><strong>Sub:</strong> Fixed Tenure Contract</p> <p class="pb-3">Dear <span><?php echo $details->first_name.' '.$details->last_name.', ';?></span></p><br/> <p>This has reference to the interview you had with us..</p> <?php $date = $details->date_of_joining; $date = strtotime($date); $new_date = strtotime('+ 1 year', $date); $till_date=date('d-m-Y', $new_date);?> <form > <input type="hidden" class="form-control contract_from_date" name="contract_from_date" value="<?php echo $details->date_of_joining;?>" > <input type="hidden" class="form-control contract_to_date" name="contract_to_date" value="<?php echo $till_date;?>"> </form> <ol> <li>We are pleased to offer to engage you on fixed tenure contract (FTC) to work on Job No. 01 <strong>MMG CONSTRUCTIONS LLP</strong>, Kuvempunagar, Mysore and related / allied activities on the terms and conditions stipulated hereunder.</li> <li>The period of FTC will be from <span><?php echo $details->date_of_joining;?></span> to <?php echo $till_date;?> or on completion of project for which you are appointed, whichever is earlier.</li> <li>You will be designated as <span><?php echo $details->dept_name ;?> </span>.</li> <li>You will be posted at MMG Constructions LLP, Mysuru. You are requested to report for duty on <span><?php echo $details->date_of_joining;?></span> to : <?php echo $till_date;?></li> <li>During the period of your contractual appointment with M/s.MMG Constructions LLP, your services are liable to be terminated by giving 30 days’ notice from either side, without assigning any reason whatsoever. However, in the event of your showing lack of interest in the work or in aptitude for the job or found otherwise unsuitable, the contractual service will be terminated without notice without assigning any reason.</li> <li>You will be paid an all inclusive consolidated amount as per the approved project details attached here with for the services rendered by you. You will have to make arrangements for your own accommodation and pay for charges such as mobile bill, rent, electricity, water, brokerage, etc. You will also have to arrange for your transport to and from your residence to project office and for visiting sites.</li> <li>Your service automatically stands terminated on close of work on <?php echo $till_date;?> or completion of the project whichever is earlier.</li> <li>You will keep "Secret" and "Confidential" any and all drawings, specifications, instructions, reports, documents and process information or any other data relating to Projects / Proposal which you acquire during the tenure of contract. And also you are responsible for any clarifications, followup, registration and if any settlement issues among your referred clients.</li> <li>Your appointment is purely contractual basis for project office only to meet the temporary increase in workload on project.</li> <li>While working on contract with us, you will not work or undertake any work or assignment from any other company or firm.</li> <li>This letter of appointment is a contractual obligation only between you and including your services are made available on behalf M/s. MMG Constructions LLP</li> <li>If you are agreeable to the above terms and conditions, you are requested to sign and return the duplicate copy of this letter as your acceptance to the above conditions from the date of issue of this letter.</li> </ol> <p>Yours faithfully.</p> <p>I accept the above offer and shall join you on_____________________________at 9.00 Hours</p> <p>Signature:__________________________________________.</p> </div> </div> </section> </div> <script type="text/javascript"> function print_contract() { var id = "<?php echo $this->uri->segment(2);?>"; var contract_from=$('.contract_from_date').val(); var contract_to=$('.contract_to_date').val(); $.ajax({ type : 'post', url : "<?php echo site_url('update-contract-date');?>", data : {'employee_id':id,'contract_from':contract_from,'contract_to':contract_to}, //alert(); success:function(response) { response=jQuery.parseJSON(response); console.log(response); if(response.result==1) { print(); } } }); } function print() { var divToPrint=document.getElementById('contract_offer_letter_print'); 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')?>