ESH/client_location_pdf.php
2024-10-23 18:28:06 +05:30

62 lines
1.7 KiB
PHP

<?php include('pdf_header.php');
include('includes/config/config.php');
// include('pop_up_top.php');
?>
<table width="100%">
<tr>
<div style="font-size:12px">
<td width="25%" align="left"> Run Date :
<?php echo date("d-M-Y"); ?>
</td>
<td width="50%" align="center" style="font-size:30px"><strong>CLIENT LOCATION</strong></td>
<td width="25%" align="left"> User :
<?php echo $username ?>
</td>
</tr>
</table>
<table border="1" style="text-align: center;">
<?php
$sql = "SELECT * from client_location";
//echo $sql;
// $sql = base64_decode($filterkey);
$result = mysqli_query($conn, $sql);
//echo $result;
?>
<tr bgcolor='#eeeeee'>
<td align="left" width="2%">SR</td>
<td>CLIENT NAME</td>
<td>CLIENT LOCATION</td>
<td>CITY</td>
<td>STATE</td>
<td>CONTACT</td>
<td>EMAIL</td>
</tr>
<?php
$count = 1;
while ($row1 = mysqli_fetch_assoc($result)) {
?>
<tr>
<td><?php echo $count ?></td>
<td><?php echo getFieldFromTable('client_name', 'client_master', 'id', $row1['client_id']) ?></td>
<td><?php echo $row1['client_location'] ?></td>
<td><?php echo getTableFieldValue('citys', 'city', 'city_id', $row1['client_city']) ?></td>
<td><?php echo getTableFieldValue('state_form_master', 'state_code', 'id', $row1['client_state']) ?></td>
<td><?php echo $row1['client_contact'] ?></td>
<td><?php echo $row1['client_email'] ?></td>
</tr>
<?php
$count++;
}
?>
</table>
<?php
include('pdf_footer.php');
?>