2
0

cms.parametres.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <?php
  2. $checkMaintenance = core::isMaintenance();
  3. $checkDebug = core::isDebug();
  4. ?>
  5. <header class="d-flex flex-column flex-md-row align-items-md-center p-3 bg-light ">
  6. <h2 class="bd-title" id="content">
  7. <span>IT : Paramètres</span>
  8. </h2>
  9. </header>
  10. <?php
  11. echo core::filAriane(array(
  12. "current" => "IT : Paramètres",
  13. "arbo" => array(
  14. "Administration" => NULL,
  15. "IT : Paramètres" => "/parametres.html"
  16. )
  17. ));
  18. ?>
  19. <br />
  20. <ul class="nav nav-tabs" id="event-fiche" role="tablist">
  21. <li class="nav-item">
  22. <a class="nav-link active" data-toggle="tab" id="general-tab" role="tab" aria-selected="true">Général</a>
  23. </li>
  24. <li class="nav-item">
  25. <a class="nav-link" data-toggle="tab" id="users-tab" role="tab" aria-selected="">Utilisateurs</a>
  26. </li>
  27. <li class="nav-item">
  28. <a class="nav-link" data-toggle="tab" id="backup-tab" role="tab" aria-selected="">Backup & restauration</a>
  29. </li>
  30. <li class="nav-item">
  31. <a class="nav-link" data-toggle="tab" id="debug-tab" role="tab" aria-selected="">Debug & développement</a>
  32. </li>
  33. </ul>
  34. <br />
  35. <div class="tab-content">
  36. <div id="tab-general">
  37. <?php get::page("parametres-general") ?>
  38. </div>
  39. <div id="tab-users" style="display: none;">
  40. <?php get::page("parametres-users") ?>
  41. </div>
  42. <div id="tab-backup" style="display: none;">
  43. <?php get::page("parametres-restore") ?>
  44. </div>
  45. <div id="tab-debug" style="display: none;">
  46. <?php get::page("parametres-debug") ?>
  47. </div>
  48. </div>
  49. <script>
  50. $(document).ready(function(){
  51. $("#general-tab").click(function() {
  52. $("#tab-general").show();
  53. $("#tab-users").hide();
  54. $("#tab-backup").hide();
  55. $("#tab-debug").hide();
  56. });
  57. $("#users-tab").click(function() {
  58. $("#tab-general").hide();
  59. $("#tab-users").show();
  60. $("#tab-backup").hide();
  61. $("#tab-debug").hide();
  62. });
  63. $("#backup-tab").click(function() {
  64. $("#tab-general").hide();
  65. $("#tab-users").hide();
  66. $("#tab-backup").show();
  67. $("#tab-debug").hide();
  68. });
  69. $("#debug-tab").click(function() {
  70. $("#tab-general").hide();
  71. $("#tab-users").hide();
  72. $("#tab-backup").hide();
  73. $("#tab-debug").show();
  74. });
  75. })
  76. </script>
  77. <style>
  78. h4 {
  79. margin-top: 15px;
  80. }
  81. .element-parametres {
  82. margin-top: 5px;
  83. }
  84. .modal-body {
  85. position: relative;
  86. overflow-y: auto;
  87. max-height: 400px;
  88. padding: 15px;
  89. }
  90. .modal-dialog{
  91. width: 1005px !important;
  92. }
  93. .modal {
  94. --bs-modal-width: none;
  95. }
  96. .autoModal.modal .modal-body {
  97. max-height: 100%;
  98. }
  99. </style>