[Vtigercrm-commits] [vtiger-commits] r4775 - /vtigercrm/trunk/modules/Notes/ListView.php

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


Author: saraj
Date: Thu Mar 30 06:03:52 2006
New Revision: 4775

Log:
changes made for duplicate code removal

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

Modified: vtigercrm/trunk/modules/Notes/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/Notes/ListView.php (original)
+++ vtigercrm/trunk/modules/Notes/ListView.php Thu Mar 30 06:03:52 2006
@@ -30,21 +30,13 @@
 require_once('include/utils/utils.php');
 require_once('modules/CustomView/CustomView.php');
 
-global $app_strings;
-global $mod_strings;
+global $app_strings,$mod_strings,$list_max_entries_per_page;
 
-global $list_max_entries_per_page;
 $log = LoggerManager::getLogger('note_list');
 
-global $currentModule;
+global $currentModule,$image_path,$theme;
 
-global $image_path;
-global $theme;
 $category = getParentTab();
-
-
-// focus_list is the means of passing data to a ListView.
-global $focus_list;
 
 //<<<<cutomview>>>>>>>
 $oCustomView = new CustomView("Notes");
@@ -93,32 +85,13 @@
 
 if($viewnamedesc['viewname'] == 'All')
 {
-$cvHTML = '<td><a href="index.php?module=Notes&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=Notes&action=CustomView">'.$app_strings['LNK_CV_CREATEVIEW'].'</a>
-<span class="small">|</span>
-<a href="index.php?module=Notes&action=CustomView&record='.$viewid.'">'.$app_strings['LNK_CV_EDIT'].'</a>
-<span class="small">|</span>
-<a href="index.php?module=CustomView&action=Delete&dmodule=Notes&record='.$viewid.'">'.$app_strings['LNK_CV_DELETE'].'</a></td>';
+	$smarty->assign("ALL", 'All');
 }
 
-$customstrings = '<td>'.$app_strings[LBL_VIEW].'</td>
-			<td style="padding-left:5px;padding-right:5px">
-                        <SELECT NAME="viewname" class="small" onchange="showDefaultCustomView(this,\'Notes\')">
-				'.$customviewcombo_html.'
-                        </SELECT></td>
-			'.$cvHTML;
-
-
-global $theme;
 $theme_path="themes/".$theme."/";
 $image_path=$theme_path."images/";
-$smarty->assign("CUSTOMVIEW",$customstrings);
+$smarty->assign("CUSTOMVIEW_OPTION",$customviewcombo_html);
+$smarty->assign("VIEWID", $viewid);
 $smarty->assign("MOD", $mod_strings);
 $smarty->assign("APP", $app_strings);
 $smarty->assign("IMAGE_PATH",$image_path);





More information about the vtigercrm-commits mailing list