Update 4 files

- /html/journal.php
- /config/global.ini
- /html/news.php
- /html/editpage.php
This commit is contained in:
Jan BELLON 2024-03-08 14:25:28 +00:00
parent 68e1548596
commit bf9ea44163
3 changed files with 14 additions and 4 deletions

View File

@ -11,7 +11,7 @@ dbpass = "vcwfDitW9tQBsRJX"
dbhost = "127.0.0.1" dbhost = "127.0.0.1"
[nav] [nav]
Journal = "journal.php" News = "news.php"
A propos = "about.php" A propos = "about.php"
[classifications] [classifications]

View File

@ -128,7 +128,12 @@ if(isset($fichier)) {
if ($resultat) { if ($resultat) {
foreach($resultat as $row) { foreach($resultat as $row) {
echo "<a href='?article=" . $row['ID'] . "' class='article-link'><div class='article'><div class='article-content'><div><h1>" . $row['titre'] . "</h1></div><div><h2>" . $row['auteur'] . "</h2></div><div>" . $classifications[(int)$row['classification']] . "</div><div>" . $date->format('d/m/Y') . "</div></div></div></a>"; echo "<div class='article-preview'><hr>";
echo "<a href='?article=" . $row['ID'] . "' class='article-link'>";
echo "<div><h1>" . $row['titre'] . "</h1></div></a>";
echo "<div><h2>" . $row['auteur'] . "</h2></div>";
echo "<div>" . $classifications[(int)$row['classification']] . "</div>"
echo "<div>" . $date->format('d/m/Y') . "</div></div>";
} }
} }
echo "</div>"; echo "</div>";

View File

@ -64,7 +64,12 @@ if (filter_var($_GET['article'], FILTER_VALIDATE_INT)) {
if ($resultat) { if ($resultat) {
foreach($resultat as $row) { foreach($resultat as $row) {
echo "<a href='?article=" . $row['ID'] . "' class='article-link'><div class='article'><div class='article-content'><div><h1>" . $row['titre'] . "</h1></div><div><h2>" . $row['auteur'] . "</h2></div><div>" . $classifications[(int)$row['classification']] . "</div><div>" . $date->format('d/m/Y') . "</div></div></div></a>"; echo "<div class='article-preview'><hr>";
echo "<a href='?article=" . $row['ID'] . "' class='article-link'>";
echo "<div><h1>" . $row['titre'] . "</h1></div></a>";
echo "<div><h2>" . $row['auteur'] . "</h2></div>";
echo "<div>" . $classifications[(int)$row['classification']] . "</div>"
echo "<div>" . $date->format('d/m/Y') . "</div></div>";
} }
} }
} }