-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
175 lines (174 loc) · 8.25 KB
/
index.php
File metadata and controls
175 lines (174 loc) · 8.25 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
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<?php session_start() ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/jquery-select/css/jquery.select.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/css/materialize.min.css">
<link href="css/default.css" rel="stylesheet">
<link rel="icon" href="img/logo.png" type="image/png" />
<?php $_SESSION["loggedIn"] = true; ?>
</head>
<body>
<!-- Header -->
<div class="navbar-fixed">
<nav>
<div class="nav-wrapper black">
<a href="#" class="left brand-logo white-text">WBS</a>
<ul class="right buttoncenter">
<form method="post" action="index.php">
<?php
if(isset($_SESSION["loggedIn"])) {
?>
<li>
<a id="btnLogoutModal" class="waves-effect waves-light btn modal-trigger" href="#LogoutModal">logout</a>
</li>
<?php
}else {
?>
<li>
<a id="btnLoginModal" class="waves-effect waves-light btn modal-trigger" href="#LoginModal">Login</a>
</li>
<?php
}
?>
</form>
</ul>
</div>
</nav>
</div>
<!--Login Modal-->
<div id="LoginModal" class="modal">
<div class="modal-content">
<form method="post" action="functions/login.php">
<p class="text">Username</p><input id="username" name="username" class="text" type="text" />
<p class="text">Password</p><input id="password" name="password" class="text" type="password" />
<input type="submit" id="btnLogin" class="waves-effect waves-light btn" value="log in">
</form>
</div>
</div>
<!--Logout Modal-->
<div id="LogoutModal" class="modal">
<div class="modal-content">
<form method="post" action="functions/login.php">
<h4>Are you sure that you want to logout.</h4>
<input type="submit" id="btnLogin" class="waves-effect waves-light btn" value="log out">
</form>
</div>
</div>
<!--add task Modal-->
<div id="TaskModal" class="modal">
<div class="modal-content">
<form method="post" action="functions/newTask.php">
<input class="form-control" type="text">
<input class="form-control" type="number">
<div class="skull_select" skull="1509729793158">
<select class="fsSelect">
<option>j@k3_7h3_h@ck3rm@nn</option>
<option>XxD3m0n_m@nn69xX</option>
<option>kevinoomen</option>
</select>
<div class="skull_select_mask"></div>
</div>
<div class="skull_select" skull="1509729793159">
<select class="fsSelect">
<option value="must">must</option>
<option value="could">could</option>
<option value="should">should</option>
<option value="won't">won't</option>
</select>
<div class="skull_select_mask"></div>
</div>
<input class="form-control" type="text">
<input class="form-control js-task-do" type="text">
<textarea class="form-control"></textarea>
<textarea class="form-control"></textarea>
</form>
</div>
</div>
<!-- Projects Table -->
<div class="container-fluid">
<div class="row buttonrow">
<div id="controlPanel">
<form>
<h4 id="lblProjectTitle">Project name here...</h4>
<h4 id="lblProjects">Projects</h4>
<hr>
<input id="btnNewProject" class="btn btn-success" type="button" value="New Project"/>
<input id="btnShowProjects" class="btn btn-success left" type="button" value="Show Projects"/>
<?php
if(isset($_SESSION["loggedIn"])) {
?>
<a id="btnAddTask" class="waves-effect waves-light btn modal-trigger right" href="#TaskModal">Add task</a>
<?php
}
?>
</form>
</div>
</div>
<div class="row rowmargin">
<div class="table-responsive">
<table id="projects" class="table table-striped">
<thead class="tablehead">
<tr>
<th>ID</th>
<th>Name</th>
<th>Date added</th>
<th>View</th>
<th>Remove</th>
</tr>
</thead>
<tbody >
</tbody>
</table>
</div>
</div>
<div class="row rowmargin">
<div class="table-responsive">
<table id="tasks" class="table table-striped">
<thead class="tablehead">
<tr>
<th>ID</th>
<th>Task</th>
<th>Predecessor</th>
<th>Who</th>
<th>MoSCoW</th>
<th>Plan</th>
<th>Do</th>
<th>Check</th>
<th>Act</th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
</tbody>
<tfoot class="black">
<tr class="bottomrow">
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td id="timePlanned"></td>
<td id="timeDone"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tfoot>
</table>
</div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/js/materialize.min.js"></script>
<script src="css/jquery-select/js/jquery.select.js"></script>
<script src="js/default.js"></script>
<!-- Timer plugin -->
<script src="js/timer.jquery.min.js"></script>
</body>
</html>