-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
89 lines (89 loc) · 2.93 KB
/
index.html
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
<!DOCTYPE html>
<html ng-app="AdvertisementMs">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>My AngularJS App</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="components/bootstrap-3.3.5-dist/css/bootstrap.min.css">
<link rel="stylesheet" href="app.css">
</head>
<body style="background-image: url('components/bg-texture.png');">
<header class="container header">
<h1>Advertisement Management System</h1>
</header>
<div class="container" style="margin-top: 20px">
<div class="row bg-title">
<h4 style="padding-left: 10px">Data</h4>
</div>
<div class="row bg-body" ng-controller="advertiserController">
<div class="col-md-3">
<ul class="nav nav-pills nav-stacked" ng-repeat="advertiser in allAdvertisers">
<li ng-class="{ active: isSet(advertiser.id) }">
<a href ng-click="setTab(advertiser.id)">{{advertiser.name}} <i ng-show="isRun(advertiser.id)">(now running)</i></a>
</li>
</ul>
</div>
<div class="col-md-9">
<div ng-repeat="advertiser in allAdvertisers" ng-show="isSet(advertiser.id)">
<table class="table table-hover">
<thead>
<th>
Start Time
</th>
<th>
Duration
</th>
<th>
Base Amount
</th>
<th>
Clicks
</th>
<th>
Revenue
</th>
</thead>
<tr ng-show="isRun(advertiser.id)">
<td>
{{currentAds[advertiser.id].startTime | date : 'medium' : '-4'}}
</td>
<td>
{{currentAds[advertiser.id].duration}}
</td>
<td>
{{currentAds[advertiser.id].base}}
</td>
<td>
{{currentAds[advertiser.id].click}}
</td>
<td>
{{currentAds[advertiser.id].click * currentAds[advertiser.id].base}}
</td>
</tr>
<tr ng-repeat="history in advertiser.histories">
<td>
{{history.startTime | date : 'medium' : '-4'}}
</td>
<td>
{{history.duration}}
</td>
<td>
{{history.base}}
</td>
<td>
{{history.click}}
</td>
<td>
{{history.click * history.base}}
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
<script src="components/angular.min.js"></script>
<script src="app.js"></script>
</body>
</html>