ok
Direktori : /proc/thread-self/root/proc/self/root/home2/selectio/www/obnovit-tracking/old/ |
Current File : //proc/thread-self/root/proc/self/root/home2/selectio/www/obnovit-tracking/old/payslip-view.php |
<?php include "header.php"; $id=$_GET['id']; $statement = $pdo->prepare("SELECT p.*,(select departement from tbl_departement WHERE tbl_departement.id=p.department_id) as department_id,(select departement from tbl_departement WHERE tbl_departement.id=p.department_id) as department_id,(select desgination from tbl_desgination WHERE tbl_desgination.id=p.designation_id) as designation_id,(select type_name from tbl_pf_type WHERE tbl_pf_type.id=p.pftype) as pftype FROM tbl_user p where p.id='$id'"); $statement->execute(); $emp_data = $statement->fetchAll(PDO::FETCH_ASSOC); $totalData = $statement->rowCount(); ?> <style> td, th { padding: 10px; } </style> <div class="content-wrapper" style="background:white;"> <div class="clearfix"></div> <section class="content"> <div class="row"> <div class="col-xs-12"> <div> <div class="box-header"> </div> <div class="box-body" style="padding: 0px;"> <div class="col-lg-12" style="padding: 0px;"> <?php foreach($emp_data as $data){ ?> <div class="col-lg-12" > <div class="row"> <div class="col-md-6"> <img src="images/login-bg.jpg" class="img-thumbnail" alt="" style="width: 30%;height:70px;"> </div> <div class="col-md-6"> <label>Address</label> <address> 293/4, MG Rd, New Fairlands,<br> Salem, <br>Tamil Nadu 636016</address> </div> </div> <br> <div class="row"> <table> <table class="col-lg-6" border="1px solid black"> <tr> <th>Name :</th> <td><?=$data['emp_name']?></td> </tr> <tr> <th>Mobile :</th> <td><?=$data['emp_mobile']?></td> </tr> <tr> <th>Department :</th> <td><?=$data['department_id']?></td> </tr> <tr> <th>Desgination :</th> <td><?=$data['designation_id']?></td> </tr> <tr> <th>Address :</th> <td><?=$data['address']?></td> </tr> <tr> <th>Gender :</th> <td><?=$data['gender']?></td> </tr> </table> <table class="col-lg-6" border="1px solid black"> <?php $id=$_GET['id']; $statement = $pdo->prepare("SELECT * FROM tbl_payslip_generation where employee_id ='$id' order by id desc limit 1"); $statement->execute(); $emp_data3 = $statement->fetchAll(PDO::FETCH_ASSOC); $totalData = $statement->rowCount(); ?> <?php foreach($emp_data3 as $data3){ ?> <tr> <th>Basic Salary :</th> <td><?=$data3['basic_salary']?></td> <?php } ?> </tr> <tr> <th>PF Type :</th> <td><?=$data['pftype']?></td> </tr> <tr> <th>Date Of Birth:</th> <td><?=$data['dob']?></td> </tr> <tr> <th>Joining Date:</th> <td><?=$data['joining_date']?></td> </tr> <tr> <th>Email:</th> <td><?=$data['email']?></td> </tr> <!--<tr> --> <!-- <th>Status:</th>--> <!-- <td><?=$data['status']?></td>--> <!--</tr>--> <?php } ?> </table> </div> <br> <div class="row"> <table class="col-lg-6" border="1px solid black"> <?php $id=$_GET['id']; $statement = $pdo->prepare("SELECT * FROM tbl_payslip_generation where employee_id ='$id' order by id desc limit 1"); $statement->execute(); $emp_data2 = $statement->fetchAll(PDO::FETCH_ASSOC); $totalData = $statement->rowCount(); ?> <?php foreach($emp_data2 as $data2){ ?> <tr> <th colspan = "4">Earnings</th> </tr> <tr> <th>Basic Pay :</th> <td>50 %</td> <!--<td>%</td>--> <td>536.20</td> </tr> <tr> <th>House Rent :</th> <td>25 %</td> <td>268.10</td> </tr> <tr> <th>Conveyance :</th> <td>1350 ₹</td> <td>1350.00</td> </tr> <tr> <th>Medical Allowance:</th> <td>0 ₹</td> <td>0</td> </tr> <tr> <th>Project Bonus:</th> <td>1331 ₹</td> <td>1331</td> </tr> <tr> <th>Special :</th> <td>0 ₹</td> <td>0</td> </tr> <tr> <th>Total Earnings :</th> <td colspan = "2"><?=$data2['earnings_total']?></td> </tr> </table> <table class="col-lg-6" border="1px solid black"> <tr> <th colspan = "3">Reduction</th> </tr> <tr> <th>Pf Contribution-Employee :</th> <td>12 %</td> <td>64:00</td> </tr> <tr> <th>Pf Contribution-Employer :</th> <td>13.61 %</td> <td>73:00</td> </tr> <tr> <th>ESI Contibution-Employee:</th> <td>80 ₹</td> <td>80:00</td> </tr> <tr> <th>ESI Contibution-Employer:</th> <td>349 ₹</td> <td>349</td> </tr> <tr> <th>Total Reduction :</th> <td colspan = "2"><?=$data2['reduction_total']?></td> </tr> </table> </table> </div> <br> <div class="row"> <table class="col-lg-12" border="1px solid black"> <tr> <th>Total Days :</th> <td>XXX</td> </tr> <tr> <th>Working Days :</th> <td><?=$data2['working_days']?></td> </tr> <tr> <th>Special HoliDays: :</th> <td><?=$data2['special_holidays']?></td> </tr> <tr> <th>Holidays :</th> <td><?=$data2['holidays']?></td> </tr> <tr> <th>Permission Leaves :</th> <td><?=$data2['permission_leaves']?></td> </tr> <tr> <th>Loss Of Pay Days :</th> <td>XXX</td> </tr> <tr> <th>Salary Processing Days :</th> <td><?=$data2['salary_processing_days']?></td> <!--<td>%</td>--> <!-- <td>536</td>--> </tr> <tr> <th>Net Salary:</th> <td><?=$data2['net_salary']?></td> <!--<td>%</td>--> <!-- <td>536</td>--> </tr> <tr> <th>TOTAL CTC :</th> <td><?=$data2['total_ctc']?></td> <!--<td>%</td>--> <!-- <td>536</td>--> </tr> <tr> <th>Net Pay To Employee :</th> <td><?=$data2['net_pay_employee']?></td> <!--<td>%</td>--> <!-- <td>536</td>--> </tr> </table> <?php } ?> </table> </div> </div> </div> <div class="clearfix"></div> </div> </div> </div> </div> </section> <?php include "footer.php";?>