[ Index ] |
|
Code source de vtiger CRM 5.0.2 |
1 <?php 2 3 4 /********************************************************************************* 5 ** The contents of this file are subject to the vtiger CRM Public License Version 1.0 6 * ("License"); You may not use this file except in compliance with the License 7 * The Original Code is: vtiger CRM Open Source 8 * The Initial Developer of the Original Code is vtiger. 9 * Portions created by vtiger are Copyright (C) vtiger. 10 * All Rights Reserved. 11 * 12 ********************************************************************************/ 13 14 15 16 17 /** 18 * 19 * File to update the notification schedulers in the db 20 * 21 */ 22 23 24 global $adb; 25 $flag=0; 26 //pass the vtiger_table id as a parameter and then update directly instead of using the name vtiger_field 27 for ($i=1;$i<10;$i++) 28 { 29 if($_POST[$i] == 'on') 30 { 31 $flag=1; 32 } 33 else 34 { 35 $flag=0; 36 } 37 $sql = "update vtiger_notificationscheduler set active=".$flag." where schedulednotificationid=".$i; 38 39 $adb->query($sql); 40 } 41 42 header("Location:index.php?module=Users&action=listnotificationschedulers"); 43 44 45 46 47 48 ?>
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 |