summaryrefslogtreecommitdiff
path: root/glossary/index.php
diff options
context:
space:
mode:
authorMinteck <nekostarfan@gmail.com>2021-08-24 15:35:35 +0200
committerMinteck <nekostarfan@gmail.com>2021-08-24 15:35:35 +0200
commitdf8d64debc84de2c89e6700f1f2b05b224fff900 (patch)
treeaf2a816c23be7b743b2d92c799ecd858faebb235 /glossary/index.php
downloadtimetracker-df8d64debc84de2c89e6700f1f2b05b224fff900.tar.gz
timetracker-df8d64debc84de2c89e6700f1f2b05b224fff900.tar.bz2
timetracker-df8d64debc84de2c89e6700f1f2b05b224fff900.zip
Initial commit
Diffstat (limited to 'glossary/index.php')
-rw-r--r--glossary/index.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/glossary/index.php b/glossary/index.php
new file mode 100644
index 0000000..10996fb
--- /dev/null
+++ b/glossary/index.php
@@ -0,0 +1,21 @@
+<?php
+
+$_TITLE = "Glossaire"; require_once $_SERVER['DOCUMENT_ROOT'] . "/private/header.php";
+$config = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/private/config.json"), true) ?>
+
+<h1 style="text-align:center;margin-top:50px;">TimeTracker</h1>
+ <h2 style="text-align:center;">Glossaire<br><small><small><small><a href="/" title="Retourner à la page précédente">[< Retour]</a></small></small></small></h2>
+<br>
+<hr>
+
+<div class="container">
+ <ul class="list-group">
+ <?php $glossary = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/private/glossary.json"), true); uksort($glossary, 'strcasecmp'); foreach ($glossary as $word => $def): ?>
+ <li class="list-group-item" id="<?= $word ?>"><strong><?= $word ?></strong> : <?= preg_replace("@\[([a-zA-Z0-9 ,.;:|!?*\$€<>(){}'\"~éèàêâùô¡¿§µ%£#_`\@=+-/]*)\]@", "<a href=\"/glossary/#$1\">$1</a>", $def) ?></li>
+ <?php endforeach; ?>
+ </ul>
+</div>
+
+<br>
+
+<?php require_once $_SERVER['DOCUMENT_ROOT'] . "/private/footer.php"; ?> \ No newline at end of file