Location: PHPKode > projects > Network Asset Management Archive > nama/hosts.php
<?php
$now = date("m/j/y h:i:s",time());
include "connect.php";

$now = date("j/m/y h:i:s",time());
?>
<html>
<head>
<title>Host List</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#99CCFF" text="#000000">
<form name="Host_list" method="post" action="getlist.php">
  <p> Please select the labs you wish
  
    <select name="LABlist[]" size="5" multiple>
<?
$stmt = "Select * FROM LAB;";
$sth = ibase_query($dbh, $stmt);
while ($row = ibase_fetch_object($sth)) {

      echo '<option value="' . $row->SERIAL . '">' . $row->LAB . '</option>';
}
?>
    </select>
  </p>
  <p>And/Or Select Subnets
   
    <select name="SUBNET[]" size="5" multiple>
<?
$stmt = "Select distinct SUBNET from ARP_TABLE order by IPNUM;";
$sth = ibase_query($dbh, $stmt);
while ($row = ibase_fetch_object($sth)) {

      echo '<option value="' . $row->SUBNET . '">' . $row->SUBNET . '</option>';
}
?>

</select>
  </p>
  <p>And/Or select an OS.
 
    <select name="OSlist[]" size="8" multiple>
<?
ibase_free_result($sth);
$stmt = "Select distinct OS FROM ARP_TABLE;";
$sth = ibase_query($dbh, $stmt);
while ($row = ibase_fetch_object($sth)) {
   if ($row->OS != ''){
      echo '<option value="' . $row->OS . '">' . $row->OS . '</option>';
}	
}
?>
    </select>
  </p>
  <p>
    <input type="submit" name="Submit" value="No Network Gear">
    <input type="submit" name="Submit" value="With Network Gear">
    <input type="submit" name="Submit" value="No Green">
    <input type="submit" name="Submit" value="Block List">
    <input type="submit" name="Submit" value="No Green Block List">
    <input type="submit" name="Submit" value="VIRUS FOUND">
    <input type="submit" name="Submit" value="CAC INSTALLED">
    <input type="submit" name="Submit" value="NO CAC">
    <input type="submit" name="Submit" value="CRD2">
    <input type="submit" name="Submit" value="IP/EU">
    <input type="reset" name="Submit2" value="Reset">
  </p>
</form>
</body>
</html>
Return current item: Network Asset Management Archive