diff --git a/html/inc/result.inc b/html/inc/result.inc index 5756c1d982..79db5c449e 100644 --- a/html/inc/result.inc +++ b/html/inc/result.inc @@ -16,6 +16,8 @@ // You should have received a copy of the GNU Lesser General Public License // along with BOINC. If not, see . +require_once("../inc/translation.inc"); + $apps = array(); $app_versions = array(); @@ -444,8 +446,8 @@ function result_navigation($info, $where_clause) { for ($i=0; $iid] = 0; } $app_count[0] = 0; @@ -453,7 +455,10 @@ function result_navigation($info, $where_clause) { foreach ($results as $r) { $app_count[$r->appid]++; $app_count[0]++; - $state_count[state_num($r)]++; + if (!$info->appid || ($r->appid == $info->appid)) { + $state_count[state_num($r)]++; + $state_count[0]++; + } } $x .= "
"; @@ -474,7 +479,7 @@ function result_navigation($info, $where_clause) { $url = result_page_url($i2); $x .= "".tra("Next")." ".$info->results_per_page.""; } - $x .= "
".tra("Show").": "; + $x .= "
".tra("State").": "; for ($i=0; $istate == $i) { @@ -492,7 +497,7 @@ function result_navigation($info, $where_clause) { if (count($apps) > 1) { $i2 = clone $info; $i2->offset = 0; - $x .= '
'; + $x .= "
".tra("Application").": "; if ($info->appid) { $i2->appid = 0; $url = result_page_url($i2); diff --git a/html/user/results.php b/html/user/results.php index d009f128cf..4255ebd05d 100644 --- a/html/user/results.php +++ b/html/user/results.php @@ -86,8 +86,9 @@ $info->show_names = $show_names; $info->state = $state; $info->appid = $appid; +$nav = result_navigation($info, $clause); if (count($results)) { - echo show_result_navigation($info); + echo $nav; result_table_start(true, $show_host_link, $info); $i = 0; foreach ($results as $result) { @@ -102,7 +103,7 @@ if (count($results)) { end_table(); } -echo show_result_navigation($info); +echo $nav; page_tail(); ?>