-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
47 lines (45 loc) · 1.44 KB
/
index.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
<?php
require './includes/init.php';
?>
<!DOCTYPE html>
<html>
<head>
<title>Learn - home</title>
<?php require 'includes/head.php'; ?>
</head>
<body id="learn">
<nav>
<?php require 'includes/nav.php'; ?>
</nav>
<main class="main">
<section class="connect">
<div class="heading">
<h1>connect the dots</h1>
</div>
<ul>
<?php
$set_names = Db::queryAll("SELECT * FROM set_names");
foreach ($set_names as $set):?>
<a class='set-tile' href=<?php echo "'connect.php?id=" . urlencode($set['id']) . "'"?>><li><?php echo $set['set_name'] ?></li></a>
<?php endforeach; ?>
</ul>
</section>
<section class="outline">
<div class="heading">
<h1>memorize the outline</h1>
</div>
<ul>
<?php
$set_names = Db::queryAll("SELECT * FROM outlines");
foreach ($set_names as $set): ?>
<a class='set-tile' href=<?php echo "'outline.php?id=" . urlencode($set['id']) . "'"?>><li><?php echo $set['name'] ?></li></a>
<?php endforeach; ?>
</ul>
</section>
<div class="subheading">
<h2>create your own set</h2>
<a href="set.php?add_set"><span class="plus-set"></span></a>
</div>
</main>
</body>
</html>