예제 #1
0
파일: default1.php 프로젝트: Ogwang/sainp
<html>
<head>
<title>ProgressBar Monitor - Default renderer </title>
<style type="text/css">
<!--
.progressStatus {
    color:#000000;
    font-size:10px;
}
<?php 
echo $monitor->getStyle();
?>
// -->
</style>
<script type="text/javascript">
<!--
<?php 
echo $monitor->getScript();
?>
//-->
</script>
</head>
<body>

<?php 
echo $monitor->toHtml();
$monitor->run();
?>

</body>
</html>
예제 #2
0
<?php

@(include '../include_path.php');
/**
 * PEAR::HTML_Page package made it easy to build
 * a very simple ProgressBar Monitor.
 *
 * @version    $Id: htmlpage.php,v 1.1 2004/06/27 13:08:50 farell Exp $
 * @author     Laurent Laville <*****@*****.**>
 * @package    HTML_Progress
 */
require_once 'HTML/Progress/monitor.php';
require_once 'HTML/Page.php';
$p = new HTML_Page(array('charset' => 'utf-8', 'lineend' => OS_WINDOWS ? 'win' : 'unix', 'doctype' => "XHTML 1.0 Strict", 'language' => 'en', 'cache' => 'false'));
$p->setTitle("PEAR::HTML_Progress - Simple Monitor demo");
$p->setMetaData("author", "Laurent Laville");
$progressMonitor = new HTML_Progress_Monitor();
$bar =& $progressMonitor->getProgressElement();
$bar->setAnimSpeed(20);
$p->addStyleDeclaration($progressMonitor->getStyle());
$p->addScriptDeclaration($progressMonitor->getScript());
$p->addBodyContent('<h1>PEAR::HTML_Page renderer without user-callback</h1>');
$p->addBodyContent($progressMonitor->toHtml());
$p->addBodyContent('<p>&lt;&lt; <a href="../index.html">Back examples TOC</a></p>');
$p->display();
$progressMonitor->run();