inicommented.php
来自「视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.」· PHP 代码 · 共 55 行
PHP
55 行
<?php
/**
* Easy set options of a progress meter with PEAR::Config package
* and a configuration container style 'iniCommented'.
*
* @version $Id: inicommented.php,v 1.2 2005/07/25 10:25:43 farell Exp $
* @author Laurent Laville <pear@laurent-laville.org>
* @package HTML_Progress
* @subpackage Examples
*/
require 'HTML/Progress.php';
$bar = new HTML_Progress();
$bar->setModel('javadanse.ini', 'inicommented');
if (HTML_Progress::hasErrors()) {
$err = HTML_Progress::getError();
die('<h1>Your configuration file is erroneous</h1>'.$err['message']);
}
?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3c.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Model Progress example</title>
<style type="text/css">
<!--
<?php echo $bar->getStyle(); ?>
// -->
</style>
<script type="text/javascript">
<!--
<?php
$js = $bar->getScript();
if (is_file($js)) {
echo file_get_contents($js);
} else {
echo $js;
}
?>
//-->
</script>
</head>
<body>
<?php
echo $bar->toHtml();
$bar->run();
?>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?