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

Source for file htmlpage.php

Documentation is available at htmlpage.php

  1. <?php 
  2. @include '../include_path.php';
  3. /**
  4.  * PEAR::HTML_Page package made it easy to build
  5.  * a very simple ProgressBar Monitor.
  6.  *
  7.  * @version    $Id: htmlpage.php,v 1.1 2004/06/27 13:08:50 farell Exp $
  8.  * @author     Laurent Laville <pear@laurent-laville.org>
  9.  * @package    HTML_Progress
  10.  */
  11.  
  12. require_once 'HTML/Progress/monitor.php';
  13. require_once 'HTML/Page.php';
  14.  
  15. $p = new HTML_Page(array(
  16.         'charset'  => 'utf-8',
  17.         'lineend'  => OS_WINDOWS ? 'win' 'unix',
  18.         'doctype'  => "XHTML 1.0 Strict",
  19.         'language' => 'en',
  20.         'cache'    => 'false'
  21.      ));        
  22.  
  23. $p->setTitle("PEAR::HTML_Progress - Simple Monitor demo");
  24. $p->setMetaData("author""Laurent Laville");
  25.  
  26. $progressMonitor = new HTML_Progress_Monitor();
  27.  
  28. $bar =$progressMonitor->getProgressElement();
  29. $bar->setAnimSpeed(20);
  30.  
  31. $p->addStyleDeclaration(
  32.     $progressMonitor->getStyle()
  33.     );
  34. $p->addScriptDeclaration(
  35.     $progressMonitor->getScript()
  36.     );
  37. $p->addBodyContent(
  38.     '<h1>PEAR::HTML_Page renderer without user-callback</h1>'
  39.     );
  40. $p->addBodyContent(
  41.     $progressMonitor->toHtml()
  42.     );
  43. $p->addBodyContent(
  44.     '<p>&lt;&lt; <a href="../index.html">Back examples TOC</a></p>'
  45.     );
  46. $p->display();
  47.  
  48. $progressMonitor->run();
  49. ?>

Documentation generated on Mon, 11 Mar 2019 13:52:38 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.