projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bugfix
[squirrelmail.git]
/
functions
/
options.php
diff --git
a/functions/options.php
b/functions/options.php
index b0f5ee0b0c9a94621df04fc3a73e307039fd17ca..0137114c74023db4f98de46ff78893bb7a46e2aa 100644
(file)
--- 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_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');
define('SMOPT_SAVE_DEFAULT', 'save_option');
define('SMOPT_SAVE_NOOP', 'save_option_noop');
@@
-177,12
+178,21
@@
class SquirrelOption {
function createWidget_String() {
switch ($this->size) {
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:
case SMOPT_SIZE_NORMAL:
- default: $width = 25;
+ default:
+ $width = 25;
}
$result = "<INPUT NAME=\"new_$this->name\" VALUE=\"$this->value\" SIZE=\"$width\">";
}
$result = "<INPUT NAME=\"new_$this->name\" VALUE=\"$this->value\" SIZE=\"$width\">";
@@
-379,10
+389,10
@@
function print_option_groups($option_groups) {
if ($next_optgrp['name'] != '') {
echo '<TR><TD ALIGN=CENTER VALIGN=MIDDLE COLSPAN=2 NOWRAP><B>'
. $next_optgrp['name']
if ($next_optgrp['name'] != '') {
echo '<TR><TD ALIGN=CENTER VALIGN=MIDDLE COLSPAN=2 NOWRAP><B>'
. $next_optgrp['name']
- . "</B></TD></TR>\n";
- }
-
- /* Print each option in this option group. */
+
. "</B></TD></TR>\n";
+
}
+
+
/* Print each option in this option group. */
foreach ($next_optgrp['options'] as $option) {
if ($option->type != SMOPT_TYPE_HIDDEN) {
echo "<TR>\n";
foreach ($next_optgrp['options'] as $option) {
if ($option->type != SMOPT_TYPE_HIDDEN) {
echo "<TR>\n";
@@
-394,8
+404,8
@@
function print_option_groups($option_groups) {
echo $option->createHTMLWidget();
}
}
echo $option->createHTMLWidget();
}
}
-
- /* Print an empty row after this option group. */
+
+
/* Print an empty row after this option group. */
echo "<TR><TD COLSPAN=\"2\"> </TD></TR>\n";
}
}
echo "<TR><TD COLSPAN=\"2\"> </TD></TR>\n";
}
}