-
Notifications
You must be signed in to change notification settings - Fork 0
/
classes.php
66 lines (59 loc) · 2.41 KB
/
classes.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
<?php
require 'resources/config.php';
require 'resources/functions.php';
require 'resources/rpiCAS.php';
// Execute backend actions that relate to classes
require 'resources/classfunctions.php';
require 'partials/head.partial.php';
require 'partials/navigation.partial.php';
require 'partials/pageheader.partial.php';
?>
<div class="container mtb">
<?php populateAlertRow($alertType, $alertMessage); ?>
<div class="row">
<div class="col-md-4 col-sm-6">
<form method="post">
<div class="btn-group" role="group">
<button type="submit" class="btn btn-default<?php echo ($sort == "`title`" ? " active" : ""); ?>" name="sort" value="`title`">Sort by name</button>
<button type="submit" class="btn btn-default<?php echo ($sort == "`prefix`" ? " active" : ""); ?>" name="sort" value="`prefix`">Sort by prefix</button>
<button type="submit" class="btn btn-default<?php echo ($sort == "`creation_date` DESC" ? " active" : ""); ?>" name="sort" value="`creation_date` DESC">Sort by date</button>
</div>
</form>
</div>
<div class="col-md-4 col-sm-4">
<div class="form-group form-group-sm">
<form method="post">
<input name="srch" value="<?php echo $search; ?>" class="form-control" id="search"
placeholder="Search Classes" />
</form>
</div>
</div>
<div class="col-md-4 col-sm-2">
<div class="btn-group pull-right">
<a class='btn btn-primary' href='addclass.php'>
<span class="fa fa-plus"></span>
Add a class
</a>
</div>
</div>
<br>
</div>
<div class="row">
<div class="col-md-9 col-sm-10">
<?php
populateData($conn, isset($_GET["prefix"]) ? $_GET["prefix"] : "", $search, $sort,
isset($_GET["page"]) ? $_GET["page"] : "", $isAdmin);
?>
</div>
</div>
<div class="col-md-3 col-sm-2" id="scroll">
<ul class="nav nav-pills nav-stacked">
<?php populateSidebar(isset($_GET["prefix"]) ? $_GET["prefix"] : ""); ?>
</ul>
</div>
</div>
</div>
<?php require 'partials/footer.partial.php'; ?>
<script src="assets/js/listings.js"></script>
</body>
</html>