diff --git a/htdocs/public/views/about.php b/htdocs/public/views/about.php new file mode 100644 index 0000000..0cd3975 --- /dev/null +++ b/htdocs/public/views/about.php @@ -0,0 +1,6 @@ + + +Подробнее + diff --git a/htdocs/public/views/latest.php b/htdocs/public/views/latest.php new file mode 100644 index 0000000..932c25c --- /dev/null +++ b/htdocs/public/views/latest.php @@ -0,0 +1,103 @@ + + +getObjectList($seconds, $rows, $offset); + $count = StationRepository::getInstance()->getNumberOfStations($seconds); + + $pages = ceil($count / $rows); +?> + +Последние принятые пакеты + + diff --git a/htdocs/public/views/overview.php b/htdocs/public/views/overview.php new file mode 100644 index 0000000..2cbd222 --- /dev/null +++ b/htdocs/public/views/overview.php @@ -0,0 +1,509 @@ + + +getObjectById($_GET['id'] ?? null); ?> +isExistingObject()) : ?> + <?php echo $station->name; ?>, подробнее + + + + + diff --git a/htdocs/public/views/raw.php b/htdocs/public/views/raw.php new file mode 100644 index 0000000..bf445e2 --- /dev/null +++ b/htdocs/public/views/raw.php @@ -0,0 +1,508 @@ + + +getObjectById($_GET['id'] ?? null); ?> +isExistingObject()) : ?> + + getObjectListWithRawBySenderStationId($station->id, $rows, $offset); + $count = PacketRepository::getInstance()->getNumberOfPacketsWithRawBySenderStationId($station->id); + } else { + $packets = PacketRepository::getInstance()->getObjectListWithRawByStationId($station->id, $rows, $offset); + $count = PacketRepository::getInstance()->getNumberOfPacketsWithRawByStationId($station->id); + } + + $pages = ceil($count / $rows); + ?> + + <?php echo $station->name; ?>, сырые данные + + + + diff --git a/htdocs/public/views/search.php b/htdocs/public/views/search.php new file mode 100644 index 0000000..87fa358 --- /dev/null +++ b/htdocs/public/views/search.php @@ -0,0 +1,132 @@ + + +getObjectListByQueryString($_GET['q'], $seconds, $rows, $offset); + $count = StationRepository::getInstance()->getNumberOfStationsByQueryString($_GET['q'], $seconds); + } + $pages = ceil($count / $rows); +?> + +Поиск объектов + + diff --git a/htdocs/public/views/statistics.php b/htdocs/public/views/statistics.php new file mode 100644 index 0000000..140a05b --- /dev/null +++ b/htdocs/public/views/statistics.php @@ -0,0 +1,145 @@ + + +getObjectById($_GET['id'] ?? null); ?> +isExistingObject()) : ?> + + getSenderPacketPathSatistics($station->id, time() - (60*60*24*$days)); ?> + getReceiverPacketPathSatistics($station->id, time() - (60*60*24*$days)); ?> + + <?php echo $station->name; ?>, статистика + + + diff --git a/htdocs/public/views/telemetry.php b/htdocs/public/views/telemetry.php new file mode 100644 index 0000000..df2fe70 --- /dev/null +++ b/htdocs/public/views/telemetry.php @@ -0,0 +1,285 @@ + + +getObjectById($_GET['id'] ?? null); ?> +isExistingObject()) : ?> + getLatestObjectListByStationId($station->id, $rows, $offset, $maxDays); + $latestPacketTelemetry = (count($telemetryPackets) > 0 ? $telemetryPackets[0] : new PacketTelemetry(null)); + $count = PacketTelemetryRepository::getInstance()->getLatestNumberOfPacketsByStationId($station->id, $maxDays); + $pages = ceil($count / $rows); + ?> + + <?php echo $station->name; ?>, телеметрия + + + + diff --git a/htdocs/public/views/trail.php b/htdocs/public/views/trail.php new file mode 100644 index 0000000..caf93b3 --- /dev/null +++ b/htdocs/public/views/trail.php @@ -0,0 +1,192 @@ + + +getObjectById($_GET['id'] ?? null); ?> +isExistingObject()) : ?> + <?php echo $station->name; ?>, графики + + + diff --git a/htdocs/public/views/weather.php b/htdocs/public/views/weather.php new file mode 100644 index 0000000..2da23b6 --- /dev/null +++ b/htdocs/public/views/weather.php @@ -0,0 +1,237 @@ + + +getObjectById($_GET['id'] ?? null); ?> +isExistingObject()) : ?> + getLatestObjectListByStationIdAndLimit($station->id, $rows, $offset, $maxDays); + $count = PacketWeatherRepository::getInstance()->getLatestNumberOfPacketsByStationIdAndLimit($station->id, $maxDays); + $pages = ceil($count / $rows); + ?> + + <?php echo $station->name; ?>, погода + + + +