#!/usr/bin/php <?php
require_once('../include/class.dialog.php');
$params = array( 'backtitle' => 'Example: Gauge (Progress Bar)', 'height' => 6, 'width' => 30 );
$dialog = Dialog::Factory('gauge', $params);
$dialog->setTitle('Please Wait') ->setCaption('Loading...');
// $dialog->debug(); $dialog->start();
while($dialog->getValue() < 90) { sleep(1); $dialog->incrementBy(20); }
$dialog->stop();
exit();
|