echo $loc->getText("lookup_hostsPw");
?>
    </th>
    <th valign="top" nowrap="yes">
      <?php 
echo $loc->getText("lookup_hostsCharset");
?>
    </th>
  </tr>
	</thead>
	<tbody>
	  <?php 
$host = new lookupHostQuery();
$res = $host->execSelectAll();
$odd = true;
while ($row = $host->fetchRow()) {
    if (!$odd) {
        $alt = ' alt1';
    } else {
        $alt = '';
    }
    $odd = !$odd;
    ?>
	  <tr>
	    <td valign="top" class="primary<?php 
    echo $alt;
    ?>
">
        <a class="primary" href="../admin/z3950_server_edit_form.php?id=<?php 
    echo $row->_id;
    ?>
if (0 + $_POST['id'] > 0) {
    $host = new lookupHostQuery();
    $res = $host->execSelectOne(0 + $_POST['id']);
    $row = $host->fetchRow();
    if ($row) {
        $update = deleteHost($_POST);
        if ($update) {
            echo $loc->getText("Z39.50 server, %name%, has been deleted.", array('name' => $row->_name)) . '<br><br>
  <a href="../admin/z3950_server_list.php">' . $loc->getText("return to z39.50 server list") . '</a>';
        }
    }
} else {
    if (0 + $_GET['id'] > 0) {
        $host = new lookupHostQuery();
        $res = $host->execSelectOne(0 + $_GET['id']);
        $row = $host->fetchRow();
        if ($row) {
            foreach ($row as $key => $val) {
                $postVars[substr($key, 1)] = $val;
            }
            ?>

<center>
<form name="delstaffform" method="POST" action="../admin/z3950_server_del.php?id=<?php 
            echo $postVars['id'];
            ?>
">
<?php 
            echo $loc->getText("Are you sure you want to delete server '%name%'?", array('name' => $postVars['name']));
            ?>
<br><br>