[Vtigercrm-commits] [vtiger-commits] r6261 - /vtigercrm/trunk/modules/Contacts/DetailView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Sun May 21 06:01:25 EDT 2006
Author: saraj
Date: Sun May 21 04:01:21 2006
New Revision: 6261
Log:
added for ajaxvalidation
Modified:
vtigercrm/trunk/modules/Contacts/DetailView.php
Modified: vtigercrm/trunk/modules/Contacts/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Contacts/DetailView.php (original)
+++ vtigercrm/trunk/modules/Contacts/DetailView.php Sun May 21 04:01:21 2006
@@ -108,6 +108,16 @@
$check_button = Button_Check($module);
$smarty->assign("CHECK", $check_button);
+$contact_tables =Array('contactdetails','crmentity','contactsubdetails','contactscf','contactaddress','customerdetails');
+
+$tabid = getTabid("Contacts");
+$validationData = getDBValidationData($contact_tables,$tabid);
+$data = split_validationdataArray($validationData);
+
+$smarty->assign("VALIDATION_DATA_FIELDNAME",$data['fieldname']);
+$smarty->assign("VALIDATION_DATA_FIELDDATATYPE",$data['datatype']);
+$smarty->assign("VALIDATION_DATA_FIELDLABEL",$data['fieldlabel']);
+
$smarty->assign("MODULE",$app_strings['Contacts']);
$smarty->display("DetailView.tpl");
?>
More information about the vtigercrm-commits
mailing list