page.ping.php 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. require_once(__DIR__.SLASH.'Machine.class.php');
  3. require_once(__DIR__.SLASH.'MachineApplication.class.php');
  4. global $myUser;
  5. User::check_access('host','read');
  6. ?>
  7. <div class="col-md-12">
  8. <h3>Page de ping</h3>
  9. <hr/>
  10. <div class="btn btn-info" onclick="host_application_url_ping()"><i class="fas fa-table-tennis"></i> Check des url</div>
  11. <ul id="vm-ping-list" class="m-0 p-0">
  12. <li data-id="{{id}}" class="hidden bg-white p-3 my-2 mr-2 d-inline-block shadow-sm align-top w-20">
  13. <h5><i class="{{type.icon}}"></i> {{label}}</h5>
  14. <a href="index.php?module=client&page=sheet.client&id={{client.id}}" class="text-muted">{{client.label}}</a>
  15. <div>
  16. <small class="text-muted">{{ip}}</small><br/>
  17. <ul class="applications">
  18. {{#applications}}
  19. <li class="application" data-application="{{id}}">
  20. <a href="{{url}}">{{label}} - <small class="text-muted">{{url}}</small></a>
  21. <span class="ping-state pointer" title="Afficher les détails" onclick="$(this).next().toggleClass('hidden')"></span>
  22. <div class="ping-message hidden">Tout vas bien :)</div>
  23. </li>
  24. {{/applications}}
  25. </ul>
  26. </div>
  27. </li>
  28. </ul>
  29. </div>
  30. <br/>