diff options
| author | roundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2005-09-28 22:28:05 +0000 |
|---|---|---|
| committer | roundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2005-09-28 22:28:05 +0000 |
| commit | 63421e8191dd25c04b74ebcecdcd4231625a9ea9 (patch) | |
| tree | 3d9f5045687d3f40fbdea8ccaf13d1c2e00bc2b7 /roundcubemail/program/steps/settings/func.inc | |
| parent | a54c76a1fc8917231c034ffc1938fe54b77b7c3d (diff) | |
Minor bugfixes and correction of confusing License notfications
git-svn-id: https://svn.roundcube.net/trunk@8 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/settings/func.inc')
| -rw-r--r-- | roundcubemail/program/steps/settings/func.inc | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/roundcubemail/program/steps/settings/func.inc b/roundcubemail/program/steps/settings/func.inc index c48f41c90..60b1056dd 100644 --- a/roundcubemail/program/steps/settings/func.inc +++ b/roundcubemail/program/steps/settings/func.inc @@ -6,7 +6,7 @@ | | | This file is part of the RoundCube Webmail client | | Copyright (C) 2005, RoundCube Dev. - Switzerland | - | All rights reserved. | + | Licensed under the GNU GPL | | | | PURPOSE: | | Provide functionality for user's settings & preferences | @@ -44,9 +44,10 @@ function rcmail_user_prefs_form($attrib) // return the complete edit form as table $out = "$form_start<table" . $attrib_str . ">\n\n"; - $a_show_cols = array('language' => array('type' => 'text'), - 'pagesize' => array('type' => 'text'), - 'timezone' => array('type' => 'text')); + $a_show_cols = array('language' => array('type' => 'text'), + 'pagesize' => array('type' => 'text'), + 'timezone' => array('type' => 'text'), + 'prettydate' => array('type' => 'text')); // show language selection $field_id = 'rcmfd_lang'; @@ -120,6 +121,15 @@ function rcmail_user_prefs_form($attrib) rcube_label('preferhtml'), $input_pagesize->show($CONFIG['prefer_html']?1:0)); + // MM: Show checkbox for toggling 'pretty dates' + $field_id = 'rcmfd_prettydate'; + $input_prettydate = new checkbox(array('name' => '_pretty_date', 'id' => $field_id, 'value' => 1)); + + $out .= sprintf("<tr><td class=\"title\"><label for=\"%s\">%s</label></td><td>%s</td></tr>\n", + $field_id, + rcube_label('prettydate'), + $input_prettydate->show($CONFIG['prettydate']?1:0)); + $out .= "\n</table>$form_end"; |
