2
0

cms.parametres.php 3.5 KB

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