[Vtigercrm-commits] [vtiger-commits] r6647 - in /vtigercrm/trunk: include/js/ modules/Accounts/ modules/Activities/ modules/Campaigns/ modules/Contacts/ modules/Faq/ modules/HelpDesk/ modules/Invoice/ modules/Leads/ modules/Notes/ modules/Potentials/ modules/PriceBooks/ modules/Products/ modules/PurchaseOrder/ modules/Quotes/ modules/SalesOrder/ modules/Vendors/
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon May 29 03:46:23 EDT 2006
Author: don
Date: Mon May 29 01:45:47 2006
New Revision: 6647
Log:
detailview ajax edit moved to seperate files for security purposes
Added:
vtigercrm/trunk/modules/Accounts/DetailViewAjax.php
vtigercrm/trunk/modules/Activities/DetailViewAjax.php
vtigercrm/trunk/modules/Campaigns/DetailViewAjax.php
vtigercrm/trunk/modules/Contacts/DetailViewAjax.php
vtigercrm/trunk/modules/Faq/DetailViewAjax.php
vtigercrm/trunk/modules/HelpDesk/DetailViewAjax.php
vtigercrm/trunk/modules/Invoice/DetailViewAjax.php
vtigercrm/trunk/modules/Leads/DetailViewAjax.php
vtigercrm/trunk/modules/Notes/DetailViewAjax.php
vtigercrm/trunk/modules/Potentials/DetailViewAjax.php
vtigercrm/trunk/modules/PriceBooks/DetailViewAjax.php
vtigercrm/trunk/modules/Products/DetailViewAjax.php
vtigercrm/trunk/modules/PurchaseOrder/DetailViewAjax.php
vtigercrm/trunk/modules/Quotes/DetailViewAjax.php
vtigercrm/trunk/modules/SalesOrder/DetailViewAjax.php
vtigercrm/trunk/modules/Vendors/DetailViewAjax.php
Modified:
vtigercrm/trunk/include/js/dtlviewajax.js
vtigercrm/trunk/modules/Accounts/AccountsAjax.php
vtigercrm/trunk/modules/Activities/ActivitiesAjax.php
vtigercrm/trunk/modules/Campaigns/CampaignsAjax.php
vtigercrm/trunk/modules/Contacts/ContactsAjax.php
vtigercrm/trunk/modules/Faq/FaqAjax.php
vtigercrm/trunk/modules/HelpDesk/HelpDeskAjax.php
vtigercrm/trunk/modules/Invoice/InvoiceAjax.php
vtigercrm/trunk/modules/Leads/LeadsAjax.php
vtigercrm/trunk/modules/Notes/NotesAjax.php
vtigercrm/trunk/modules/Potentials/PotentialsAjax.php
vtigercrm/trunk/modules/PriceBooks/PriceBooksAjax.php
vtigercrm/trunk/modules/Products/ProductsAjax.php
vtigercrm/trunk/modules/PurchaseOrder/PurchaseOrderAjax.php
vtigercrm/trunk/modules/Quotes/QuotesAjax.php
vtigercrm/trunk/modules/SalesOrder/SalesOrderAjax.php
vtigercrm/trunk/modules/Vendors/VendorsAjax.php
Modified: vtigercrm/trunk/include/js/dtlviewajax.js
==============================================================================
--- vtigercrm/trunk/include/js/dtlviewajax.js (original)
+++ vtigercrm/trunk/include/js/dtlviewajax.js Mon May 29 01:45:47 2006
@@ -91,7 +91,7 @@
}
}
- var data = "module=" + module + "&action=" + module + "Ajax&recordid=" + crmId ;
+ var data = "module=" + module + "&action=" + module + "Ajax&file=DetailViewAjax&recordid=" + crmId ;
data = data + "&fldName=" + fieldName + "&fieldValue=" + escape(tagValue) + "&ajxaction=DETAILVIEW";
show("vtbusy_info");
@@ -183,7 +183,7 @@
{
var tagValue = document.getElementById(txtBox).value;
document.getElementById(txtBox).value ='';
- var data = "module=" + module + "&action=" + module + "Ajax&recordid=" + crmId + "&file=TagCloud&ajxaction=SAVETAG&tagfields=" +tagValue;
+ var data = "module=" + module + "&action=" + module + "Ajax&file=DetailVIewAjax&recordid=" + crmId + "&file=TagCloud&ajxaction=SAVETAG&tagfields=" +tagValue;
var ajaxObj = new Ajax(dtlViewAjaxTagResponse);
ajaxObj.process("index.php?",data);
Modified: vtigercrm/trunk/modules/Accounts/AccountsAjax.php
==============================================================================
--- vtigercrm/trunk/modules/Accounts/AccountsAjax.php (original)
+++ vtigercrm/trunk/modules/Accounts/AccountsAjax.php Mon May 29 01:45:47 2006
@@ -9,42 +9,6 @@
*
********************************************************************************/
-require_once('include/logging.php');
-require_once('modules/Accounts/Account.php');
-require_once('include/database/PearDatabase.php');
-global $adb;
-$local_log =& LoggerManager::getLogger('AccountsAjax');
-
-$ajaxaction = $_REQUEST["ajxaction"];
-if($ajaxaction == "DETAILVIEW")
-{
- $crmid = $_REQUEST["recordid"];
- $tablename = $_REQUEST["tableName"];
- $fieldname = $_REQUEST["fldName"];
- $fieldvalue = $_REQUEST["fieldValue"];
- if($crmid != "")
- {
- $acntObj = new Account();
- $acntObj->retrieve_entity_info($crmid,"Accounts");
- $acntObj->column_fields[$fieldname] = $fieldvalue;
- $acntObj->id = $crmid;
- $acntObj->mode = "edit";
- $acntObj->save("Accounts");
- if($acntObj->id != "")
- {
- echo ":#:SUCCESS";
- }else
- {
- echo ":#:FAILURE";
- }
- }else
- {
- echo ":#:FAILURE";
- }
-}
-else
-{
require_once('include/Ajax/CommonAjax.php');
-}
?>
Modified: vtigercrm/trunk/modules/Activities/ActivitiesAjax.php
==============================================================================
--- vtigercrm/trunk/modules/Activities/ActivitiesAjax.php (original)
+++ vtigercrm/trunk/modules/Activities/ActivitiesAjax.php Mon May 29 01:45:47 2006
@@ -9,42 +9,5 @@
*
********************************************************************************/
-require_once('include/logging.php');
-require_once('modules/Activities/Activity.php');
-require_once('include/database/PearDatabase.php');
-global $adb;
-
-$local_log =& LoggerManager::getLogger('ActivitiesAjax');
-
-$ajaxaction = $_REQUEST["ajxaction"];
-if($ajaxaction == "DETAILVIEW")
-{
- $crmid = $_REQUEST["recordid"];
- $tablename = $_REQUEST["tableName"];
- $fieldname = $_REQUEST["fldName"];
- $fieldvalue = $_REQUEST["fieldValue"];
- if($crmid != "")
- {
- $actObj = new Activity();
- $actObj->retrieve_entity_info($crmid,"Activities");
- $actObj->column_fields[$fieldname] = $fieldvalue;
- $actObj->id = $crmid;
- $actObj->mode = "edit";
- $actObj->save("Activities");
- if($actObj->id != "")
- {
- echo ":#:SUCCESS";
- }else
- {
- echo ":#:FAILURE";
- }
- }else
- {
- echo ":#:FAILURE";
- }
-}
-else
-{
require_once('include/Ajax/CommonAjax.php');
-}
?>
Modified: vtigercrm/trunk/modules/Campaigns/CampaignsAjax.php
==============================================================================
--- vtigercrm/trunk/modules/Campaigns/CampaignsAjax.php (original)
+++ vtigercrm/trunk/modules/Campaigns/CampaignsAjax.php Mon May 29 01:45:47 2006
@@ -9,42 +9,5 @@
*
********************************************************************************/
-require_once('include/logging.php');
-require_once('modules/Campaigns/Campaign.php');
-require_once('include/database/PearDatabase.php');
-global $adb;
-
-$local_log =& LoggerManager::getLogger('CampaignsAjax');
-
-$ajaxaction = $_REQUEST["ajxaction"];
-if($ajaxaction == "DETAILVIEW")
-{
- $crmid = $_REQUEST["recordid"];
- $tablename = $_REQUEST["tableName"];
- $fieldname = $_REQUEST["fldName"];
- $fieldvalue = $_REQUEST["fieldValue"];
- if($crmid != "")
- {
- $modObj = new Campaign();
- $modObj->retrieve_entity_info($crmid,"Campaigns");
- $modObj->column_fields[$fieldname] = $fieldvalue;
- $modObj->id = $crmid;
- $modObj->mode = "edit";
- $modObj->save("Campaigns");
- if($modObj->id != "")
- {
- echo ":#:SUCCESS";
- }else
- {
- echo ":#:FAILURE";
- }
- }else
- {
- echo ":#:FAILURE";
- }
-}
-else
-{
require_once('include/Ajax/CommonAjax.php');
-}
?>
Modified: vtigercrm/trunk/modules/Contacts/ContactsAjax.php
==============================================================================
--- vtigercrm/trunk/modules/Contacts/ContactsAjax.php (original)
+++ vtigercrm/trunk/modules/Contacts/ContactsAjax.php Mon May 29 01:45:47 2006
@@ -1,5 +1,4 @@
<?php
-
/*********************************************************************************
** The contents of this file are subject to the vtiger CRM Public License Version 1.0
* ("License"); You may not use this file except in compliance with the License
@@ -9,43 +8,6 @@
* All Rights Reserved.
*
********************************************************************************/
-
-require_once('include/logging.php');
-require_once('modules/Contacts/Contact.php');
-require_once('include/database/PearDatabase.php');
-global $adb;
-$local_log =& LoggerManager::getLogger('ContactsAjax');
-
-$ajaxaction = $_REQUEST["ajxaction"];
-if($ajaxaction == "DETAILVIEW")
-{
- $crmid = $_REQUEST["recordid"];
- $tablename = $_REQUEST["tableName"];
- $fieldname = $_REQUEST["fldName"];
- $fieldvalue = $_REQUEST["fieldValue"];
- if($crmid != "")
- {
- $cntObj = new Contact();
- $cntObj->retrieve_entity_info($crmid,"Contacts");
- $cntObj->column_fields[$fieldname] = $fieldvalue;
- $cntObj->id = $crmid;
- $cntObj->mode = "edit";
- $cntObj->save("Contacts");
- if($cntObj->id != "")
- {
- echo ":#:SUCCESS";
- }else
- {
- echo ":#:FAILURE";
- }
- }else
- {
- echo ":#:FAILURE";
- }
-}
-else
-{
require_once('include/Ajax/CommonAjax.php');
-}
?>
Modified: vtigercrm/trunk/modules/Faq/FaqAjax.php
==============================================================================
--- vtigercrm/trunk/modules/Faq/FaqAjax.php (original)
+++ vtigercrm/trunk/modules/Faq/FaqAjax.php Mon May 29 01:45:47 2006
@@ -9,42 +9,5 @@
*
********************************************************************************/
-require_once('include/logging.php');
-require_once('modules/Faq/Faq.php');
-require_once('include/database/PearDatabase.php');
-global $adb;
-
-$local_log =& LoggerManager::getLogger('FaqAjax');
-
-$ajaxaction = $_REQUEST["ajxaction"];
-if($ajaxaction == "DETAILVIEW")
-{
- $crmid = $_REQUEST["recordid"];
- $tablename = $_REQUEST["tableName"];
- $fieldname = $_REQUEST["fldName"];
- $fieldvalue = $_REQUEST["fieldValue"];
- if($crmid != "")
- {
- $modObj = new Faq();
- $modObj->retrieve_entity_info($crmid,"Faq");
- $modObj->column_fields[$fieldname] = $fieldvalue;
- $modObj->id = $crmid;
- $modObj->mode = "edit";
- $modObj->save("Faq");
- if($modObj->id != "")
- {
- echo ":#:SUCCESS";
- }else
- {
- echo ":#:FAILURE";
- }
- }else
- {
- echo ":#:FAILURE";
- }
-}
-else
-{
require_once('include/Ajax/CommonAjax.php');
-}
?>
Modified: vtigercrm/trunk/modules/HelpDesk/HelpDeskAjax.php
==============================================================================
--- vtigercrm/trunk/modules/HelpDesk/HelpDeskAjax.php (original)
+++ vtigercrm/trunk/modules/HelpDesk/HelpDeskAjax.php Mon May 29 01:45:47 2006
@@ -9,43 +9,5 @@
*
********************************************************************************/
-require_once('include/logging.php');
-require_once('modules/HelpDesk/HelpDesk.php');
-require_once('include/database/PearDatabase.php');
-global $adb;
-
-$local_log =& LoggerManager::getLogger('HelpDeskAjax');
-
-$ajaxaction = $_REQUEST["ajxaction"];
-if($ajaxaction == "DETAILVIEW")
-{
- $crmid = $_REQUEST["recordid"];
- $tablename = $_REQUEST["tableName"];
- $fieldname = $_REQUEST["fldName"];
- $fieldvalue = $_REQUEST["fieldValue"];
-
- if($crmid != "")
- {
- $modObj = new HelpDesk();
- $modObj->retrieve_entity_info($crmid,"HelpDesk");
- $modObj->column_fields[$fieldname] = $fieldvalue;
- $modObj->id = $crmid;
- $modObj->mode = "edit";
- $modObj->save("HelpDesk");
- if($modObj->id != "")
- {
- echo ":#:SUCCESS";
- }else
- {
- echo ":#:FAILURE";
- }
- }else
- {
- echo ":#:FAILURE";
- }
-}
-else
-{
require_once('include/Ajax/CommonAjax.php');
-}
?>
Modified: vtigercrm/trunk/modules/Invoice/InvoiceAjax.php
==============================================================================
--- vtigercrm/trunk/modules/Invoice/InvoiceAjax.php (original)
+++ vtigercrm/trunk/modules/Invoice/InvoiceAjax.php Mon May 29 01:45:47 2006
@@ -8,44 +8,5 @@
* All Rights Reserved.
*
********************************************************************************/
-
-require_once('include/logging.php');
-require_once('modules/Invoice/Invoice.php');
-require_once('include/database/PearDatabase.php');
-global $adb;
-
-$local_log =& LoggerManager::getLogger('InvoiceAjax');
-
-$ajaxaction = $_REQUEST["ajxaction"];
-if($ajaxaction == "DETAILVIEW")
-{
- $crmid = $_REQUEST["recordid"];
- $tablename = $_REQUEST["tableName"];
- $fieldname = $_REQUEST["fldName"];
- $fieldvalue = $_REQUEST["fieldValue"];
-
- if($crmid != "")
- {
- $modObj = new Invoice();
- $modObj->retrieve_entity_info($crmid,"Invoice");
- $modObj->column_fields[$fieldname] = $fieldvalue;
- $modObj->id = $crmid;
- $modObj->mode = "edit";
- $modObj->save("Invoice");
- if($modObj->id != "")
- {
- echo ":#:SUCCESS";
- }else
- {
- echo ":#:FAILURE";
- }
- }else
- {
- echo ":#:FAILURE";
- }
-}
-else
-{
require_once('include/Ajax/CommonAjax.php');
-}
?>
Modified: vtigercrm/trunk/modules/Leads/LeadsAjax.php
==============================================================================
--- vtigercrm/trunk/modules/Leads/LeadsAjax.php (original)
+++ vtigercrm/trunk/modules/Leads/LeadsAjax.php Mon May 29 01:45:47 2006
@@ -1,48 +1,5 @@
<?php
-/*********************************************************************************
- ** The contents of this file are subject to the vtiger CRM Public License Version 1.0
- * ("License"); You may not use this file except in compliance with the License
- * The Original Code is: vtiger CRM Open Source
- * The Initial Developer of the Original Code is vtiger.
- * Portions created by vtiger are Copyright (C) vtiger.
- * All Rights Reserved.
- *
- ********************************************************************************/
-
-require_once('include/logging.php');
-require_once('modules/Leads/Lead.php');
-require_once('include/database/PearDatabase.php');
-global $adb;
-
-$local_log =& LoggerManager::getLogger('LeadsAjax');
-$ajaxaction = $_REQUEST["ajxaction"];
-if($ajaxaction == "DETAILVIEW")
-{
- $crmid = $_REQUEST["recordid"];
- $tablename = $_REQUEST["tableName"];
- $fieldname = $_REQUEST["fldName"];
- $fieldvalue = $_REQUEST["fieldValue"];
- if($crmid != "")
- {
- $leadObj = new Lead();
- $leadObj->retrieve_entity_info($crmid,"Leads");
- $leadObj->column_fields[$fieldname] = $fieldvalue;
- $leadObj->id = $crmid;
- $leadObj->mode = "edit";
- $leadObj->save("Leads");
- if($leadObj->id != "")
- {
- echo ":#:SUCCESS";
- }else
- {
- echo ":#:FAILURE";
- }
- }else
- {
- echo ":#:FAILURE";
- }
-}
-elseif($ajaxaction == "convertlead")
+if($ajaxaction == "convertlead")
{
require_once('modules/Leads/ConvertLead.php');
}
Modified: vtigercrm/trunk/modules/Notes/NotesAjax.php
==============================================================================
--- vtigercrm/trunk/modules/Notes/NotesAjax.php (original)
+++ vtigercrm/trunk/modules/Notes/NotesAjax.php Mon May 29 01:45:47 2006
@@ -9,42 +9,5 @@
*
********************************************************************************/
-require_once('include/logging.php');
-require_once('modules/Notes/Note.php');
-require_once('include/database/PearDatabase.php');
-global $adb;
-
-$local_log =& LoggerManager::getLogger('NotesAjax');
-
-$ajaxaction = $_REQUEST["ajxaction"];
-if($ajaxaction == "DETAILVIEW")
-{
- $crmid = $_REQUEST["recordid"];
- $tablename = $_REQUEST["tableName"];
- $fieldname = $_REQUEST["fldName"];
- $fieldvalue = $_REQUEST["fieldValue"];
- if($crmid != "")
- {
- $modObj = new Note();
- $modObj->retrieve_entity_info($crmid,"Notes");
- $modObj->column_fields[$fieldname] = $fieldvalue;
- $modObj->id = $crmid;
- $modObj->mode = "edit";
- $modObj->save("Notes");
- if($modObj->id != "")
- {
- echo ":#:SUCCESS";
- }else
- {
- echo ":#:FAILURE";
- }
- }else
- {
- echo ":#:FAILURE";
- }
-}
-else
-{
require_once('include/Ajax/CommonAjax.php');
-}
?>
Modified: vtigercrm/trunk/modules/Potentials/PotentialsAjax.php
==============================================================================
--- vtigercrm/trunk/modules/Potentials/PotentialsAjax.php (original)
+++ vtigercrm/trunk/modules/Potentials/PotentialsAjax.php Mon May 29 01:45:47 2006
@@ -8,44 +8,5 @@
* All Rights Reserved.
*
********************************************************************************/
-
-require_once('include/logging.php');
-require_once('modules/Potentials/Opportunity.php');
-require_once('include/database/PearDatabase.php');
-global $adb;
-
-$local_log =& LoggerManager::getLogger('PotentialsAjax');
-
-$ajaxaction = $_REQUEST["ajxaction"];
-if($ajaxaction == "DETAILVIEW")
-{
- $crmid = $_REQUEST["recordid"];
- $tablename = $_REQUEST["tableName"];
- $fieldname = $_REQUEST["fldName"];
- $fieldvalue = $_REQUEST["fieldValue"];
- if($crmid != "")
- {
- $modObj = new Potential();
- $modObj->retrieve_entity_info($crmid,"Potentials");
- $modObj->column_fields[$fieldname] = $fieldvalue;
- $modObj->id = $crmid;
- $modObj->mode = "edit";
- $modObj->save("Potentials");
- if($modObj->id != "")
- {
- echo ":#:SUCCESS";
- }else
- {
- echo ":#:FAILURE";
- }
- }else
- {
- echo ":#:FAILURE";
- }
-}
-
-else
-{
require_once('include/Ajax/CommonAjax.php');
-}
?>
Modified: vtigercrm/trunk/modules/PriceBooks/PriceBooksAjax.php
==============================================================================
--- vtigercrm/trunk/modules/PriceBooks/PriceBooksAjax.php (original)
+++ vtigercrm/trunk/modules/PriceBooks/PriceBooksAjax.php Mon May 29 01:45:47 2006
@@ -9,42 +9,5 @@
*
********************************************************************************/
-require_once('include/logging.php');
-require_once('modules/PriceBooks/PriceBook.php');
-require_once('include/database/PearDatabase.php');
-global $adb;
-
-$local_log =& LoggerManager::getLogger('PriceBooksAjax');
-
-$ajaxaction = $_REQUEST["ajxaction"];
-if($ajaxaction == "DETAILVIEW")
-{
- $crmid = $_REQUEST["recordid"];
- $tablename = $_REQUEST["tableName"];
- $fieldname = $_REQUEST["fldName"];
- $fieldvalue = $_REQUEST["fieldValue"];
- if($crmid != "")
- {
- $modObj = new PriceBook();
- $modObj->retrieve_entity_info($crmid,"PriceBooks");
- $modObj->column_fields[$fieldname] = $fieldvalue;
- $modObj->id = $crmid;
- $modObj->mode = "edit";
- $modObj->save("PriceBooks");
- if($modObj->id != "")
- {
- echo ":#:SUCCESS";
- }else
- {
- echo ":#:FAILURE";
- }
- }else
- {
- echo ":#:FAILURE";
- }
-}
-else
-{
require_once('include/Ajax/CommonAjax.php');
-}
?>
Modified: vtigercrm/trunk/modules/Products/ProductsAjax.php
==============================================================================
--- vtigercrm/trunk/modules/Products/ProductsAjax.php (original)
+++ vtigercrm/trunk/modules/Products/ProductsAjax.php Mon May 29 01:45:47 2006
@@ -9,47 +9,5 @@
*
********************************************************************************/
-require_once('include/logging.php');
-require_once('modules/Products/Product.php');
-require_once('include/database/PearDatabase.php');
-global $adb;
-
-$local_log =& LoggerManager::getLogger('ProductsAjax');
-
-$ajaxaction = $_REQUEST["ajxaction"];
-if($ajaxaction == "DETAILVIEW")
-{
- $crmid = $_REQUEST["recordid"];
- $tablename = $_REQUEST["tableName"];
- $fieldname = $_REQUEST["fldName"];
- $fieldvalue = $_REQUEST["fieldValue"];
- if($crmid != "")
- {
- $modObj = new Product();
- $modObj->retrieve_entity_info($crmid,"Products");
- $modObj->column_fields[$fieldname] = $fieldvalue;
- $modObj->id = $crmid;
- $modObj->mode = "edit";
- $modObj->save("Products");
- if($modObj->id != "")
- {
- echo ":#:SUCCESS";
- }else
- {
- echo ":#:FAILURE";
- }
- }else
- {
- echo ":#:FAILURE";
- }
-}
-
-elseif($_REQUEST['ajaxmode'] == 'qcreate')
-{
- require_once('quickcreate.php');
-}
-else
-{
require_once('include/Ajax/CommonAjax.php');
-}
?>
Modified: vtigercrm/trunk/modules/PurchaseOrder/PurchaseOrderAjax.php
==============================================================================
--- vtigercrm/trunk/modules/PurchaseOrder/PurchaseOrderAjax.php (original)
+++ vtigercrm/trunk/modules/PurchaseOrder/PurchaseOrderAjax.php Mon May 29 01:45:47 2006
@@ -8,43 +8,5 @@
* All Rights Reserved.
*
********************************************************************************/
-
-require_once('include/logging.php');
-require_once('modules/PurchaseOrder/PurchaseOrder.php');
-require_once('include/database/PearDatabase.php');
-global $adb;
-
-$local_log =& LoggerManager::getLogger('PurchaseOrderAjax');
-
-$ajaxaction = $_REQUEST["ajxaction"];
-if($ajaxaction == "DETAILVIEW")
-{
- $crmid = $_REQUEST["recordid"];
- $tablename = $_REQUEST["tableName"];
- $fieldname = $_REQUEST["fldName"];
- $fieldvalue = $_REQUEST["fieldValue"];
- if($crmid != "")
- {
- $modObj = new Order();
- $modObj->retrieve_entity_info($crmid,"PurchaseOrder");
- $modObj->column_fields[$fieldname] = $fieldvalue;
- $modObj->id = $crmid;
- $modObj->mode = "edit";
- $modObj->save("PurchaseOrder");
- if($modObj->id != "")
- {
- echo ":#:SUCCESS";
- }else
- {
- echo ":#:FAILURE";
- }
- }else
- {
- echo ":#:FAILURE";
- }
-}
-else
-{
require_once('include/Ajax/CommonAjax.php');
-}
?>
Modified: vtigercrm/trunk/modules/Quotes/QuotesAjax.php
==============================================================================
--- vtigercrm/trunk/modules/Quotes/QuotesAjax.php (original)
+++ vtigercrm/trunk/modules/Quotes/QuotesAjax.php Mon May 29 01:45:47 2006
@@ -8,43 +8,5 @@
* All Rights Reserved.
*
********************************************************************************/
-
-require_once('include/logging.php');
-require_once('modules/Quotes/Quote.php');
-require_once('include/database/PearDatabase.php');
-global $adb;
-
-$local_log =& LoggerManager::getLogger('QuotesAjax');
-
-$ajaxaction = $_REQUEST["ajxaction"];
-if($ajaxaction == "DETAILVIEW")
-{
- $crmid = $_REQUEST["recordid"];
- $tablename = $_REQUEST["tableName"];
- $fieldname = $_REQUEST["fldName"];
- $fieldvalue = $_REQUEST["fieldValue"];
- if($crmid != "")
- {
- $modObj = new Quote();
- $modObj->retrieve_entity_info($crmid,"Quotes");
- $modObj->column_fields[$fieldname] = $fieldvalue;
- $modObj->id = $crmid;
- $modObj->mode = "edit";
- $modObj->save("Quotes");
- if($modObj->id != "")
- {
- echo ":#:SUCCESS";
- }else
- {
- echo ":#:FAILURE";
- }
- }else
- {
- echo ":#:FAILURE";
- }
-}
-else
-{
require_once('include/Ajax/CommonAjax.php');
-}
?>
Modified: vtigercrm/trunk/modules/SalesOrder/SalesOrderAjax.php
==============================================================================
--- vtigercrm/trunk/modules/SalesOrder/SalesOrderAjax.php (original)
+++ vtigercrm/trunk/modules/SalesOrder/SalesOrderAjax.php Mon May 29 01:45:47 2006
@@ -9,42 +9,5 @@
*
********************************************************************************/
-require_once('include/logging.php');
-require_once('modules/SalesOrder/SalesOrder.php');
-require_once('include/database/PearDatabase.php');
-global $adb;
-
-$local_log =& LoggerManager::getLogger('SalesOrderAjax');
-
-$ajaxaction = $_REQUEST["ajxaction"];
-if($ajaxaction == "DETAILVIEW")
-{
- $crmid = $_REQUEST["recordid"];
- $tablename = $_REQUEST["tableName"];
- $fieldname = $_REQUEST["fldName"];
- $fieldvalue = $_REQUEST["fieldValue"];
- if($crmid != "")
- {
- $modObj = new SalesOrder();
- $modObj->retrieve_entity_info($crmid,"SalesOrder");
- $modObj->column_fields[$fieldname] = $fieldvalue;
- $modObj->id = $crmid;
- $modObj->mode = "edit";
- $modObj->save("SalesOrder");
- if($modObj->id != "")
- {
- echo ":#:SUCCESS";
- }else
- {
- echo ":#:FAILURE";
- }
- }else
- {
- echo ":#:FAILURE";
- }
-}
-else
-{
require_once('include/Ajax/CommonAjax.php');
-}
?>
Modified: vtigercrm/trunk/modules/Vendors/VendorsAjax.php
==============================================================================
--- vtigercrm/trunk/modules/Vendors/VendorsAjax.php (original)
+++ vtigercrm/trunk/modules/Vendors/VendorsAjax.php Mon May 29 01:45:47 2006
@@ -9,42 +9,5 @@
*
********************************************************************************/
-require_once('include/logging.php');
-require_once('modules/Vendors/Vendor.php');
-require_once('include/database/PearDatabase.php');
-global $adb;
-
-$local_log =& LoggerManager::getLogger('VendorsAjax');
-
-$ajaxaction = $_REQUEST["ajxaction"];
-if($ajaxaction == "DETAILVIEW")
-{
- $crmid = $_REQUEST["recordid"];
- $tablename = $_REQUEST["tableName"];
- $fieldname = $_REQUEST["fldName"];
- $fieldvalue = $_REQUEST["fieldValue"];
- if($crmid != "")
- {
- $modObj = new Vendor();
- $modObj->retrieve_entity_info($crmid,"Vendors");
- $modObj->column_fields[$fieldname] = $fieldvalue;
- $modObj->id = $crmid;
- $modObj->mode = "edit";
- $modObj->save("Vendors");
- if($modObj->id != "")
- {
- echo ":#:SUCCESS";
- }else
- {
- echo ":#:FAILURE";
- }
- }else
- {
- echo ":#:FAILURE";
- }
-}
-else
-{
require_once('include/Ajax/CommonAjax.php');
-}
?>
More information about the vtigercrm-commits
mailing list