yii扩展-自动填充

<?php
$this->widget(‘zii.widgets.jui.CJuiAutoComplete’, array(
‘name’=>’city’,
‘source’=>array(‘ac1′, ‘ac2ss’, ‘ac3′),
// additional javascript options for the autocomplete plugin
‘options’=>array(
‘minLength’=>’2′,
),
‘htmlOptions’=>array(
‘style’=>’height:20px;’
),
));
?>

yii扩展-展示面板

<?php
$this->widget(‘zii.widgets.jui.CJuiAccordion’, array(
‘panels’=>array(
‘panel 1’=>’content for panel 1′,
‘panel 2’=>’content for panel 2′,
‘panel 3’=>’content for panel 3′,
‘panel 4’=>’content for panel 4′,

),
// additional javascript options for the accordion plugin
‘options’=>array(
‘animated’=>’bounceslide’,
),
));
?>

yii扩展-拖动条

<?php
$this->widget(‘zii.widgets.jui.CJuiSlider’, array(
‘value’=>37,
// additional javascript options for the slider plugin
‘options’=>array(
‘min’=>10,
‘max’=>50,
),
‘htmlOptions’=>array(
‘style’=>’height:20px;’
),
));
?>

yii扩展-日期插件

<?php
$this->widget(‘zii.widgets.jui.CJuiDatePicker’, array(
‘name’=>’stime’,
‘language’=>Yii::app()->getLanguage(),
‘options’=>array(
‘showAnim’=>’fold’,
‘changeYear’=>true,
‘showWeek’=>true,
‘autoSize’=>true,
‘dateFormat’=>’yy-mm-dd’,
),
));
?>