Subversion Repositories taios

Compare Revisions

Ignore whitespace Rev 81 → Rev 92

/_taios.php
112,16 → 112,19
}
}
function drawBlogPostTree($id)
function drawBlogPostTree($id, $first = false)
{
$post = $this->getBlogPost($id);
write('<a href="' . $this->url . 'blog/post.php?id=' . $id . '"><h3>' . $post->title. '</h3></a>');
if ($first)
write('<h3><a href="post.php?id=' . $id . '">' . $post->title. '</a> <a href="post.php?id=' . $post->parentID . '">^</a></h3>');
else
write('<a href="post.php?id=' . $id . '"><h3>' . $post->title. '</h3></a>');
write('<h5 style="color: #666666;">Posted On ' . date('l j F Y', $post->datePosted) . ' by ' . $post->user->name . ' (' . $post->user->username . ')</h5>');
write('<p>' . $post->content . '</p>');
write('<br />');
if ($this->isUserNormal($this->getLoggedInUser()))
{
write('<p class="bold"><a href="add-commend.php?id="' . $id . '">Add Comment</a></p>');
write('<p class="bold"><a href="post-add.php?id=' . $id . '">Add Comment</a></p>');
write('<br />');
}
 
/blog/post.php
1,5 → 1,8
<?php
 
if ($_GET['id'] == -1)
$page->redirect('index.php');
 
require '../_taios.php';
 
$page = new Taios_Page('Blog Posts', '../');
11,7 → 14,7
$page->drawBlogCategoriesMenu();
$page->drawMiddle();
 
$page->drawBlogPostTree($_GET['id']);
$page->drawBlogPostTree($_GET['id'], true);
 
$page->drawFooter();
 
/admin/all-accounts.php
10,6 → 10,8
 
if ($page->isUserAdmin($page->getLoggedInUser()))
{
write('<p class="bold">Use this to manage all the accounts on the Tim32 Website.</p><br />');
 
write('<table>');
write('<tr>');
write('<td class="bold">ID</td>');
/styles.css
68,7 → 68,7
}
 
td {
padding: 1px;
padding: 3px;
border: 1px solid #888888;
}