Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Seregwethrin  >  Perfect Paging  >  example.php  >  Download  
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
Author: By
Last change:
Date: 2008-09-14 04:46
Size: 963 bytes
 

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>