<div class="row">
<?php echo $form->labelEx($model,‘Date’); ?>
<?php $this->widget(‘zii.widgets.jui.CJuiDatePicker’,array(
‘model’=>$model,
‘attribute’=>‘Date’,
‘value’=>$model->Date,
// additional javascript options for the date picker plugin
‘options’=>array(
‘dateFormat’ => ‘yy-mm-dd’,
‘altFormat’=>‘dd-mm-yy’,
‘altField’=>‘Date’,
‘showAnim’=>‘slide’,//‘slide’,‘fold’,‘slideDown’,‘fadeIn’,‘blind’,‘bounce’,‘clip’,‘drop’
‘showOtherMonths’=>true,// Show Other month in jquery
‘selectOtherMonths’=>true,// Select Other month in jquery
‘showButtonPanel’=>true,
‘changeMonth’=>true,
‘showOn’=>‘both’,
‘changeYear’=>true,
‘changeDay’=>true,
‘yearRange’=>‘2000:2099’,
‘constrainInput’ => ‘false’,
//‘minDate’ => ‘2000-01-01’, // minimum date
//‘maxDate’ => ‘2099-12-31’,
),
‘htmlOptions’=>array(‘size’=>‘10’, ‘readonly’=>“readonly”),
hi, i’m new to all of this so i wante to ask help about using Cjuidatepicker to enter a date into the database i’m using the previous code as a satrt but the calender doesn’t appear when i click on the box and even when i set flat to true i can’t see a dynamic calender all i see is more like an image, in addition i want to know how to use the date selected to but it in the textfield ? do i need to write a javascript code?! thanks in advance.