list_rrd.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <!-- Begin toolbar -->
  2. <div class="toolbar">
  3. <div class="toolbar-inner">
  4. <div class="toolbar-buttons">
  5. <a class="button button-secondary button-back js-button-back" href="/list/server/">
  6. <i class="fas fa-arrow-left icon-blue"></i><?= _("Back") ?>
  7. </a>
  8. <a href="/list/server/?cpu" class="button button-secondary">
  9. <i class="fas fa-chart-pie icon-green"></i><?= _("Advanced Details") ?>
  10. </a>
  11. </div>
  12. <div class="toolbar-right">
  13. <a class="toolbar-link<?php if ((empty($period)) || ($period == 'daily')) echo " selected" ?>" href="?period=daily"><?= _("Daily") ?></a>
  14. <a class="toolbar-link<?php if ((!empty($period)) && ($period == 'weekly')) echo " selected" ?>" href="?period=weekly"><?= _("Weekly") ?></a>
  15. <a class="toolbar-link<?php if ((!empty($period)) && ($period == 'monthly')) echo " selected" ?>" href="?period=monthly"><?= _("Monthly") ?></a>
  16. <a class="toolbar-link<?php if ((!empty($period)) && ($period == 'yearly')) echo " selected" ?>" href="?period=yearly"><?= _("Yearly") ?></a>
  17. </div>
  18. </div>
  19. </div>
  20. <!-- End toolbar -->
  21. <div class="container animate__animated animate__fadeIn">
  22. <div class="form-container form-container-wide">
  23. <!-- Begin graph list item loop -->
  24. <?php foreach ($data as $key => $value) { ?>
  25. <div class="u-mb40">
  26. <h2 class="u-mb20"><?= htmlspecialchars($data[$key]["TITLE"]) ?></h2>
  27. <canvas
  28. class="u-max-height300 js-rrd-chart"
  29. data-service="<?= $data[$key]["TYPE"] !== "net" ? htmlspecialchars($data[$key]["RRD"]) : "net_" . htmlspecialchars($data[$key]["RRD"]) ?>"
  30. data-period="<?= htmlspecialchars($period) ?>"
  31. ></canvas>
  32. </div>
  33. <?php } ?>
  34. </div>
  35. </div>
  36. <footer class="app-footer">
  37. </footer>