From a8d23d82a296cab71bd2f2b71dad6dca58a643d6 Mon Sep 17 00:00:00 2001 From: thomascube Date: Tue, 12 Feb 2008 18:41:53 +0000 Subject: Show message count in folder list and hint when creating a subfolder --- program/steps/settings/manage_folders.inc | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) (limited to 'program/steps') diff --git a/program/steps/settings/manage_folders.inc b/program/steps/settings/manage_folders.inc index e457dadf5..fb6ee147a 100644 --- a/program/steps/settings/manage_folders.inc +++ b/program/steps/settings/manage_folders.inc @@ -5,7 +5,7 @@ | program/steps/settings/manage_folders.inc | | | | This file is part of the RoundCube Webmail client | - | Copyright (C) 2005-2007, RoundCube Dev. - Switzerland | + | Copyright (C) 2005-2008, RoundCube Dev. - Switzerland | | Licensed under the GNU GPL | | | | PURPOSE: | @@ -159,9 +159,9 @@ function rcube_subscription_form($attrib) // add table header $out .= "\n"; - $out .= sprintf('%s%s'. + $out .= sprintf('%s%s%s'. '  ', - rcube_label('foldername'), rcube_label('subscribed')); + rcube_label('foldername'), rcube_label('messagecount'), rcube_label('subscribed')); $out .= "\n\n\n"; @@ -201,20 +201,21 @@ function rcube_subscription_form($attrib) if (!$protected) $a_js_folders['rcmrow'.($i+1)] = array($folder, rcube_charset_convert($folder, 'UTF-7')); - $out .= sprintf('%s', + $out .= sprintf('%s%d', $i+1, $zebra_class, - Q($folder_html)); + Q($folder_html), + $IMAP->messagecount($folder)); if ($protected) - $out .= ' '.($subscribed ? '•' : '-').''; + $out .= ' '.($subscribed ? '•' : '-').''; else - $out .= ''.$checkbox_subscribe->show($subscribed?$folder:'', array('value' => $folder)).''; + $out .= ''.$checkbox_subscribe->show($subscribed?$folder:'', array('value' => $folder)).''; // add rename and delete buttons if (!$protected) - $out .= sprintf('%s'. - '%s', + $out .= sprintf('%s'. + '%s', rcube_label('renamefolder'), $edit_button, rcube_label('deletefolder'), @@ -239,9 +240,13 @@ function rcube_subscription_form($attrib) function rcube_create_folder_form($attrib) { + global $OUTPUT; + list($form_start, $form_end) = get_form_tags($attrib, 'create-folder'); unset($attrib['form']); + if ($attrib['hintbox']) + $OUTPUT->add_gui_object('createfolderhint', $attrib['hintbox']); // return the complete edit form as table $out = "$form_start\n"; @@ -298,7 +303,7 @@ function rcube_rename_folder_form($attrib) } $out .= "\n$form_end"; - + return $out; } @@ -311,7 +316,7 @@ $OUTPUT->add_handlers(array( )); // add some labels to client -rcube_add_label('deletefolderconfirm'); +rcube_add_label('deletefolderconfirm','addsubfolderhint'); $OUTPUT->send('managefolders'); ?> -- cgit v1.2.3