HTML_Progress::display

HTML_Progress

Prev |  | Next
HTML_Progress::display shows the current status of the progress meter ## Synopsis require_once 'HTML/Progress.php'; void HTML_Progress::display() ## Description This method is used to display the current status (image) of the progress meter. ## Note ( HTML_Progress >= 0.2 )
| This function can not be called statically.
## See HTML_Progress::run, HTML_Progress::hide, HTML_Progress::toHtml ## Example Example below is an easy way to show some screenshots of progress meter.

    <?php
    require_once 'HTML/Progress.php';

    $bar = new HTML_Progress();

    $ui =& $bar->getUI();
    $ui->setOrientation(HTML_PROGRESS_BAR_VERTICAL);
    $ui->setCellAttributes('active-color=#3874B4 inactive-color=#EEEECC width=65');
    ?>
    <head>
    <title>display example</title>
    <style type="text/css">
    <!--
    <?php echo $bar->getStyle(); ?>
    // -->
    </style>
    <script type="text/javascript">
    <!--
    <?php echo $bar->getScript(); ?>
    //-->
    </script>
    </head>
    <body>

    <h1>Screenshot </h1>
    <?php
    $bar->setValue(65);
    echo $bar->toHtml();
    $bar->display();
    ?>

    </body>
    </html>
Prev | Up | Next
HTML_Progress::apiVersion | Reference Guide | HTML_Progress::hide
Documentation generated on Sun, 12 Sep 2004 20:23:00 +0200 by phpDocumentor 1.3.0RC3