diff --git a/managment/www/index.php b/managment/www/index.php index 1e913d1..3787473 100644 --- a/managment/www/index.php +++ b/managment/www/index.php @@ -85,7 +85,7 @@ echo '
  • - +
  • diff --git a/managment/www/progressinfo.php b/managment/www/progressinfo.php index 073ee97..2c1ba5c 100644 --- a/managment/www/progressinfo.php +++ b/managment/www/progressinfo.php @@ -1,5 +1,15 @@ - + + + '; // Connect to DB $con = new mysqli($SQL_SERVER, $SQL_USER, $SQL_PASSWORD, $SQL_DATABASE, $SQL_PORT); if ($con->connect_error) { quit(); } + $stmt = $con->prepare("SELECT secondLevel.name AS name, status.color AS color FROM secondLevel JOIN status ON secondLevel.status_id = status.id WHERE secondLevel.parent_id = (SELECT id FROM topLevel WHERE name = ?)"); + $stmt->bind_param("s", $tile); + $stmt->execute(); + $result = $stmt->get_result(); + $ret = $result->fetch_all(MYSQLI_ASSOC); + if ($ret != False) + { + $tiles = []; + foreach($ret as $row) + { + $tiles[$row["name"]] = $row["color"]; + } + $y = 405; + for ($i = $lat; $i < $lat + 10; $i++) + { + $x = 0; + for ($j = $lon; $j < $lon + 10; $j++) + { + $name = $we . clipNumber($j, 3) . $sn . clipNumber($i, 2); + //echo ''; + echo ''; + $x += 45; + } + $y -= 45; + } + } + echo ''; $stmt = $con->prepare("SELECT status.name AS status, COUNT(*) AS sCount, status.color AS color FROM secondLevel JOIN status ON secondLevel.status_id = status.id WHERE secondLevel.parent_id = (SELECT id FROM topLevel WHERE name = ?) GROUP BY status.id ORDER BY priority"); $stmt->bind_param("s", $tile); $stmt->execute(); $result = $stmt->get_result(); $ret = $result->fetch_all(MYSQLI_ASSOC); - echo ''; + echo '
    Tile Name' . $tile . '
    '; foreach ($ret as $row) { echo ''; diff --git a/managment/www/style.css b/managment/www/style.css index 6b8429f..deac018 100644 --- a/managment/www/style.css +++ b/managment/www/style.css @@ -1,6 +1,22 @@ -#container { +#container +{ display: flex; flex-wrap: wrap; list-style: none; align-content: flex-start; } +#infobody +{ + margin: 0px; + padding: 0px; +} +#statustable +{ + position: absolute; + top: 0px; + left: 457px; +} +svg +{ + padding-right: 7px; +}
    Tile Name' . $tile . '
    ' . $row["status"] . '' . $row["sCount"] . '