58 lines
1.4 KiB
PHP
58 lines
1.4 KiB
PHP
<?php
|
|
// include('pdf_header.php');
|
|
include ('includes/config/config.php');
|
|
include ('includes/functions.php');
|
|
header("Content-type: application/x-msdownload");
|
|
header('Content-disposition: attachment; filename=excel_notice_list.xls');
|
|
error_reporting ( E_ERROR | E_PARSE );
|
|
?>
|
|
<body>
|
|
<table border="1" width="100%">
|
|
<tr>
|
|
<td colspan="2" align="left"> Run Date : <?php echo date("d-M-Y"); ?></td>
|
|
<td colspan="4" align="left"><b> Notice </b></td>
|
|
<td colspan="3" align="left"> User : <?php echo $username ?></td>
|
|
</tr>
|
|
</table>
|
|
<table border="1" width="100%">
|
|
<?php
|
|
|
|
$sql=base64_decode($filterkey);
|
|
|
|
$result = mysqli_query($conn,$sql);
|
|
?>
|
|
<tr bgcolor="#eeeeee">
|
|
<th align="left" width="10%">sr</th>
|
|
<th>Trigger Date</th>
|
|
<th>Expiry Date</th>
|
|
<th>Issued By</th>
|
|
<th>Issued To</th>
|
|
<th width="50%">Notice Details</th>
|
|
<th width="50%">Status</th>
|
|
<th width="50%">Remark</th>
|
|
|
|
</tr>
|
|
|
|
<?php
|
|
$count=1;
|
|
while ($row1= mysqli_fetch_assoc($result)){
|
|
extract($row1);
|
|
?>
|
|
|
|
<tr>
|
|
<td><?php echo $count?></td>
|
|
<td><?php echo date_format(date_create($row1['trigger_date']),"d-M-Y ")?></td>
|
|
<td><?php echo date_format(date_create($row1['expiry_date']),"d-M-Y ")?></td>
|
|
<td><?php echo $row1['issued_by']?></td>
|
|
<td><?php echo $row1['issued_to']?></td>
|
|
<td><?php echo $row1['notice_details']?></td>
|
|
<td><?php echo $row1['status']?></td>
|
|
<td><?php echo $row1['remark']?></td>
|
|
|
|
</tr>
|
|
<?php
|
|
$count++;
|
|
}
|
|
?>
|
|
</table>
|
|
</body>
|