2
0

cms.parametres-debug.php 2.5 KB

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