Friday, October 30, 2009

Re: time duration

Hello, here is the code file: add.ctp

div class="trainingCourses form">
<?php echo $form->create('TrainingCourse');?>
<fieldset>
<legend><?php __('Add TrainingCourse');?></legend>
<?php
echo $form->input('course_code');
echo $form->input('name');
echo $form->input('training_type_id');
echo $form->input('Duration',array('training_courses.time', 'type'
=> 'time', 'interval' => 15 , 'empty' => ' ','options' => array
('hh','mm')));
echo $form->input('course_sequence');
echo $form->input('comments');
?>

</fieldset>
<?php echo $form->end('Submit');?>
</div>

On Oct 30, 1:23 pm, John Andersen <j.andersen...@gmail.com> wrote:
> Please show the code with what you are trying to accomplish, so that
> we may better be able to help you!
> Enjoy,
>    John
>
> On Oct 30, 9:19 am, Jiru <jiransl...@gmail.com> wrote:
>
> > Even though tried to change the options the hh/mm option is not
> > available.
>
> > On Oct 30, 11:09 am, John Andersen <j.andersen...@gmail.com> wrote:
>
> > > Please read the cook book!
>
> > >http://book.cakephp.org/view/189/Automagic-Form-Elements#options-time...
>
> > > Enjoy,
> > >    John
>
> > > On Oct 30, 8:00 am, Jiru <jiransl...@gmail.com> wrote:
>
> > > > Hi,
> > > >        I have atimefield in the form. In the combo box it have
> > > > meridians[am/pm].
> > > > As I wantdurationI need hh/mm instead of am/pm in the drop
> > > > down.Please give suggessions for this.
> > > >                                     Thank you.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: