cms.parametres-debug.php 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <table class="table table-bordered">
  2. <tbody>
  3. <tr>
  4. <th scope="row">
  5. <div class="element-parametres">
  6. <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>
  7. </div>
  8. <?php if (session::accessUserByType(1) and session::getId() == 1 and (ENVIRONNEMENT == "DEV" or ENVIRONNEMENT == "PREPROD")) { ?>
  9. <div class="element-parametres">
  10. <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>
  11. </div>
  12. <div class="element-parametres">
  13. <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modalPHPInfo">Voir le PHP Infos</button>
  14. </div>
  15. <div class="modal fade" id="modalPHPInfo" tabindex="-1" role="dialog" aria-hidden="true">
  16. <div class="modal-dialog" role="document">
  17. <div class="modal-content">
  18. <div class="modal-header">
  19. <h5 class="modal-title" id="exampleModalLabel">PHP Info</h5>
  20. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  21. <span aria-hidden="true">&times;</span>
  22. </button>
  23. </div>
  24. <div class="modal-body">
  25. <iframe width="970" height="800" src="/parametres-debug-info.vue"></iframe>
  26. </div>
  27. </div>
  28. </div>
  29. </div>
  30. <?php } ?>
  31. </th>
  32. <td>
  33. <div class="element-parametres">
  34. <?php git::printVersion() ?>
  35. </div>
  36. </td>
  37. </tr>
  38. </tbody>
  39. </table>
  40. <script>
  41. $(document).ready(function() {
  42. $('#modalPHPInfo').on('show.bs.modal', function() {
  43. $(this).find('.modal-body').css({
  44. width: 'auto', //probably not needed
  45. height: 'auto', //probably not needed
  46. 'max-height': '100%'
  47. });
  48. });
  49. });
  50. </script>