X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Ftemplate-functions.php;h=d08805fa50f5e7938fa4758b4af32ad3a3adb03a;hb=a524135c24dd0a8fa359c9a92399467d50fd69e0;hp=d4bd6354fa62f3d7c80f39cbfb730bdb743c35b8;hpb=82c5c7d37ee00f628b4fdd445f7fc453523ed1dd;p=mailer.git diff --git a/inc/template-functions.php b/inc/template-functions.php index d4bd6354fa..d08805fa50 100644 --- a/inc/template-functions.php +++ b/inc/template-functions.php @@ -11,7 +11,7 @@ * Kurzbeschreibung : Template-Funktionen * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2015 by Mailer Developer Team * + * Copyright (c) 2009 - 2016 by Mailer Developer Team * * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -780,7 +780,7 @@ function compileRawCode ($code, $full = TRUE, $compileCode = TRUE) { } // -function addSelectionBox ($type, $default, $prefix = '', $id = NULL, $class = 'form_select') { +function addSelectionBox ($type, $default, $prefix = '', $id = NULL, $class = 'form_select', $allSteps = FALSE) { $OUT = ''; if ($type == 'yn') { @@ -880,7 +880,16 @@ function addSelectionBox ($type, $default, $prefix = '', $id = NULL, $class = 'f case 'mi': // Minutes case 'se': // Seconds - for ($idx = 0; $idx <= 59; $idx+=5) { + // Default is 5 minutes/seconds step + $step = 5; + + // All steps? + if ($allSteps === TRUE) { + // Then all steps + $step = 1; + } // END - if + + for ($idx = 0; $idx <= 59; $idx += $step) { $padded = padLeftZero($idx, 2); $OUT .= '