-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.php
89 lines (83 loc) · 3.45 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?php include "display/head.php"; ?>
<!DOCTYPE html>
<html>
<head>
<title>RoseLap Web</title>
</head>
<body>
<?php include 'display/nav.php' ?>
<div class="container">
<br>
<br>
<br>
<img src="display/logo.png" width="1100">
<br>
<br>
<br>
<br>
<?php
if ($loggedin) {
echo '
<ul class="nav nav-tabs">
<li class="nav-item">
<a class="nav-link active" data-toggle="tab" href="#home">Batch History</a>
</li>
<li class="nav-item">
<a class="nav-link" data-toggle="tab" href="#menu1">Batch Configurations</a>
</li>
<li class="nav-item">
<a class="nav-link" data-toggle="tab" href="#menu2">Vehicles</a>
</li>
<li class="nav-item">
<a class="nav-link" data-toggle="tab" href="#menu3">Tracks</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane container active" id="home">';
echo "<br>Here is where you'll find the history of batches run by everyone. To run a batch, click on its configuration and hit 'Save and Run'<br><br>";
include "display/batches.php";
echo '</div>
<div class="tab-pane container fade" id="menu1">';
echo "<br>These are all the batch configuration files put together by your team. Use <a target=\"_blank\" href=\"https://codebeautify.org/yaml-validator\">this syntax checker</a> to make sure your configuration will run.<br><br>";
include "display/configurations.php";
echo '</div>
<div class="tab-pane container fade" id="menu2">';
echo "<br>These are all the vehicle configuration files put together by your team. Use <a target=\"_blank\" href=\"https://codebeautify.org/yaml-validator\">this syntax checker</a> to make sure your configuration will run.<br><br>";
include "display/vehicles.php";
echo '</div>
<div class="tab-pane container fade" id="menu3">';
echo "<br>These are all the tracks you can reference in your configuration files. Make sure the path is an absolute path somewhere on the COMPENSATOR.<br><br>";
include "display/tracks.php";
echo '</div>
</div>
';
// echo "<h3>Batch History</h3>";
// echo "Here is where you'll find the history of batches run by everyone. To run a batch, click on its configuration and hit 'Save and Run'<br><br>";
// include "display/batches.php";
// echo "<br><h3>Batch Configurations</h3>";
// echo "These are all the batch configuration files put together by your team. Use <a target=\"_blank\" href=\"https://codebeautify.org/yaml-validator\">this syntax checker</a> to make sure your configuration will run.<br><br>";
// include "display/configurations.php";
// echo "<br><h3>Vehicles</h3>";
// echo "These are all the vehicle configuration files put together by your team. Use <a target=\"_blank\" href=\"https://codebeautify.org/yaml-validator\">this syntax checker</a> to make sure your configuration will run.<br><br>";
// include "display/vehicles.php";
// echo "<br><h3>Tracks</h3>";
// echo "These are all the tracks you can reference in your configuration files. Make sure the path is an absolute path somewhere on the COMPENSATOR.<br><br>";
// include "display/tracks.php";
} else {
echo "Please make sure to log in";
}
?>
<br>
<br>
<br>
<?php include "display/foot.php"; ?>
<style type="text/css">
/* .table-container {
display: block;
max-height: 400px;
overflow-y: auto;
}*/
.mono-box {
font-family: monospace;
}
</style>