Beispiel #1
0
 /**
  * Build a time zone select list for events
  *
  * @param      $tzselected - currently selected time zone
  * @param      $args - styles for field
  * @return     Return - select list of time zones, with current time zone selected (if applicable)
  */
 public static function buildTimeZoneSelect($tzselected, $args)
 {
     $timezones = array(\Html::select('option', -12, Lang::txt('EVENTS_TIME_UTC_-12')), \Html::select('option', -11, Lang::txt('EVENTS_TIME_UTC_-11')), \Html::select('option', -10, Lang::txt('EVENTS_TIME_UTC_-10')), \Html::select('option', -9.5, Lang::txt('EVENTS_TIME_UTC_-930')), \Html::select('option', -9, Lang::txt('EVENTS_TIME_UTC_-9')), \Html::select('option', -8, Lang::txt('EVENTS_TIME_UTC_-8')), \Html::select('option', -7, Lang::txt('EVENTS_TIME_UTC_-7')), \Html::select('option', -6, Lang::txt('EVENTS_TIME_UTC_-6')), \Html::select('option', -5, Lang::txt('EVENTS_TIME_UTC_-5')), \Html::select('option', -4, Lang::txt('EVENTS_TIME_UTC_-4')), \Html::select('option', -4.5, Lang::txt('EVENTS_TIME_UTC_-430')), \Html::select('option', -3.5, Lang::txt('EVENTS_TIME_UTC_-330')), \Html::select('option', -3, Lang::txt('EVENTS_TIME_UTC_-3')), \Html::select('option', -2, Lang::txt('EVENTS_TIME_UTC_-2')), \Html::select('option', -1, Lang::txt('EVENTS_TIME_UTC_-1')), \Html::select('option', 0, Lang::txt('EVENTS_TIME_UTC_0')), \Html::select('option', 1, Lang::txt('EVENTS_TIME_UTC_1')), \Html::select('option', 2, Lang::txt('EVENTS_TIME_UTC_2')), \Html::select('option', 3, Lang::txt('EVENTS_TIME_UTC_3')), \Html::select('option', 3.5, Lang::txt('EVENTS_TIME_UTC_330')), \Html::select('option', 4, Lang::txt('EVENTS_TIME_UTC_4')), \Html::select('option', 4.5, Lang::txt('EVENTS_TIME_UTC_430')), \Html::select('option', 5, Lang::txt('EVENTS_TIME_UTC_5')), \Html::select('option', 5.5, Lang::txt('EVENTS_TIME_UTC_530')), \Html::select('option', 5.75, Lang::txt('EVENTS_TIME_UTC_545')), \Html::select('option', 6, Lang::txt('EVENTS_TIME_UTC_6')), \Html::select('option', 6.5, Lang::txt('EVENTS_TIME_UTC_630')), \Html::select('option', 7, Lang::txt('EVENTS_TIME_UTC_7')), \Html::select('option', 8, Lang::txt('EVENTS_TIME_UTC_8')), \Html::select('option', 8.75, Lang::txt('EVENTS_TIME_UTC_845')), \Html::select('option', 9, Lang::txt('EVENTS_TIME_UTC_9')), \Html::select('option', 9.5, Lang::txt('EVENTS_TIME_UTC_930')), \Html::select('option', 10, Lang::txt('EVENTS_TIME_UTC_10')), \Html::select('option', 10.5, Lang::txt('EVENTS_TIME_UTC_1030')), \Html::select('option', 11, Lang::txt('EVENTS_TIME_UTC_11')), \Html::select('option', 11.5, Lang::txt('EVENTS_TIME_UTC_1130')), \Html::select('option', 12, Lang::txt('EVENTS_TIME_UTC_12')), \Html::select('option', 12.75, Lang::txt('EVENTS_TIME_UTC_1245')), \Html::select('option', 13, Lang::txt('EVENTS_TIME_UTC_13')), \Html::select('option', 14, Lang::txt('EVENTS_TIME_UTC_14')));
     return \Html::select('genericlist', $timezones, 'time_zone', $args, 'value', 'text', $tzselected);
 }