<a href="configure.php">Configuration</a>
<a></a>
</div>
- <form id="attributes" method="POST" action="configure.php" />
<table id="options">
<tr>
<th>Reading</th>
foreach ($hosts as $host)
{
+ echo "<form id='attributes' method='POST' ".
+ "action='configure.php?host=<?php echo urlencode($host); ?>' />";
echo " <tr><th>$host</th>";
echo "<th><input type='submit' value='Update host' /></th></tr>";
$result = $db_handle->query("SELECT DISTINCT attribute FROM MEASUREMENTS WHERE host='$host'");
{
echo " <tr>";
echo " <td>$attribute</td>";
- echo " <td><input type='text' name='$host-$attribute-name' value='' /></td>";
- echo " <td><input type='checkbox' name='$host-$attribute-graph' /></td>";
- echo " <td><input type='text' name='$host-$attribute-min' value='' class='short'/> - ".
- "<input type='text' name='$host-$attribute-max' value='' class='short'/></td>";
- echo " <td><input type='text' name='$host-$attribute-duration' value='' class='short' /></td>";
+ echo " <td><input type='text' name='$host|$attribute|name' value='' /></td>";
+ echo " <td><input type='checkbox' name='$host|$attribute|graph' /></td>";
+ echo " <td><input type='text' name='$host|$attribute|min' value='' class='short'/> - ".
+ "<input type='text' name='$host|$attribute|max' value='' class='short'/></td>";
+ echo " <td><input type='text' name='$host|$attribute|duration' value='' class='short' /></td>";
echo " </tr>";
}
+ echo "</form>";
}
?>
</table>
- </form>
</BODY>
</HTML>