#include <infocon.style>
#include "hwdb.inc"
#include "form.inc"

<page func=InfoCon title="Hardware Database">

<?
<dbconnect>

  if ($id) {
    $query = sprintf ("SELECT * FROM organisation WHERE id = %d", $id);
    $sth = pg_exec ($dbh, $query) or die("Cannot issue query!");

    if (pg_NumRows ($sth) > 0) {
      $row = pg_fetch_array ($sth, 0);
    }
  }
?>

<form method=post action=update.php>
<input type=hidden name=formtype value="organisation">
<input type=hidden name=id value="<? echo $id; ?>">
<center><table cellpadding=0 cellspacing=1>

<row_input	name=name
		title="<b>Organisation</b>"
		value="<? echo $row['name']; ?>"
		>
<row_input	name=email
		title="<b>E-Mail</b>"
		value="<? echo $row['email']; ?>"
		>
<row_input	name=phone
		title="<b>Phone</b>"
		value="<? echo $row['phone']; ?>"
		>

<row_textarea	name=address
		title="<b>Address</b>"
		value="<? echo $row['address']; ?>"
		rows=4
		>
<row_textarea	name=comment
		title="<b>Comment</b>"
		value="<? echo $row['comment']; ?>"
		rows=7
		>


<row_submit>

</table></center></form>

<p>Please add all additional phone and fax numbers to the address.</p>

</page>

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