Created
December 24, 2012 08:57
-
-
Save vrushank-snippets/4368424 to your computer and use it in GitHub Desktop.
Yii : Date Picker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$this->widget('zii.widgets.jui.CJuiDatePicker', array( | |
'name'=>'from_date', | |
'options'=>array( | |
'showAnim'=>'fold', // 'show' (the default), 'slideDown', 'fadeIn', 'fold' | |
'dateFormat'=>'dd-mm-yy', | |
'showOn'=>'button', // 'focus', 'button', 'both' | |
'buttonText'=>Yii::t('ui','Select form calendar'), | |
'buttonImage'=>Yii::app()->baseUrl.'/images/calendar.png', | |
'buttonImageOnly'=>true, | |
), | |
'htmlOptions'=>array( | |
'style'=>'width:80px;vertical-align:top' | |
), | |
)); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment