-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquery.html
More file actions
72 lines (59 loc) · 1.63 KB
/
Copy pathquery.html
File metadata and controls
72 lines (59 loc) · 1.63 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
<!doctype html>
<html>
<head>
<style>
table {
border-collapse: collapse;
width: 100%;
}
th, td {
text-align: left;
padding: 8px;
}
tr:nth-child(even){background-color: #f2f2f2}
th {
background-color: #83D3C9;
color: white;
}
th {text-align: left;}
</style>
<title>Employee</title>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular-animate.js"></script>
</head>
<br><br>
<h1>Today's Appointments:</h1><hr>
<body ng-app='myapp'>
<div ng-controller="userCtrl">
<table border="1" style="padding-left: 20px; padding-right: 20px">
<tr>
<th>Name</th>
<th>Phone</th>
<th>Stylist</th>
<th>Appointment Date</th>
<th>Appointment Type</th>
</tr>
<!-- Display records -->
<tr ng-repeat="appointment in appointment_master">
<td>{{appointment.name}}</td>
<td>{{appointment.phone}}</td>
<td>{{appointment.stylistN}}</td>
<td>{{appointment.aptdate}}</td>
<td>{{appointment.apttype}}</td>
</tr>
</table>
</div>
<script>
var fetch = angular.module('myapp', []);
fetch.controller('userCtrl', ['$scope', '$http', function ($scope, $http) {
$http({
method: 'get',
url: 'getCurrent.php'
}).then(function successCallback(response) {
// Store response data
$scope.appointment_master = response.data;
});
}]);
</script>
</body>
</html>