footer.php 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  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. <!-- Permission modal -->
  204. <!-- Modal -->
  205. <div class="modal fade" id="permission-modal" tabindex="-1" role="dialog" aria-hidden="true">
  206. <div class="modal-dialog">
  207. <div class="modal-content">
  208. <div class="modal-header">
  209. <h5 class="modal-title" id="exampleModalLabel">Permissions</h5>
  210. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  211. <span aria-hidden="true">&times;</span>
  212. </button>
  213. </div>
  214. <div class="modal-body">
  215. <div class="row">
  216. <!-- search results -->
  217. <div class="col-xl-12">
  218. <table id="permissions" class="table table-striped " data-entity-search="core_permission_search">
  219. <thead>
  220. <tr>
  221. <th class="col-target">Utilisateur/Rang</th>
  222. <th class="col-read"><span class="label-diagonal">Lecture</span></th>
  223. <th class="col-edit"><span class="label-diagonal">Ecriture</span></th>
  224. <th class="col-delete"><span class="label-diagonal">Suppr.</span></th>
  225. <th class="col-configure"><span class="label-diagonal">Config.</span></th>
  226. <th class="col-recursive"><span class="label-diagonal">Récursif</span></th>
  227. <th></th>
  228. </tr>
  229. </thead>
  230. <thead>
  231. <tr id="permission-form" data-action="core_permission_save" data-id="">
  232. <th class="col-target"><input id="target" class="form-control" placeholder="" value="" data-type="user" data-types="user,rank" type="text"></th>
  233. <th class="col-read"><input id="read" name="read" class="form-control" placeholder="" value="" type="checkbox" data-type="checkbox"></th>
  234. <th class="col-edit"><input id="edit" name="edit" class="form-control" placeholder="" value="" type="checkbox" data-type="checkbox"></th>
  235. <th class="col-delete"><input id="delete" name="delete" class="form-control" placeholder="" value="" type="checkbox" data-type="checkbox"></th>
  236. <th class="col-configure text-center"><input id="configure" name="configure" class="form-control" placeholder="" value="" type="checkbox" data-type="checkbox"></th>
  237. <th class="col-recursive text-center"><input id="recursive" name="recursive" class="form-control" placeholder="" value="" type="checkbox" data-type="checkbox"></th>
  238. <th class="text-right"><div onclick="core_permission_save();" class="btn btn-success btn-mini"><i class="fas fa-check"></i></div></th>
  239. </tr>
  240. </thead>
  241. <tbody>
  242. <tr data-id="{{id}}" class="hidden">
  243. <td class="col-target">{{{target}}}</td>
  244. <td class="col-read">{{#read}}<i class="fas fa-check text-success"></i>{{/read}}{{^read}}<i class="fas fa-times text-danger"></i>{{/read}}</td>
  245. <td class="col-edit">{{#edit}}<i class="fas fa-check text-success"></i>{{/edit}}{{^edit}}<i class="fas fa-times text-danger"></i>{{/edit}}</td>
  246. <td class="col-delete">{{#delete}}<i class="fas fa-check text-success"></i>{{/delete}}{{^delete}}<i class="fas fa-times text-danger"></i>{{/delete}}</td>
  247. <td class="col-configure">{{#configure}}<i class="fas fa-check text-success"></i>{{/configure}}{{^configure}}<i class="fas fa-times text-danger"></i>{{/configure}}</td>
  248. <td class="col-recursive">{{#recursive}}<i class="fas fa-check text-success"></i>{{/recursive}}{{^recursive}}<i class="fas fa-times text-danger"></i>{{/recursive}}</td>
  249. <td class="text-right">
  250. <div class="btn btn-dark btn-mini " onclick="core_permission_delete(this);"><i class="far fa-trash-alt"></i></div>
  251. </td>
  252. </tr>
  253. </tbody>
  254. </table>
  255. </div>
  256. </div>
  257. </div>
  258. <div class="modal-footer">
  259. <button type="button" class="btn btn-secondary" data-dismiss="modal">Fermer</button>
  260. </div>
  261. </div>
  262. </div>
  263. </div>
  264. <?php echo Plugin::callHook('application_bottom'); ?>
  265. <!-- Bootstrap core JavaScript -->
  266. <!-- Placed at the end of the document so the pages load faster -->
  267. <?php if($conf->get('offline_mode')): ?>
  268. <script src="<?php echo $mediaRoot ?>/js/vendor/jquery.min.js"></script>
  269. <?php else: ?>
  270. <script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
  271. <script>window.jQuery || document.write('<script src="<?php echo $mediaRoot ?>/js/vendor/jquery.min.js"><\/script>');</script>
  272. <?php endif; ?>
  273. <!-- For fontawesome 5 pseudo-elements -->
  274. <script> window.FontAwesomeConfig = {searchPseudoElements: true}</script>
  275. <!-- lib js -->
  276. <script src="<?php echo $mediaRoot ?>/js/vendor/popper.min.js"></script>
  277. <script src="<?php echo $mediaRoot ?>/js/vendor/mustache.min.js"></script>
  278. <script src="<?php echo $mediaRoot ?>/js/vendor/jquery-ui.min.js"></script>
  279. <script src="<?php echo $mediaRoot ?>/js/vendor/jquery.timepicker.js"></script>
  280. <!-- prevent jquery ui / boostrap conflit on $.tooltip() -->
  281. <script>$.widget.bridge('uitooltip', $.ui.tooltip);</script>
  282. <script src="<?php echo $mediaRoot ?>/js/vendor/bootstrap.min.js"></script>
  283. <script src="<?php echo $mediaRoot ?>/js/vendor/bootstrap3-typeahead.min.js"></script>
  284. <script src="<?php echo $mediaRoot ?>/js/vendor/trumbowyg.min.js"></script>
  285. <script src="<?php echo $mediaRoot ?>/js/vendor/trumbowyg.plugins.js"></script>
  286. <!-- custom js -->
  287. <script src="<?php echo $mediaRoot ?>/js/fontawesome.js"></script>
  288. <script src="<?php echo $mediaRoot ?>/js/vendor/Chart.min.js"></script>
  289. <script src="<?php echo $mediaRoot ?>/js/plugins.js?v=<?php echo $cacheVersion ?>"></script>
  290. <script src="<?php echo $mediaRoot ?>/js/filter.component.js?v=<?php echo $cacheVersion ?>"></script>
  291. <script src="<?php echo $mediaRoot ?>/js/main.js?v=<?php echo $cacheVersion ?>"></script>
  292. <?php echo Plugin::callJs($mediaRoot,$cacheVersion); ?>
  293. </body>
  294. </html>