list_rrd.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. <a class="toolbar-link<?php if ((!empty($period)) && ($period == 'biennially')) echo " selected" ?>" href="?period=biennially"><?= _("Biennially") ?></a>
  18. <a class="toolbar-link<?php if ((!empty($period)) && ($period == 'triennially')) echo " selected" ?>" href="?period=triennially"><?= _("Triennially") ?></a>
  19. </div>
  20. </div>
  21. </div>
  22. <!-- End toolbar -->
  23. <div class="container animate__animated animate__fadeIn">
  24. <div class="form-container form-container-wide">
  25. <!-- Begin graph list item loop -->
  26. <?php foreach ($data as $key => $value) { ?>
  27. <div class="u-mb40">
  28. <h2 class="u-mb20"><?= htmlspecialchars($data[$key]["TITLE"]) ?></h2>
  29. <canvas
  30. class="u-max-height300 js-rrd-chart"
  31. data-service="<?= $data[$key]["TYPE"] !== "net" ? htmlspecialchars($data[$key]["RRD"]) : "net_" . htmlspecialchars($data[$key]["RRD"]) ?>"
  32. data-period="<?= htmlspecialchars($period) ?>"
  33. ></canvas>
  34. </div>
  35. <?php } ?>
  36. </div>
  37. </div>
  38. <footer class="app-footer">
  39. </footer>