Source for file square.php
Documentation is available at square.php
@include '../include_path.php';
* Basic Square Progress example.
* <b>start</b> parameter could be equal to:
* - 'topleft' = beginning at top left corner (default)
* - 'topright' = beginning at top right corner
* - 'bottomright' = beginning at bottom right corner
* - 'bottomleft' = beginning at bottom left corner
* @version $Id: square.php,v 1.1 2004/06/29 20:48:52 farell Exp $
* @author Laurent Laville <pear@laurent-laville.org>
require_once 'HTML/Progress.php';
$s = isset ($_GET['start']) ? $_GET['start'] : 'topleft';
$bar = new HTML_Progress ();
$ui->setStringAttributes ('valign=top align=center height=30');
$ui->setCellAttributes ('width=20 height=20');
$ui->setCellCoordinates ($w,$h); // square 3x3
$coord = $ui->getCellCoordinates ();
for ($i=1; $i< $w; $i++ ) {
for ($i=1; $i< ($w+ $h-1 ); $i++ ) {
for ($i=1; $i< $w; $i++ ) {
$ui->setCellCoordinates ($w, $h, $coord);
<title>Basic Square 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:39 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|