#include <infodrom.style>

<page func="Infodrom Oldenburg" title="Logbook">

<style type="text/css">
input, select, checkbox {
  border: 1px solid #9b9b9b;
}
input.button {
  width: auto;
  display: inline;
  border: 1px solid #aaaaaa;
}
input.button:hover {
  border: 1px solid #9b9b9b;
  background-color: #bfbfbf;
}
</style>
<form method=post action=find.php>
<b>Keyword:</b> <input name=keyword size=30 maxlength=80><br>
<b>Category:</b> <select name=category><option value="">any<?
  $dbh = pg_pconnect ("<dbhost>", "<dbport>", "<dbname>")
		 or die("Unable to connect to SQL server");

  $sth = pg_exec ($dbh, "SELECT DISTINCT category FROM logbook ORDER BY category") or die("Datenbank-Abfrage!");
  for ($nr=0; $nr < pg_NumRows ($sth); $nr++) {
    $srow = pg_fetch_array ($sth, $nr);
    printf ("<option value=\"%s\"%s>%s\n", $srow['category'],
        $row['category'] == $srow['category']?" selected":¨, $srow['category']);
  }
?></select><br>
<b>Text:</b> <input name=text type=checkbox value=1><br>
<b>Public:</b> <input name=public type=checkbox value=1>

<p><center><input class=button type=submit value="Search">\
&nbsp;&nbsp;&nbsp;&nbsp;
<input class=button type=reset value="Reset"></center><p>
</form>

</page>

# Local variables:
# mode: text
# mode: auto-fill
# end:
