ok
Direktori : /proc/thread-self/root/home2/selectio/www/saew.in/admin/print-form/ |
Current File : //proc/thread-self/root/home2/selectio/www/saew.in/admin/print-form/wages-form.php |
<?php ob_start(); session_start(); include"../config/config.php"; $id=$_POST['id']; //$id=51; //$statement = $pdo->prepare("SELECT * FROM tbl_user where id ='$id'"); $statement = $pdo->prepare("SELECT tbl_user.*,(SELECT departement from tbl_departement WHERE id=tbl_user.department_id) as department_name,(SELECT desgination from tbl_desgination WHERE id=tbl_user.designation_id) as designation_name,tbl_branch.branch_name,tbl_branch.branch_location,tbl_branch.address as branch_address FROM `tbl_user` inner join tbl_branch on tbl_user.branch_id=tbl_branch.id where tbl_user.id ='$id'"); $statement->execute(); $emp_data = $statement->fetchAll(PDO::FETCH_ASSOC); $totalData = $statement->rowCount(); if($totalData){ foreach($emp_data as $data){ $content=' <center><span class="compnay_name9">M.SUNDARDAS & SONS</span></center> <center><span class="address9">'.$data['branch_address'].'</span></center> <br> <table style="width:100%;vertical-align: top;"> <tr> <td style="width: 30%;">NAME/ பெயர்/ नाम :</td> <td style="width: 15%;">'.$data['emp_name'].'</td> <td style="width: 10%;"></td> <td style="width: 30%;">ID NUMBER/ அடையாள <br>அட்டைஎண்/ आईडी नंबर : </td> <td style="vertical-align: bottom;">'.$data['emp_code'].'</td> </tr> </table> <table style="width:100%;"> <tr> <td style="width: 30%;">DESIGNATION/ பணி/ पद : </td> <td style="width: 15%;">'.$data['designation_name'].'</td> <td style="width: 10%;"></td> <td style="width: 30%;vertical-align: top;">DATE OF JOIN/ பணியில் <br>சேர்ந்த நாள்/ शामिल होने की तिथि : </td> <td style="vertical-align: bottom;">'.date('d-m-Y', strtotime($data['joining_date'])).'</td> </tr> </table> <center> <u style="font-family: Calibri;font-size:24px;font-weight: bold;">WAGES RECORD</u><br> <u style="font-family: Calibri;font-size:14px;font-weight: bold;">ஊதிய உயர்வு படிவம்</u><br> <u style="font-family: Calibri;font-size:16px;font-weight: bold;">मजदूरी रिकॉर्ड</u> </center> <br> <table style="width: 100%;"> <tr> <td style="border: 1px solid black;text-align: center;">S.NO <span class="tamil-font-size9">வ.எண்<br>क्र.सं</span></td> <td style="border: 1px solid black;text-align: center;">PRESENT WAGES <span class="tamil-font-size9"> தற்போதைய ஊதியங்கள்<br>वर्तमान मजदूरी</span></td> <td style="border: 1px solid black;text-align: center;">DATE OF INCREMENT <span class="tamil-font-size9">ஊதிய உயர்வு நாள்<br>वृद्धि की तिथि</span> </td> <td style="border: 1px solid black;text-align: center;">INCREMENT <span class="tamil-font-size9">ஊதிய உயர்வு<br>वेतन वृद्धि</span></td> <td style="border: 1px solid black;text-align: center;"> REVISED WAGES AFTER INCREMENT <span class="tamil-font-size9">புதுப்பிக்கப்பட்ட ஊதியம்<br>वृद्धि के बाद संशोधित वेतन</span></td> <td style="border: 1px solid black;text-align: center;"> SIGNATURE OF EMPLOYEE<span class="tamil-font-size9"> தொழிலாளரின் கையொப்பம்<br>कर्मचारी का हस्ताक्षर</span></td> <td style="border: 1px solid black;text-align: center;"> SIGNATURE OF MANAGER <span class="tamil-font-size9">மேலாளரின் கையொப்பம்<br>प्रबंधक के हस्ताक्षर</span></td> </tr>'; $sql="SELECT * FROM tbl_emp_salary where emp_id=$id"; $statement1 = $pdo->prepare($sql); $statement1->execute(); $emp_data1 = $statement1->fetchAll(PDO::FETCH_ASSOC); $c=1;$base_salary=0;$last_salary=0; foreach($emp_data1 as $data1){ if($c==1){ $base_salary=$data1['basic_salary']; } $content.=' <tr> <td style="text-align:center;border: 1px solid black;padding: 1%;">'.$c.'</td> <td style="text-align:center;border: 1px solid black;">'.$base_salary.'</td> <td style="text-align:center;border: 1px solid black;">'.date('d-m-Y', strtotime($data1['promoted_date'])).'</td> <td style="text-align:center;border: 1px solid black;">'.($data1['basic_salary']-$base_salary).'</td> <td style="text-align:center;border: 1px solid black;">'.$data1['basic_salary'].'</td> <td style="text-align:center;border: 1px solid black;"></td> <td style="text-align:center;border: 1px solid black;"></td> </tr>'; $base_salary=$data1['basic_salary']; $c++; } for($n=$c;$n<=15;$n++){ $content.=' <tr> <td style="text-align:center;border: 1px solid black;padding: 1%;">'.$n.'</td> <td style="border: 1px solid black;"></td> <td style="border: 1px solid black;"></td> <td style="border: 1px solid black;"></td> <td style="border: 1px solid black;"></td> <td style="border: 1px solid black;"></td> <td style="border: 1px solid black;"></td> </tr>'; } $content.='</table> <style> table { font-family: times new roman; border-collapse: collapse; font-size:14;font-weight: bold; } td { font-family: Calibri; font-size:12px; padding: 3px; } .compnay_name9{ font-family: Algerian Regular; font-size:26px;font-weight: bold; } .address9{ font-family: Calibri; font-size:14px;font-weight: bold; } .title-form{ font-family: Calibri; font-size:20px;font-weight: bold; } .tamil-font-size9{ font-family: Calibri; font-size:11px;font-weight: bold; } .tdb { border: 1px solid gray; text-align: left; padding: 3px; } </style> '; }}else{ $content='<center>Empty</center>';} echo $content;