
 johno dread - 2010-05-23 16:33:00
Hello,
I need to use this class because it has a small foot print but I also need to show links to all pages.
If you dont mind I want to request the following improvement:
1. include a class in the constructor, this can be naything the use wants: i wanted boxes.
function pageMain($connection, $sqlquery, $row,$class="box") 
{ 
      	$this->class = $class;
       .............
       ..........
}
function Link() 
{  
  echo $this->First(). ' ';
  for($i=1; $i< $this->mp; $i++)
  { echo '<a href="pagerclass.php?page='.$i.'" class="'.$this->class.'"    >'  .$i.  '</a>';}
     	echo ' ' . $this->Last(); 
} 
The result would look like:
 First [1][2][3][4] Last
.box
{
	width:16px;
	padding: 0 5px 0 5px;
	margin:5px;
	text-decoration: none;
	border: 1px solid #CCC;
	
}