footer.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  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; ?>://sys1.fr" target="_blank">@Sys1</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 hidden">
  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 hidden">
  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 ml-3">
  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 filter-delete-button" title="Supprimer ce filtre" onclick="filter_delete(this)"><i class="far fa-trash-alt text-danger"></i></div>
  44. <div class="btn pl-0 filter-add-button" 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="=">Égal</option>
  49. <option value="LIKE">Contient</option>
  50. <option value="NOT LIKE">Ne contient pas</option>
  51. <option value="!=">Différent</option>
  52. <option value="IS NULL" data-values="0">Non Renseigné</option>
  53. <option value="IS NOT NULL" data-values="0">Renseigné</option>
  54. </select> <input type="text" placeholder="Mot clé" data-custom="{{filterCustom}}" class="form-control filter-value">
  55. </div>
  56. <div class="filter-value-block" data-value-type="user" >
  57. <select class="form-control filter-operator border-0 text-primary" onchange="filter_set_comparator(this)">
  58. <option value="=">Égal</option>
  59. <option value="!=">Différent</option>
  60. <option value="IS NULL" data-values="0">Non Renseigné</option>
  61. <option value="IS NOT NULL" data-values="0">Renseigné</option>
  62. </select> <input type="text" data-template="user" data-custom="{{filterCustom}}" data-force="false" placeholder="Utilisateur" class="form-control filter-value">
  63. </div>
  64. <div class="filter-value-block" data-value-type="number" >
  65. <select class="form-control filter-operator border-0 text-primary" onchange="filter_set_comparator(this)">
  66. <option value="=">Égal</option>
  67. <option value="between" data-values="2">Entre</option>
  68. <option value=">">Supérieur à</option>
  69. <option value="<">Inférieur à</option>
  70. <option value="IS NULL" data-values="0">Non Renseigné</option>
  71. <option value="IS NOT NULL" data-values="0">Renseigné</option>
  72. </select> <input type="number" data-template="number" data-custom="{{filterCustom}}" placeholder="Nombre" class="form-control filter-value">
  73. </div>
  74. <div class="filter-value-block" data-value-type="date" >
  75. <select class="form-control filter-operator border-0 text-primary" onchange="filter_set_comparator(this)">
  76. <option value="<">Avant</option>
  77. <option value=">">Après</option>
  78. <option value="between" data-values="2">Entre</option>
  79. <option value="=">Le</option>
  80. <option value="IS NULL" data-values="0">Non Renseigné</option>
  81. <option value="IS NOT NULL" data-values="0">Renseigné</option>
  82. </select>
  83. <input type="text" placeholder="dd/mm/yyyy" data-template="date" data-custom="{{filterCustom}}" class="form-control filter-value">
  84. </div>
  85. <div class="filter-value-block" data-value-type="dictionnary" >
  86. <select class="form-control filter-operator border-0 text-primary" onchange="filter_set_comparator(this)">
  87. <option value="=">Égal</option>
  88. <option value="!=">Différent</option>
  89. <option value="IS NULL" data-values="0">Non Renseigné</option>
  90. <option value="IS NOT NULL" data-values="0">Renseigné</option>
  91. </select>
  92. <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>
  93. </div>
  94. <div class="filter-value-block" data-value-type="boolean" >
  95. <select class="form-control filter-operator border-0 text-primary" onchange="filter_set_comparator(this)">
  96. <option value="=">Est coché</option>
  97. <option value="!=">N'est pas coché</option>
  98. <option value="IS NULL" data-values="0">Non Renseigné</option>
  99. <option value="IS NOT NULL" data-values="0">Renseigné</option>
  100. </select>
  101. <input type="text" data-template="boolean" class="form-control filter-value hidden" value="1">
  102. </div>
  103. </div>
  104. <div class="btn btn-info mt-1 mr-2 right" title="Rechercher" onclick="filter_search($(this).closest('.filter-box'));"><i class="fas fa-search"></i> Rechercher</div>
  105. <div class="clear"></div>
  106. </div>
  107. </div>
  108. <!-- Composant icone -->
  109. <div class="dropdown component-icon hidden">
  110. <button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  111. <i class="{{value}}"></i>
  112. </button>
  113. <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
  114. <a class="dropdown-item" onclick="event.stopPropagation();" href="#">
  115. <input type="text" placeholder="Mot clé" class="form-control w-100">
  116. </a>
  117. <div class="dropdown-divider"></div>
  118. <div class="icons-list">
  119. <span class="dropdown-icon-item no-icon" title="Pas d'icône" data-icon="hidden"><i class="far fa-eye-slash"></i></span>
  120. {{#choices}}
  121. {{#.}}<span class="dropdown-icon-item" title="{{.}}" data-icon="{{.}}"><i class="{{.}}"></i></span>{{/.}}
  122. {{/choices}}
  123. </div>
  124. </div>
  125. </div>
  126. <!-- Composant quickform -->
  127. <div class="modal fade quickform-modal" id="quickform-modal" tabindex="-1" role="dialog" aria-labelledby="quickform-modal-label" aria-hidden="true">
  128. <div class="modal-dialog modal-lg" role="document">
  129. <div class="modal-content">
  130. <div class="modal-header">
  131. <h5 class="modal-title" id="quickform-modal-label"></h5>
  132. <button type="button" class="close" data-dismiss="modal" aria-label="Fermer">
  133. <span aria-hidden="true">&times;</span>
  134. </button>
  135. </div>
  136. <div class="modal-body"></div>
  137. <div class="modal-footer">
  138. <div class="btn btn-light" data-dismiss="modal">Fermer</div>
  139. </div>
  140. </div>
  141. </div>
  142. </div>
  143. <!-- Composant dictionnary table -->
  144. <div class="hidden component-dictionnary-table" data-id="" data-type="dictionnary-table" data-dictionnary="{{parent.id}}">
  145. <table id="" class="table table-striped table-bordered table-hover">
  146. <thead>
  147. <tr>
  148. <th colspan="<?php echo $myUser->superadmin ? 3 : 2; ?>">{{parent.label}}</th>
  149. </tr>
  150. <tr class="edit-line">
  151. <th><input class="form-control edit-field list-label" type="text" placeholder="Libellé de la liste"></th>
  152. <?php if($myUser->superadmin): ?>
  153. <th><input class="form-control edit-field list-slug" type="text" placeholder="Slug de la liste"></th>
  154. <?php endif; ?>
  155. <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>
  156. </tr>
  157. </thead>
  158. <tbody>
  159. <tr data-id="{{id}}" class="hidden">
  160. <td>{{label}}</td>
  161. <?php if($myUser->superadmin): ?>
  162. <td>{{slug}}</td>
  163. <?php endif; ?>
  164. <td class="action-cell text-center">
  165. <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>
  166. <span class="btn btn-danger btn-squarred btn-mini" title="Supprimer l'élément de liste"><i class="fas fa-times"></i></span>
  167. </td>
  168. </tr>
  169. </tbody>
  170. </table>
  171. </div>
  172. <?php echo Plugin::callHook('application_bottom'); ?>
  173. <!-- Bootstrap core JavaScript -->
  174. <!-- Placed at the end of the document so the pages load faster -->
  175. <?php if($conf->get('offline_mode')): ?>
  176. <script src="<?php echo $mediaRoot ?>/js/vendor/jquery.min.js"></script>
  177. <?php else: ?>
  178. <script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
  179. <script>window.jQuery || document.write('<script src="<?php echo $mediaRoot ?>/js/vendor/jquery.min.js"><\/script>');</script>
  180. <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>
  181. <?php endif; ?>
  182. <!-- For fontawesome 5 pseudo-elements -->
  183. <script> window.FontAwesomeConfig = {searchPseudoElements: true}</script>
  184. <script src="<?php echo $mediaRoot ?>/js/vendor/popper.min.js"></script>
  185. <script src="<?php echo $mediaRoot ?>/js/bootstrap.min.js"></script>
  186. <script src="<?php echo $mediaRoot ?>/js/vendor/mustache.min.js"></script>
  187. <script src="<?php echo $mediaRoot ?>/js/vendor/jquery-ui.min.js"></script>
  188. <script src="<?php echo $mediaRoot ?>/js/vendor/jquery.timepicker.js"></script>
  189. <script src="<?php echo $mediaRoot ?>/js/vendor/bootstrap3-typeahead.min.js"></script>
  190. <script src="<?php echo $mediaRoot ?>/js/vendor/trumbowyg.min.js"></script>
  191. <script src="<?php echo $mediaRoot ?>/js/vendor/trumbowyg.colors.js"></script>
  192. <script src="<?php echo $mediaRoot ?>/js/vendor/trumbowyg.table.js"></script>
  193. <script src="<?php echo $mediaRoot ?>/js/fontawesome.js"></script>
  194. <script src="<?php echo $mediaRoot ?>/js/vendor/Chart.min.js"></script>
  195. <script src="<?php echo $mediaRoot ?>/js/plugins.js?v=<?php echo $cacheVersion ?>"></script>
  196. <script src="<?php echo $mediaRoot ?>/js/main.js?v=<?php echo $cacheVersion ?>"></script>
  197. <?php echo Plugin::callJs($mediaRoot,$cacheVersion); ?>
  198. </body>
  199. </html>