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