Removed broken Page Number display support.

For mysql and mongodb, page number calculation
needs to be rewritten.
This commit is contained in:
Andre Lorbach 2015-02-18 15:46:48 +01:00
parent e1d07a21ba
commit c6de4a4f63
4 changed files with 6 additions and 6 deletions

View File

@ -58,7 +58,7 @@ class LogStreamDB extends LogStream {
private $_previousPageUID = -1;
private $_lastPageUID = -1;
private $_firstPageUID = -1;
private $_currentPageNumber = 0;
private $_currentPageNumber = -1;
private $_SQLwhereClause = "";
private $_myDBQuery = null;
@ -106,7 +106,7 @@ class LogStreamDB extends LogStream {
return $res;
// Success, this means we init the Pagenumber to ONE!
$this->_currentPageNumber = 1;
// $this->_currentPageNumber = 1;
// reached this point means success!
return SUCCESS;

View File

@ -56,7 +56,7 @@ class LogStreamMongoDB extends LogStream {
private $_previousPageUID = -1;
private $_lastPageUID = -1;
private $_firstPageUID = -1;
private $_currentPageNumber = 0;
private $_currentPageNumber = -1;
private $_SQLwhereClause = "";
private $_myDBQuery = null;
@ -113,7 +113,7 @@ class LogStreamMongoDB extends LogStream {
// return $res;
// Success, this means we init the Pagenumber to ONE!
$this->_currentPageNumber = 1;
// $this->_currentPageNumber = 1;
// reached this point means success!
return SUCCESS;

View File

@ -316,7 +316,7 @@ if ( isset($content['Sources'][$currentSourceID]) )
$content['main_recordcount_found'] = false;
$content['main_currentpagenumber'] = $stream->GetCurrentPageNumber();
if ( $content['main_currentpagenumber'] >= 0 )
if ( $content['main_currentpagenumber'] > 0 )
$content['main_currentpagenumber_found'] = true;
else
$content['main_currentpagenumber_found'] = false;

View File

@ -435,7 +435,7 @@ function CreateMenuFunction ( szbuttonobjid, szmenuobjid, bHide )
{
// Popup Menu Code
var menu = $("ul" + szmenuobjid).menu();
if (bHide) {
// Hide
menu.hide();