[Vtigercrm-developers] [vtiger-commits] r3848 - /vtigercrm/trunk/modules/Campaigns/EditView.php

vtiger-commits at vtiger.fosslabs.com vtiger-commits at vtiger.fosslabs.com
Tue Feb 21 02:26:14 PST 2006


Author: richie
Date: Tue Feb 21 03:26:11 2006
New Revision: 3848

Log:
Added 2 if else block to separate Create New from Edit View.

Modified:
    vtigercrm/trunk/modules/Campaigns/EditView.php

Modified: vtigercrm/trunk/modules/Campaigns/EditView.php
==============================================================================
--- vtigercrm/trunk/modules/Campaigns/EditView.php (original)
+++ vtigercrm/trunk/modules/Campaigns/EditView.php Tue Feb 21 03:26:11 2006
@@ -43,8 +43,13 @@
 require_once($theme_path.'layout_utils.php');
 
 $disp_view = getView($focus->mode);
-$smarty->assign("BLOCKS",getBlocks("Campaigns",$disp_view,$mode,$focus->column_fields));
-//echo '<pre>';print_r(getBlocks("Campaigns",$disp_view,$mode,$focus->column_fields));echo'</pre>';
+if($disp_view == 'edit_view')
+	$smarty->assign("BLOCKS",getBlocks("Campaigns",$disp_view,$mode,$focus->column_fields));
+else
+{
+	$smarty->assign("BASBLOCKS",getBlocks("Campaigns",$disp_view,$mode,$focus->column_fields,'BAS'));
+}
+	
 $smarty->assign("OP_MODE",$disp_view);
 
 $smarty->assign("MODULE",$currentModule);
@@ -135,6 +140,9 @@
 $smarty->assign("VALIDATION_DATA_FIELDDATATYPE",$fldDataType);
 $smarty->assign("VALIDATION_DATA_FIELDLABEL",$fieldLabel);
 
-$smarty->display("salesEditView.tpl");
+if($focus->mode == 'edit')
+	$smarty->display("salesEditView.tpl");
+else
+	$smarty->display("CreateView.tpl");
 
 ?>





More information about the vtigercrm-developers mailing list