Yii Framework Forum: A Problem In Using Cjuidatepicker - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

A Problem In Using Cjuidatepicker the calender doesn't appear Rate Topic: -----

#1 User is offline   M.I 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 11-March 14

Posted 11 March 2014 - 01:35 PM

<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.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users