-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
30 lines (30 loc) · 1.21 KB
/
index.php
File metadata and controls
30 lines (30 loc) · 1.21 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
<?php require_once 'functions.php';
$all_workouts_array = pullAllWorkoutsFromDb();
$date_array = getAllUniqueDates($all_workouts_array);
$all_workouts_array = addHtmlToWorkouts($all_workouts_array);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" type="text/css" href="normalize.css">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Mouse+Memoirs&family=Roboto:wght@300;700&display=swap" rel="stylesheet">
<title>Training Log</title>
</head>
<body>
<header>
<nav class="nav_bar">
<a href="./addSession.php" class="nav_button">Add a session</a>
</nav>
<div class="title_block">
<h1 class="title_logo">Chalk it up!</h1>
<p class="title_subheading">Check out your previous sessions below:</p>
</div>
</header>
<main class="diary_container">
<?php echo displayAllWorkouts($all_workouts_array, $date_array) ?>
</main>
</body>
</html>