Yii Framework Forum: Cjuidatepicker Not Displaying ? - Yii Framework Forum

Jump to content

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

Cjuidatepicker Not Displaying ? Rate Topic: -----

#1 User is offline   hameedhamdani 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 82
  • Joined: 20-October 12
  • Location:Islambad,Pakistan

Posted 30 November 2012 - 01:02 AM

In a admin.php page i use a Link Button to "Add new client registration" using a form.
when enter data in a date field CjuiDatePicker is not displaying.?

But

when open the form without "link button" the date field displays the clendar to enter date.

plz see my code ,where is the problem..???.thanks

<?php echo $form->labelEx($model,'p_end_date'); ?>
        <?php
        $this->widget('zii.widgets.jui.CJuiDatePicker', array(
                'model'=>$model,
                        'value'=>'p_end_date',
                'attribute'=>'p_end_date',
                // additional javascript options for the date picker plugin
                'options'=>array(
                'showAnim'=>'fold',
                'dateFormat'=>'yy-mm-dd',
                ),
                'htmlOptions'=>array(
                'style'=>'height:20px;',
                //'value'=>'3/3/2011',
                ),
        )); 	
        //echo $form->textField($model,'p_end_date',array('size'=>40,'maxlength'=>100)); ?>
        
                <?php echo $form->error($model,'p_end_date'); ?>

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