PHP development framework YiiFramework tutorial (38) Zii component-ProgressBar example

Source: Internet
Author: User
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 )!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.