[Vtigercrm-commits] [vtiger-commits] r4783 - /vtigercrm/trunk/modules/Quotes/ListView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Mar 30 08:18:06 EST 2006
Author: saraj
Date: Thu Mar 30 06:18:02 2006
New Revision: 4783
Log:
changes made for duplicate code removal
Modified:
vtigercrm/trunk/modules/Quotes/ListView.php
Modified: vtigercrm/trunk/modules/Quotes/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/Quotes/ListView.php (original)
+++ vtigercrm/trunk/modules/Quotes/ListView.php Thu Mar 30 06:18:02 2006
@@ -87,25 +87,8 @@
if($viewnamedesc['viewname'] == 'All')
{
-$cvHTML = '<td><a href="index.php?module=Quotes&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=Quotes&action=CustomView">'.$app_strings['LNK_CV_CREATEVIEW'].'</a>
-<span class="small">|</span>
-<a href="index.php?module=Quotes&action=CustomView&record='.$viewid.'">'.$app_strings['LNK_CV_EDIT'].'</a>
-<span class="small">|</span>
-<a href="index.php?module=CustomView&action=Delete&dmodule=Quotes&record='.$viewid.'">'.$app_strings['LNK_CV_DELETE'].'</a></td>';
+ $smarty->assign("ALL", 'All');
}
- $customstrings = '<td align="right" class="small">'.$app_strings[LBL_VIEW].'</td>
- <td><SELECT NAME="viewname" class="small" onchange="showDefaultCustomView(this,\'Quotes\')">
- '.$customviewcombo_html.'
- </SELECT></td>
- '.$cvHTML;
-
$theme_path="themes/".$theme."/";
$image_path=$theme_path."images/";
@@ -114,7 +97,8 @@
$smarty->assign("IMAGE_PATH",$image_path);
$smarty->assign("MODULE",$currentModule);
$smarty->assign("SINGLE_MOD",'Quote');
-$smarty->assign("CUSTOMVIEW",$customstrings);
+$smarty->assign("CUSTOMVIEW_OPTION",$customviewcombo_html);
+$smarty->assign("VIEWID", $viewid);
$smarty->assign("BUTTONS", $other_text);
$category = getParentTab();
$smarty->assign("CATEGORY",$category);
More information about the vtigercrm-commits
mailing list