[Vtigercrm-commits] [vtiger-commits] r4762 - /vtigercrm/trunk/modules/Accounts/ListView.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Thu Mar 30 07:30:23 EST 2006


Author: saraj
Date: Thu Mar 30 05:30:18 2006
New Revision: 4762

Log:
changes made for duplicate code removal

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

Modified: vtigercrm/trunk/modules/Accounts/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/Accounts/ListView.php (original)
+++ vtigercrm/trunk/modules/Accounts/ListView.php Thu Mar 30 05:30:18 2006
@@ -100,10 +100,6 @@
 {
 	$CActionDtls = $oCustomView->getCustomActionDetails($viewid);
 }
-//Modified by Raju
-//$other_text='	<input name="gname" type="hidden" value="'.$groupid.'">';
-
-	//Raju	
 if(isPermitted('Accounts',2,'') == 'yes')
 {
 	$other_text['del'] = $app_strings[LBL_MASS_DELETE];
@@ -116,25 +112,8 @@
 
 if($viewnamedesc['viewname'] == 'All')
 {
-$cvHTML='<td><a href="index.php?module=Accounts&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=Accounts&action=CustomView">'.$app_strings['LNK_CV_CREATEVIEW'].'</a>
-<span class="small">|</span>
-<a href="index.php?module=Accounts&action=CustomView&record='.$viewid.'">'.$app_strings['LNK_CV_EDIT'].'</a>
-<span class="small">|</span>
-<a href="index.php?module=CustomView&action=Delete&dmodule=Accounts&record='.$viewid.'">'.$app_strings['LNK_CV_DELETE'].'</a></td>';
-}
-	$customviewstrings='<td>'.$app_strings[LBL_VIEW].'</td>
-			<td style="padding-left:5px;padding-right:5px">
-                        <SELECT NAME="viewname" class="small" onchange="showDefaultCustomView(this,\'Accounts\')">
-				'.$customviewcombo_html.'
-                        </SELECT></td>
-			'.$cvHTML;
+	$smarty->assign("ALL", 'All');
+}
 
 global $theme;
 $theme_path="themes/".$theme."/";
@@ -142,7 +121,8 @@
 $smarty->assign("MOD", $mod_strings);
 $smarty->assign("APP", $app_strings);
 $smarty->assign("IMAGE_PATH",$image_path);
-$smarty->assign("CUSTOMVIEW",$customviewstrings);
+$smarty->assign("CUSTOMVIEW_OPTION",$customviewcombo_html);
+$smarty->assign("VIEWID", $viewid);
 $smarty->assign("BUTTONS",$other_text);
 $smarty->assign("MODULE",$currentModule);
 $smarty->assign("SINGLE_MOD",'Account');





More information about the vtigercrm-commits mailing list