PHP Classes

File: demo.basic.php

Recommend this page to a friend!
  Classes of Gerd Weitenberg  >  PHProgress Bar  >  demo.basic.php  >  Download  
File: demo.basic.php
Role: Example script
Content type: text/plain
Description: simple example
Class: PHProgress Bar
Display a bar that reflects the progress of a task
Author: By
Last change: Version: 2.2
Date: 11 years ago
Size: 800 bytes


Class file image Download
<?php require('./class.progressbar.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 <title>ProgressBar - Simple Example</title>
<p style="position:absolute;left:50px;width:300px;text-align:center;">
 <a href="">
 <img src="" alt="Valid XHTML 1.0!" height="31" width="88" />
= new ProgressBar(300, 30); // create new ProgressBar (width:300px,height:30px)
$prb->left = 50; // position from top
$prb->top = 80; // position from left

$prb->show(); // show the ProgressBar

// move the Bar
for($i=1; $i<=100; $i++) {