Ticket #999: results_php.patch
File results_php.patch, 1.1 KB (added by , 14 years ago) |
---|
-
results.php
46 46 if (!$host) error_page(tra("No computer with ID %1 found", $hostid)); 47 47 $clause = "hostid=$hostid"; 48 48 page_head(tra("$s tasks for computer %1", $host->id)); 49 $show_host = false; 49 50 } else if ($userid){ 50 51 $user = get_logged_in_user(); 51 52 if ($userid != $user->id) { … … 53 54 } 54 55 $clause = "userid=$userid"; 55 56 page_head(tra("$s tasks for $user->name")); 57 $show_host = true; 56 58 } else { 57 59 error_page(tra("Missing user ID or host ID")); 58 60 } … … 72 74 73 75 if (count($results)) { 74 76 echo show_result_navigation($info); 75 result_table_start(true, false, $info);77 result_table_start(true, $show_host, $info); 76 78 $i = 0; 77 79 foreach ($results as $result) { 78 80 if ($i >= $results_per_page) break; 79 show_result_row($result, true, false, $show_names, $i);81 show_result_row($result, true, $show_host, $show_names, $i); 80 82 $i++; 81 83 } 82 84 echo "</table>\n";