ok
Direktori : /home2/selectio/public_html/saew.in/admin/print-form/ |
Current File : /home2/selectio/public_html/saew.in/admin/print-form/leave-letter-form.php |
<?php ob_start(); session_start(); include"../config/config.php"; $ids=$_GET['id']; //$id=2; $statement = $pdo->prepare("SELECT * FROM `tbl_leave_request` INNER JOIN tbl_user ON tbl_user.id=tbl_leave_request.emp_id WHERE tbl_leave_request.id = '$ids'"); //$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(); //$emp_id = $emp_data['emp_id']; if($totalData){ foreach($emp_data as $data){ $content=' <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous"> <br><br> <div style="margin-left: 20%; margin-right: 20%;"> <center> <u class="compnay_name">M.SUNDARAS & SONS</u><br> <p style="font-size:12px;" class="address"></p> <u><span class="title-form">Leave Letter</span></u> </center> <table style="width:40%"> <tr> <td class="english_font">From</td> </tr> <tr> <td style="font-family: Cambria;font-size:16px;font-weight: bold;">'.$data['emp_name'].'</td> </tr> <tr> <td style="font-family: Cambria;font-size:16px;font-weight: bold;">'.$data['address'].'</td> </tr> </table> <br> <table style="width:40%"> <tr> <td class="english_font">To</td> </tr> <tr> <td style="font-family: Cambria;font-size:16px;font-weight: bold;">M.SUNDARAS & SONS</td> </tr> <tr> <td style="font-family: Cambria;font-size:16px;font-weight: bold;"></td> </tr> </table> <br> <table style="width:100%"> <tr> <td style="font-family: Calibri;font-size:20px;font-weight: bold;width: 10%;">Subject:</td> <td style="font-family: Calibri;font-size:20px;border-bottom: 1px solid;width: 40%;"><input type="text" value="'.$data['subject'].'" style="text-align: center;" placeholder="Enter Your Subject" class="input_method"/></td> <td></td> </tr> </table> <br> <table style="width:70%"> <tr> <td style="font-family: Calibri;font-size:18px;font-weight: bold;width: 30%;">Dear Mr./Mrs.,</td> <td></td> </tr> </table> <br> <p class="normal_size"> I am writing this letter to ask your permission to avail annual leave for <input type="text" style="width: 30%;" value="'.$data['no_of_days'].'" placeholder="Enter Your Leave Count" class="input_method"/> Days<br> from <input type="date" value="'.$data['start_date'].'" style="width: 19%;" class="input_method"/> to <input type="date" value="'.$data['end_date'].'" style="width: 19%;" class="input_method"/> due to <br> <input type="text" value="'.$data['reason'].'" style="width: 30%;" placeholder="Enter Your Valuable Reason" class="input_method"/>. I will report back for work on <input type="date" value="" style="width: 19%;" class="input_method"/><br> <br> I will be obliged if any approve my leave and get in touch in case I require any further extension of leave. I will leave my contact details with your office in case of any queries.<br> Thanking You<br> If you have any questions, please feel free to contact me directly. Looking forward to your reply.<br><br> Yours Sincerely,<br> <input type="text" value="'.$data['emp_name'].'" style="width: 25%;text-align: left;" placeholder="Enter Your Name" class="input_method"/> </p> <br><br> <center> <button class="btn btn-success btn-xs" onclick=""><i class="fa fa-print"></i> Update </button> </center> <br><br><br><br> </div> <style> .compnay_name{ font-family: Algerian Regular; font-size:20px;font-weight: bold; } .address{ font-family: Calibri; font-size:9px;font-weight: bold; } .title-form{ font-family: Calibri; font-size:24px;font-weight: bold; } .english_font{ font-family: Calibri; font-size:24px;font-weight: bold; } .english_font-size{ font-family: Calibri; font-size:14px; } .normal_size { font-family: Cambria; font-size:16px; } .tamil-font-size{ font-size:12px;font-weight: bold; } .tamil-font-size-sm{ font-size:10px;font-weight: bold; } .input_method{ border: none; text-align: center; border-bottom-style: ridge; -webkit-text-fill-color: red; } </style>'; }}else{ $content='<center>Empty</center>';} echo $content;