cakephp - get end date from start date and duration -


situation phpcake 2.6 , full calendar plugin. need fill end date based on start date + duration. user must select start date , "visit type" list field. duration value in hours , came "visit_type_id" table, "duration" field

any suggestion? in advance!

my form in add.ctp is:

echo $this->form->input('visit_type_id', array(     'label' => 'tipo visita', ));  echo $this->form->input('start', array(     'label' => 'inizio',     'dateformat' => 'dmy',     'timeformat' => '24',     'interval' => 15,     'minyear' => 2015, ));  echo $this->form->input('end', array(     'type'=>'hidden', )); 

if end date should change after user updated start date have employ javascript (e.g.jquery) update end date onchange of start date.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -