[Vtigercrm-commits] [vtiger-commits] r4768 - /vtigercrm/trunk/modules/HelpDesk/ListView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Mar 30 07:54:27 EST 2006
Author: saraj
Date: Thu Mar 30 05:54:23 2006
New Revision: 4768
Log:
changes made for duplicate code removal
Modified:
vtigercrm/trunk/modules/HelpDesk/ListView.php
Modified: vtigercrm/trunk/modules/HelpDesk/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/HelpDesk/ListView.php (original)
+++ vtigercrm/trunk/modules/HelpDesk/ListView.php Thu Mar 30 05:54:23 2006
@@ -32,9 +32,6 @@
$comboFieldArray = getComboArray($comboFieldNames);
global $currentModule;
-global $theme;
-$theme_path="themes/".$theme."/";
-$image_path=$theme_path."images/";
$focus = new HelpDesk();
$smarty = new vtigerCRM_Smarty;
@@ -93,29 +90,10 @@
if($viewnamedesc['viewname'] == 'All')
{
- $cvHTML = '<td><a href="index.php?module=HelpDesk&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=HelpDesk&action=CustomView">'.$app_strings['LNK_CV_CREATEVIEW'].'</a>
- <span class="small">|</span>
- <a href="index.php?module=HelpDesk&action=CustomView&record='.$viewid.'">'.$app_strings['LNK_CV_EDIT'].'</a>
- <span class="small">|</span>
- <a href="index.php?module=CustomView&action=Delete&dmodule=HelpDesk&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,\'HelpDesk\')">
- '.$customviewcombo_html.'
- </SELECT></td>
- '.$cvHTML;
-
-$smarty->assign("CUSTOMVIEW",$customstrings);
+ $smarty->assign("ALL", 'All');
+}
+$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