Example #1
0
					<ul>
					<li><a href="#tabs-1" class="ptab" id="top_10_hosts_tab"><?php 
echo _("Top 10 Hosts");
?>
</a></li>
					<li><a href="#tabs-2" class="ptab" id="top_10_networks_tab"><?php 
echo _("Top 10 Networks");
?>
</a></li>
					</ul>
					<div id="tabs-1" class="tab_box statistics_background"><?php 
stats_networks_hosts($type, $value, "hosts");
?>
</div>
					<div id="tabs-2" class="tab_box statistics_background"><?php 
stats_networks_hosts($type, $value, "networks");
?>
</div>
				</div>
		</tr>
    <?php 
if (!$widget_mode) {
    ?>
		<tr>
      <td colspan="3" class="cvPadding">
          <a class="section">
              <img id="cv_arrow" border="0" align="absmiddle" src="../pixmaps/arrow_green<?php 
    echo $rvalue == "" && $sortby == "" && $sreport == 0 ? "_down" : "";
    ?>
.gif">
              <strong><?php 
Example #2
0
        echo "<p align=center>\n<a href=\"index.php?offset=0" . $url_allres . $url_filter . "\" class=\"pager\">&lt&lt " . _("First") . "</a>\n<a href=\"index.php?offset={$previous}" . $url_allres . $url_filter . "\" class=\"pager\">&lt " . _("Previous") . " </a>";
        echo "&nbsp;&nbsp;&nbsp;[ " . ($offset + 1) . " - {$pageEnd} " . _("of") . " {$reportCount} ]&nbsp;&nbsp;&nbsp;";
        if ($reportCount > $pageEnd) {
            echo "<a href=\"index.php?offset={$next}" . $url_allres . $url_filter . "\" class=\"pager\"> " . _("Next") . " &gt;</a>\n    <a href=\"index.php?offset={$last}" . $url_allres . $url_filter . "\" class=\"pager\"> " . _("Last") . " &gt;&gt;</a>";
        }
        echo "</p>";
    }
}
echo "<center>";
echo "<table cellspacing=\"8\" cellpadding=\"0\" class=\"noborder\" width=\"900\" style=\"background-color:transparent\">";
echo "<tr><td class=\"nobborder\">";
stats_severity_services($type, $value);
echo "</td></tr>";
echo "<tr><td class=\"nobborder\" style=\"padding-bottom:10px;\">";
//stats();
stats_networks_hosts($type, $value);
echo "</td></tr>";
//echo "<tr><td class=\"nobborder\">";
//status();
//echo "</td></tr>";
echo "<tr><td class=\"nobborder\">";
switch ($disp) {
    case "delete":
        delete_results($scantime, $scantype, $reporttype, $key, $sortby, $allres, $fp, $nfp, $op, $output, $wh, $bg);
        break;
    default:
        list_results($type, $value, $sortby, $sortdir);
        break;
}
echo "</td></tr>";
echo "</table>";