Check out http://www.filamentgroup.com/lab/date_range_picker_using_jquery_ui_16_and_jquery_ui_css_framework/
I'm using it in a site I'm building right now. Also, check out this one, it looks pretty cool, but it may be more elaborate than you need: http://haineault.com/media/jquery/ui-timepickr/page/#d-demo-wrapper-2 On Apr 15, 6:37 am, jackgoh <[email protected]> wrote: > Thanks for all your helping!!! > > Thanks morficus, > > $this->Form->input('saveDate', array('type'=>'text')); > OR > $this->Form->text('saveDate'); > is my solution. > > Thanks. > > Regards > Jack > > On Apr 14, 10:47 pm, morficus <[email protected]> wrote: > > > > > > > > > in your view file... you should have something that looks like this: > > $this->Form->input('savedDate'); > > > change it to: > > $this->Form->input('saveDate', array('type'=>'text')); > > OR > > $this->Form->text('saveDate'); > > > that should display a textbox (inplace of multiple dropdown menus for > > the date). > > > if it is not automatically populating the fields, then do the > > following: > > > $this->Form->input('saveDate', array('type'=>'text', 'value'=> > > $model['saveDate'])); > > OR > > $this->Form->text('saveDate', array('value'=>$model['saveDate'])); > > (the 'value' key in the options array will force that value to be in > > the HTML element) > > > For more details, reference the "Form Helper" section in the CookBook > > (http://book.cakephp.org/view/1383/Form) > > > On Apr 14, 5:52 am, jackgoh <[email protected]> wrote: > > > > Hi, > > > > Then, how can i assign the Datetime value which is from database into > > > the textbox at Edit form? > > > > On Apr 14, 5:03 pm, Jens Dittrich <[email protected]> wrote: > > > > > no, afertFind() ist a callback in the model. This will be called > > > > automatically whenever you did a find operation on the model. Check > > > > the book about the > > > > callbacks:http://book.cakephp.org/view/1048/Callback-Methods > > > > > On 14 Apr., 09:55, jackgoh <[email protected]> wrote: > > > > > > So, when i m on the Edit form,i have to use function afterFind() in my > > > > > model ?- Hide quoted text - > > > > > - Show quoted text -- Hide quoted text - > > > - Show quoted text - -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
