diff --git a/include/objectManager.php b/include/objectManager.php index 7d749ae..f70c9db 100644 --- a/include/objectManager.php +++ b/include/objectManager.php @@ -963,6 +963,7 @@ class ObjectManager $sReturn .= "sClass."\" />\n"; $sReturn .= "sTitle."\" />\n"; $sReturn .= "sReturnTo."\" />\n"; + $sReturn .= "iId."\" />\n"; if($this->oMultiPage->bEnabled) { diff --git a/include/testData.php b/include/testData.php index dc5d7de..3935b21 100644 --- a/include/testData.php +++ b/include/testData.php @@ -480,7 +480,7 @@ class testData{ $link = query_escape_string($link); $iDisplayLimit = query_escape_string($iDisplayLimit); - $sShowAll = isset($aClean['sShowAll']) ? $aClean['sShowAll'] : false; + $bShowAll = ($aClean['bShowAll'] == "true") ? true : false; $sQuery = "SELECT * FROM testResults @@ -489,7 +489,7 @@ class testData{ queued = '?' ORDER BY testedDate DESC"; - if(!$sShowAll) + if(!$bShowAll) $sQuery.=" LIMIT 0,".$iDisplayLimit; $hResult = query_parameters($sQuery, $this->iVersionId, "false"); @@ -603,15 +603,23 @@ class testData{ echo '
',"\n"; // put a space after the test results table and the button - echo '
'."\n"; - echo "\t".''."\n"; - if($rowsUsed >= $iDisplayLimit && !is_string($sShowAll)) - echo "\t".''."\n"; + echo ''."\n"; - if(is_string($sShowAll)) + if($rowsUsed >= $iDisplayLimit && $bShowAll) { - echo "\t".''."\n"; + $sShowButtonText = "Limit to $iDisplayLimit Tests"; + } else + { + $sShowButtonText = "Show All Tests"; + echo ''; } + + $oManager = new objectManager("version", null, $this->iVersionId); + + echo $oManager->makeUrlFormData(); + + echo "\t".''."\n"; + echo '
'."\n"; echo '',"\n"; // end of the 'info_contents' div