Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Cesar Iduarte  >  Page indexer  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: index for test
Class: Page indexer
Show Google style links to browse listings
Author: By
Last change: New tests cases for the new features.
Date: 7 years ago
Size: 563 bytes
 

Contents

Class file image Download
<link href="./style1.css" rel="stylesheet" type="text/css" />
<?php

    
require("page_indexer.php");
    if(isset(
$_GET['start'])){
        
$start $_GET['start'];
    }else
        
$start 0;
        
    
$elements = array(1,2,3,4,5,6,7,8,9,10,12,13,14,15,16,17,18,19,20);
    
//$elements = array(1,2,3,4);
    
    
$total_elements count($elements);
    
    
$Paginador = & new GoogleStyle($total_elements,2);

    
$Paginador->setActive($start);
    
$Paginador->setHeaderText("Page {1} of {2}");
    
$Paginador->setVisibleIndex(3);
    
$Paginador->render("prueba=1&prueba2=3");

?>