summaryrefslogtreecommitdiff
path: root/tpl/blog/drafts.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/drafts.php
parentc69c046ff936c1853fb5bf10a5203ec30609d248 (diff)
downloadBits-03685416017163d38f4ef1239ca50df1e38a242a.tar.gz
Bits-03685416017163d38f4ef1239ca50df1e38a242a.zip
Add some links with ?p=update
Diffstat (limited to 'tpl/blog/drafts.php')
-rw-r--r--tpl/blog/drafts.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/tpl/blog/drafts.php b/tpl/blog/drafts.php
index 6e18a6c..e1cc3c1 100644
--- a/tpl/blog/drafts.php
+++ b/tpl/blog/drafts.php
@@ -5,7 +5,7 @@ $title = "Mes articles";
require("tpl/general/top.php");
echo '<div class="small_right">';
-echo '<a href="post-blog">écrire un article</a></div>';
+echo '<a href="?p=post-blog">écrire un article</a></div>';
echo '<h2>Mes brouillons</h2>';
@@ -14,17 +14,17 @@ if (count($drafts) > 0) {
foreach ($drafts as $post) {
/*echo '<div class="blog_post">';
echo '<div class="small_right">';
- echo '<a href="edit-blog-' . $post['id'] . '">edit</a>';
- echo ' | <a href="delete-blog-' . $post['id'] . '">delete</a>';
- echo ' | <a href="publish-blog-' . $post['id'] . '">publish</a>';
+ echo '<a href="?p=edit-blog-' . $post['id'] . '">edit</a>';
+ echo ' | <a href="?p=delete-blog-' . $post['id'] . '">delete</a>';
+ echo ' | <a href="?p=publish-blog-' . $post['id'] . '">publish</a>';
echo '</div>';
echo '<h2>' . $post['title'] . '</h2>';
echo $post['text_html'];
echo '</div>';*/
- echo '<tr><td><a href="view-blog-' . $post['id'] . '">' . $post['title'] . '</a></td>';
- echo '<td><a href="edit-blog-' . $post['id'] . '">modifier</a>';
- echo ' | <a href="delete-blog-' . $post['id'] . '">supprimer</a>';
- echo ' | <a href="publish-blog-' . $post['id'] . '">publier</a></td></tr>';
+ echo '<tr><td><a href="?p=view-blog-' . $post['id'] . '">' . $post['title'] . '</a></td>';
+ echo '<td><a href="?p=edit-blog-' . $post['id'] . '">modifier</a>';
+ echo ' | <a href="?p=delete-blog-' . $post['id'] . '">supprimer</a>';
+ echo ' | <a href="?p=publish-blog-' . $post['id'] . '">publier</a></td></tr>';
}
echo '</table>';
} else {
@@ -36,9 +36,9 @@ echo '<h2>Mes articles publiés</h2>';
if (count($pub) > 0) {
echo '<table><tr><th>Titre</th><th>Actions</th></tr>';
foreach ($pub as $post) {
- echo '<tr><td><a href="view-blog-' . $post['id'] . '">' . $post['title'] . '</a></td>';
- echo '<td><a href="edit-blog-' . $post['id'] . '">modifier</a>';
- echo ' | <a href="delete-blog-' . $post['id'] . '">supprimer</a></td></tr>';
+ echo '<tr><td><a href="?p=view-blog-' . $post['id'] . '">' . $post['title'] . '</a></td>';
+ echo '<td><a href="?p=edit-blog-' . $post['id'] . '">modifier</a>';
+ echo ' | <a href="?p=delete-blog-' . $post['id'] . '">supprimer</a></td></tr>';
}
echo '</table>';
} else {