X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Fsmarty%2Flibs%2Fplugins%2Ffunction.html_select_time.php;h=2e5be7efe3ff0bc9d17ec69686163d39a97f76c1;hb=9b7c11be09e7a553b26667f673c6315209ddc210;hp=0941a44a3d683f3b167f1c7d8ba7ad5722af5fb5;hpb=95a6ccc277bc41d750ced09fe5a1a779bde342c7;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/smarty/libs/plugins/function.html_select_time.php b/wwwroot/smarty/libs/plugins/function.html_select_time.php index 0941a44..2e5be7e 100644 --- a/wwwroot/smarty/libs/plugins/function.html_select_time.php +++ b/wwwroot/smarty/libs/plugins/function.html_select_time.php @@ -14,6 +14,8 @@ * Purpose: Prints the dropdowns for time selection * @link http://smarty.php.net/manual/en/language.function.html.select.time.php {html_select_time} * (Smarty online manual) + * @author Roberto Berto + * @credits Monte Ohrt * @param array * @param Smarty * @return string @@ -123,7 +125,7 @@ function smarty_function_html_select_time($params, &$smarty) $html_result .= ' ' . $all_extra; } $html_result .= '>'."\n"; - + $html_result .= smarty_function_html_options(array('output' => $minutes, 'values' => $minutes, 'selected' => $selected, @@ -143,7 +145,7 @@ function smarty_function_html_select_time($params, &$smarty) } else { $html_result .= '"' . $prefix . 'Second"'; } - + if (null !== $second_extra){ $html_result .= ' ' . $second_extra; } @@ -151,7 +153,7 @@ function smarty_function_html_select_time($params, &$smarty) $html_result .= ' ' . $all_extra; } $html_result .= '>'."\n"; - + $html_result .= smarty_function_html_options(array('output' => $seconds, 'values' => $seconds, 'selected' => $selected, @@ -167,7 +169,7 @@ function smarty_function_html_select_time($params, &$smarty) } else { $html_result .= '"' . $prefix . 'Meridian"'; } - + if (null !== $meridian_extra){ $html_result .= ' ' . $meridian_extra; } @@ -175,7 +177,7 @@ function smarty_function_html_select_time($params, &$smarty) $html_result .= ' ' . $all_extra; } $html_result .= '>'."\n"; - + $html_result .= smarty_function_html_options(array('output' => array('AM', 'PM'), 'values' => array('am', 'pm'), 'selected' => strtolower(strftime('%p', $time)),