[Vtigercrm-commits] [vtiger-commits] r11045 - /vtigercrm/branches/5.0.3/modules/Webmails/ListView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Fri May 25 16:56:56 EDT 2007
Author: richie
Date: Fri May 25 14:56:50 2007
New Revision: 11045
Log:
added code to display the total no of mails displayed in search -Sri
Modified:
vtigercrm/branches/5.0.3/modules/Webmails/ListView.php
Modified: vtigercrm/branches/5.0.3/modules/Webmails/ListView.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Webmails/ListView.php (original)
+++ vtigercrm/branches/5.0.3/modules/Webmails/ListView.php Fri May 25 14:56:50 2007
@@ -323,7 +323,7 @@
$num_searches = count($searchlist);
$c=$numEmails;
}
-
+ $search_count = $num_searches;
while ($i<=$c) {
if(is_array($searchlist)) {
for($l=0;$l<$num_searches;$l++) {
@@ -437,7 +437,10 @@
$smarty->assign("CATEGORY","My Home Page");
$smarty->assign("NAVIGATION", $navigationOutput);
$smarty->assign("FOLDER_SELECT", $boxes);
-$smarty->assign("NUM_EMAILS", $numEmails);
+if(isset($_REQUEST['search']))
+ $smarty->assign("NUM_EMAILS", $search_count);
+else
+ $smarty->assign("NUM_EMAILS", $numEmails);
$smarty->assign("MAILBOX", $MailBox->mailbox);
$smarty->assign("ACCOUNT", $MailBox->display_name);
$smarty->assign("BOXLIST",$folders);
More information about the vtigercrm-commits
mailing list