芝麻web文件管理V1.00
编辑当前文件:/home/asmplong/www/ancien-site-2019/site/administrator/templates/hathor/html/pagination.php
base : integer * $item->prefix : string * $item->link : string * $item->text : string * * pagination_item_inactive * Input variable $item is an object with fields: * $item->base : integer * $item->prefix : string * $item->link : string * $item->text : string * * This gives template designers ultimate control over how pagination is rendered. * * NOTE: If you override pagination_item_active OR pagination_item_inactive you MUST override them both */ function pagination_list_footer($list) { // Initialize variables $lang = JFactory::getLanguage(); /** * Fix javascript jump menu * * Remove the onchange=Joomla.submitform from the select tag * Add in a button with onclick instead */ $fixlimit = $list['limitfield']; $fixlimit = preg_replace('/onchange="Joomla.submitform\(\);"/', '', $fixlimit); $html = "
\n"; $html .= "\n
".JText::_('JGLOBAL_DISPLAY_NUM')."
"; $html .= "\n".$fixlimit; $html .= "\n
" . JText::_('JSUBMIT') . "
"; $html .= "\n" . $list['pageslinks']; $html .= "\n
".$list['pagescounter']."
"; $html .= "\n
"; $html .= "\n
"; return $html; } function pagination_list_render($list) { // Initialize variables $lang = JFactory::getLanguage(); $html = null; if ($list['start']['active']) { $html .= "
".$list['start']['data']."
"; } else { $html .= "
".$list['start']['data']."
"; } if ($list['previous']['active']) { $html .= "
".$list['previous']['data']."
"; } else { $html .= "
".$list['previous']['data']."
"; } $html .= "\n
"; foreach($list['pages'] as $page) { $html .= $page['data']; } $html .= "\n
"; if ($list['next']['active']) { $html .= "
".$list['next']['data']."
"; } else { $html .= "
".$list['next']['data']."
"; } if ($list['end']['active']) { $html .= "
".$list['end']['data']."
"; } else { $html .= "
".$list['end']['data']."
"; } return $html; } function pagination_item_active(&$item) { if ($item->base>0) return "
text."\" onclick=\"document.adminForm." . $item->prefix . "limitstart.value=".$item->base."; Joomla.submitform();return false;\">".$item->text."
"; else return "
text."\" onclick=\"document.adminForm." . $item->prefix . "limitstart.value=0; Joomla.submitform();return false;\">".$item->text."
"; } function pagination_item_inactive(&$item) { return "
".$item->text."
"; } ?>