PHP Classes
Icontem

File: example.php


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Seregwethrin  >  Perfect Paging  >  example.php  
File: example.php
Role: Example script
Content type: text/plain
Description: Example of usage
Class: Perfect Paging
Generate links to browse listings split in pages
 

Contents

Class file image Download
<style type="text/css">
<!--
.pages_div a { border: 1px solid #003399; background: #6699CC; color: #FFFFFF; font-family: Arial, Helvetica, sans-serif; font-size: 11px; padding: 2px 4px; text-decoration: none; font-weight: bold; }

.pages_div span { border: 1px solid #777777; background: #CCCCCC; color: #000000; font-family: Arial, Helvetica, sans-serif; font-size: 11px; padding: 2px 4px; text-decoration: none; font-weight: bold; }
-->
</style>

<div class="pages_div">

<?php

require_once ( 'paging.class.php' );

$paging = new paging;

echo 
'Normal Html: <br>';
$paging->assign 'example.php?' ,  '200' 17 );

echo 
$paging->fetch();

echo 
'<br><br>';

echo 
'Javascript Onclick :<br>';
$paging->assign 'onclick="window.location=\'example.php?page=[:page:]\';return false;"' ,  '200' 17 );

echo 
$paging->fetch();


$limit $paging->sql_limit();


echo 
"<br><br>\nSQL LIMIT " $paging->sql_limit();



?>

</div>

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products