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(); ?>