当前位置: 首页>>代码示例>>PHP>>正文


PHP HTML_Progress::getStyle方法代码示例

本文整理汇总了PHP中HTML_Progress::getStyle方法的典型用法代码示例。如果您正苦于以下问题:PHP HTML_Progress::getStyle方法的具体用法?PHP HTML_Progress::getStyle怎么用?PHP HTML_Progress::getStyle使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在HTML_Progress的用法示例。


在下文中一共展示了HTML_Progress::getStyle方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: 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();
}
开发者ID:alachaum,项目名称:timetrex,代码行数:46,代码来源:ProgressBar.php

示例2:

$ui->setTab('    ');
$ui->setCellAttributes(array('active-color' => '#000084', 'inactive-color' => '#3A6EA5', 'width' => 25, 'spacing' => 0, 'background-image' => 'download.gif'));
$ui->setBorderAttributes('width=1 style=inset color=white');
$ui->setStringAttributes(array('width' => 60, 'font-size' => 10, 'background-color' => '#C3C6C3', 'align' => 'center', 'valign' => 'left'));
?>
<!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>BgImages Progress example</title>
<style type="text/css">
<!--
<?php 
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">
<!--
开发者ID:Ogwang,项目名称:sainp,代码行数:31,代码来源:bgimages.php

示例3:

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>FTP/Progress Observer example</title>
<style type="text/css">
<!--
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();
开发者ID:GeekyNinja,项目名称:LifesavingCAD,代码行数:31,代码来源:observer.php

示例4:

?>
<!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>
<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();
开发者ID:GeekyNinja,项目名称:LifesavingCAD,代码行数:31,代码来源:hbar.php

示例5:

$ui2->setCellAttributes('active-color=#3874B4 inactive-color=#FFDDAA width=50 height=13');
$ui2->setBorderAttributes('width=1 style=dashed color=#000000');
$ui2->setStringAttributes(array('font-size' => 8, 'color' => 'navy', 'background-color' => '#C3C6C3', 'align' => 'center', 'valign' => 'bottom'));
?>
<!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>Multiple Vertical ProgressBar example</title>
<style type="text/css">
<!--
<?php 
echo $bar1->getStyle();
echo $bar2->getStyle();
?>

body {
    background-color: #C3C6C3;
    color: #000000;
    font-family: Verdana, Arial;
}

a:visited, a:active, a:link {
    color: navy;
}

table.container {
    border: 1;
    border-color: navy;
开发者ID:Ogwang,项目名称:sainp,代码行数:31,代码来源:vertical.php

示例6:

    $arr = $form->getElementValue('border');
    $border = $arr[0];
    $arr = $form->getElementValue('color');
    $color = $arr[0];
} else {
    $border = $defaultValues['border'];
    $color = $defaultValues['color'];
}
$bar = new HTML_Progress();
$bar->setAnimSpeed(200);
$bar->setIncrement(10);
$bar->setBorderPainted(true);
$bar->setStringPainted(true);
// get space for the string
$bar->setString('');
// but don't paint it
$bar->setProgressHandler('myFunctionHandler');
$ui =& $bar->getUI();
$ui->setCellAttributes('active-color=#7B7B88 inactive-color=#D0D0D0 width=10');
$ui->setBorderAttributes(array('width' => 2, 'color' => $color, 'style' => $border));
$ui->setStringAttributes(array('width' => 320, 'font-size' => 10, 'align' => 'left', 'valign' => 'bottom', 'background-color' => '#D0D0D0'));
$ui->setProgressAttributes('width=320');
$tpl->setVariable("L_STYLESHEET", $bar->getStyle());
$tpl->setVariable("L_JAVASCRIPT", $ui->getScript());
$tpl->setVariable("L_PROGRESS_BAR", $bar->toHtml());
$renderer = new HTML_QuickForm_Renderer_ITStatic($tpl);
$form->accept($renderer);
$tpl->show();
$bar->run();
$bar->display();
// to display the last custom string
开发者ID:Ogwang,项目名称:sainp,代码行数:31,代码来源:itxstatic.php


注:本文中的HTML_Progress::getStyle方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。