/
tester_list.php
executable file
·105 lines (88 loc) · 3.07 KB
/
tester_list.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
103
104
105
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Run This App | Testers</title>
<link href="../css/style-0001.css" media="screen" type="text/css" rel="stylesheet">
</head>
<body>
<div id="header">
<h2><a href="../">Run This App</a></h2>
<ul class="menu">
<li class="invitations"><a href="invitation_list.php">Invitations</a></li>
<li class="testers active">Testers</li>
<li class="applications"><a href="application_list.php">Applications</a></li>
</ul>
<ul class="login">
<li>Hi, Guest</li>
<li><a href="register.php">Register</a></li>
<li><a href="login.php">Log In</a></li>
</ul>
</div>
<div id="content" class="box">
<div class="boxtop"></div>
<div class="column first">
<div class="boxheader">
<h2>Manage Testers</h2>
</div>
<div>
<a href="tester_new.php">Add a new tester</a>
<h3 class="underline"> </h3>
<?php
use Entities\Application,
Entities\Developer,
Entities\Device,
Entities\Invitation,
Entities\Tester,
Entities\Version;
require_once __DIR__ . '/../core/index.php';
require_once __DIR__ . '/../core/functions.php';
$entityManager = initDoctrine();
// Retrieve all testers
date_default_timezone_set('Europe/Berlin');
$testers = $entityManager->getRepository('Entities\Tester')->findAll();
echo '<ul>';
foreach ($testers AS $tester) {
echo '<li>Tester: ' . $tester->getName() . '</br >' . PHP_EOL;
$devices = $tester->getDevices();
// If the tester have no devices
if ($devices->isEmpty()) {
echo 'No devices registered yet.' . PHP_EOL;
// Display all devices from the tester
} else {
echo '<ul>' . PHP_EOL;
foreach ($tester->getDevices() AS $device) {
echo '<li>Device: ' . $device->getName() . ', Model: ' . getReadableDeviceName($device->getModel()) . ', UDID: ' . $device->getUdid() . '</li>' . PHP_EOL;
}
echo '</ul>' . PHP_EOL;
}
echo '<h3 class="underline"> </h3>' . PHP_EOL;
echo '</li>' . PHP_EOL;
}
echo '</ul>' . PHP_EOL;
?>
</div>
</div>
<div class="column last">
<div class="boxheader">
<h2>Deployment steps</h2>
</div>
<div class="function">
<h6>Send Invitations</h6>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
</div>
<hr>
<div class="function">
<h6>Tester get registered</h6>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
</div>
<hr>
<div class="function">
<h6>They install your app Over-The-Air</h6>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
</div>
</div>
<div class="boxbottom"></div>
</div>
</body>
</html>