[ 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 $sql2 = "select * from vtiger_def_org_share where editstatus=0"; 16 $result2 = $adb->query($sql2); 17 $num_rows = $adb->num_rows($result2); 18 19 for($i=0; $i<$num_rows; $i++) 20 { 21 $ruleid=$adb->query_result($result2,$i,'ruleid'); 22 $tabid=$adb->query_result($result2,$i,'tabid'); 23 $reqval = $tabid.'_per'; 24 $permission=$_REQUEST[$reqval]; 25 $sql7="update vtiger_def_org_share set permission=".$permission." where tabid=".$tabid." and ruleid=".$ruleid; 26 $adb->query($sql7); 27 28 if($tabid == 6) 29 { 30 $sql8="update vtiger_def_org_share set permission=".$permission." where tabid=4"; 31 $adb->query($sql8); 32 33 } 34 35 if($tabid == 9) 36 { 37 $sql8="update vtiger_def_org_share set permission=".$permission." where tabid=16"; 38 $adb->query($sql8); 39 40 } 41 } 42 $loc = "Location: index.php?action=OrgSharingDetailView&module=Users&parenttab=Settings"; 43 header($loc); 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 |