top: 0px;
left: 15%;
width: 85%;
- height: 100%;
+ height: 100%;
+ }
+
+ .short
+ {
+ width: 3em;
}
</STYLE>
</HEAD>
foreach ($hosts as $host)
{
echo " <tr><th>$host</th>";
- echo "<td><input type='submit' value='Update $host' /></td></tr>";
+ echo "<td><input type='submit' value='Update host' /></td></tr>";
$result = $db_handle->query("SELECT DISTINCT attribute FROM MEASUREMENTS WHERE host='$host'");
$attributes = Array();
while($attribute = $result->fetchArray(SQLITE3_ASSOC))
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='' />".
- "<input type='text' name='$host-$attribute-max' value='' /></td>";
- echo " <td><input type='text' name='$host-$attribute-duration' value='' /></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>";
}
}