[ 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/logging.php'); 13 require_once ('modules/Users/Users.php'); 14 require_once ('include/database/PearDatabase.php'); 15 global $adb; 16 17 $local_log =& LoggerManager::getLogger('UsersAjax'); 18 $ajaxaction = $_REQUEST["ajxaction"]; 19 if($ajaxaction == "DETAILVIEW") 20 { 21 $crmid = $_REQUEST["recordid"]; 22 $tablename = $_REQUEST["tableName"]; 23 $fieldname = $_REQUEST["fldName"]; 24 $fieldvalue = utf8RawUrlDecode($_REQUEST["fieldValue"]); 25 if($crmid != "") 26 { 27 $userObj = new Users(); 28 $userObj->retrieve_entity_info($crmid,"Users"); 29 $userObj->column_fields[$fieldname] = $fieldvalue; 30 $userObj->id = $crmid; 31 $userObj->mode = "edit"; 32 $userObj->save("Users"); 33 if($userObj->id != "") 34 { 35 echo ":#:SUCCESS"; 36 }else 37 { 38 echo ":#:FAILURE"; 39 } 40 }else 41 { 42 echo ":#:FAILURE"; 43 } 44 } 45 ?>
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 |