X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Ftemplate-functions.php;h=6844430ab5e32b6e6aac05c2f9a0202df41473b5;hp=d4bd6354fa62f3d7c80f39cbfb730bdb743c35b8;hb=773ae2c427c857b023eb8ec8480095b45849a933;hpb=0b2ed03c939ef3d63432ee851a5def40110476e1 diff --git a/inc/template-functions.php b/inc/template-functions.php index d4bd6354fa..6844430ab5 100644 --- a/inc/template-functions.php +++ b/inc/template-functions.php @@ -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 .= '