You need to do the following:
Create the script custom/modules/Opportunities/CustomListViewSmarty.php containing the class CustomListViewSmarty which extends the default ListViewSmarty at include/ListView/ListViewSmarty.php
Create a custom view list on Opportunities module (custom/modules/Opportunities/views/view.list.php);
Implement the method "preDisplay", where you will set $this->lv as an instance of CustomListViewSmarty;
Implement inside custom/modules/Opportunities/CustomListViewSmarty.php just one function "display" containing something like that:
PHP Code:
function display($end = true) {
if(!$this->should_process) return $GLOBALS['app_strings']['LBL_SEARCH_POPULATE_ONLY'];
global $app_strings;
$this->ss->assign('data', $this->data['data']);
$this->data['pageData']['offsets']['lastOffsetOnPage'] = $this->data['pageData']['offsets']['current'] + count($this->data['data']);
$this->ss->assign('pageData', $this->data['pageData']);
$navStrings = array('next' => $app_strings['LNK_LIST_NEXT'],
'previous' => $app_strings['LNK_LIST_PREVIOUS'],
'end' => $app_strings['LNK_LIST_END'],
'start' => $app_strings['LNK_LIST_START'],
'of' => $app_strings['LBL_LIST_OF']);
$this->ss->assign('navStrings', $navStrings);
$str = parent::display();
// CUSTOM FOOTER TPL
$str.= $this->displayFooter();
$strend = $this->displayEnd();
return $str . $this->ss->fetch($this->tpl) . (($end) ? '<br><br>' . $strend : '');
}
Implement the function displayFooter() on this same script. This will definitely render the footer as you wish.
Cheers
Bookmarks