home *** CD-ROM | disk | FTP | other *** search
/ Enter 2004 June / ENTER.ISO / files / xampp-win32-1.4.5-installer.exe / xampp / progressModels.php < prev    next >
Encoding:
PHP Script  |  2004-03-24  |  1.5 KB  |  51 lines

  1. <?php
  2.  
  3. require_once ('HTML/Progress/UI.php');
  4.  
  5. /**
  6.  * Progress Bar layout.
  7.  * These models are used with Progress Monitor examples v1.1
  8.  *
  9.  * @version    $Id: progressModels.php,v 1.1 2004/02/10 12:03:49 farell Exp $
  10.  * @author     Laurent Laville <pear@laurent-laville.org>
  11.  * @package    HTML_Progress
  12.  */
  13.  
  14. class Progress_Default2 extends HTML_Progress_UI
  15. {
  16.     function Progress_Default2()
  17.     {
  18.         parent::HTML_Progress_UI();
  19.         
  20.         $this->setProgressAttributes(array('background-color' => '#e0e0e0'));        
  21.         $this->setStringAttributes(array('color' => '#996', 'background-color' => '#CCCC99'));        
  22.         $this->setCellAttributes(array('active-color' => '#996'));
  23.     }
  24. }
  25.  
  26. class Progress_ITDynamic extends HTML_Progress_UI
  27. {
  28.     function Progress_ITDynamic()
  29.     {
  30.         parent::HTML_Progress_UI();
  31.         
  32.         $this->setCellCount(20);
  33.         $this->setProgressAttributes('background-color=#EEE');
  34.         $this->setStringAttributes('background-color=#EEE color=navy');
  35.         $this->setCellAttributes('inactive-color=#FFF active-color=#444444');
  36.     }
  37. }
  38.  
  39. class Progress_ITDynamic2 extends HTML_Progress_UI
  40. {
  41.     function Progress_ITDynamic2()
  42.     {
  43.         parent::HTML_Progress_UI();
  44.         
  45.         $this->setCellCount(5);
  46.         $this->setOrientation(HTML_PROGRESS_BAR_VERTICAL);
  47.         $this->setProgressAttributes('background-color=#e0e0e0');
  48.         $this->setStringAttributes('background-color=lightblue color=red');
  49.     }
  50. }
  51. ?>