Login   Register  
PHP Classes
elePHPant
Icontem

File: show_gallery.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of bmpc  >  Gallery  >  show_gallery.php  >  Download  
File: show_gallery.php
Role: ???
Content type: text/plain
Description: An example script that uses the class
Class: Gallery
This class creates a table "gallery" from an array
Author: By
Last change:
Date: 2002-05-15 18:40
Size: 728 bytes
 

Contents

Class file image Download
<?
include ( "gallery.php" );

$o_gallery = new gallery ();

$array[] = "Hi";
$array[] = "Hello";
$array[] = "Hey";
$array[] = "Ola";
$array[] = "Word Up";

//
// show a gallery with the above array and border = 1, 2 columns/line and "D1D1D2" as background color.
//

$o_gallery->show ( $array, 1, 2, "D1D1D2" );

//
// create an array with some images
//

$images[] = "<img src='images/box1.gif'>";
$images[] = "<img src='images/box2.gif'>";
$images[] = "<img src='images/box3.gif'>";
$images[] = "<img src='images/box4.gif'>";
$images[] = "<img src='images/box5.gif'>";

echo "<br>";

//
// show the images array with border = 1 and 3 columns/line
//

$o_gallery->show ( $images, 1, 3 );

?>