-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathapps.php
102 lines (72 loc) · 2.51 KB
/
apps.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
100
101
102
<?php require_once 'header.php'; ?>
<?php require_once 'apps_list.php'; ?>
<!-- header -->
<header class="site-head">
<div class="jumbotron text-center text-uppercase" style="background-image: url(assets/images/intro/hackathon.jpg);">
<div class="caption">
<div class="container">
<h1 class="title">Aplicativos</h1>
<p class="lead">Confira os Aplicativos que você pode desenvolver para o Firefox OS</p>
</div>
</div>
</div>
</header>
<!-- //header -->
<!-- wam-apps -->
<section class="page-content wam-apps margin-top-bottom-60">
<div class="container">
<div class="page-header"><h1>Aplicativos</h1></div>
<table class="table table-striped">
<thead>
<tr>
<th><a href="#">App</a></th>
<th><a href="#">Descrição</a></th>
<th><a href="#">Prioridade</a></th>
</tr>
</thead>
<tbody>
<?php foreach ($aplicativos as $app) {
if($app['type'] == "p1"){
$priority = '<span class="label label-danger">P1</span>';
} else if($app['type'] == "p2"){
$priority = '<span class="label label-warning">P2</span>';
} else if($app['type'] == "p3"){
$priority = '<span class="label label-success">P3</span>';
}
echo '<tr>
<th scope="row">'.$app['title'].'</th>
<td>'.$app['description'].'</td>
<td>'.$priority.'</td>
</tr>';
} ?>
</tbody>
</table>
<div class="page-header"><h1>Jogos</h1></div>
<table class="table table-striped">
<thead>
<tr>
<th><a href="#">App</a></th>
<th><a href="#">Prioridade</a></th>
<th></th>
</tr>
</thead>
<tbody>
<?php foreach ($games as $app) {
if($app['type'] == "p1"){
$priority = '<span class="label label-danger">P1</span>';
} else if($app['type'] == "p2"){
$priority = '<span class="label label-warning">P2</span>';
} else if($app['type'] == "p3"){
$priority = '<span class="label label-success">P3</span>';
}
echo '<tr>
<th scope="row">'.$app['title'].'</th>
<td>'.$priority.'</td>
</tr>';
} ?>
</tbody>
</table>
</div>
</section>
<!-- //wam-apps -->
<?php require_once 'footer.php'; ?>