[Vtigercrm-commits] [vtiger-commits] r5413 - /vtigercrm/trunk/include/utils/UserInfoUtil.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Apr 26 23:38:36 EDT 2006
Author: saraj
Date: Wed Apr 26 21:38:32 2006
New Revision: 5413
Log:
changes made to support grouprelation for campaign module
Modified:
vtigercrm/trunk/include/utils/UserInfoUtil.php
Modified: vtigercrm/trunk/include/utils/UserInfoUtil.php
==============================================================================
--- vtigercrm/trunk/include/utils/UserInfoUtil.php (original)
+++ vtigercrm/trunk/include/utils/UserInfoUtil.php Wed Apr 26 21:38:32 2006
@@ -4112,4 +4112,34 @@
}
+//Code added by Minnie for campaigngroup relation -- start
+
+/** Function to add campaign group relation
+ * @param $campaignid -- Campaign Id:: Type integer
+ * @param $groupname -- Group Name:: Type varchar
+ *
+ */
+function insert2CampaignGroupRelation($campaignid,$groupname)
+{
+ global $adb;
+ $sql = "insert into campaigngrouprelation values (" .$campaignid .",'".$groupname."')";
+ $adb->query($sql);
+
+}
+
+/** Function to update campaign group relation
+ * @param $campaignid -- Campaign Id:: Type integer
+ * @param $groupname -- Group Name:: Type varchar
+ *
+ */
+function updateCampaignGroupRelation($campaignid,$groupname)
+{
+ global $adb;
+ $sqldelete = "delete from campaigngrouprelation where campaignid=".$campaignid;
+ $adb->query($sqldelete);
+ $sql = "insert into campaigngrouprelation values (".$campaignid .",'" .$groupname ."')";
+ $adb->query($sql);
+}
+
+//end
?>
More information about the vtigercrm-commits
mailing list