[Vtigercrm-commits] [vtiger-commits] r4765 - /vtigercrm/trunk/modules/Contacts/ListView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Mar 30 07:45:50 EST 2006
Author: saraj
Date: Thu Mar 30 05:45:46 2006
New Revision: 4765
Log:
changes made for duplicate code removal
Modified:
vtigercrm/trunk/modules/Contacts/ListView.php
Modified: vtigercrm/trunk/modules/Contacts/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/Contacts/ListView.php (original)
+++ vtigercrm/trunk/modules/Contacts/ListView.php Thu Mar 30 05:45:46 2006
@@ -121,28 +121,8 @@
}
if($viewnamedesc['viewname'] == 'All')
{
-$cvHTML = '<td><a href="index.php?module=Contacts&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=Contacts&action=CustomView">'.$app_strings['LNK_CV_CREATEVIEW'].'</a>
-<span class="small">|</span>
-<a href="index.php?module=Contacts&action=CustomView&record='.$viewid.'">'.$app_strings['LNK_CV_EDIT'].'</a>
-<span class="small">|</span>
-<a href="index.php?module=CustomView&action=Delete&dmodule=Contacts&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,\'Contacts\')">
- '.$customviewcombo_html.'
- </SELECT></td>
- '.$cvHTML;
-
-//
+ $smarty->assign("ALL", 'All');
+}
//Retreive the list from Database
//<<<<<<<<<customview>>>>>>>>>
@@ -184,10 +164,11 @@
$smarty->assign("MOD", $mod_strings);
$smarty->assign("APP", $app_strings);
$smarty->assign("IMAGE_PATH",$image_path);
-$smarty->assign("CUSTOMVIEW",$customstrings);
$smarty->assign("BUTTONS",$other_text);
$category = getParentTab();
$smarty->assign("CATEGORY",$category);
+$smarty->assign("CUSTOMVIEW_OPTION",$customviewcombo_html);
+$smarty->assign("VIEWID", $viewid);
//Retreiving the no of rows
$noofrows = $adb->num_rows($list_result);
More information about the vtigercrm-commits
mailing list