64 lines
1.3 KiB
PHP
64 lines
1.3 KiB
PHP
<?php
|
|
|
|
header("Content-type:application/octet-stream");
|
|
|
|
|
|
|
|
header("Content-type: application/x-msdownload");
|
|
|
|
header("Content-Disposition: attachment; filename=excel_emp_list.xls");
|
|
|
|
header("Pragma: no-cache");
|
|
|
|
header("Expires: 0");
|
|
|
|
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
|
|
|
|
?>
|
|
|
|
<?php
|
|
|
|
include('includes/config/config.php');
|
|
|
|
include('includes/functions.php')
|
|
|
|
//include('pop_up_top.php');
|
|
|
|
?>
|
|
|
|
<table border="1" width="100%">
|
|
<?php
|
|
$sql=base64_decode($filterkey);
|
|
|
|
$result = mysqli_query($conn,$sql);
|
|
|
|
// echo $result;
|
|
?><tr>
|
|
|
|
<th>sr</th>
|
|
|
|
<th>Item Name</th>
|
|
<th>Net Value</th>
|
|
<th>Vendor Name</th>
|
|
<th>Vendor Code</th>
|
|
|
|
<th>Unit</th>
|
|
</tr><?php
|
|
$count=0;
|
|
error_reporting(E_ERROR | E_PARSE);
|
|
while ($rowOfEmployee = mysqli_fetch_array($result)) {
|
|
$count=$count+1;
|
|
?><tr>
|
|
<td><?php echo $count ?></td>
|
|
<td style="width: 10px;"><?php echo getItemWithFormName($rowOfEmployee['item_id'] )?></td>
|
|
<td><?php echo $rowOfEmployee['net_value'] ?></td>
|
|
<td><?php echo $rowOfEmployee['employer_contractor_name'] ?></td>
|
|
<td><?php echo $rowOfEmployee['employer_contractor_code'] ?></td>
|
|
|
|
<td><?php echo $rowOfEmployee['qty'].' NOS' ?></td>
|
|
|
|
</tr><?php
|
|
|
|
}
|
|
?>
|
|
</table>
|