-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile.php
67 lines (66 loc) · 2.74 KB
/
profile.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
<?php
include 'includes/db-inc.php';
include 'includes/tasks.php';
include 'includes/view.php';
include 'includes/add.php';
include 'includes/components.php';
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.6/css/materialize.min.css">
<script type = "text/javascript" src = "https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src = "https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/js/materialize.min.js"></script>
<link rel="stylesheet" href="style/main.css">
<link rel="icon" href="favicon.ico">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>TODO-LIST</title>
<style> html, body {height:100vh;} </style>
</head>
<body>
<div class="wrapper white">
<div class="dummy">
<div class="container small ">
<?php
$comp = new components();
if(isset($_SESSION["login"])){
if($_SESSION["login"]){
echo $comp->nav3loggedIn("Home","Tasks",$_SESSION["name"]);
}
else {
echo $comp->nav3("Home","Tasks");
}
}
else{
echo $comp->nav3("Home","Tasks");
}
?>
<div class="mini-pic">
<img src="public/profile.png" class="responsive-img ">
<center><button class="btn disabled">Change Picture</button></center>
</div>
<div class="collection" >
<a href="home.php" class="collection-item"><span class="badge">
<?php
$taskNum = new tasks();
echo $taskNum->getTasksNum();
?>
</span>Tasks</a>
<a href="#!" class="collection-item"><span class="badge "><?php if(isset($_SESSION['email'])){echo $_SESSION['email'];} ?></span>Email:</a>
<a href="#!" class="collection-item"><span class="badge"><form action="includes/change-page.php"><input type="submit" class="bt-small" value="Change" ></button ></form></span>Password</a>
<a href="#!" class="collection-item"><span class="badge">1.0.0</span>Version</a>
</div>
<?php
$profile = new components();
echo $profile->footer();
?>
</div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.5/js/materialize.min.js"></script>
</body>
</html>