[Vtigercrm-commits] [vtiger-commits] r5022 - /vtigercrm/trunk/modules/Webmails/ListView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Sat Apr 8 00:53:07 EDT 2006
Author: mmbrich
Date: Fri Apr 7 22:53:06 2006
New Revision: 5022
Log:
fixed pagination
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 Fri Apr 7 22:53:06 2006
@@ -170,7 +170,11 @@
//print_r($elist);
$numEmails = $elist["count"];
$headers = $elist["headers"];
-
+
+if($start > 1) {
+ $skip_num = (($start - 1) * $mails_per_page);
+ $start_message = ($numEmails - $skip_num);
+}
if(!isset($start_message) || $start_message=="") {$start_message=$numEmails;}
if(isset($_REQUEST["start"]) && $_REQUEST["viewname"]=="20") {
if($_REQUEST["start"] != 1)
More information about the vtigercrm-commits
mailing list