PHP Classes
elePHPant
Icontem

File: test.progressbar.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Mika Turin  >  ProgressBar  >  test.progressbar.php  >  Download  
File: test.progressbar.php
Role: Example script
Content type: text/plain
Description: test file
Class: ProgressBar
Class to create progress bar
Author: By
Last change:
Date: 11 years ago
Size: 890 bytes
 

Contents

Class file image Download
Progress Bar test script<br>
<?php
require ('./class.progressbar.php');

$prb1 = new ProgressBar (200, 40);
$prb1->left = 50;
$prb1->top = 60;
$prb1->min = 20;
$prb1->max = 165;
$prb1->drawHtml ();

$prb2 = new ProgressBar (400, 70);
$prb2->left = 50;
$prb2->top = 120;
$prb2->color = 'yellow';
$prb2->brd_color = 'green';
$prb2->bgr_color = 'purple';
$prb2->txt_color = 'blue';
$prb2->drawHtml ();

$prb3 = new ProgressBar (600, 100);
$prb3->left = 50;
$prb3->top = 210;
$prb3->brd_color = 'darkmagenta';
$prb3->txt_color = 'magenta';
$prb3->drawHtml ();

@
set_time_limit (300);

for (
$i=20; $i<=165; $i++)
{
 
$prb1->moveIt ($i);
  for (
$j=0; $j<100000; $j++) {$k = $j;}
}


for (
$i=0; $i<=100; $i++)
{
 
$prb2->moveIt ($i);
  for (
$j=0; $j<100000; $j++) {$k = $j;}
}

for (
$i=0; $i<=100; $i+=5)
{
 
$prb3->moveIt ($i);
 
sleep (1);
}

?>