PHP Classes

File: listview.test.php

Recommend this page to a friend!
  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: 18 years ago
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();

?>