-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhome.php
More file actions
151 lines (128 loc) · 4.43 KB
/
home.php
File metadata and controls
151 lines (128 loc) · 4.43 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
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<?php
session_start();
include_once 'connect.php';
if (!isset($_SESSION['user'])) {
header("Location: index.php");
}
$user = $_SESSION['user'];
$sql = "select * from mcommission where username = '$user'";
$stmt = $pdo->query($sql);
$row = $stmt->fetchObject();
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Welcome - <?php echo $row->username; ?></title>
</head>
<body style="background: rgba(125, 123, 125, 0.85);">
<div style="padding-left: 100px; alignment: right; width: 84%">
<nav style="alignment: right">
<ul>
<li>
<div >
<?php echo $row->username; ?> <a href="logout.php?logout">Sign Out</a>
</div>
</li>
</ul>
</nav>
</div>
<div align="center" style="margin-top: 40">
Start Date : <input name="startDate" id="startDate" type="text" placeholder="Start Date"/>
End Date : <input name="endDate" id="endDate" type="text" placeholder="End Date">
<input type="submit" value="Search" onclick="doSearch()">
</div>
<div style="padding-top: 20px; padding-left: 100px; width: 80%">
<table id="merchantCommission" class="display" cellspacing="0" width="100%">
<thead>
<tr>
<th>NO.</th>
<th>Pay Time</th>
<th>Bin Issuer</th>
<th>Payment Type</th>
<th>Payment Status</th>
<th>Amount</th>
</tr>
</thead>
<tfoot>
<tr>
<th>NO.</th>
<th>Pay Time</th>
<th>Bin Issuer</th>
<th>Payment Type</th>
<th>Payment Status</th>
<th>Amount</th>
</tr>
</tfoot>
</table>
</div>
<script src="js/jquery-1.12.3.js" type="text/javascript"></script>
<script src="js/jquery.dataTables.min.js" type="text/javascript"></script>
<script src="js/dataTables.buttons.min.js" type="text/javascript"></script>
<script src="js/buttons.flash.min.js" type="text/javascript"></script>
<script src="js/jszip.min.js" type="text/javascript"></script>
<script src="js/buttons.html5.min.js" type="text/javascript"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<link rel="stylesheet" href="css/Style.css" type="text/css"/>
<link href="css/jquery.dataTables.min.css" rel="stylesheet" type="text/css"/>
<link href="css/test.css" rel="stylesheet" type="text/css"/>
<link href="css/buttons.dataTables.min.css" rel="stylesheet" type="text/css"/>
<script>
$(function () {
$("#startDate, #endDate").datepicker();
});
function doSearch() {
var table = $('#merchantCommission').DataTable({
"ajax": {
url: "jsonMerchantCommission.php", // json datasource
type: "post", // method , by default get
error: function () { // error handling
alert("Error Happen");
}
},
dom: 'Bfrtip',
buttons: [
{
extend: 'excelHtml5',
title: 'Science Rocks SMS Report ' + Date()
},
{
extend: 'csvHtml5',
title: 'Science Rocks SMS Report ' + Date()
},
{
extend: 'pdfFlash',
filename: 'Science Rocks SMS Report ' + Date()
}
]
});
}
$(document).ready(function () {
var table = $('#merchantCommission').DataTable({
"ajax": {
url: "jsonMerchantCommission.php", // json datasource
type: "post", // method , by default get
error: function () { // error handling
alert("Error Happen");
}
},
dom: 'Bfrtip',
buttons: [
{
extend: 'excelHtml5',
title: 'Science Rocks SMS Report ' + Date()
},
{
extend: 'csvHtml5',
title: 'Science Rocks SMS Report ' + Date()
},
{
extend: 'pdfFlash',
filename: 'Science Rocks SMS Report ' + Date()
}
]
});
});
</script>
</body>
</html>