Location: PHPKode > projects > Network Asset Management Archive > nama/phoneb.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>Generate Phone Book</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="/phonebook.php">
  <p> Please select the labs you wish listed in your phonebook or leave blank for all. <p>
  
    <select name="LABlist[]" size="5" multiple>
<?
$stmt = "Select * FROM LAB WHERE SERIAL<5;";
$sth = ibase_query($dbh, $stmt);
while ($row = ibase_fetch_object($sth)) {
     if ($row->LAB!='EL') {
          echo '<option value="' . $row->LAB . '">' . $row->LAB . '</option>';
     } else {
            echo '<option value="' . $row->LAB . '/">' . $row->LAB . '</option>';
     } 
}
?>
    </select>
  </p>
  <p>
    <input type="submit" name="Submit" value="Generate Phone Book">
    <input type="reset" name="Submit2" value="Reset">
  </p>
</form>
</body>
</html>
Return current item: Network Asset Management Archive