-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbwdates-reportsreceipt-details.php
99 lines (90 loc) · 3.01 KB
/
bwdates-reportsreceipt-details.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
if (strlen($_SESSION['ttmsaid']==0)) {
header('location:logout.php');
} else{
?>
<!DOCTYPE HTML>
<html>
<head>
<title>Toll Tax Management System || Between dates reports</title>
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); }) </script>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel='stylesheet' type='text/css' />
<!-- Custom CSS -->
<link href="css/style.css" rel='stylesheet' type='text/css' />
<link href="css/font-awesome.css" rel="stylesheet">
<!-- jQuery -->
<script src="js/jquery.min.js"></script>
<!----webfonts--->
<link href='http://fonts.googleapis.com/css?family=Roboto:400,100,300,500,700,900' rel='stylesheet' type='text/css'>
<!---//webfonts--->
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
</head>
<body>
<div id="wrapper">
<?php include_once('includes/sidebar.php');?>
<?php include_once('includes/header.php');?>
<div id="page-wrapper">
<div class="col-md-12 graphs">
<div class="xs">
<h3>Between dates receipts reports</h3>
<div class="bs-example4" data-example-id="simple-responsive-table">
<div class="table-responsive">
<?php
$fdate=$_POST['fromdate'];
$tdate=$_POST['todate'];
?>
<h5 align-item="center" style="color:blue">Receipts report from <?php echo $fdate?> to <?php echo $tdate?></h5>
<table class="table table-bordered">
<thead>
<tr>
<th>S.NO</th>
<th>Receipt ID</th>
<th>Owner Name</th>
<th>Date of Creation</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php
$ret=mysqli_query($con,"select *from tblreceipt where date(CreationDate) between '$fdate' and '$tdate'");
$cnt=1;
while ($row=mysqli_fetch_array($ret)) {
?>
<tr>
<th scope="row"><?php echo $cnt;?></th>
<td><?php echo $row['Receiptid'];?></td>
<td><?php echo $row['OwnerName'];?></td>
<td><?php echo $row['CreationDate'];?></td>
<td><a href="view-receipt.php?viewid=<?php echo $row['ID'];?>">View </a>
<a href="delete-receipt.php?id=<?php echo $row['ID'];?>">/Delete</a>
</td>
</td>
</tr>
<?php
$cnt=$cnt+1;
}?>
</tr>
</tbody>
</table>
</div><!-- /.table-responsive -->
</div>
</div>
<?php include_once('includes/footer.php');?>
</div>
</div>
<!-- /#page-wrapper -->
</div>
<!-- /#wrapper -->
<!-- Nav CSS -->
<link href="css/custom.css" rel="stylesheet">
<!-- Metis Menu Plugin JavaScript -->
<script src="js/metisMenu.min.js"></script>
<script src="js/custom.js"></script>
</body>
</html>
<?php } ?>