Ejemplo n.º 1
0
?>
>CVEs
        </select>
    </td>
</tr>
<input type="hidden" name="hostId" value=<?php 
print $host->getId();
?>
>
</form>

<div class="paging">
    <?php 
switch ($view) {
    case "cve":
        print $html->paging($vulnerablePkgsCount, $pageSize, $pageNum);
        break;
    case "installed":
        print $html->paging($installedPkgsCount, $pageSize, $pageNum);
        break;
}
?>
</div>


<table class="tableList">
    <tr>
        <th width="300"><a href="<?php 
print $html->getQueryString(array("sortBy" => "name"));
?>
">Name</a></th>
Ejemplo n.º 2
0
print $hostGroup->getName();
?>
</td>
  </tr>
  <tr>
    <td class="header">Hosts Count</td>
    <td><?php 
print $hostsCount;
?>
</td>
  </tr>
</table>

<div class="paging">
<?php 
print $html->paging($hostsCount, $pageSize, $pageNum);
?>
</div>

<?php 
$html->printHosts($hosts);
?>

<div class="paging">
<?php 
print $html->paging($hostsCount, $pageSize, $pageNum);
?>
</div>

<?php 
$html->printFooter();
Ejemplo n.º 3
0
    </div>
    <input type="hidden" name="tag-create-form" value="sent" />
</form>
        


<h2>List of all tags</h2>

<p>Total tags: <?php 
print $tagsCount;
?>
</p>

<div class="paging">
<?php 
print $html->paging($tagsCount, $pageSize, $pageNum);
?>
</div>

<table class="tableList">
  <tr>
    <th>Name</th>
    <th>Description</th>
  </tr>
<?php 
$i = 0;
foreach ($tags as $tag) {
    $i++;
    $line = $i & 1;
    print "<tr class=\"a{$line}\">\n                <td>{$tag->getName()}</td>\n                <td>{$tag->getDescription()}</td>\n            </tr>\n";
}
Ejemplo n.º 4
0
    if ($hostname != null) {
        $host =& $pakiti->getManager("HostsManager")->getHostByHostname($hostname);
    }
}
if ($host == null) {
    $html->fatalError("HostId nor Hostname was supplied");
}
$html->addHtmlAttribute("title", "Host: " . $host->getHostname());
$reports =& $pakiti->getManager("ReportsManager")->getHostReports($host, $sort, $pageSize, $pageNum);
$reportsCount =& $pakiti->getManager("ReportsManager")->getHostReportsCount($host);
//---- Output HTML
$html->printHeader();
?>
<div class="paging">
<?php 
print $html->paging($reportsCount, $pageSize, $pageNum);
?>
</div>

<table class="tableList">
	<tr>
		<th width="300"><a href="<?php 
print $html->getQueryString(array("sortBy" => "id"));
?>
">ID</a></th>
		<th width="300"><a href="<?php 
print $html->getQueryString(array("sortBy" => "receivedOn"));
?>
">Received on</a></th>
		<th width="300"><a href="<?php 
print $html->getQueryString(array("sortBy" => "processedOn"));
Ejemplo n.º 5
0
require realpath(dirname(__FILE__)) . '/../Html.php';
// Instantiate the HTML module
$html = new HtmlModule($pakiti);
$pageNum = $html->getHttpGetVar("pageNum", 0);
$pageSize = $html->getHttpGetVar("pageSize", HtmlModule::$DEFAULTPAGESIZE);
$html->addHtmlAttribute("title", "List of all Archs");
$archs = $pakiti->getManager("HostsManager")->getArchs("name", $pageSize, $pageNum);
$archsCount = sizeof($archs);
//---- Output HTML
$html->printHeader();
# Print table with oses
?>

<div class="paging">
<?php 
print $html->paging($archsCount, $pageSize, $pageNum);
?>
</div>

<table class="tableList">
  <tr>
    <th>Name</th>
  </tr>
<?php 
$i = 0;
foreach ($archs as $arch) {
    $i++;
    print "<tr class=\"a" . ($i & 1) . "\"><td>{$arch->getName()}</td></tr>\n";
}
?>
</table>