[Vtigercrm-commits] [vtiger-commits] r6259 - /vtigercrm/trunk/modules/Quotes/DetailView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Sun May 21 05:56:41 EDT 2006
Author: saraj
Date: Sun May 21 03:56:37 2006
New Revision: 6259
Log:
added for ajaxvalidation
Modified:
vtigercrm/trunk/modules/Quotes/DetailView.php
Modified: vtigercrm/trunk/modules/Quotes/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Quotes/DetailView.php (original)
+++ vtigercrm/trunk/modules/Quotes/DetailView.php Sun May 21 03:56:37 2006
@@ -90,6 +90,51 @@
$check_button = Button_Check($module);
$smarty->assign("CHECK", $check_button);
+
+ $quote_tables = Array('quotes','quotesbillads','quotesshipads');
+ $tabid = getTabid("Quotes");
+ $validationData = getDBValidationData($quote_tables,$tabid);
+ $fieldName = '';
+ $fieldLabel = '';
+ $fldDataType = '';
+
+ $rows = count($validationData);
+ foreach($validationData as $fldName => $fldLabel_array)
+ {
+ if($fieldName == '')
+ {
+ $fieldName="'".$fldName."'";
+ }
+ else
+ {
+ $fieldName .= ",'".$fldName ."'";
+ }
+ foreach($fldLabel_array as $fldLabel => $datatype)
+ {
+ if($fieldLabel == '')
+ {
+
+ $fieldLabel = "'".$fldLabel ."'";
+ }
+ else
+ {
+ $fieldLabel .= ",'".$fldLabel ."'";
+ }
+ if($fldDataType == '')
+ {
+ $fldDataType = "'".$datatype ."'";
+ }
+ else
+ {
+ $fldDataType .= ",'".$datatype ."'";
+ }
+ }
+ }
+
+$smarty->assign("VALIDATION_DATA_FIELDNAME",$fieldName);
+$smarty->assign("VALIDATION_DATA_FIELDDATATYPE",$fldDataType);
+$smarty->assign("VALIDATION_DATA_FIELDLABEL",$fieldLabel);$quote_tables = Array('quotes','quotesbillads','quotesshipads');
+
$smarty->display("InventoryDetailView.tpl");
?>
More information about the vtigercrm-commits
mailing list