HTML_Progress
[ class tree: HTML_Progress ] [ index: HTML_Progress ] [ all elements ]

Source for file progressModels.php

Documentation is available at progressModels.php

  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. {
  15.     function Progress_Default2()
  16.     {
  17.         parent::HTML_Progress_UI();
  18.         
  19.         $this->setProgressAttributes(array('background-color' => '#e0e0e0'));        
  20.         $this->setStringAttributes(array('color' => '#996''background-color' => '#CCCC99'));        
  21.         $this->setCellAttributes(array('active-color' => '#996'));
  22.     }
  23. }
  24.  
  25. class Progress_ITDynamic extends HTML_Progress_UI
  26. {
  27.     function Progress_ITDynamic()
  28.     {
  29.         parent::HTML_Progress_UI();
  30.         
  31.         $this->setCellCount(20);
  32.         $this->setProgressAttributes('background-color=#EEE');
  33.         $this->setStringAttributes('background-color=#EEE color=navy');
  34.         $this->setCellAttributes('inactive-color=#FFF active-color=#444444');
  35.     }
  36. }
  37.  
  38. class Progress_ITDynamic2 extends HTML_Progress_UI
  39. {
  40.     function Progress_ITDynamic2()
  41.     {
  42.         parent::HTML_Progress_UI();
  43.         
  44.         $this->setCellCount(5);
  45.         $this->setOrientation(HTML_PROGRESS_BAR_VERTICAL);
  46.         $this->setProgressAttributes('background-color=#e0e0e0');
  47.         $this->setStringAttributes('background-color=lightblue color=red');
  48.     }
  49. }
  50. ?>

Documentation generated on Mon, 11 Mar 2019 10:15:09 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.