-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtask.php
83 lines (70 loc) · 3.36 KB
/
task.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
<?php include('Connect.php') ?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Home page</title>
<link rel="stylesheet" href="css/task.css">
<link rel="stylesheet" href="css/home.css">
<script defer src="https://use.fontawesome.com/releases/v5.15.3/js/all.js"></script>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div class="wrapper">
<nav> <input type="checkbox" id="show-search"> <input type="checkbox" id="show-menu"> <label for="show-menu" class="menu-icon"><i class="fas fa-bars"></i></label>
<div class="content">
<div class="logo"><a href="home.php"><img src="images/logo/logo.png"></a></div>
<ul class="links">
<?php
echo '
<li><a href="home.php">Home</a></li>
<li><a href="travel.php">Travel</a></li>
<li> <a class="desktop-link">Relax</a> <input type="checkbox" id="show-services"> <label for="show-services">Services</label>
<ul>
<li><a href="task.php"><i class="fa fa-fw fa-helicopter"></i>Relaxing Task</a></li>
<li><a href="music.php"><i class="fa fa-fw fa-couch"></i>Relaxing Music</a></li>
</li>
</ul>
</li>
<li><a href="organise.php">Organise</a></li>
<li> <a class="desktop-link">Blogs</a> <input type="checkbox" id="show-services"> <label for="show-services">Services</label>
<ul>
<li><a href="travelblog.php"><i class="fa fa-fw fa-helicopter"></i>Travel Blogs</a></li>
<li><a href="relaxblog.php"><i class="fa fa-fw fa-couch"></i>Relax Blogs</a></li>
</li>
</ul>
</li>
</ul>'; ?>
</div> <label for="show-search" class="search-icon"><i class="fas fa-search"></i></label>
<form action="" class="search-box"> <input type="text" placeholder="Type Something to Search..." required> <button type="submit" class="go-icon"><i class="fas fa-long-arrow-alt-right"></i></button> </form>
<a href="logout.php" type="button" class="btn btn-warning">
<h5>Logout</h5>
</a>
</nav>
</div>
</div>
<div class="main-container">
<div class="card-container">
<?php
$result = mysqli_query($Connect, "SELECT * FROM `tasks` WHERE `sdg`='UNSDG3'");
$i = 1;
$x = 1;
while ($row = mysqli_fetch_array($result)) {
?>
<?php echo '<div class="card card-' . $x . '">'; ?>
<h2 class="card__title"><?php echo $row['description'] ?></h2>
</div>
<?php
$x++;
if ($x > 5) {
$x = 1;
}
$i++;
}
?>
</div>
</div>
</body>
</html>