diff options
author | Nicolas BERNSTEIN <alexis211@gmail.com> | 2012-04-13 19:26:18 +0200 |
---|---|---|
committer | Nicolas BERNSTEIN <alexis211@gmail.com> | 2012-04-13 19:26:18 +0200 |
commit | ddb6cadf66c7f6c26430a14658d232a88bcceb7a (patch) | |
tree | 1fd9e8c8bbe007f182e020354e27041f0952252e /tpl/blog/drafts.php | |
parent | a535a9e7e017629178b45acc2e96e1d674a0d6fc (diff) | |
download | Bits-ddb6cadf66c7f6c26430a14658d232a88bcceb7a.tar.gz Bits-ddb6cadf66c7f6c26430a14658d232a88bcceb7a.zip |
Minor changes in navigation.
Diffstat (limited to 'tpl/blog/drafts.php')
-rw-r--r-- | tpl/blog/drafts.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/tpl/blog/drafts.php b/tpl/blog/drafts.php index 5440cbc..510f428 100644 --- a/tpl/blog/drafts.php +++ b/tpl/blog/drafts.php @@ -8,8 +8,9 @@ echo '<a href="post-blog">post a message</a></div>'; echo '<h2>My drafts</h2>'; if (count($drafts) > 0) { + echo '<table><tr><th>Title</th><th>Actions</th></tr>'; foreach ($drafts as $post) { - echo '<div class="blog_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>'; @@ -17,8 +18,13 @@ if (count($drafts) > 0) { echo '</div>'; echo '<h2>' . $post['title'] . '</h2>'; echo $post['text_html']; - echo '</div>'; + echo '</div>';*/ + echo '<tr><td><a href="view-blog-' . $post['id'] . '">' . $post['title'] . '</a></td>'; + echo '<td><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></td></tr>'; } + echo '</table>'; } else { echo '<p>No drafts</p>'; } @@ -28,7 +34,7 @@ echo '<h2>My published posts</h2>'; if (count($pub) > 0) { echo '<table><tr><th>Title</th><th>Actions</th></tr>'; foreach ($pub as $post) { - echo '<tr><td>' . $post['title'] . '</td>'; + echo '<tr><td><a href="view-blog-' . $post['id'] . '">' . $post['title'] . '</a></td>'; echo '<td><a href="edit-blog-' . $post['id'] . '">edit</a>'; echo ' | <a href="delete-blog-' . $post['id'] . '">delete</a></td></tr>'; } |