[ Index ] |
|
Code source de vtiger CRM 5.0.2 |
1 <?php 2 /********************************************************************************* 3 ** The contents of this file are subject to the vtiger CRM Public License Version 1.0 4 * ("License"); You may not use this file except in compliance with the License 5 * The Original Code is: vtiger CRM Open Source 6 * The Initial Developer of the Original Code is vtiger. 7 * Portions created by vtiger are Copyright (C) vtiger. 8 * All Rights Reserved. 9 * 10 ********************************************************************************/ 11 12 require_once ('include/database/PearDatabase.php'); 13 require_once ('user_privileges/default_module_view.php'); 14 global $adb, $singlepane_view; 15 $idlist = $_REQUEST['idlist']; 16 $update_mod = $_REQUEST['destination_module']; 17 $rel_table = 'vtiger_campaigncontrel'; 18 if(isset($_REQUEST['idlist']) && $_REQUEST['idlist'] != '') 19 { 20 //split the string and store in an array 21 $storearray = explode (";",$idlist); 22 foreach($storearray as $id) 23 { 24 if($id != '') 25 { 26 $sql = "insert into ".$rel_table." values(".$id.",".$_REQUEST["parentid"].")"; 27 $adb->query($sql); 28 } 29 } 30 if($singlepane_view == 'true') 31 header("Location: index.php?action=DetailView&module=Contacts&record=".$_REQUEST["parentid"]); 32 else 33 header("Location: index.php?action=CallRelatedList&module=Contacts&record=".$_REQUEST["parentid"]); 34 } 35 elseif(isset($_REQUEST['entityid']) && $_REQUEST['entityid'] != '') 36 { 37 $sql = "insert into ".$rel_table." values(".$_REQUEST["entityid"].",".$_REQUEST["parid"].")"; 38 $adb->query($sql); 39 if($singlepane_view == 'true') 40 header("Location: index.php?action=DetailView&module=Contacts&record=".$_REQUEST["parid"]); 41 else 42 header("Location: index.php?action=CallRelatedList&module=Contacts&record=".$_REQUEST["parid"]); 43 } 44 45 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 10:22:19 2007 | par Balluche grâce à PHPXref 0.7 |