-
Notifications
You must be signed in to change notification settings - Fork 0
/
reports.php
58 lines (51 loc) · 1.66 KB
/
reports.php
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
56
57
58
<?php
include './conn.php';
include './admin.php';
$query="SELECT * FROM orders";
$result=mysqli_query($con,$query);
?>
<!DOCTYPE html>
<html oncontextmenu="return false">
<head>
<title></title>
<link rel="icon" href="liquoricon.png">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<!-- Popper JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container fluid">
<div class="row justify-content-center">
<div class="col-md-10">
<h3 class="text-center text-dark mt-2">Generating Reports</h3>
<hr>
</div>
</div>
<div class="row">
<div class="col-lg-12">
Select Invoice:
<form action="generate.php" method="GET">
<select name="InvoiceNo">
<?php while($row=$result->fetch_assoc()){ ?>
<option><?=$row['invoice_no']; ?></option>
<?php } ?>
</select>
<input type="submit" name="generate" class="btn btn-info" value="PDF">
</form>
</div>
</div>
</div>
<script type="text/javascript">
$(document).keydown(function(e){
if(e.which === 123){
return false;
}
});
</script>
</body>
</html>