From b5736e3ad3830fa732dcbd1a518ec3dd6ea7b98a Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Thu, 13 Aug 2009 17:46:09 -0400 Subject: Rewrote Admin panel The following database changes must be made: * A TEXT column called "text" must be added to the end of "polloftheweek" * The transferPollRss.php script must be run * The "pollrss" table must be dropped Closes #113 --- admin/comments.php | 143 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 143 insertions(+) create mode 100644 admin/comments.php (limited to 'admin/comments.php') diff --git a/admin/comments.php b/admin/comments.php new file mode 100644 index 0000000..4cda9ec --- /dev/null +++ b/admin/comments.php @@ -0,0 +1,143 @@ +adds_block('AVAIL',array('exi'=>1)); +} else { + $template->adds_block('NOTAVAIL',array('exi'=>1)); +} + +$pager = &Pager::factory(array( 'mode' => 'Sliding', + 'perPage' => 20, + 'delta' => 2, + 'itemData' => $getcomments3)); + +$j=0; + +foreach ($pager->getPageData() as $comment) +{ + if (!empty($comment)) + { + $template->adds_block('COMMENT', array( 'TEXT' => parseText($comment['comment']), + 'AUTHOR' => $comment['author'], + 'ID' => $comment['id'], + 'ODD' => ($j % 2 ? '' : ' class="odd"'))); + } + + $j++; +} + +$template->add('PAGEID', $pager->getCurrentPageID()); +$template->add('PAGINATION', $pager->links); + +$template->display(); + +?> -- cgit 1.4.1