function formEntry($timeslots_id) { $ID = 0; $options = array(); $this->initForm($ID, $options); $this->showFormHeader($options); echo "<tr class='tab_bg_1'>"; echo "<td>"; echo __('Start time', 'fusioninventory'); echo "</td>"; echo "<td>"; $days = array('1' => __('Monday'), '2' => __('Tuesday'), '3' => __('Wednesday'), '4' => __('Thursday'), '5' => __('Friday'), '6' => __('Saturday'), '7' => __('Sunday')); echo '<div id="beginday">'; Dropdown::showFromArray('beginday', $days); echo '</div>'; $hours = array(); $dec = 15 * 60; for ($timestamp = 0; $timestamp < 24 * 3600; $timestamp += $dec) { $hours[$timestamp] = date('H:i', $timestamp); } PluginFusioninventoryToolbox::showHours('beginhours', array('step' => 15)); echo "</td>"; echo "</tr>"; echo "<tr class='tab_bg_1'>"; echo "<td>"; echo __('End time', 'fusioninventory'); echo "</td>"; echo "<td>"; echo '<div id="beginday">'; Dropdown::showFromArray('lastday', $days); echo '</div>'; PluginFusioninventoryToolbox::showHours('lasthours', array('step' => 15)); echo Html::hidden('timeslots_id', array('value' => $timeslots_id)); echo "</td>"; echo "</tr>"; $this->showFormButtons($options); $this->formDeleteEntry($timeslots_id); $this->showTimeSlot($timeslots_id); }