Nec*_*cia 9 yii jquery-ui-datepicker
有人能告诉我如何在yii中使用jquery-datepicker作为日期范围吗?我让它工作一个日期如何修改它以获得多个日期.我是yii框架的新手.
试试这个例子:
<?php $this->widget('zii.widgets.jui.CJuiDatePicker', array(
'model'=>$model, 'attribute'=>'birthday',
'options'=>array(
'dateFormat'=>'yy-mm-dd',
'yearRange'=>'-70:+0',
'changeYear'=>'true',
'changeMonth'=>'true',
),
)); ?>
Run Code Online (Sandbox Code Playgroud)
Please follow jQuery UI documentation to learn how to create date range.
阅读 jQuery UI 文档后,您应该了解它是如何工作的。然后您可以使用CJuiDatePicker小部件来生成您需要的内容。
根据您的需求调整 Yii 小部件并不难,我宁愿说它非常简单且高效。
| 归档时间: |
|
| 查看次数: |
15308 次 |
| 最近记录: |