[ 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 ('modules/Calendar/Activity.php'); 12 require_once ('include/logging.php'); 13 require_once ("config.php"); 14 require_once ('include/database/PearDatabase.php'); 15 16 $local_log =& LoggerManager::getLogger('index'); 17 18 $focus = new Activity(); 19 $activity_mode = $_REQUEST['activity_mode']; 20 if($activity_mode == 'Task') 21 { 22 $tab_type = 'Calendar'; 23 $focus->column_fields["activitytype"] = 'Task'; 24 } 25 26 if(isset($_REQUEST['record'])) 27 { 28 $focus->id = $_REQUEST['record']; 29 } 30 if(isset($_REQUEST['mode'])) 31 { 32 $focus->mode = $_REQUEST['mode']; 33 } 34 $focus->column_fields["subject"] = $_REQUEST["task_subject"]; 35 $focus->column_fields["time_start"] = $_REQUEST["task_time_start"]; 36 $focus->column_fields["assigned_user_id"] = $_REQUEST["task_assigned_user_id"]; 37 $_REQUEST["assigned_group_name"] = $_REQUEST['task_assigned_group_name']; 38 $_REQUEST['assigntype'] = $_REQUEST['task_assigntype']; 39 $focus->column_fields["taskstatus"] = $_REQUEST["taskstatus"]; 40 $focus->column_fields["date_start"] = $_REQUEST["task_date_start"]; 41 $focus->column_fields["due_date"] = $_REQUEST["task_due_date"]; 42 $focus->column_fields["taskpriority"] = $_REQUEST["taskpriority"]; 43 $focus->column_fields["parent_id"] = $_REQUEST["task_parent_id"]; 44 $focus->column_fields["contact_id"] = $_REQUEST["task_contact_id"]; 45 $focus->column_fields["description"] = $_REQUEST["task_description"]; 46 if(isset($_REQUEST['task_sendnotification']) && $_REQUEST['task_sendnotification'] != null) 47 $focus->column_fields["sendnotification"] = $_REQUEST["task_sendnotification"]; 48 49 $focus->save($tab_type); 50 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']); 51 ?>
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 |