2
0

cms.parametres.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <?php
  2. maj::bashFetch();
  3. $checkMaintenance = debug::isFile("maintenance");
  4. $checkDebug = debug::isFile("debug");
  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>Administration : Paramètres</span>
  9. </h2>
  10. </header>
  11. <?php
  12. echo core::filAriane(array(
  13. "current" => "Paramètres",
  14. "arbo" => array(
  15. "Administration" => NULL,
  16. "Paramètres" => "/parametres.html"
  17. )
  18. ));
  19. ?>
  20. <ul class="nav nav-tabs" id="tab-parametres" role="tablist" style="margin-bottom:20px;">
  21. <li><a class="nav-link active" href="#parametres-general">Général</a></li>
  22. <li><a class="nav-link" href="#parametres-restore">Backup & restauration</a></li>
  23. <li><a class="nav-link" href="#parametres-maj">Mise à jour</a></li>
  24. <li><a class="nav-link" href="#parametres-debug">Debug & développement</a></li>
  25. </ul>
  26. <div class="tab-content">
  27. <div id="parametres-general" class="tab-pane fade in active show">
  28. <?php get::page("parametres-general") ?>
  29. </div>
  30. <div id="parametres-restore" class="tab-pane fade">
  31. <?php get::page("parametres-restore") ?>
  32. </div>
  33. <div id="parametres-maj" class="tab-pane fade">
  34. <?php get::page("parametres-maj") ?>
  35. </div>
  36. <div id="parametres-debug" class="tab-pane fade">
  37. <?php get::page("parametres-debug") ?>
  38. </div>
  39. </div>
  40. <script>
  41. $(document).ready(function(){
  42. var fragment = window.location.hash;
  43. var tmpOnglet = fragment ? fragment.substring(1) : '';
  44. var onglet = "#" + tmpOnglet;
  45. if (tmpOnglet !== "" && $(onglet).length) {
  46. $('#tab-parametres a[href="' + onglet + '"]').tab('show');
  47. }
  48. $("#tab-parametres a").click(function(){
  49. $(this).tab('show');
  50. });
  51. $('#tab-parametres a').on('shown.bs.tab', function(event){
  52. var x = $(event.target).text();
  53. var y = $(event.relatedTarget).text();
  54. });
  55. });
  56. </script>
  57. <style>
  58. h4 {
  59. margin-top: 15px;
  60. }
  61. .element-parametres {
  62. margin-top: 5px;
  63. }
  64. .modal-body {
  65. position: relative;
  66. overflow-y: auto;
  67. max-height: 400px;
  68. padding: 15px;
  69. }
  70. .modal-dialog{
  71. width: 1005px !important;
  72. }
  73. .modal {
  74. --bs-modal-width: none;
  75. }
  76. .autoModal.modal .modal-body {
  77. max-height: 100%;
  78. }
  79. </style>