diff --git a/include/objectManager.php b/include/objectManager.php
index 6b324f7..8f4ce34 100644
--- a/include/objectManager.php
+++ b/include/objectManager.php
@@ -342,6 +342,8 @@ class ObjectManager
$sQueued = $this->getQueueString($this->getIsQueue(), $this->sState == 'rejected');
+ $this->showNumberOfResults($oObject);
+
/* Should we let the class draw its own custom table? */
if(method_exists($this->sClass, 'objectWantCustomDraw') &&
$oObject->objectWantCustomDraw('table', $sQueued))
@@ -1643,6 +1645,21 @@ class ObjectManager
}
}
+ /* Shows how many entries we are displaying */
+ private function showNumberOfResults($oObject)
+ {
+ $iTotalEntries = $oObject->objectGetEntriesCount($this->sState, $this->oFilters);
+ if($this->oMultiPage->isEnabled())
+ {
+ $iShowingEntryFrom = $this->oMultiPage->iLowerLimit + 1;
+ $iShowingEntryTo = min($this->oMultiPage->iLowerLimit + $this->oMultiPage->iItemsPerPage, $iTotalEntries);
+ echo "Showing entry $iShowingEntryFrom to $iShowingEntryTo of $iTotalEntries
\n";
+ } else
+ {
+ echo "Showing $iTotalEntries entries";
+ }
+ }
+
private function handleMultiPageControls($aClean, $bItemsPerPageSelector = TRUE)
{
/* Display multi-page browsing controls (prev, next etc.) if applicable.
@@ -1796,6 +1813,11 @@ class MultiPage
$this->iLowerLimit = $iLowerLimit;
}
+ public function isEnabled()
+ {
+ return $this->bEnabled;
+ }
+
function getDataFromInput($aClean)
{
if(isset($aClean['iItemsPerPage']) && isset($aClean['iPage']))