-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaccountSupervisor.php
90 lines (67 loc) · 2.16 KB
/
accountSupervisor.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
90
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" media="(max-width: 949px)" href="css/lowRez.css">
<link rel="stylesheet" media="(min-width:950px)" href="css/styleSheet.css">
<link rel="icon" href="images/logoMic.png">
<title>KimO</title>
</head>
<body>
<main>
<input type="checkbox" id="newsButton">
<label for="newsButton"> </label>
<?php
//show differnet navbar depending on who is connected
require 'phpFunctions/isLogged.php';
$result = isLogged();
if($result > 0)
{
if($result == 1)
{
require 'phpFunctions/loggedSupervisorNavbar.php';
}
else
{
require 'phpFunctions/loggedChildNavbar.php';
}
}
else
{
require 'phpFunctions/notLoggedNavbar.php';
}
?>
<aside>
<h2>News </h2>
<h3><b>KimO just reached international level</b><br>
<b>New update:added ability to see closest relative to your child</b><br>
<b>Child rescued by firefighters using KimO</b><br>
<b>New tracking app released today</b><br>
<b>Register now and you get a month for free</b><br>
<b>Parents around the globe satisfied with KimO</b><br>
<b>New update:better performance in map section</b><br>
<b>This is our new app KimO hope you enjoy it</b><br></h3>
</aside>
<section>
<br><br>
<script src="javascriptFunctions/newChild.js"></script>
<script src="javascriptFunctions/accountManagement.js"></script>
<!-- form to add child -->
<form id="addNewChild">
<input type="text" value="" id="childUsername" placeholder="User Name" onkeyup="ifValid()" required ><br>
<br><br>
<button type="button" value="" id="addChild" onclick="newChildFunction()" disabled>Add Child</button>
</form>
<div class="rules">
<p id = "validLong">Username should be at least 6 characters long and at most 20</p>
<p id = "notChild">username should not contain '_child'</p>
</div>
<p id="response"></p>
<br><br>
<button type="button" value="" id="logOut" onclick="logOut()">Log Out</button>
<button type="button" value="" id="changePass" onclick="ResetPass()">Change Password</button>
</section>
</main>
</body>
</html>