[Vtigercrm-commits] [vtiger-commits] r7142 - /vtigercrm/trunk/include/utils/ListViewUtils.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Thu Jun 15 11:26:41 EDT 2006


Author: saraj
Date: Thu Jun 15 09:26:37 2006
New Revision: 7142

Log:
changes made to get CampaignName 

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

Modified: vtigercrm/trunk/include/utils/ListViewUtils.php
==============================================================================
--- vtigercrm/trunk/include/utils/ListViewUtils.php (original)
+++ vtigercrm/trunk/include/utils/ListViewUtils.php Thu Jun 15 09:26:37 2006
@@ -1031,6 +1031,21 @@
 		else
 			$value='';
 	}
+	//Added by Minnie to get Campaign Source
+	elseif($uitype == 58)
+	{
+		global $adb;
+		if($temp_val != '')
+		{
+			$sql="SELECT * FROM vtiger_campaign WHERE campaignid=".$temp_val;
+			$result=$adb->query($sql);
+			$campaignname=$adb->query_result($result,0,"campaignname");
+			$value= '<a href=index.php?module=Campaigns&action=DetailView&record='.$temp_val.'>'.$campaignname.'</a>';
+		}
+		else
+			$value='';
+	}
+	//End
 	//Added By *Raj* for the Issue ProductName not displayed in CustomView of HelpDesk
 	elseif($uitype == 59)
 	{
@@ -1379,6 +1394,10 @@
 
 					$value = '<a href="a" LANGUAGE=javascript onclick=\'set_return_address("'.$entity_id.'", "'.br2nl($temp_val).'", "'.br2nl($acct_focus->column_fields['treet']).'", "'.br2nl($acct_focus->column_fields['city']).'", "'.br2nl($acct_focus->column_fields['state']).'", "'.br2nl($acct_focus->column_fields['postalcode']).'", "'.br2nl($acct_focus->column_fields['country']).'","'.br2nl($acct_focus->column_fields['pobox']).'"); window.close()\'>'.$temp_val.'</a>';
 
+				}
+				elseif($popuptype == "specific_campaign")
+				{
+					$value = '<a href="a" LANGUAGE=javascript onclick=\'set_return_specific_campaign("'.$entity_id.'", "'.br2nl($temp_val).'"); window.close()\'>'.$temp_val.'</a>';
 				}
 				else
 				{





More information about the vtigercrm-commits mailing list