cms.parametres.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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="maj-tab" role="tab" aria-selected="">Mise à jour</a>
  32. </li>
  33. <li class="nav-item">
  34. <a class="nav-link" data-toggle="tab" id="debug-tab" role="tab" aria-selected="">Debug & développement</a>
  35. </li>
  36. </ul>
  37. <br />
  38. <div class="tab-content">
  39. <div id="tab-general">
  40. <?php get::page("parametres-general") ?>
  41. </div>
  42. <div id="tab-users" style="display: none;">
  43. <?php get::page("parametres-users") ?>
  44. </div>
  45. <div id="tab-backup" style="display: none;">
  46. <?php get::page("parametres-restore") ?>
  47. </div>
  48. <div id="tab-debug" style="display: none;">
  49. <?php get::page("parametres-debug") ?>
  50. </div>
  51. <div id="tab-maj" style="display: none;">
  52. <?php get::page("parametres-maj") ?>
  53. </div>
  54. </div>
  55. <script>
  56. $(document).ready(function(){
  57. $("#general-tab").click(function() {
  58. $("#tab-general").show();
  59. $("#tab-users").hide();
  60. $("#tab-backup").hide();
  61. $("#tab-debug").hide();
  62. $("#tab-maj").hide();
  63. });
  64. $("#users-tab").click(function() {
  65. $("#tab-general").hide();
  66. $("#tab-users").show();
  67. $("#tab-backup").hide();
  68. $("#tab-debug").hide();
  69. $("#tab-maj").hide();
  70. });
  71. $("#backup-tab").click(function() {
  72. $("#tab-general").hide();
  73. $("#tab-users").hide();
  74. $("#tab-backup").show();
  75. $("#tab-debug").hide();
  76. $("#tab-maj").hide();
  77. });
  78. $("#debug-tab").click(function() {
  79. $("#tab-general").hide();
  80. $("#tab-users").hide();
  81. $("#tab-backup").hide();
  82. $("#tab-debug").show();
  83. $("#tab-maj").hide();
  84. });
  85. $("#maj-tab").click(function() {
  86. $("#tab-general").hide();
  87. $("#tab-users").hide();
  88. $("#tab-backup").hide();
  89. $("#tab-debug").hide();
  90. $("#tab-maj").show();
  91. });
  92. })
  93. </script>
  94. <style>
  95. h4 {
  96. margin-top: 15px;
  97. }
  98. .element-parametres {
  99. margin-top: 5px;
  100. }
  101. .modal-body {
  102. position: relative;
  103. overflow-y: auto;
  104. max-height: 400px;
  105. padding: 15px;
  106. }
  107. .modal-dialog{
  108. width: 1005px !important;
  109. }
  110. .modal {
  111. --bs-modal-width: none;
  112. }
  113. .autoModal.modal .modal-body {
  114. max-height: 100%;
  115. }
  116. </style>