Style adjustments to configure
authorBrian Flowers <git-admn@bsflowers.net>
Thu, 22 Sep 2016 17:19:51 +0000 (13:19 -0400)
committerBrian Flowers <git-admn@bsflowers.net>
Thu, 22 Sep 2016 17:19:51 +0000 (13:19 -0400)
configure.php

index ef6d0c8..3599af7 100755 (executable)
       top:              0px;
       left:             15%;
       width:            85%;
-      height:          100%;
+      height:              100%;
+    }
+        
+    .short
+    {
+      width:        3em;    
     }
     </STYLE>
   </HEAD>
@@ -64,7 +69,7 @@ while($host = $result->fetchArray(SQLITE3_ASSOC))
 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))
@@ -77,9 +82,9 @@ foreach ($hosts as $host)
       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>";
     }
 }