Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

CSS fix and new php files

  • Loading branch information...
commit cb3cad37194385f2fa84fdb1091d38be6c7a1807 1 parent 87d5391
lludo authored
View
27 back/application_list.php
@@ -2,7 +2,7 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <title>Run This App | Testers</title>
+ <title>Run This App | Applications</title>
<link href="../css/style-0001.css" media="screen" type="text/css" rel="stylesheet">
</head>
<body>
@@ -33,10 +33,29 @@
<a href="application_new.php">Add a new application</a>
<h3 class="underline">&nbsp;</h3>
- <?php
+ <?php
+
+ use Entities\Application,
+ Entities\Developer,
+ Entities\Device,
+ Entities\Invitation,
+ Entities\Tester,
+ Entities\Version;
+
+ require_once __DIR__ . '/../core/index.php';
+
+ $entityManager = initDoctrine();
+
+ // Retrieve all testers
+ date_default_timezone_set('Europe/Berlin');
+ $applications = $entityManager->getRepository('Entities\Application')->findAll();
+
+ echo '<ul>';
+ foreach ($applications AS $application) {
+ echo '<li>Application: ' . $application->getName() . '</li>' . PHP_EOL;
+ }
+ echo '</ul>' . PHP_EOL;
- echo '//TODO' . PHP_EOL;
-
?>
</div>
View
66 back/application_new.php
@@ -0,0 +1,66 @@
+<!doctype html>
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <title>Run This App | Add Application</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"><a href="tester_list.php">Testers</a></li>
+ <li class="applications active">Applications</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>Add New Application</h2>
+ </div>
+ <div>
+
+ <form name="new_app" method="post" enctype="multipart/form-data" action="">
+ <input type="file" name="app_file">
+ <input name="Submit" type="submit" value="Upload application">
+ </form>
+
+ <p>//TODO</p>
+
+ </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>
View
23 back/invitation_new.php
@@ -0,0 +1,23 @@
+<!doctype html>
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <title>Run This App | Send Invitation</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>
+
+ </div>
+
+ <p>//TODO</p>
+
+</body>
+</html>
View
23 back/login.php
@@ -0,0 +1,23 @@
+<!doctype html>
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <title>Run This App | Login</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>
+
+ </div>
+
+ <p>//TODO</p>
+
+</body>
+</html>
View
23 back/register.php
@@ -0,0 +1,23 @@
+<!doctype html>
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <title>Run This App | Register</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>
+
+ </div>
+
+ <p>//TODO</p>
+
+</body>
+</html>
View
2  back/tester_list.php
@@ -65,7 +65,7 @@
} else {
echo '<ul>' . PHP_EOL;
foreach ($tester->getDevices() AS $device) {
- echo '<li>Device: ' . getReadableDeviceName($device->getModel()) . ', UDID: ' . $device->getUdid() . '</li>' . PHP_EOL;
+ echo '<li>Device: ' . $device->getName() . ', Model: ' . getReadableDeviceName($device->getModel()) . ', UDID: ' . $device->getUdid() . '</li>' . PHP_EOL;
}
echo '</ul>' . PHP_EOL;
}
View
23 back/tester_new.php
@@ -0,0 +1,23 @@
+<!doctype html>
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <title>Run This App | Add Tester</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>
+
+ </div>
+
+ <p>//TODO</p>
+
+</body>
+</html>
View
10 core/Entities/Application.php
@@ -52,12 +52,20 @@ class Application {
* @ManyToOne(targetEntity="Developer", inversedBy="applications")
*/
private $developer;
-
+
public function __construct() {
$this->testers = new ArrayCollection();
$this->versions = new ArrayCollection();
}
+ public function getName() {
+ return $this->name;
+ }
+
+ public function setName($name) {
+ $this->name = $name;
+ }
+
public function addTester($tester){
$this->testers[] = $tester;
}
View
27 css/style-0001.css
@@ -198,7 +198,7 @@ hr {
display: inline;
float: right;
font-size: 11px;
- margin: 0.6em 18px 0;
+ margin: 6.8em 18px 0;
}
#header ul.login li {
@@ -223,6 +223,7 @@ hr {
margin: 0 -2px;
text-indent: -9999px;
width: 598px;
+ height: 78px;
}
#header ul.menu {
@@ -242,35 +243,43 @@ hr {
text-decoration: none;
}
+#header ul.menu li.invitations {
+ height: 50px;
+ padding-top: 15px;
+ position: absolute;
+ right: 268px;
+ top: 13px;
+}
+
#header ul.menu li.invitations.active {
background: url("../img/header_active_1.png") no-repeat scroll 0 0 transparent;
color: #cccccc;
+}
+
+#header ul.menu li.testers {
height: 50px;
padding-top: 15px;
position: absolute;
- right: 268px;
+ right: 138px;
top: 13px;
}
#header ul.menu li.testers.active {
background: url("../img/header_active_2.png") no-repeat scroll 0 0 transparent;
color: #cccccc;
+}
+
+#header ul.menu li.applications {
height: 50px;
padding-top: 15px;
position: absolute;
- right: 138px;
+ right: 10px;
top: 13px;
}
#header ul.menu li.applications.active {
background: url("../img/header_active_3.png") no-repeat scroll 0 0 transparent;
color: #cccccc;
- height: 50px;
- padding-top: 15px;
- position: relative;
- right: 2px;
- top: -15px;
- width: 133px;
}
#header ul.menu li.active a {
View
4 index.php
@@ -29,9 +29,9 @@
<h2>Run This App - First tests</h2>
</div>
<div>
- <p>Click this link to subscribe to the best test program of iOS applications (User 1): <br><a href="enroll.php?mail=test@test.com&app=1234&key=5678">enroll.php?user=test@test.com&app=1234&key=5678</a></p>
+ <p>Click this link on your device to subscribe to the best test program of iOS applications (User 1): <br><a href="enroll.php?mail=test@test.com&app=1234&key=5678">enroll.php?user=test@test.com&app=1234&key=5678</a></p>
<h3 class="underline">&nbsp;</h3>
- <p>Click this link to subscribe to the best test program of iOS applications (User 2): <br><a href="enroll.php?mail=test2@test.com&app=1234&key=5678">enroll.php?user=test2@test.com&app=1234&key=5678</a></p>
+ <p>Click this link on your device to subscribe to the best test program of iOS applications (User 2): <br><a href="enroll.php?mail=test2@test.com&app=1234&key=5678">enroll.php?user=test2@test.com&app=1234&key=5678</a></p>
</div>
</div>
Please sign in to comment.
Something went wrong with that request. Please try again.