X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=include%2Foptions%2Fdisplay.php;h=1235ca13496a69c11583d64b1a32a32f4d39d580;hb=3fc1a95fa49610a823d3587357b3d6123c6120ee;hp=7ccb61101aa553d618aa3568cac12c6bc0167012;hpb=ac50138c1be7836d931e8c45a959f815a500203f;p=squirrelmail.git diff --git a/include/options/display.php b/include/options/display.php index 7ccb6110..1235ca13 100644 --- a/include/options/display.php +++ b/include/options/display.php @@ -3,7 +3,7 @@ /** * options_display.php * - * Copyright (c) 1999-2002 The SquirrelMail Project Team + * Copyright (c) 1999-2003 The SquirrelMail Project Team * Licensed under the GNU GPL. For full terms see the file COPYING. * * Displays all optinos about display preferences @@ -58,7 +58,7 @@ function load_optpage_data_display() { } closedir($handle); - if ( count( $css_values > 1 ) ) { + if ( count( $css_values ) > 1 ) { $optvals[SMOPT_GRP_GENERAL][] = array( 'name' => 'custom_css', @@ -99,17 +99,14 @@ function load_optpage_data_display() { SMPREF_JS_OFF => _("Never")) ); - $js_autodetect_script = - "\n"; + $onLoadScript = "document.forms[0].new_js_autodetect_results.value = '" . SMPREF_JS_ON . "'"; $js_autodetect_results = SMPREF_JS_OFF; $optvals[SMOPT_GRP_GENERAL][] = array( 'name' => 'js_autodetect_results', 'caption' => '', 'type' => SMOPT_TYPE_HIDDEN, 'refresh' => SMOPT_REFRESH_NONE, - 'script' => $js_autodetect_script, + //'post_script' => $js_autodetect_script, 'save' => 'save_option_javascript_autodetect' ); @@ -147,6 +144,30 @@ function load_optpage_data_display() { 'size' => SMOPT_SIZE_TINY ); + $optvals[SMOPT_GRP_MAILBOX][] = array( + 'name' => 'show_full_date', + 'caption' => _("Always Show Full Date"), + 'type' => SMOPT_TYPE_BOOLEAN, + 'refresh' => SMOPT_REFRESH_NONE + ); + + $optvals[SMOPT_GRP_MAILBOX][] = array( + 'name' => 'truncate_sender', + 'caption' => _("Length of From/To Field (0 for full)"), + 'type' => SMOPT_TYPE_INTEGER, + 'refresh' => SMOPT_REFRESH_NONE, + 'size' => SMOPT_SIZE_TINY + ); + + $optvals[SMOPT_GRP_MAILBOX][] = array( + 'name' => 'truncate_subject', + 'caption' => _("Length of Subject Field (0 for full)"), + 'type' => SMOPT_TYPE_INTEGER, + 'refresh' => SMOPT_REFRESH_NONE, + 'size' => SMOPT_SIZE_TINY + ); + + /*** Load the General Options into the array ***/ $optgrps[SMOPT_GRP_MESSAGE] = _("Message Display and Composition"); $optvals[SMOPT_GRP_MESSAGE] = array(); @@ -229,13 +250,6 @@ function load_optpage_data_display() { 'refresh' => SMOPT_REFRESH_NONE ); - $optvals[SMOPT_GRP_MESSAGE][] = array( - 'name' => 'pf_subtle_link', - 'caption' => _("Enable Subtle Printer Friendly Link"), - 'type' => SMOPT_TYPE_BOOLEAN, - 'refresh' => SMOPT_REFRESH_NONE - ); - $optvals[SMOPT_GRP_MESSAGE][] = array( 'name' => 'pf_cleandisplay', 'caption' => _("Enable Printer Friendly Clean Display"), @@ -282,6 +296,13 @@ function load_optpage_data_display() { 'refresh' => SMOPT_REFRESH_NONE ); + $optvals[SMOPT_GRP_MESSAGE][] = array( + 'name' => 'strip_sigs', + 'caption' => _("Strip signature when replying"), + 'type' => SMOPT_TYPE_BOOLEAN, + 'refresh' => SMOPT_REFRESH_NONE + ); + $optvals[SMOPT_GRP_MESSAGE][] = array( 'name' => 'internal_date_sort', 'caption' => _("Enable Sort by of Receive Date"), @@ -299,7 +320,8 @@ function load_optpage_data_display() { /* Assemble all this together and return it as our result. */ $result = array( 'grps' => $optgrps, - 'vals' => $optvals + 'vals' => $optvals, + 'xtra' => $onLoadScript ); return ($result); }