[Vtigercrm-commits] [vtiger-commits] r4782 - /vtigercrm/trunk/modules/PurchaseOrder/ListView.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Thu Mar 30 08:15:56 EST 2006


Author: saraj
Date: Thu Mar 30 06:15:52 2006
New Revision: 4782

Log:
changes made for duplicate code removal

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

Modified: vtigercrm/trunk/modules/PurchaseOrder/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/PurchaseOrder/ListView.php (original)
+++ vtigercrm/trunk/modules/PurchaseOrder/ListView.php Thu Mar 30 06:15:52 2006
@@ -83,26 +83,8 @@
 
 if($viewnamedesc['viewname'] == 'All')
 {
-$cvHTML = '<td><a href="index.php?module=PurchaseOrder&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="small" disabled>'.$app_strings['LNK_CV_DELETE'].'</span></td>';
-}else
-{
-$cvHTML = '<td><a href="index.php?module=PurchaseOrder&action=CustomView">'.$app_strings['LNK_CV_CREATEVIEW'].'</a>
-<span class="small">|</span>
-<a href="index.php?module=PurchaseOrder&action=CustomView&record='.$viewid.'">'.$app_strings['LNK_CV_EDIT'].'</a>
-<span class="small">|</span>
-<a href="index.php?module=CustomView&action=Delete&dmodule=PurchaseOrder&record='.$viewid.'">'.$app_strings['LNK_CV_DELETE'].'</a></td>';
+	$smarty->assign("ALL", 'All');
 }
-	$custom_view_strings='<td>'.$app_strings[LBL_VIEW].'</td>
-			<td style="padding-left:5px;padding-right:5px">
-                        <SELECT NAME="viewname" class="small" onchange="showDefaultCustomView(this,\'PurchaseOrder\')">
-				'.$customviewcombo_html.'
-                        </SELECT></td>
-			'.$cvHTML;
-
 
 $theme_path="themes/".$theme."/";
 $image_path=$theme_path."images/";
@@ -111,7 +93,8 @@
 $smarty->assign("IMAGE_PATH",$image_path);
 $smarty->assign("MODULE",$currentModule);
 $smarty->assign("SINGLE_MOD",'PurchaseOrder');
-$smarty->assign("CUSTOMVIEW",$custom_view_strings);
+$smarty->assign("CUSTOMVIEW_OPTION",$customviewcombo_html);
+$smarty->assign("VIEWID", $viewid);
 $category = getParentTab();
 $smarty->assign("CATEGORY",$category);
 $smarty->assign("BUTTONS", $other_text);





More information about the vtigercrm-commits mailing list