-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
44 lines (40 loc) · 1.08 KB
/
index.php
File metadata and controls
44 lines (40 loc) · 1.08 KB
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
<?php
include_once '-includes/init.php';
$i = 0;
?>
<!DOCTYPE html>
<html>
<?php Template::get("Head"); ?>
<body>
<?php Template::get("Navigation"); ?>
<div class="container">
<div class="jumbotron">
<h1>My Projects</h1>
</div>
<div class="row">
<table class="table table-striped table-hover ">
<thead>
<tr>
<th>Project Name</th>
<th>Link</th>
</tr>
</thead>
<tbody>
<?php foreach(glob("*", GLOB_ONLYDIR) as $dir): ?>
<?php if(!(strpos($dir, '-') === 0)): ?>
<tr class="<?php echo ++$i % 2 === 0 ? "active" : ""; ?>">
<td><?= ucwords(str_replace("_", " ", $dir)) ?></td>
<td><a class="list-unstyled" href="<?= $dir ?>/">Open</a></td>
</tr>
<?php endif; ?>
<?php endforeach; ?>
</tbody>
</table>
</div>
<?php Template::get("Footer"); ?>
</div> <!-- End of container -->
<!-- JS imports -->
<script src="-vendor/assets/js/jquery.js"></script>
<script src="-vendor/assets/js/bootstrap.js"></script>
</body>
</htmL>