Yii Framework Forum: Problema Com 2 Cjuidatepicker - Yii Framework Forum

Jump to content

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

Problema Com 2 Cjuidatepicker Rate Topic: -----

#1 User is offline   obscuremind 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 24
  • Joined: 14-December 12

Posted 10 April 2013 - 12:45 PM

Boa tarde.

Tenho um form com 2 CJuiDatePicker, apenas um deles é inserido na bd, que poderá estar a causar isto?

<?php $this->widget('zii.widgets.jui.CJuiDatePicker',
						 array(
								 'model'=>'$model',
								 'name'=>'Reparacao[data_recb]',
								 'language'=>'pt',
								 'value'=>$model->data_recb,
								 'htmlOptions'=>array('size'=>10, 'style'=>'width:80px !important'),
									 'options'=>array(
									 'showButtonPanel'=>true,
									 'changeYear'=>true,                                      
									 'changeYear'=>true,
									 'dateFormat' => 'yy-mm-dd',
									 ),
								 )
							 );
					; ?>
               
<?php echo $form->labelEx($model,'data_entrega'); ?>

<?php $this->widget('zii.widgets.jui.CJuiDatePicker',
						 array(
								 'model'=>'$model',
								 'name'=>'Reparacao[data_entrega]',
								 'language'=>'pt',
								 'value'=>$model->data_entrega,
								 'htmlOptions'=>array('size'=>10, 'style'=>'width:80px !important'),
									 'options'=>array(
									 'showButtonPanel'=>true,
									 'changeYear'=>true,                                      
									 'changeYear'=>true,
									 'dateFormat' => 'yy-mm-dd'
									 ),
								 )
							 );
					; ?>


Estão os 2 iguais sem qualquer problema e no model na rulles está tudo direito.
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