Source for file ellipse.php
Documentation is available at ellipse.php
@include '../include_path.php';
* Ellipse Progress meter example.
* @version $Id: ellipse.php,v 1.1 2004/06/29 20:48:52 farell Exp $
* @author Laurent Laville <pear@laurent-laville.org>
require_once 'HTML/Progress.php';
$bar = new HTML_Progress ();
$ui->setStringAttributes ('font-size=20 width=100');
$ui->setCellAttributes (array (
'inactive-color' => 'red',
// uses cached files rather than create it again and again
foreach (range(0 ,10 ) as $index) {
$ui->setCellAttributes (array ('background-image' => '../temp/e'. $index. '.png'),$index);
// creates circle segments pictures only once
$ui->drawCircleSegments ('../temp', 'e%s.png');
<title>Ellipse ProgressBar example</title>
<?php echo $bar->getStyle (); ?>
background-color: #FFFFFF;
font-family: Verdana, Arial;
a:visited, a:active, a:link {
<script type="text/javascript">
<?php echo $ui->getScript (); ?>
<h1> <?php echo basename(__FILE__ ); ?></h1>
<p><< <a href="../index.html">Back examples TOC</a></p>
Documentation generated on Mon, 11 Mar 2019 13:52:37 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|