PHP Classes
Icontem

File: demo.basic.php


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Gerd Weitenberg  >  PHProgress Bar  >  demo.basic.php  
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
 

Contents

Class file image Download
<?php require('./class.progressbar.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
 <title>ProgressBar - Simple Example</title>
</head>
<body>
<p style="position:absolute;left:50px;width:300px;text-align:center;">
 <a href="http://validator.w3.org/check?uri=referer">
 <img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" />
 </a>
</p>
<?php
$prb 
= new ProgressBar(30030);    // 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++) {
    
$prb->moveStep($i);
    
usleep(100000);
}
?>
</body>
</html>

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products