summaryrefslogtreecommitdiff
path: root/tpl/blog/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/blog/index.php')
-rw-r--r--tpl/blog/index.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/tpl/blog/index.php b/tpl/blog/index.php
index b2d6f93..f68c57c 100644
--- a/tpl/blog/index.php
+++ b/tpl/blog/index.php
@@ -3,8 +3,8 @@ require("tpl/general/top.php");
if ($can_post) {
echo '<div class="small_right">';
- echo '<a href="post-blog">écrire un article</a>';
- echo ' | <a href="drafts-blog">brouillons</a>';
+ echo '<a href="?p=post-blog">écrire un article</a>';
+ echo ' | <a href="?p=drafts-blog">brouillons</a>';
echo '</div>';
}
@@ -16,12 +16,12 @@ if(count($posts) == 0) {
} else {
echo '<table><tr><th></th><th style="width: 150px">Date</th><th style="width: 100px">Auteur</th></tr>';
foreach ($posts as $post) {
- echo '<tr><td><a href="view-blog-'.$post['id'].'">' . $post['title'] . '</a> <div class="small_right">';
+ echo '<tr><td><a href="?p=view-blog-'.$post['id'].'">' . $post['title'] . '</a> <div class="small_right">';
$k = array();
if ($can_edit && $post['owner_id'] == $user['id'])
- $k[] = '<a href="edit-blog-' . $post['id'] . '">modifier</a>';
+ $k[] = '<a href="?p=edit-blog-' . $post['id'] . '">modifier</a>';
if ($can_delete && $post['owner_id'] == $user['id'])
- $k[] = '<a href="delete-blog-' . $post['id'] . '">supprimer</a>';
+ $k[] = '<a href="?p=delete-blog-' . $post['id'] . '">supprimer</a>';
echo implode(' | ', $k);
echo '</div>';
if ($post['tags'] != ''){
@@ -47,14 +47,14 @@ foreach ($fa as $kname => $kdata) {
foreach ($fvalues as $k => $v) {
if ($k != $kname) $n[] = "$k-$v";
}
- echo '<a href="index-blog-' . implode('-', $n) . '">remove filtering</a></p>';
+ echo '<a href="?p=index-blog-' . implode('-', $n) . '">remove filtering</a></p>';
} else {
echo '<ul>';
foreach ($kdata as $vid => $vdata) {
$n = array();
foreach ($fvalues as $k => $v) $n[] = "$k-$v";
$n[] = "$kname-$vid";
- echo '<li><a href="index-blog-' . implode('-', $n) . '">' . $vdata['name'] . ' (' . $vdata['count'] . ')</a></li>';
+ echo '<li><a href="?p=index-blog-' . implode('-', $n) . '">' . $vdata['name'] . ' (' . $vdata['count'] . ')</a></li>';
}
echo '</ul>';
}