X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Foptions.php;h=0137114c74023db4f98de46ff78893bb7a46e2aa;hb=ead50b42b38e393c2f25ac29042324ef32657939;hp=d4aa8bc68d525e9be4b2c6d5dce8000a1cffca2c;hpb=15e6162eacc97158393bc75aed3afeb7b19c24a6;p=squirrelmail.git diff --git a/functions/options.php b/functions/options.php index d4aa8bc6..0137114c 100644 --- a/functions/options.php +++ b/functions/options.php @@ -36,6 +36,7 @@ define('SMOPT_SIZE_SMALL', 1); define('SMOPT_SIZE_MEDIUM', 2); define('SMOPT_SIZE_LARGE', 3); define('SMOPT_SIZE_HUGE', 4); +define('SMOPT_SIZE_NORMAL', 5); define('SMOPT_SAVE_DEFAULT', 'save_option'); define('SMOPT_SAVE_NOOP', 'save_option_noop'); @@ -163,7 +164,7 @@ class SquirrelOption { $result = $this->createWidget_Comment(); break; default: - $result = '' + $result = '' . sprintf(_("Option Type '%s' Not Found"), $this->type) . ''; } @@ -177,12 +178,21 @@ class SquirrelOption { function createWidget_String() { switch ($this->size) { - case SMOPT_SIZE_TINY: $width = 5; break; - case SMOPT_SIZE_SMALL: $width = 12; break; - case SMOPT_SIZE_LARGE: $width = 38; break; - case SMOPT_SIZE_HUGE: $width = 50; break; + case SMOPT_SIZE_TINY: + $width = 5; + break; + case SMOPT_SIZE_SMALL: + $width = 12; + break; + case SMOPT_SIZE_LARGE: + $width = 38; + break; + case SMOPT_SIZE_HUGE: + $width = 50; + break; case SMOPT_SIZE_NORMAL: - default: $width = 25; + default: + $width = 25; } $result = "name\" VALUE=\"$this->value\" SIZE=\"$width\">"; @@ -379,10 +389,10 @@ function print_option_groups($option_groups) { if ($next_optgrp['name'] != '') { echo '' . $next_optgrp['name'] - . "\n"; - } - - /* Print each option in this option group. */ + . "\n"; + } + + /* Print each option in this option group. */ foreach ($next_optgrp['options'] as $option) { if ($option->type != SMOPT_TYPE_HIDDEN) { echo "\n"; @@ -394,8 +404,8 @@ function print_option_groups($option_groups) { echo $option->createHTMLWidget(); } } - - /* Print an empty row after this option group. */ + + /* Print an empty row after this option group. */ echo " \n"; } }