Skip to content

Commit

Permalink
Merge branch 'm27_MDL-48484' of https://github.com/totara/moodle into…
Browse files Browse the repository at this point in the history
… MOODLE_27_STABLE
  • Loading branch information
andrewnicols committed Feb 3, 2015
2 parents 7f866e3 + 51f931f commit 1030084
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/adminlib.php
Expand Up @@ -3225,11 +3225,13 @@ public function output_html($data, $query='') {
}

$return = '<div class="form-time defaultsnext">'.
'<label class="accesshide" for="' . $this->get_id().'h">' . get_string('hours') . '</label>' .
'<select id="'.$this->get_id().'h" name="'.$this->get_full_name().'[h]">';
for ($i = 0; $i < 24; $i++) {
$return .= '<option value="'.$i.'"'.($i == $data['h'] ? ' selected="selected"' : '').'>'.$i.'</option>';
}
$return .= '</select>:<select id="'.$this->get_id().'m" name="'.$this->get_full_name().'[m]">';
$return .= '</select>:<label class="accesshide" for="' . $this->get_id().'m">' . get_string('minutes');
$return .= '</label><select id="'.$this->get_id().'m" name="'.$this->get_full_name().'[m]">';
for ($i = 0; $i < 60; $i += 5) {
$return .= '<option value="'.$i.'"'.($i == $data['m'] ? ' selected="selected"' : '').'>'.$i.'</option>';
}
Expand Down

0 comments on commit 1030084

Please sign in to comment.