[Vtigercrm-commits] [vtiger-commits] r4779 - /vtigercrm/trunk/modules/PriceBooks/ListView.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Thu Mar 30 08:10:44 EST 2006


Author: saraj
Date: Thu Mar 30 06:10:37 2006
New Revision: 4779

Log:
changes made for duplicate code removal

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

Modified: vtigercrm/trunk/modules/PriceBooks/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/PriceBooks/ListView.php (original)
+++ vtigercrm/trunk/modules/PriceBooks/ListView.php Thu Mar 30 06:10:37 2006
@@ -72,26 +72,8 @@
 $other_text['del'] = $app_strings[LBL_MASS_DELETE];
 if($viewnamedesc['viewname'] == 'All')
 {
-$cvHTML='<td><a href="index.php?module=PriceBooks&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=PriceBooks&action=CustomView">'.$app_strings['LNK_CV_CREATEVIEW'].'</a>
-<span class="small">|</span>
-<a href="index.php?module=PriceBooks&action=CustomView&record='.$viewid.'">'.$app_strings['LNK_CV_EDIT'].'</a>
-<span class="small">|</span>
-<a href="index.php?module=CustomView&action=Delete&dmodule=PriceBooks&record='.$viewid.'">'.$app_strings['LNK_CV_DELETE'].'</a></td>';
+	$smarty->assign("ALL", 'All');
 }
-
-$customviewstrings = '<td>'.$app_strings[LBL_VIEW].'</td>
-			<td style="padding-left:5px;padding-right:5px">
-                        <SELECT NAME="viewname" class="small" onchange="showDefaultCustomView(this,\'PriceBooks\')">
-				'.$customviewcombo_html.'
-                        </SELECT></td>
-			'.$cvHTML;
 
 //Retreive the list from Database
 //<<<<<<<<<customview>>>>>>>>>
@@ -160,7 +142,8 @@
 $alphabetical = AlphabeticalSearch($currentModule,'index','bookname','true','basic',"","","","",$viewid);
 $smarty->assign("ALPHABETICAL", $alphabetical);
 $smarty->assign("NAVIGATION", $navigationOutput);
-$smarty->assign("CUSTOMVIEW",$customviewstrings);
+$smarty->assign("CUSTOMVIEW_OPTION",$customviewcombo_html);
+$smarty->assign("VIEWID", $viewid);
 $smarty->assign("RECORD_COUNTS", $record_string);
 $smarty->assign("SELECT_SCRIPT", $view_script);
 $smarty->assign("BUTTONS", $other_text);





More information about the vtigercrm-commits mailing list