[ 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 global $adb; 14 15 //This if will be true, when we select product from vendor related list 16 if($_REQUEST['destination_module']=='Products') 17 { 18 if($_REQUEST['parid'] != '' && $_REQUEST['entityid'] != '') 19 { 20 $sql = "update vtiger_products set vendor_id=".$_REQUEST['parid']." where productid=".$_REQUEST['entityid']; 21 $adb->query($sql); 22 } 23 } 24 if($_REQUEST['destination_module']=='Contacts') 25 { 26 if($_REQUEST['smodule']=='VENDOR') 27 { 28 $sql = "insert into vtiger_vendorcontactrel values (".$_REQUEST['parid'].",".$_REQUEST['entityid'].")"; 29 $adb->query($sql); 30 } 31 } 32 33 $return_action = 'DetailView'; 34 if($_REQUEST['return_action'] != '') 35 $return_action = $_REQUEST['return_action']; 36 37 header("Location:index.php?action=$return_action&module=Vendors&record=".$_REQUEST["parid"]); 38 39 40 41 42 43 44 ?>
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 |