[Vtigercrm-commits] [vtiger-commits] r4784 - /vtigercrm/trunk/modules/SalesOrder/ListView.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Thu Mar 30 08:20:38 EST 2006


Author: saraj
Date: Thu Mar 30 06:20:33 2006
New Revision: 4784

Log:
changes made for duplicate code removal

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

Modified: vtigercrm/trunk/modules/SalesOrder/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/SalesOrder/ListView.php (original)
+++ vtigercrm/trunk/modules/SalesOrder/ListView.php Thu Mar 30 06:20:33 2006
@@ -111,24 +111,8 @@
 
 if($viewnamedesc['viewname'] == 'All')
 {
-$cvHTML = '<td><a href="index.php?module=SalesOrder&action=CustomView">'.$app_strings['LNK_CV_CREATEVIEW'].'</a>
-<span class="small">|</span>
-<span class="small" disabled>'.$app_strings['LNK_CV_EDIT'].'</span>
-<span class="small">|</span>
-<span class="bodyText disabled">'.$app_strings['LNK_CV_DELETE'].'</span></td>';
-}else
-{
-$cvHTML = '<td><a href="index.php?module=SalesOrder&action=CustomView">'.$app_strings['LNK_CV_CREATEVIEW'].'</a>
-<span class="small">|</span>
-<a href="index.php?module=SalesOrder&action=CustomView&record='.$viewid.'">'.$app_strings['LNK_CV_EDIT'].'</a>
-<span class="small">|</span>
-<a href="index.php?module=CustomView&action=Delete&dmodule=SalesOrder&record='.$viewid.'">'.$app_strings['LNK_CV_DELETE'].'</a></td>';
-}
-	$customstrings = '<td align="right" class="small">'.$app_strings[LBL_VIEW].'</td>
-			<td><SELECT NAME="viewname" class="small" onchange="showDefaultCustomView(this,\'SalesOrder\')">
-				'.$customviewcombo_html.'
-                        </SELECT></td>
-			'.$cvHTML;
+	$smarty->assign("ALL", 'All');
+}
 
 //<<<<<<<<<customview>>>>>>>>>
 if($viewid != "0")
@@ -212,7 +196,8 @@
 $smarty->assign("ALPHABETICAL", $alphabetical);
 $smarty->assign("NAVIGATION", $navigationOutput);
 $smarty->assign("RECORD_COUNTS", $record_string);
-$smarty->assign("CUSTOMVIEW", $customstrings);
+$smarty->assign("CUSTOMVIEW_OPTION",$customviewcombo_html);
+$smarty->assign("VIEWID", $viewid);
 $smarty->assign("BUTTONS", $other_text);
 
 





More information about the vtigercrm-commits mailing list