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/modquotes.php | 136 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 136 insertions(+) create mode 100644 admin/modquotes.php (limited to 'admin/modquotes.php') diff --git a/admin/modquotes.php b/admin/modquotes.php new file mode 100644 index 0000000..8340fd1 --- /dev/null +++ b/admin/modquotes.php @@ -0,0 +1,136 @@ +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' => $getpendingq3)); + +$j=0; + +foreach ($pager->getPageData() as $quote) +{ + if (!empty($quote)) + { + $template->adds_block('QUOTE', array( 'TEXT' => str_replace("\n","
",htmlentities(stripslashes($quote['quote']))), + 'ID' => $quote['id'], + 'ODD' => ($j % 2 ? '' : ' class="odd"'))); + } + + $j++; +} + +$template->add('PAGEID', $pager->getCurrentPageID()); +$template->add('PAGINATION', $pager->links); + +$template->display(); + +?> -- cgit 1.4.1