-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
68 lines (58 loc) · 2.11 KB
/
Copy pathindex.php
File metadata and controls
68 lines (58 loc) · 2.11 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
<?php
session_start();
include('./login_database.php');
include('./Database/connection_database.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<!-- import font -->
<style>
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300&display=swap');
</style>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="./css/index.css">
<link rel="shortcut icon" type="image/jpg" href="./images/favicon.png"/>
<title>Todolist</title>
</head>
<body>
<header>
<h1>TaskHead</h1>
<a href="layouts/user_connection.php">login / register</a>
</header>
<main>
<div class="descriptionOfTodolist">
<h2 class="descriptionTitle"><i>TaskHead</i> is a simple tool to organise everything</h2>
<p class="descriptionObjectives">
<ul>
<li>"PlaceHolderImages" it will help you achieve your goals</li>
<li>"PlaceHolderImages" it will help your productivity</li>
<li>"PlaceHolderImages" it will let you save time</li>
</ul>
</p>
</div>
<div class="stats">
<h2 class="statsTitle">Some stats :</h2>
<p class="statsList">
<?php
// count number of user
$findNumberOfUser = $bdd->query('SELECT COUNT(username) FROM user');
$findNumberOfUser->execute();
while($fetchFindNumberOfUser = $findNumberOfUser->fetch()){
foreach($fetchFindNumberOfUser as $numberOfUser){
$numberOfUser+=1;
}
}
?>
<ul>
<li>(<?php echo $numberOfUser?>) actif account </li>
<li>There is (x) todos right now waiting to be complete</li>
<li>(x) todos has been done</li>
</ul>
</p>
</div>
</main>
</body>
</html>