[Vtigercrm-commits] [vtiger-commits] r4777 - /vtigercrm/trunk/modules/Potentials/ListView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Mar 30 08:07:09 EST 2006
Author: saraj
Date: Thu Mar 30 06:07:05 2006
New Revision: 4777
Log:
changes made for duplicate code removal
Modified:
vtigercrm/trunk/modules/Potentials/ListView.php
Modified: vtigercrm/trunk/modules/Potentials/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/Potentials/ListView.php (original)
+++ vtigercrm/trunk/modules/Potentials/ListView.php Thu Mar 30 06:07:05 2006
@@ -16,7 +16,6 @@
require_once('Smarty_setup.php');
require_once("data/Tracker.php");
require_once('modules/Potentials/Opportunity.php');
-require_once('include/utils/utils.php');
require_once('themes/'.$theme.'/layout_utils.php');
require_once('include/logging.php');
require_once('include/ListView/ListView.php');
@@ -24,13 +23,11 @@
require_once('include/utils/utils.php');
require_once('modules/CustomView/CustomView.php');
-global $app_strings;
-global $list_max_entries_per_page;
+global $app_strings,$list_max_entries_per_page;
$log = LoggerManager::getLogger('potential_list');
-global $currentModule;
-global $theme;
+global $currentModule,$theme;
// Get _dom arrays from Database
$comboFieldNames = Array('leadsource'=>'leadsource_dom'
@@ -114,27 +111,8 @@
if($viewnamedesc['viewname'] == 'All')
{
-$cvHTML = '<td><a href="index.php?module=Potentials&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=Potentials&action=CustomView">'.$app_strings['LNK_CV_CREATEVIEW'].'</a>
-<span class="small">|</span>
-<a href="index.php?module=Potentials&action=CustomView&record='.$viewid.'">'.$app_strings['LNK_CV_EDIT'].'</a>
-<span class="small">|</span>
-<a href="index.php?module=CustomView&action=Delete&dmodule=Potentials&record='.$viewid.'">'.$app_strings['LNK_CV_DELETE'].'</a></td>';
-}
-
-$customstrings ='<td>'.$app_strings[LBL_VIEW].'</td>
- <td style="padding-left:5px;padding-right:5px">
- <SELECT NAME="viewname" class="small" onchange="showDefaultCustomView(this,\'Potentials\')">
- '.$customviewcombo_html.'
- </SELECT></td>
- '.$cvHTML;
-
+ $smarty->assign("ALL", 'All');
+}
//Retreive the list from Database
//<<<<<<<<<customview>>>>>>>>>
@@ -176,7 +154,8 @@
$smarty->assign("MOD", $mod_strings);
$smarty->assign("APP", $app_strings);
$smarty->assign("IMAGE_PATH",$image_path);
-$smarty->assign("CUSTOMVIEW", $customstrings);
+$smarty->assign("CUSTOMVIEW_OPTION",$customviewcombo_html);
+$smarty->assign("VIEWID", $viewid);
$smarty->assign("MODULE",$currentModule);
$smarty->assign("SINGLE_MOD",'Opportunity');
$smarty->assign("BUTTONS",$other_text);
More information about the vtigercrm-commits
mailing list