footer.php 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. </div>
  2. <?php
  3. global $myUser,$conf;
  4. $scheme = isset($scheme) ? $scheme : define_url_scheme();
  5. $mediaRoot = isset($mediaRoot) ? $mediaRoot : define_media_root();
  6. $loadingTime = isset($start_time) ? (round(microtime(TRUE) - $start_time,5)) : '';
  7. $cacheVersion = isset($cacheVersion) ? $cacheVersion : 1;
  8. ?>
  9. <footer class="footer noPrint">
  10. <div class="container">
  11. <span class="text-muted"><?php echo PROGRAM_NAME.' V'.SOURCE_VERSION.'b'.BASE_VERSION; ?> by <a href="<?php echo $scheme; ?>://idleman.fr" target="_blank">@IdleCorp</a> <!--| <a href="file/guide/manuel-utilisateur.pdf" target="_blank"><i class="far fa-file-pdf"></i> Documentation</a> -->- <?php echo $loadingTime; ?></span>
  12. </div>
  13. <div id="toTheTop" title="Retour en haut de page"></div>
  14. </footer>
  15. <!-- Composant filtre -->
  16. <div class="filter-box">
  17. <div class="input-group simple-search">
  18. <div class="input-group-prepend">
  19. <div class="input-group-text">Recherche</div>
  20. </div>
  21. <input type="text" class="form-control filter-keyword" placeholder="Mot clé">
  22. <span id="search-clear" class="fas fa-times"></span>
  23. <div class="input-group-append">
  24. <div class="btn btn-info filter-button-search" title="Rechercher" onclick="filter_search($(this).closest('.filter-box'));"><i class="fas fa-search"></i> Rechercher</div>
  25. <a class="btn btn-link text-muted pointer advanced-button-search" onclick="switch_advanced_filter(this);"><i class="fas fa-filter"></i> Filtrer</a>
  26. </div>
  27. </div>
  28. <div class="advanced-search">
  29. <h6 class="p-3 d-inline-block font-weight-bold text-uppercase">Recherche avancée</h6>
  30. <small class="text-muted mb-2 p-3 d-inline-block right">
  31. <a class="pointer hidden advanced-search-save" onclick="filter_save(this)" title="Enregistrer la recherche"><i class="far fa-hdd"></i> Enregistrer</a>
  32. <span class="advanced-search-action-separator hidden"> | </span>
  33. <a class="pointer" onclick="filter_clean(this)" title="Nettoyer la recherche"><i class="fas fa-broom"></i> Nettoyer</a>
  34. </small>
  35. <div class="row filterRow form-inline">
  36. <div class="col-xl-12 p-0">
  37. <select class="form-control filter-join">
  38. <option value="and">Et</option>
  39. <option value="or">Ou</option>
  40. </select>
  41. <select class="form-control filter-column font-weight-bold border-0" onchange="filter_set_column(this)"></select>
  42. <div readonly="readonly" class="form-control filter-values">Sélectionnez un filtre</div>
  43. <div class="btn pr-1" title="Supprimer ce filtre" onclick="filter_delete(this)"><i class="far fa-trash-alt text-danger"></i></div>
  44. <div class="btn pl-0" title="Ajouter un filtre" onclick="filter_add(this)" style=""><i class="fas fa-plus text-success"></i></div>
  45. </div>
  46. <div class="filter-value-block" data-value-type="text">
  47. <select class="form-control filter-operator border-0 text-primary" onchange="filter_set_comparator(this)">
  48. <option value="=">Egal</option>
  49. <option value="LIKE">Contient</option>
  50. <option value="!=">Différent</option>
  51. <option value="IS NULL" data-values="0">Non Renseigné</option>
  52. <option value="IS NOT NULL" data-values="0">Renseigné</option>
  53. </select> <input type="text" placeholder="Mot clé" data-custom="{{filterCustom}}" class="form-control filter-value">
  54. </div>
  55. <div class="filter-value-block" data-value-type="user" >
  56. <select class="form-control filter-operator border-0 text-primary" onchange="filter_set_comparator(this)">
  57. <option value="=">Egal</option>
  58. <option value="!=">Différent</option>
  59. <option value="IS NULL" data-values="0">Non Renseigné</option>
  60. <option value="IS NOT NULL" data-values="0">Renseigné</option>
  61. </select> <input type="text" data-template="user" data-custom="{{filterCustom}}" data-force="false" placeholder="Utilisateur" class="form-control filter-value">
  62. </div>
  63. <div class="filter-value-block" data-value-type="number" >
  64. <select class="form-control filter-operator border-0 text-primary" onchange="filter_set_comparator(this)">
  65. <option value="=">Egal</option>
  66. <option value="between" data-values="2">Entre</option>
  67. <option value=">">Supérieur à</option>
  68. <option value="<">Inférieur à</option>
  69. <option value="IS NULL" data-values="0">Non Renseigné</option>
  70. <option value="IS NOT NULL" data-values="0">Renseigné</option>
  71. </select> <input type="number" data-template="number" data-custom="{{filterCustom}}" placeholder="Nombre" class="form-control filter-value">
  72. </div>
  73. <div class="filter-value-block" data-value-type="date" >
  74. <select class="form-control filter-operator border-0 text-primary" onchange="filter_set_comparator(this)">
  75. <option value="<">Avant</option>
  76. <option value=">">Après</option>
  77. <option value="between" data-values="2">Entre</option>
  78. <option value="=">Le</option>
  79. <option value="IS NULL" data-values="0">Non Renseigné</option>
  80. <option value="IS NOT NULL" data-values="0">Renseigné</option>
  81. </select>
  82. <input type="text" placeholder="dd/mm/yyyy" data-template="date" data-custom="{{filterCustom}}" class="form-control filter-value">
  83. </div>
  84. <div class="filter-value-block" data-value-type="dictionnary" >
  85. <select class="form-control filter-operator border-0 text-primary" onchange="filter_set_comparator(this)">
  86. <option value="=">Egal</option>
  87. <option value="!=">Différent</option>
  88. <option value="IS NULL" data-values="0">Non Renseigné</option>
  89. <option value="IS NOT NULL" data-values="0">Renseigné</option>
  90. </select>
  91. <select data-template="dictionnary" data-custom="{{filterCustom}}" data-slug="{{slug}}" data-depth="{{depth}}" data-filter-type-value="{{filterTypeValue}}" class="form-control filter-value" data-disable-label></select>
  92. </div>
  93. </div>
  94. <div class="btn btn-info mt-4 mr-2 right" title="Rechercher" onclick="filter_search($(this).closest('.filter-box'));"><i class="fas fa-search"></i> Rechercher</div>
  95. <div class="clear"></div>
  96. </div>
  97. </div>
  98. <!-- Composant icone -->
  99. <div class="dropdown component-icon hide">
  100. <button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  101. <i class="{{value}}"></i>
  102. </button>
  103. <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
  104. <a class="dropdown-item" onclick="event.stopPropagation();" href="#">
  105. <input type="text" placeholder="Mot clé" class="form-control w-100">
  106. </a>
  107. {{#choices}}
  108. {{#.}}<span class="dropdown-icon-item" title="{{.}}" data-icon="{{.}}"><i class="{{.}}"></i></span>{{/.}}
  109. {{/choices}}
  110. </div>
  111. </div>
  112. <!-- Composant quickform -->
  113. <div class="modal fade quickform-modal" id="quickform-modal" tabindex="-1" role="dialog" aria-labelledby="quickform-modal-label" aria-hidden="true">
  114. <div class="modal-dialog modal-lg" role="document">
  115. <div class="modal-content">
  116. <div class="modal-header">
  117. <h5 class="modal-title" id="quickform-modal-label"></h5>
  118. <button type="button" class="close" data-dismiss="modal" aria-label="Fermer">
  119. <span aria-hidden="true">&times;</span>
  120. </button>
  121. </div>
  122. <div class="modal-body">
  123. </div>
  124. <div class="modal-footer">
  125. <div class="btn btn-light" data-dismiss="modal">Fermer</div>
  126. </div>
  127. </div>
  128. </div>
  129. </div>
  130. <!-- Composant dictionnary table -->
  131. <div class="hide component-dictionnary-table" data-id="" data-type="dictionnary-table" data-dictionnary="{{parent.id}}">
  132. <table id="" class="table table-striped table-bordered table-hover">
  133. <thead>
  134. <tr>
  135. <th colspan="<?php echo $myUser->superadmin ? 3 : 2; ?>">{{parent.label}}</th>
  136. </tr>
  137. <tr class="edit-line">
  138. <th><input class="form-control edit-field list-label" type="text" placeholder="Libellé de la liste"></th>
  139. <?php if($myUser->superadmin): ?>
  140. <th><input class="form-control edit-field list-slug" type="text" placeholder="Slug de la liste"></th>
  141. <?php endif; ?>
  142. <th class="action-cell text-center"><div class="btn btn-success" title="Ajouter un élément de liste"><i class="fas fa-check"></i></div></th>
  143. </tr>
  144. </thead>
  145. <tbody>
  146. <tr data-id="{{id}}" class="hidden">
  147. <td>{{label}}</td>
  148. <?php if($myUser->superadmin): ?>
  149. <td>{{slug}}</td>
  150. <?php endif; ?>
  151. <td class="action-cell text-center">
  152. <span class="btn btn-info btn-squarred btn-mini btn-edit" title="Éditer l'élément de liste"><i class="fas fa-pencil-alt"></i></span>
  153. <span class="btn btn-danger btn-squarred btn-mini" title="Supprimer l'élément de liste"><i class="fas fa-times"></i></span>
  154. </td>
  155. </tr>
  156. </tbody>
  157. </table>
  158. </div>
  159. <?php echo Plugin::callHook('application_bottom'); ?>
  160. <!-- Bootstrap core JavaScript -->
  161. <!-- Placed at the end of the document so the pages load faster -->
  162. <script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
  163. <script>window.jQuery || document.write('<script src="<?php echo $mediaRoot ?>/js/vendor/jquery.min.js"><\/script>');</script>
  164. <script id="algolia" data-api="<?php echo $conf->get('maps_api_id'); ?>" data-key="<?php echo $conf->get('maps_api_key'); ?>" src="https://cdn.jsdelivr.net/npm/places.js@1.15.1"></script>
  165. <!-- For fontawesome 5 pseudo-elements -->
  166. <script> window.FontAwesomeConfig = {searchPseudoElements: true}</script>
  167. <script src="<?php echo $mediaRoot ?>/js/vendor/popper.min.js"></script>
  168. <script src="<?php echo $mediaRoot ?>/js/bootstrap.min.js"></script>
  169. <script src="<?php echo $mediaRoot ?>/js/vendor/mustache.min.js"></script>
  170. <script src="<?php echo $mediaRoot ?>/js/vendor/jquery-ui.min.js"></script>
  171. <script src="<?php echo $mediaRoot ?>/js/vendor/jquery.timepicker.js"></script>
  172. <script src="<?php echo $mediaRoot ?>/js/vendor/bootstrap3-typeahead.min.js"></script>
  173. <script src="<?php echo $mediaRoot ?>/js/vendor/trumbowyg.min.js"></script>
  174. <script src="<?php echo $mediaRoot ?>/js/vendor/trumbowyg.colors.js"></script>
  175. <script src="<?php echo $mediaRoot ?>/js/vendor/trumbowyg.table.js"></script>
  176. <script src="<?php echo $mediaRoot ?>/js/fontawesome.js"></script>
  177. <script src="<?php echo $mediaRoot ?>/js/vendor/Chart.min.js"></script>
  178. <script src="<?php echo $mediaRoot ?>/js/plugins.js?v=<?php echo $cacheVersion ?>"></script>
  179. <script src="<?php echo $mediaRoot ?>/js/main.js?v=<?php echo $cacheVersion ?>"></script>
  180. <?php echo Plugin::callJs($mediaRoot,$cacheVersion); ?>
  181. </body>
  182. </html>