ohctech_p8/attendance_pdf.php
2024-10-16 19:18:52 +05:30

125 lines
2.9 KiB
PHP

<?php include('pdf_header.php');
include('includes/config/config.php');
// include('pop_up_top.php');
?>
<style type="text/css">
.table, .th, .td {
border: 1px solid black;
text-align: center;
border-collapse: collapse;
}
p{
font-weight: bold;
}
</style>
<p align="center" style="font-size:20px"><strong> FORM D </strong></p>
<p align="center" style="font-size:20px"><strong> Attendance Register </strong></p>
<br>
<?php
$id = $_REQUEST['flex_attendance_id'];
$sql_attendance = "SELECT * FROM `attendance_register` where `attendance_id` = '$id'";
error_log($sql_attendance);
$query_attendance = mysqli_query($conn, $sql_attendance);
while ($fetch = mysqli_fetch_assoc($query_attendance)) {
$nameofEsta = $fetch['name_of_esta'];
$lin = $fetch['lin'];
$attendance_id = $fetch['attendance_id'];
$sl_number = $fetch['sl_number'];
$owner = $fetch['name_of_owner'];
$name = $fetch['name'];
$relay_set_work = $fetch['relay_set_work'];
$summery_no_days = $fetch['summery_no_days'];
$remark_no_hours = $fetch['remark_no_hours'];
$created_by = $fetch['created_by'];
}
// error_log($nameofEsta);
?>
<p >Name of Establishment : <?php echo getTableFieldValue('establishment_master','establishment','establishment_id' , $nameofEsta ); ?> </p>
<p >Name of Owner : <?php echo getTableFieldValue('owner_master','owner','owner_id' , $owner ); ?> </p>
<p>LIN : <?php echo getTableFieldValue('lin_master' , 'lin' ,'lin_id',$lin); ?></p>
<table class="table" width="100%">
<tr class="tr">
<td class="td">
<p>SL Number in Employee Register</p>
</td>
<td class="td">
<p>Name</p>
</td>
<td class="td">
<p>Relay or set Work</p>
</td>
</tr>
<tr class="tr">
<td class="td">
<?php echo $sl_number; ?>
</td>
<td class="td">
<?php echo $name; ?>
</td>
<td class="td">
<?php echo $relay_set_work ; ?>
</td>
</tr>
</table>
<br>
<table width="100%" class="table">
<tr class="tr">
<?php
for ($i=1; $i <=31 ; $i++) {
echo "<td class='td'>". $i ."</td>";
}
?>
</tr>
</table>
<br>
<table class="table" width="100%">
<tr class="tr">
<td class="td">
<p>Summary No. of Days</p>
</td>
<td class="td">
<p>Relay or Set Work</p>
</td>
</tr>
<tr class="tr">
<td class="td">
<?php echo $summery_no_days ?>
</td>
<td class="td">
<?php echo $relay_set_work ?>
</td>
</tr>
</table>
<br>
<br>
<br>
<p style="text-align: right;">
Signature of Register Keeper
<!-- <div align="right"><img src="data:<?php echo $row_emp['image_type'] ?>;base64,<?php echo base64_encode($row_emp['empSign']) ?>" style="width: 200px; height: 61px;" /></div> -->
</p>
<?php
include('pdf_footer.php');
?>