footer.php 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  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 : SOURCE_VERSION;
  8. ?>
  9. <footer class="footer noPrint">
  10. <div class="container">
  11. <span class="text-muted">
  12. <?php
  13. echo $conf->get('show_application_name_footer') ? PROGRAM_NAME.' V'.SOURCE_VERSION.'b'.BASE_VERSION.' ' : '';
  14. if($conf->get('show_application_author_footer')){
  15. if(!empty($conf->get('application_author_website_footer')))
  16. echo 'by <a href="'.$conf->get('application_author_website_footer').'" target="_blank">@'.PROGRAM_AUTHOR.'</a>';
  17. else
  18. echo 'by @'.PROGRAM_AUTHOR;
  19. }
  20. echo !empty($conf->get('show_application_documentation_footer')) && file_exists('file/guide/'.$conf->get('show_application_documentation_footer')) ? ' | <a href="file/guide/'.$conf->get('show_application_documentation_footer').'" target="_blank"><i class="far fa-file-pdf"></i> Documentation</a>' : '';
  21. echo $conf->get('show_process_time_footer') ? ' - '.$loadingTime : '';
  22. ?>
  23. </span>
  24. </div>
  25. <div id="scroll-top" title="Retour en haut de page"></div>
  26. </footer>
  27. <!-- Composant filtre -->
  28. <div class="advanced-search-box hidden">
  29. <div class="input-group simple-search">
  30. <div class="input-group-prepend">
  31. <div class="input-group-text data-search-label">Recherche</div>
  32. </div>
  33. <input type="text" class="form-control filter-keyword" placeholder="Mot clé">
  34. <span id="search-clear" class="fas fa-times"></span>
  35. <div class="input-group-append hidden">
  36. <div class="btn btn-info btn-search" title="Rechercher"><i class="fas fa-search"></i> Rechercher</div>
  37. </div>
  38. </div>
  39. <div class="advanced-search">
  40. <ul class="criterias group">
  41. <li class="condition hidden">
  42. <span class="filter-column">
  43. <select class="form-control">
  44. {{#columns}}
  45. <option value="{{value}}" data-filter-type="{{type}}">{{label}}</option>
  46. {{/columns}}
  47. </select>
  48. </span>
  49. <span class="filter-operator"></span>
  50. <span class="filter-value"></span>
  51. <span class="filter-option">
  52. <i title="Déplacer la ligne" class="fas fa-arrows-alt btn-move"></i>
  53. <i title="Déplacer dans le groupe supérieur" class="btn-unindent fas fa-angle-left"></i>
  54. <i title="Déplacer dans un sous-groupe" class="btn-indent fas fa-angle-right"></i>
  55. <i title="Supprimer la ligne" class="btn-delete far fa-trash-alt"></i>
  56. <i title="Ajouter une ligne après" class="btn-add fas fa-plus"></i>
  57. </span>
  58. <select class="filter-join"><option value="and">ET</option><option value="or">OU</option></select>
  59. </li>
  60. </li>
  61. </ul>
  62. </div>
  63. <div class="options">
  64. <div class="btn btn-light btn-small btn-search"><i class="fas fa-search"></i> Rechercher</div>
  65. <div class="btn btn-light btn-small advanced-button-search pointer" title="Mode simple / avancé"><i class="fas fa-filter"></i></div>
  66. <div class="dropdown preferences btn-light">
  67. <button class="btn btn-light btn-small dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  68. <i class="fas fa-user-cog"></i>
  69. </button>
  70. <div class="dropdown-menu tools py-1" aria-labelledby="dropdownMenuButton">
  71. <a class="dropdown-item py-1 px-2 text-success hidden btn-search-save pointer"><i class="far fa-save"></i> Enregistrer la recherche</a>
  72. <a class="dropdown-item py-1 px-2 text-muted btn-search-clean pointer"><i class="fas fa-broom"></i> Nettoyer la recherche</a>
  73. <div class="dropdown-divider my-2 hidden"></div>
  74. <a class="dropdown-item py-1 px-2 text-danger hidden btn-search-reset pointer text-center"><i class="fas fa-trash-alt"></i> Supprimer la recherche</a>
  75. </div>
  76. </div>
  77. </div>
  78. <div class="clear"></div>
  79. </div>
  80. <div class="hidden">
  81. <div class="filter-value-block" data-value-type="text">
  82. <select class="form-control filter-operator border-0 text-primary">
  83. <option value="LIKE">Contient</option>
  84. <option value="NOT LIKE">Ne contient pas</option>
  85. <option value="=">Égal</option>
  86. <option value="!=">Différent</option>
  87. <option value="IS NULL" data-values="0">Non Renseigné</option>
  88. <option value="IS NOT NULL" data-values="0">Renseigné</option>
  89. </select> <input type="text" placeholder="Mot clé" class="form-control filter-value">
  90. </div>
  91. <div class="filter-value-block" data-value-type="user" data-value-selector=".filter-value:eq(1)" >
  92. <select class="form-control filter-operator border-0 text-primary">
  93. <option value="=">Égal</option>
  94. <option value="!=">Différent</option>
  95. <option value="IS NULL" data-values="0">Non Renseigné</option>
  96. <option value="IS NOT NULL" data-values="0">Renseigné</option>
  97. </select> <input type="text" data-template="user" data-force="false" placeholder="Utilisateur" class="form-control filter-value">
  98. </div>
  99. <div class="filter-value-block" data-value-type="number">
  100. <select class="form-control filter-operator border-0 text-primary">
  101. <option value="=">Égal</option>
  102. <option value="between" data-values="2">Entre</option>
  103. <option value=">">Supérieur à</option>
  104. <option value="<">Inférieur à</option>
  105. <option value="IS NULL" data-values="0">Non Renseigné</option>
  106. <option value="IS NOT NULL" data-values="0">Renseigné</option>
  107. </select> <input type="number" data-template="number" placeholder="Nombre" class="form-control filter-value">
  108. </div>
  109. <div class="filter-value-block" data-value-type="date">
  110. <select class="form-control filter-operator border-0 text-primary">
  111. <option value="=">Le</option>
  112. <option value="<">Avant</option>
  113. <option value=">">Après</option>
  114. <option value="between" data-values="2">Entre</option>
  115. <option value="IS NULL" data-values="0">Non Renseigné</option>
  116. <option value="IS NOT NULL" data-values="0">Renseigné</option>
  117. </select>
  118. <input type="text" placeholder="dd/mm/yyyy" data-template="date" class="form-control filter-value">
  119. </div>
  120. <div class="filter-value-block" data-value-type="dictionnary" data-value-selector=".filter-value:last-child">
  121. <select class="form-control filter-operator border-0 text-primary">
  122. <option value="=">Égal</option>
  123. <option value="!=">Différent</option>
  124. <option value="IS NULL" data-values="0">Non Renseigné</option>
  125. <option value="IS NOT NULL" data-values="0">Renseigné</option>
  126. </select>
  127. <select data-template="dictionnary" data-slug="{{slug}}" data-depth="{{depth}}" data-filter-type-value="{{filterTypeValue}}" class="form-control filter-value" data-disable-label></select>
  128. </div>
  129. <div class="filter-value-block" data-value-type="boolean">
  130. <select class="form-control filter-operator border-0 text-primary">
  131. <option value="=">Est coché</option>
  132. <option value="!=">N'est pas coché</option>
  133. <option value="IS NULL" data-values="0">Non Renseigné</option>
  134. <option value="IS NOT NULL" data-values="0">Renseigné</option>
  135. </select>
  136. <input type="text" data-template="boolean" class="form-control filter-value hidden" value="1">
  137. </div>
  138. </div>
  139. <!-- Composant icone -->
  140. <div class="dropdown component-icon hidden">
  141. <button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  142. <i class="{{value}}"></i>
  143. </button>
  144. <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
  145. <span class="dropdown-item">
  146. <input type="text" placeholder="Mot clé" class="form-control w-100">
  147. </span>
  148. <div class="dropdown-divider"></div>
  149. <div class="icons-list">
  150. <span class="dropdown-icon-item no-icon" title="Pas d'icône" data-icon="hidden"><i class="far fa-eye-slash"></i></span>
  151. {{#choices}}
  152. {{#.}}<span class="dropdown-icon-item" title="{{.}}" data-icon="{{.}}"><i class="{{.}}"></i></span>{{/.}}
  153. {{/choices}}
  154. </div>
  155. </div>
  156. </div>
  157. <!-- Composant quickform -->
  158. <div class="modal fade quickform-modal" id="quickform-modal" tabindex="-1" role="dialog" aria-labelledby="quickform-modal-label" aria-hidden="true">
  159. <div class="modal-dialog modal-lg" role="document">
  160. <div class="modal-content">
  161. <div class="modal-header bg-info text-light">
  162. <h5 class="modal-title" id="quickform-modal-label"></h5>
  163. <button type="button" class="close" data-dismiss="modal" aria-label="Fermer">
  164. <span aria-hidden="true">&times;</span>
  165. </button>
  166. </div>
  167. <div class="modal-body"></div>
  168. <div class="modal-footer">
  169. <div class="btn btn-light" data-dismiss="modal">Fermer</div>
  170. </div>
  171. </div>
  172. </div>
  173. </div>
  174. <!-- Composant dictionnary table -->
  175. <div class="hidden component-dictionnary-table" data-id="" data-type="dictionnary-table" data-dictionnary="{{parent.id}}">
  176. <table id="" class="table table-striped table-bordered table-hover">
  177. <thead>
  178. <tr>
  179. <th colspan="<?php echo $myUser->superadmin ? 3 : 2; ?>">{{parent.label}}</th>
  180. </tr>
  181. <tr class="edit-line">
  182. <th><input class="form-control edit-field list-label" type="text" placeholder="Libellé de la liste"></th>
  183. <?php if($myUser->superadmin): ?>
  184. <th><input class="form-control edit-field list-slug" type="text" placeholder="Slug de la liste"></th>
  185. <?php endif; ?>
  186. <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>
  187. </tr>
  188. </thead>
  189. <tbody>
  190. <tr data-id="{{id}}" class="hidden">
  191. <td>{{label}}</td>
  192. <?php if($myUser->superadmin): ?>
  193. <td>{{slug}}</td>
  194. <?php endif; ?>
  195. <td class="action-cell text-center">
  196. <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>
  197. <span class="btn btn-danger btn-squarred btn-mini" title="Supprimer l'élément de liste"><i class="fas fa-times"></i></span>
  198. </td>
  199. </tr>
  200. </tbody>
  201. </table>
  202. </div>
  203. <?php echo Plugin::callHook('application_bottom'); ?>
  204. <!-- Bootstrap core JavaScript -->
  205. <!-- Placed at the end of the document so the pages load faster -->
  206. <?php if($conf->get('offline_mode')): ?>
  207. <script src="<?php echo $mediaRoot ?>/js/vendor/jquery.min.js"></script>
  208. <?php else: ?>
  209. <script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
  210. <script>window.jQuery || document.write('<script src="<?php echo $mediaRoot ?>/js/vendor/jquery.min.js"><\/script>');</script>
  211. <?php endif; ?>
  212. <!-- For fontawesome 5 pseudo-elements -->
  213. <script> window.FontAwesomeConfig = {searchPseudoElements: true}</script>
  214. <!-- lib js -->
  215. <script src="<?php echo $mediaRoot ?>/js/vendor/popper.min.js"></script>
  216. <script src="<?php echo $mediaRoot ?>/js/vendor/mustache.min.js"></script>
  217. <script src="<?php echo $mediaRoot ?>/js/vendor/jquery-ui.min.js"></script>
  218. <script src="<?php echo $mediaRoot ?>/js/vendor/jquery.timepicker.js"></script>
  219. <!-- prevent jquery ui / boostrap conflit on $.tooltip() -->
  220. <script>$.widget.bridge('uitooltip', $.ui.tooltip);</script>
  221. <script src="<?php echo $mediaRoot ?>/js/vendor/bootstrap.min.js"></script>
  222. <script src="<?php echo $mediaRoot ?>/js/vendor/bootstrap3-typeahead.min.js"></script>
  223. <script src="<?php echo $mediaRoot ?>/js/vendor/trumbowyg.min.js"></script>
  224. <script src="<?php echo $mediaRoot ?>/js/vendor/trumbowyg.plugins.js"></script>
  225. <!-- custom js -->
  226. <script src="<?php echo $mediaRoot ?>/js/fontawesome.js"></script>
  227. <script src="<?php echo $mediaRoot ?>/js/vendor/Chart.min.js"></script>
  228. <script src="<?php echo $mediaRoot ?>/js/plugins.js?v=<?php echo $cacheVersion ?>"></script>
  229. <script src="<?php echo $mediaRoot ?>/js/filter.component.js?v=<?php echo $cacheVersion ?>"></script>
  230. <script src="<?php echo $mediaRoot ?>/js/main.js?v=<?php echo $cacheVersion ?>"></script>
  231. <?php echo Plugin::callJs($mediaRoot,$cacheVersion); ?>
  232. </body>
  233. </html>