[ 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 require_once ('include/database/PearDatabase.php'); 12 global $adb; 13 14 if(isset($_REQUEST['hour_format']) && $_REQUEST['hour_format'] != '') 15 $hour_format = $_REQUEST['hour_format']; 16 else 17 $hour_format = 'am/pm'; 18 $delquery = "delete from vtiger_sharedcalendar where userid=".$_REQUEST["current_userid"]; 19 $adb->query($delquery); 20 $sharedid = $_REQUEST['user']; 21 if(isset($sharedid) && $sharedid != null) 22 { 23 foreach($sharedid as $sid) 24 { 25 if($sid != '') 26 { 27 $sql = "insert into vtiger_sharedcalendar values (".$_REQUEST["current_userid"].",".$sid.")"; 28 $adb->query($sql); 29 } 30 } 31 } 32 if(isset($_REQUEST['start_hour']) && $_REQUEST['start_hour'] != '') 33 { 34 $sql = "update vtiger_users set start_hour='".$_REQUEST['start_hour']."' where id=".$current_user->id; 35 $adb->query($sql); 36 } 37 38 $sql = "update vtiger_users set hour_format='".$hour_format."' where id=".$current_user->id; 39 $adb->query($sql); 40 RecalculateSharingRules(); 41 header("Location: index.php?action=index&module=Calendar&view=".$_REQUEST['view']."&hour=".$_REQUEST['hour']."&day=".$_REQUEST['day']."&month=".$_REQUEST['month']."&year=".$_REQUEST['year']."&viewOption=".$_REQUEST['viewOption']."&subtab=".$_REQUEST['subtab']."&parenttab=".$_REQUEST['parenttab']); 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 |