list_rrd.php 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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><?= tohtml( _("Back")) ?>
  7. </a>
  8. <a href="/list/server/?cpu" class="button button-secondary">
  9. <i class="fas fa-chart-pie icon-green"></i><?= tohtml( _("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="?<?= tohtml(http_build_query(["period" => 'daily'])) ?>"><?= tohtml( _("Daily")) ?></a>
  14. <a class="toolbar-link<?php if ((!empty($period)) && ($period == 'weekly')) echo " selected" ?>" href="?<?= tohtml(http_build_query(["period" => 'weekly'])) ?>"><?= tohtml( _("Weekly")) ?></a>
  15. <a class="toolbar-link<?php if ((!empty($period)) && ($period == 'monthly')) echo " selected" ?>" href="?<?= tohtml(http_build_query(["period" => 'monthly'])) ?>"><?= tohtml( _("Monthly")) ?></a>
  16. <a class="toolbar-link<?php if ((!empty($period)) && ($period == 'yearly')) echo " selected" ?>" href="?<?= tohtml(http_build_query(["period" => 'yearly'])) ?>"><?= tohtml( _("Yearly")) ?></a>
  17. <a class="toolbar-link<?php if ((!empty($period)) && ($period == 'biennially')) echo " selected" ?>" href="?<?= tohtml(http_build_query(["period" => 'biennially'])) ?>"><?= tohtml( _("Biennially")) ?></a>
  18. <a class="toolbar-link<?php if ((!empty($period)) && ($period == 'triennially')) echo " selected" ?>" href="?<?= tohtml(http_build_query(["period" => 'triennially'])) ?>"><?= tohtml( _("Triennially")) ?></a>
  19. </div>
  20. </div>
  21. </div>
  22. <!-- End toolbar -->
  23. <div class="container">
  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"><?= tohtml($data[$key]["TITLE"]) ?></h2>
  29. <canvas
  30. class="u-max-height300 js-rrd-chart"
  31. data-service="<?= tohtml($data[$key]["TYPE"] !== "net" ? $data[$key]["RRD"] : "net_" . $data[$key]["RRD"]) ?>"
  32. data-period="<?= tohtml($period) ?>"
  33. ></canvas>
  34. </div>
  35. <?php } ?>
  36. </div>
  37. </div>