[Vtigercrm-developers] [vtiger-commits] r3854 - /vtigercrm/trunk/modules/Leads/EditView.php
vtiger-commits at vtiger.fosslabs.com
vtiger-commits at vtiger.fosslabs.com
Tue Feb 21 02:34:43 PST 2006
Author: richie
Date: Tue Feb 21 03:34:39 2006
New Revision: 3854
Log:
Added 2 if else block to separate Create New from Edit View.
Modified:
vtigercrm/trunk/modules/Leads/EditView.php
Modified: vtigercrm/trunk/modules/Leads/EditView.php
==============================================================================
--- vtigercrm/trunk/modules/Leads/EditView.php (original)
+++ vtigercrm/trunk/modules/Leads/EditView.php Tue Feb 21 03:34:39 2006
@@ -43,7 +43,13 @@
}
$disp_view = getView($focus->mode);
-$smarty->assign("BLOCKS",getBlocks("Leads",$disp_view,$mode,$focus->column_fields));
+if($disp_view == 'edit_view')
+ $smarty->assign("BLOCKS",getBlocks("Leads",$disp_view,$mode,$focus->column_fields));
+else
+{
+ $smarty->assign("BASBLOCKS",getBlocks("Leads",$disp_view,$mode,$focus->column_fields,'BAS'));
+ $smarty->assign("ADVBLOCKS",getBlocks("Leads",$disp_view,$mode,$focus->column_fields,'ADV'));
+}
$smarty->assign("OP_MODE",$disp_view);
@@ -142,6 +148,10 @@
$smarty->assign("VALIDATION_DATA_FIELDDATATYPE",$fldDataType);
$smarty->assign("VALIDATION_DATA_FIELDLABEL",$fieldLabel);
+if($focus->mode == 'edit')
$smarty->display("salesEditView.tpl");
+else
+$smarty->display("CreateView.tpl");
+
?>
More information about the vtigercrm-developers
mailing list