-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsupplier_report.php
More file actions
55 lines (49 loc) · 1.38 KB
/
supplier_report.php
File metadata and controls
55 lines (49 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
ob_start();
$cur_dte=date("Y-m-d");
include("includes/conn.php");
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<script type="text/javascript" src="number_to_words/numberToWords.min.js"></script>
<body>
<h2 align="center">Supplier Information</h2>
<br>
<br>
<table border="1" style=" border: 1px solid black;border-collapse: collapse;" width="100%">
<thead>
<tr>
<th>Registration No</th>
<th>Supplier Name</th>
<th>Address</th>
<th>Telephone No</th>
<th>Fax No</th>
<th>Email</th>
</tr>
</thead>
<tbody>
<?php
$sql5="SELECT * FROM supplier_master WHERE status=0 ORDER BY supplier_name ASC";
$result5 = mysqli_query($link,$sql5);
while($row5=mysqli_fetch_array($result5)){
?>
<tr>
<td><?php echo $row5['registration_no'];?></td>
<td><?php echo $row5['supplier_name'];?></td>
<td><?php echo $row5['address'];?></td>
<td><?php echo $row5['tp_no'];?></td>
<td><?php echo $row5['fax_no'];?></td>
<td><?php echo $row5['email_address'];?></td>
<?php
}
?>
</tbody>
</table>
</body>
</html>
<?php
header("Content-type: application/vnd.ms-word");
header("Content-Disposition: attachment;Filename=supplier_infomation.doc");
?>