[vtiger-commits] r3861 - /vtigercrm/trunk/modules/SalesOrder/EditView.php

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[vtiger-commits] r3861 - /vtigercrm/trunk/modules/SalesOrder/EditView.php

vtiger-commits-2
Author: richie
Date: Tue Feb 21 03:45:41 2006
New Revision: 3861

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

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

Modified: vtigercrm/trunk/modules/SalesOrder/EditView.php
==============================================================================
--- vtigercrm/trunk/modules/SalesOrder/EditView.php (original)
+++ vtigercrm/trunk/modules/SalesOrder/EditView.php Tue Feb 21 03:45:41 2006
@@ -169,8 +169,12 @@
 $comboFieldArray = getComboArray($comboFieldNames);
 
 $disp_view = getView($focus->mode);
-$smarty->assign("BLOCKS",getBlocks("SalesOrder",$disp_view,$mode,$focus->column_fields));
-//echo '<pre>';print_r(getBlocks("SalesOrder",$disp_view,$mode,$focus->column_fields));echo '</pre>';
+if($disp_view == 'edit_view')
+ $smarty->assign("BLOCKS",getBlocks("SalesOrder",$disp_view,$mode,$focus->column_fields));
+else
+{
+ $smarty->assign("BASBLOCKS",getBlocks("SalesOrder",$disp_view,$mode,$focus->column_fields,'BAS'));
+}
 $smarty->assign("OP_MODE",$disp_view);
 
 $smarty->assign("MODULE",$currentModule);
@@ -336,6 +340,9 @@
 $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');
 
 ?>


_______________________________________________
This vtiger.com email is sponsored by: Zoho Writer. Are you still using your desktop word processor for typing documents? Try the AJAX enabled, collaboration-friendly online word processor, Zoho Writer for FREE instead!
http://zohowriter.com/?vt