-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
69 lines (62 loc) · 2.25 KB
/
index.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
<?php
$kw = (int) date('W');
?>
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de" ng-app="jobApp">
<head>
<title>18 Uhr Dienst</title>
<link href="http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700,400italic,700italic" rel="stylesheet" type="text/css">
<link href="css/normalize.css" media="screen" rel="stylesheet" type="text/css">
<link href="css/screen.css" media="screen" rel="stylesheet" type="text/css">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
</head>
<body ng-controller="jobCtrl" ng-init="init()">
<div class="container">
<h1>18 Uhr Dienst: Watson</h1>
<div class="loading" ng-if="!allWeeks.length">
Daten werden geladen...
</div>
<table ng-if="allWeeks.length">
<tbody>
<tr>
<td colspan="3">
<strong>Für die Kalenderwoche <?php echo $kw; ?>:</strong>
</td>
</tr>
<tr ng-repeat="value in week" ng-class="(dayInWeek == ($index+1) ? 'current' : '')">
<td>
{{ value.day }}
</td>
<td>
{{ value.frontend }}
</td>
<td>
{{ value.backend }}
</td>
</tr>
<tr>
<td colspan="3">
<strong>Für die Kalenderwoche <?php echo $kw+1; ?>:</strong>
</td>
</tr>
<tr ng-repeat="value in nextWeek">
<td>
{{ value.day }}
</td>
<td>
{{ value.frontend }}
</td>
<td>
{{ value.backend }}
</td>
</tr>
</tbody>
</table>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js"></script>
<script src="js/jobAppController.js"></script>
<script>
var weekDay = <?php echo $kw; ?>;
</script>
</body>
</html>