2
0

cms.parametres-debug.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <table class="table table-bordered">
  2. <tbody>
  3. <tr>
  4. <td scope="row">
  5. <h4>Refresh des données</h4>
  6. <div class="element-parametres">
  7. <a href="/submit.php?from=parametres-json-refresh" onclick="return confirm('Etes-vous certain de vouloir réinitialiser les JSON ?')"><button type="button" class="btn btn-warning">Réinitialisation des JSON</button></a>
  8. </div>
  9. </td>
  10. <?php if (session::getType() == 1 and (ENVIRONNEMENT == "DEV" or ENVIRONNEMENT == "PREPROD")) { ?>
  11. <td>
  12. <h4>Outils de débug</h4>
  13. <div class="element-parametres">
  14. <a href="/submit.php?from=parametres-reset-datas" onclick="return confirm('Etes-vous certain de vouloir supprimer les données ?')"><button type="button" class="btn btn-danger">Nettoyer les données</button></a>
  15. </div>
  16. <div class="element-parametres">
  17. <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modalPHPInfo">Voir le PHP Infos</button>
  18. </div>
  19. <div class="modal fade" id="modalPHPInfo" tabindex="-1" role="dialog" aria-hidden="true">
  20. <div class="modal-dialog" role="document">
  21. <div class="modal-content">
  22. <div class="modal-header">
  23. <h5 class="modal-title" id="exampleModalLabel">PHP Info</h5>
  24. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  25. <span aria-hidden="true">&times;</span>
  26. </button>
  27. </div>
  28. <div class="modal-body">
  29. <iframe width="970" height="800" src="/parametres-debug-info.vue"></iframe>
  30. </div>
  31. </div>
  32. </div>
  33. </div>
  34. </td>
  35. <?php } ?>
  36. </tr>
  37. </tbody>
  38. </table>
  39. <script>
  40. $(document).ready(function() {
  41. $('#modalPHPInfo').on('show.bs.modal', function() {
  42. $(this).find('.modal-body').css({
  43. width: 'auto', //probably not needed
  44. height: 'auto', //probably not needed
  45. 'max-height': '100%'
  46. });
  47. });
  48. });
  49. </script>