[Vtigercrm-commits] [vtiger-commits] r4766 - /vtigercrm/trunk/modules/Emails/ListView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Mar 30 07:48:59 EST 2006
Author: saraj
Date: Thu Mar 30 05:48:55 2006
New Revision: 4766
Log:
changes made for duplicate code removal
Modified:
vtigercrm/trunk/modules/Emails/ListView.php
Modified: vtigercrm/trunk/modules/Emails/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/Emails/ListView.php (original)
+++ vtigercrm/trunk/modules/Emails/ListView.php Thu Mar 30 05:48:55 2006
@@ -141,28 +141,8 @@
if($viewnamedesc['viewname'] == 'All')
{
- $cvHTML = '<td><a href="index.php?module=Emails&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=Emails&action=CustomView">'.$app_strings['LNK_CV_CREATEVIEW'].'</a>
- <span class="small">|</span>
- <a href="index.php?module=Emails&action=CustomView&record='.$viewid.'">'.$app_strings['LNK_CV_EDIT'].'</a>
- <span class="small">|</span>
- <a href="index.php?module=CustomView&action=Delete&dmodule=Emails&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,\'Emails\')">
- '.$customviewcombo_html.'
- </SELECT></td>
- '.$cvHTML;
-
+ $smarty->assign("ALL", 'All');
+}
if(isset($_REQUEST['query']) && $_REQUEST['query'] == 'true')
{
@@ -209,8 +189,8 @@
$list_result = $adb->query($list_query);
//Constructing the list view
-
-$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