-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgroups.php
More file actions
59 lines (50 loc) · 1.72 KB
/
groups.php
File metadata and controls
59 lines (50 loc) · 1.72 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
session_start();
require 'php/get_groups.php';
$username = $_SESSION['username'];
$groups = $_SESSION['groups'];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/general.css" rel="stylesheet">
<link href="css/groups.css" rel="stylesheet">
<title>Silly Manager</title>
</head>
<body>
<div id="container">
<h1>Silly Manager <small>logged in as <i><?php echo $username; ?></i></small></h1>
<div id="groups">
<?php
foreach ($groups as $group) {
echo '<button class="btn btn-primary">'.$group['groupname'].'</button>';
echo '<br>';
}
?>
<button id="btn-showform" class="btn btn-default"> + </button>
</div>
<div class="forms hidden-start">
<form method="post" id="form-group" class="form-horizontal text-center">
<div class="form-group">
<input type="text" class="form-control" name="groupname" placeholder="Group name">
</div>
<div class="form-group">
<button type="button" id="btn-hideform" class="btn btn-md btn-primary">Back</button>
<button id="btn-creategroup" class="btn btn-md btn-success">Create</button>
</div>
<div class="form-group">
<div class="alert alert-danger hidden-start"></div>
<div class="alert alert-success hidden-start"></div>
</div>
</form>
</form>
</div>
<script src="js/jquery.min.js"></script>
<script src="js/groups.js"></script>
</body>
</html>