summaryrefslogtreecommitdiff
path: root/tpl/blog/index.php
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2018-04-29 12:08:02 +0200
committerAlex Auvolat <alex@adnab.me>2018-04-29 12:08:02 +0200
commit03685416017163d38f4ef1239ca50df1e38a242a (patch)
treee6801bff28301e17ebb27812bc68c5cd6631d158 /tpl/blog/index.php
parentc69c046ff936c1853fb5bf10a5203ec30609d248 (diff)
downloadBits-03685416017163d38f4ef1239ca50df1e38a242a.tar.gz
Bits-03685416017163d38f4ef1239ca50df1e38a242a.zip
Add some links with ?p=update
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>';
}