Login   Register  
PHP Classes
elePHPant
Icontem

File: listview.test.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Tom Reitsma  >  Listview  >  listview.test.php  >  Download  
File: listview.test.php
Role: Example script
Content type: text/plain
Description: Usage example
Class: Listview
Generate sortable lists of arbitrary types of data
Author: By
Last change:
Date: 2005-10-03 03:03
Size: 429 bytes
 

Contents

Class file image Download
<?php

require("listview.class.php");
require(
"listview.render.php");

$data = array(array("listview.class.php"filesize("listview.class.php")),
              array(
"listview.render.php",filesize("listview.render.php")),
              array(
"listview.test.php",  filesize("listview.test.php"))
              );

$list = new Listview();

$list->addData($data);

$list->addColumn("File");
$list->addColumn("Size");

$list->drawList();

?>