[Vtigercrm-commits] [vtiger-commits] r5127 - /vtigercrm/trunk/modules/Import/ImportMap.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Sat Apr 15 01:23:31 EDT 2006
Author: saraj
Date: Fri Apr 14 23:23:27 2006
New Revision: 5127
Log:
Added two function for ajaxification of saved mapping of Import Module
Modified:
vtigercrm/trunk/modules/Import/ImportMap.php
Modified: vtigercrm/trunk/modules/Import/ImportMap.php
==============================================================================
--- vtigercrm/trunk/modules/Import/ImportMap.php (original)
+++ vtigercrm/trunk/modules/Import/ImportMap.php Fri Apr 14 23:23:27 2006
@@ -153,6 +153,34 @@
return $obj_arr;
}
+ function getSavedMappingsList($module)
+ {
+ $query = "SELECT * FROM $this->table_name where module='".$module."'";
+ $result = $this->db->query($query,true," Error: ");
+ $map_lists = array();
+
+ while ($row = $this->db->fetchByAssoc($result,-1,FALSE) )
+ {
+ $map_lists[$row['id']] = $row['name'];
+ }
+ return $map_lists;
+ }
+ function getSavedMappingContent($mapid)
+ {
+ $query = "SELECT * FROM $this->table_name where id='".$mapid."'";
+ $result = $this->db->query($query,true," Error: ");
+ $mapping_arr = array();
+
+ $pairs = split("&",$this->db->query_result($result,0,'content'));
+ foreach ($pairs as $pair)
+ {
+ list($name,$value) = split("=",$pair);
+ $mapping_arr["$name"] = $value;
+ }
+
+ return $mapping_arr;
+ }
+
}
More information about the vtigercrm-commits
mailing list