[Vtigercrm-commits] [vtiger-commits] r6335 - /vtigercrm/trunk/modules/Webmails/ListView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue May 23 18:09:49 EDT 2006
Author: mmbrich
Date: Tue May 23 16:09:48 2006
New Revision: 6335
Log:
pay attention to mails_per_page, closes 977
Modified:
vtigercrm/trunk/modules/Webmails/ListView.php
Modified: vtigercrm/trunk/modules/Webmails/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/Webmails/ListView.php (original)
+++ vtigercrm/trunk/modules/Webmails/ListView.php Tue May 23 16:09:48 2006
@@ -231,9 +231,12 @@
if($numEmails <= 0)
$listview_entries[0][] = '<td colspan="6" width="100%" align="center"><b>No Emails In This Folder</b></td>';
else {
+$displayed_msgs=0;
$i=1;
// Main loop to create listview entries
while ($i<$c) {
+ if($displayed_msgs==$mails_per_page) {break;}
+
$num = $mails[$start_message]->msgno;
// TODO: scan the current db tables to find a
// matching email address that will make a good
@@ -248,9 +251,11 @@
$detailParams = 'record='.$record_id.'&mailbox='.$mailbox.'&mailid='.$num.'&parenttab=My Home Page';
$defaultParams = 'parenttab=My Home Page&mailbox='.$mailbox.'&start='.$start.'&viewname='.$viewname;
- if ($mails[$start_message]->deleted && !$show_hidden)
+ $displayed_msgs++;
+ if ($mails[$start_message]->deleted && !$show_hidden) {
$flags = "<tr id='row_".$mails[$start_message]->msgno."' class='deletedRow' style='display:none'><td colspan='1'><input type='checkbox' name='checkbox_".$mails[$start_message]->msgno."'></td><td colspan='1'>";
- elseif ($mails[$start_message]->deleted && $show_hidden)
+ $displayed_msgs--;
+ } elseif ($mails[$start_message]->deleted && $show_hidden)
$flags = "<tr id='row_".$mails[$start_message]->msgno."' class='deletedRow'><td colspan='1'><input type='checkbox' name='checkbox_".$mails[$start_message]->msgno."'></td><td colspan='1'>";
else
$flags = "<tr id='row_".$mails[$start_message]->msgno."'><td colspan='1'><input type='checkbox' name='checkbox_".$mails[$start_message]->msgno."'></td><td colspan='1'>";
More information about the vtigercrm-commits
mailing list