diff --git a/managment/www/progressinfo.php b/managment/www/progressinfo.php index 56376bf..7926155 100644 --- a/managment/www/progressinfo.php +++ b/managment/www/progressinfo.php @@ -73,8 +73,7 @@ for ($j = $lon; $j < $lon + 10; $j++) { $name = $we . clipNumber($j, 3) . $sn . clipNumber($i, 2); - //echo ''; - echo ''; + echo ''; $x += 45; } $y -= 45; @@ -91,12 +90,31 @@ $stmt->execute(); $result = $stmt->get_result(); $ret = $result->fetch_all(MYSQLI_ASSOC); - echo ''; + echo '
Tile Name' . $tile . '
'; foreach ($ret as $row) { echo ''; } - echo '
Tile Name' . $tile . '
' . $row["status"] . '' . $row["sCount"] . '
'; + if (isset($_GET["minor"])) + { + $sql = 'SELECT * FROM information_schema.tables WHERE table_name = "tile" AND table_schema = "' . $SQL_DATABASE . '"'; + $ret = $con->query($sql)->fetch_all(MYSQLI_ASSOC); + if (!empty($ret)) + { + $stmt = $con->prepare("SELECT status.name AS status, COUNT(*) AS sCount, status.color AS color FROM tile JOIN status ON tile.status_id = status.id WHERE tile.parent_id = (SELECT id FROM secondLevel WHERE name = ?) GROUP BY status.id ORDER BY priority"); + $stmt->bind_param("s", $_GET["minor"]); + $stmt->execute(); + $result = $stmt->get_result(); + $ret = $result->fetch_all(MYSQLI_ASSOC); + echo ''; + echo ''; + foreach ($ret as $row) + { + echo ''; + } + } + } + echo '
Tile Name' . $_GET["minor"] . '
' . $row["status"] . '' . $row["sCount"] . '
'; } ?> diff --git a/managment/www/style.css b/managment/www/style.css index deac018..13c5271 100644 --- a/managment/www/style.css +++ b/managment/www/style.css @@ -10,12 +10,16 @@ margin: 0px; padding: 0px; } -#statustable +#tablecontainer { position: absolute; top: 0px; left: 457px; } +table +{ + margin-bottom: 7px; +} svg { padding-right: 7px;