[Vtigercrm-commits] [vtiger-commits] r4843 - /vtigercrm/trunk/include/utils/CommonUtils.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Mon Apr 3 14:27:44 EDT 2006


Author: don
Date: Mon Apr  3 12:27:39 2006
New Revision: 4843

Log:
written tab sequence array in tabdata file

Modified:
    vtigercrm/trunk/include/utils/CommonUtils.php

Modified: vtigercrm/trunk/include/utils/CommonUtils.php
==============================================================================
--- vtigercrm/trunk/include/utils/CommonUtils.php (original)
+++ vtigercrm/trunk/include/utils/CommonUtils.php Mon Apr  3 12:27:39 2006
@@ -1279,11 +1279,14 @@
         $result = $adb->query($sql);
         $num_rows=$adb->num_rows($result);
         $result_array=Array();
+	$seq_array=Array();
         for($i=0;$i<$num_rows;$i++)
         {
                 $tabid=$adb->query_result($result,$i,'tabid');
                 $tabname=$adb->query_result($result,$i,'name');
+		$presence=$adb->query_result($result,$i,'presence');
                 $result_array[$tabname]=$tabid;
+		$seq_array[$tabid]=$presence;
 
         }
 
@@ -1306,6 +1309,8 @@
                 $newbuf .= "//This file contains the commonly used variables \n";
                 $newbuf .= "\n";
                 $newbuf .= "\$tab_info_array=".constructArray($result_array).";\n";
+                $newbuf .= "\n";
+                $newbuf .= "\$tab_seq_array=".constructArray($seq_array).";\n";
                 $newbuf .= "?>";
                 fputs($handle, $newbuf);
                 fclose($handle);





More information about the vtigercrm-commits mailing list