Login   Register  
PHP Classes
elePHPant
Icontem

File: autoscrollsimple.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Stanislav Okhvat  >  PageNavigator  >  autoscrollsimple.php  >  Download  
File: autoscrollsimple.php
Role: ???
Content type: text/plain
Description: A basic example of the AutoScroll variation of PageNavigator
Class: PageNavigator
Author: By
Last change:
Date: 2002-03-18 04:53
Size: 1,342 bytes
 

Contents

Class file image Download
<?php
class PageNavigator_AutoScroll_Example extends PageNavigator_AutoScroll
{
	function PageNavigator_AutoScroll_Example($current_page=0, $records_per_page=15, $total_records=0, $min_pages_per_set=10, $max_pages_per_set=20, $show_side_pages=-1, $query_vars='')
	{
		PageNavigator_AutoScroll::PageNavigator_AutoScroll($current_page, $records_per_page, $total_records, $min_pages_per_set, $max_pages_per_set, $show_side_pages, $query_vars);
	}

	function formatActivePage($pagenum)
	{
		return "<td width=\"30\" align=\"center\"><b><font color=\"#FFFFFF\">$pagenum</font></b></td>\n";
	}
	function formatPage($pagenum)
	{
		return "<td width=\"30\" align=\"center\"><a href=\"".
				$this->getTargetUrl($pagenum)."\" class=\"ln\">$pagenum</a></td>\n";

	}
	function formatMovePrevious($pagenum)
	{
		return "<td width=\"90\"><a href=\"".$this->getTargetUrl($pagenum)."\" class=\"ln2\">[&lt;&lt; Previous]</a></td>\n";
	}
	function formatMoveNext($pagenum)
	{
		return "<td width=\"70\"><a href=\"".$this->getTargetUrl($pagenum)."\" class=\"ln2\">[Next &gt;&gt;]</a></td>\n";
	}
	function formatHeader()
	{
		return "<table bgcolor=\"#0099CC\" border=\"0\" cellpadding=\"1\" cellspacing=\"0\" bgcolor=\"#000000\">\n<tr valign=\"middle\">";
	}
	function formatFooter()
	{
		return "</tr>\n</table>\n";
	}
}
?>