CJuiProgressBar displays a progress bar. It encapsulates the JUIProgressbar plug-in. CJuiProgressBar displays a progress bar. It encapsulates the JUIProgressbar plug-in CJuiProgressBar to display a progress bar. It encapsulates the JUI Progressbar plug-in. CJuiProgressBar displays a progress bar. It encapsulates the JUI Progressbar plug-in.
Widget ('zii. widgets. jui. CJuiProgressBar, array ('id' => 'progress', 'value' => 0, 'htmloptions '=> array ('style' => 'width: 200px; height: 20px; float: left; '),);?>
To demonstrate the progress bar, we use JavaScripts to change the current value of the progress bar and use a text to display the value of the current progress bar.
// Dummy function just to provide an exampleYii: app ()-> clientScript-> registerScript ('scriptid', "var count = 0; var step = 10; var speed = 500; function progress () {$ ('# amount '). text (count + '%'); $ ('# SS SS '). progressbar ('option', 'value', count); if (count <100) {count = count + step; setTimeout (progress, speed) ;}} progress (); ", CClientScript: POS_LOAD);?>...
The above is the content of the Zii component-ProgressBar sample in the PHP development Framework Yii Framework tutorial (38). For more information, see PHP Chinese website (www.php1.cn )!