本文整理汇总了PHP中HTML_Progress::getScript方法的典型用法代码示例。如果您正苦于以下问题:PHP HTML_Progress::getScript方法的具体用法?PHP HTML_Progress::getScript怎么用?PHP HTML_Progress::getScript使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HTML_Progress
的用法示例。
在下文中一共展示了HTML_Progress::getScript方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
echo $bar->getStyle();
?>
body {
background-color: #C3C6C3;
color: #000000;
font-family: Verdana, Arial;
}
a:visited, a:active, a:link {
color: navy;
}
// -->
</style>
<script type="text/javascript">
<!--
<?php
echo $bar->getScript();
?>
//-->
</script>
</head>
<body>
<?php
echo $bar->toHtml();
$bar->run();
?>
</body>
</html>
示例2:
"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();
?>
示例3: InitProgressBar
function InitProgressBar($increment = 1)
{
global $progress_bar;
$progress_bar = new HTML_Progress();
$progress_bar->setAnimSpeed(100);
//$progress_bar->setIncrement( (int)$increment );
//$progress_bar->setIndeterminate(true);
$progress_bar->setBorderPainted(true);
$ui =& $progress_bar->getUI();
$ui->setCellAttributes('active-color=#3874B4 inactive-color=#CCCCCC width=10');
$ui->setBorderAttributes('width=1 color=navy');
$ui->setStringAttributes('width=60 font-size=14 background-color=#FFFFFF align=center');
?>
<html>
<head>
<style type="text/css">
<!--
<?php
echo $progress_bar->getStyle();
?>
body {
background-color: #FFFFFF;
color: #FFFFFF;
font-family: Verdana, freesans;
}
a:visited, a:active, a:link {
color: yellow;
}
// -->
</style>
<script type="text/javascript">
<!--
<?php
echo $progress_bar->getScript();
?>
//-->
</script>
</head>
<body>
<div align="center">
<?php
echo $progress_bar->toHtml();
}
示例4:
<!--
body {
background-color: #CCCC99;
color: #996;
font-family: Verdana, Arial;
}
<?php
echo $meter->getStyle();
?>
// -->
</style>
<script type="text/javascript">
<!--
<?php
echo $meter->getScript();
?>
//-->
</script>
</head>
<body>
<?php
echo $meter->toHtml();
@set_time_limit(0);
// unlimited time operation (removed 30s default restriction)
$f = new Net_FTP();
//
// 3. connect to the FTP server
//
$ret = $f->connect($ftp['host'], $ftp['port']);
示例5:
<style type="text/css">
<!--
body {
background-color: #C3C6C3;
color: #000000;
font-family: Verdana, Arial;
}
<?php
echo $progress->getStyle();
?>
// -->
</style>
<script type="text/javascript">
<!--
<?php
echo $progress->getScript();
?>
//-->
</script>
</head>
<body>
<?php
echo $progress->toHtml();
if (isset($_GET['ID'])) {
if ($version > 1.1) {
$progress->run();
// run method is born on version 1.2.0RC3
} else {
// do the same as run() method
do {
示例6:
color: navy;
}
table.container {
border: 1;
border-color: navy;
border-style: dotted;
cell-spacing: 4;
cell-padding: 10;
width: 25%;
// -->
</style>
<script type="text/javascript">
<!--
<?php
echo $bar1->getScript();
?>
//-->
</script>
</head>
<body>
<table class="container">
<tr>
<td width="50%" align="center">
<?php
echo $bar1->toHTML();
?>
</td>
<td width="50%" align="center">