123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321 |
- </div>
- <?php
- global $myUser,$conf;
- $scheme = isset($scheme) ? $scheme : define_url_scheme();
- $mediaRoot = isset($mediaRoot) ? $mediaRoot : define_media_root();
- $loadingTime = isset($start_time) ? (round(microtime(TRUE) - $start_time,5)) : '';
- $cacheVersion = isset($cacheVersion) ? $cacheVersion : SOURCE_VERSION;
- ?>
- <footer class="footer noPrint">
- <div class="container">
- <span class="text-muted">
- <?php
- echo $conf->get('show_application_name_footer') ? PROGRAM_NAME.' V'.SOURCE_VERSION.'b'.BASE_VERSION.' ' : '';
- if($conf->get('show_application_author_footer')){
- if(!empty($conf->get('application_author_website_footer')))
- echo 'by <a href="'.$conf->get('application_author_website_footer').'" target="_blank">@'.PROGRAM_AUTHOR.'</a>';
- else
- echo 'by @'.PROGRAM_AUTHOR;
- }
- 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>' : '';
- echo $conf->get('show_process_time_footer') ? ' - '.$loadingTime : '';
- ?>
- </span>
- </div>
- <div id="scroll-top" title="Retour en haut de page"></div>
- </footer>
- <!-- Composant filtre -->
- <div class="advanced-search-box hidden">
- <div class="input-group simple-search">
- <div class="input-group-prepend">
- <div class="input-group-text data-search-label">Recherche</div>
- </div>
- <input type="text" class="form-control filter-keyword" placeholder="Mot clé">
- <span id="search-clear" class="fas fa-times"></span>
- <div class="input-group-append hidden">
- <div class="btn btn-info btn-search" title="Rechercher"><i class="fas fa-search"></i> Rechercher</div>
- </div>
- </div>
- <div class="advanced-search">
- <ul class="criterias group">
- <li class="condition hidden">
- <span class="filter-column">
- <select class="form-control">
- {{
- <option value="{{value}}" data-filter-type="{{type}}">{{label}}</option>
- {{/columns}}
- </select>
- </span>
- <span class="filter-operator"></span>
- <span class="filter-value"></span>
- <span class="filter-option">
- <i title="Déplacer la ligne" class="fas fa-arrows-alt btn-move"></i>
- <i title="Déplacer dans le groupe supérieur" class="btn-unindent fas fa-angle-left"></i>
- <i title="Déplacer dans un sous-groupe" class="btn-indent fas fa-angle-right"></i>
- <i title="Supprimer la ligne" class="btn-delete far fa-trash-alt"></i>
- <i title="Ajouter une ligne après" class="btn-add fas fa-plus"></i>
- </span>
- <select class="filter-join"><option value="and">ET</option><option value="or">OU</option></select>
- </li>
- </li>
- </ul>
- </div>
- <div class="options">
- <div class="btn btn-light btn-small btn-search"><i class="fas fa-search"></i> Rechercher</div>
- <div class="btn btn-light btn-small advanced-button-search pointer" title="Mode simple / avancé"><i class="fas fa-filter"></i></div>
- <div class="dropdown preferences btn-light">
- <button class="btn btn-light btn-small dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
- <i class="fas fa-user-cog"></i>
- </button>
- <div class="dropdown-menu tools py-1" aria-labelledby="dropdownMenuButton">
- <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>
- <a class="dropdown-item py-1 px-2 text-muted btn-search-clean pointer"><i class="fas fa-broom"></i> Nettoyer la recherche</a>
- <div class="dropdown-divider my-2 hidden"></div>
- <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>
- </div>
- </div>
-
- </div>
- <div class="clear"></div>
- </div>
- <div class="hidden">
- <div class="filter-value-block" data-value-type="text">
- <select class="form-control filter-operator border-0 text-primary">
- <option value="LIKE">Contient</option>
- <option value="NOT LIKE">Ne contient pas</option>
- <option value="=">Égal</option>
- <option value="!=">Différent</option>
- <option value="IS NULL" data-values="0">Non Renseigné</option>
- <option value="IS NOT NULL" data-values="0">Renseigné</option>
- </select> <input type="text" placeholder="Mot clé" class="form-control filter-value">
- </div>
- <div class="filter-value-block" data-value-type="user" data-value-selector=".filter-value:eq(1)" >
- <select class="form-control filter-operator border-0 text-primary">
- <option value="=">Égal</option>
- <option value="!=">Différent</option>
- <option value="IS NULL" data-values="0">Non Renseigné</option>
- <option value="IS NOT NULL" data-values="0">Renseigné</option>
- </select> <input type="text" data-template="user" data-force="false" placeholder="Utilisateur" class="form-control filter-value">
- </div>
- <div class="filter-value-block" data-value-type="number">
- <select class="form-control filter-operator border-0 text-primary">
- <option value="=">Égal</option>
- <option value="between" data-values="2">Entre</option>
- <option value=">">Supérieur à</option>
- <option value="<">Inférieur à</option>
- <option value="IS NULL" data-values="0">Non Renseigné</option>
- <option value="IS NOT NULL" data-values="0">Renseigné</option>
- </select> <input type="number" data-template="number" placeholder="Nombre" class="form-control filter-value">
- </div>
- <div class="filter-value-block" data-value-type="date">
- <select class="form-control filter-operator border-0 text-primary">
- <option value="=">Le</option>
- <option value="<">Avant</option>
- <option value=">">Après</option>
- <option value="between" data-values="2">Entre</option>
- <option value="IS NULL" data-values="0">Non Renseigné</option>
- <option value="IS NOT NULL" data-values="0">Renseigné</option>
- </select>
- <input type="text" placeholder="dd/mm/yyyy" data-template="date" class="form-control filter-value">
- </div>
- <div class="filter-value-block" data-value-type="dictionnary" data-value-selector=".filter-value:last-child">
- <select class="form-control filter-operator border-0 text-primary">
- <option value="=">Égal</option>
- <option value="!=">Différent</option>
- <option value="IS NULL" data-values="0">Non Renseigné</option>
- <option value="IS NOT NULL" data-values="0">Renseigné</option>
- </select>
- <select data-template="dictionnary" data-slug="{{slug}}" data-depth="{{depth}}" data-filter-type-value="{{filterTypeValue}}" class="form-control filter-value" data-disable-label></select>
- </div>
- <div class="filter-value-block" data-value-type="boolean">
- <select class="form-control filter-operator border-0 text-primary">
- <option value="=">Est coché</option>
- <option value="!=">N'est pas coché</option>
- <option value="IS NULL" data-values="0">Non Renseigné</option>
- <option value="IS NOT NULL" data-values="0">Renseigné</option>
- </select>
- <input type="text" data-template="boolean" class="form-control filter-value hidden" value="1">
- </div>
- </div>
- <!-- Composant icone -->
- <div class="dropdown component-icon hidden">
- <button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
- <i class="{{value}}"></i>
- </button>
- <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
- <span class="dropdown-item">
- <input type="text" placeholder="Mot clé" class="form-control w-100">
- </span>
- <div class="dropdown-divider"></div>
- <div class="icons-list">
- <span class="dropdown-icon-item no-icon" title="Pas d'icône" data-icon="hidden"><i class="far fa-eye-slash"></i></span>
- {{#choices}}
- {{#.}}<span class="dropdown-icon-item" title="{{.}}" data-icon="{{.}}"><i class="{{.}}"></i></span>{{/.}}
- {{/choices}}
- </div>
- </div>
- </div>
- <!-- Composant quickform -->
- <div class="modal fade quickform-modal" id="quickform-modal" tabindex="-1" role="dialog" aria-labelledby="quickform-modal-label" aria-hidden="true">
- <div class="modal-dialog modal-lg" role="document">
- <div class="modal-content">
- <div class="modal-header bg-info text-light">
- <h5 class="modal-title" id="quickform-modal-label"></h5>
- <button type="button" class="close" data-dismiss="modal" aria-label="Fermer">
- <span aria-hidden="true">×</span>
- </button>
- </div>
- <div class="modal-body"></div>
- <div class="modal-footer">
- <div class="btn btn-light" data-dismiss="modal">Fermer</div>
- </div>
- </div>
- </div>
- </div>
- <!-- Composant dictionnary table -->
- <div class="hidden component-dictionnary-table" data-id="" data-type="dictionnary-table" data-dictionnary="{{parent.id}}">
- <table id="" class="table table-striped table-bordered table-hover">
- <thead>
- <tr>
- <th colspan="<?php echo $myUser->superadmin ? 3 : 2; ?>">{{parent.label}}</th>
- </tr>
- <tr class="edit-line">
- <th><input class="form-control edit-field list-label" type="text" placeholder="Libellé de la liste"></th>
- <?php if($myUser->superadmin): ?>
- <th><input class="form-control edit-field list-slug" type="text" placeholder="Slug de la liste"></th>
- <?php endif; ?>
- <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>
- </tr>
- </thead>
- <tbody>
- <tr data-id="{{id}}" class="hidden">
- <td>{{label}}</td>
- <?php if($myUser->superadmin): ?>
- <td>{{slug}}</td>
- <?php endif; ?>
- <td class="action-cell text-center">
- <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>
- <span class="btn btn-danger btn-squarred btn-mini" title="Supprimer l'élément de liste"><i class="fas fa-times"></i></span>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <!-- Permission modal -->
- <!-- Modal -->
- <div class="modal fade" id="permission-modal" tabindex="-1" role="dialog" aria-hidden="true">
- <div class="modal-dialog">
- <div class="modal-content">
- <div class="modal-header">
- <h5 class="modal-title" id="exampleModalLabel">Permissions</h5>
- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
- <span aria-hidden="true">×</span>
- </button>
- </div>
- <div class="modal-body">
-
-
- <div class="row">
- <!-- search results -->
- <div class="col-xl-12">
- <table id="permissions" class="table table-striped " data-entity-search="core_permission_search">
- <thead>
- <tr>
- <th class="col-target">Utilisateur/Rang</th>
- <th class="col-read"><span class="label-diagonal">Lecture</span></th>
- <th class="col-edit"><span class="label-diagonal">Ecriture</span></th>
- <th class="col-delete"><span class="label-diagonal">Suppr.</span></th>
- <th class="col-configure"><span class="label-diagonal">Config.</span></th>
- <th class="col-recursive"><span class="label-diagonal">Récursif</span></th>
- <th></th>
- </tr>
- </thead>
-
- <thead>
- <tr id="permission-form" data-action="core_permission_save" data-id="">
- <th class="col-target"><input id="target" class="form-control" placeholder="" value="" data-type="user" data-types="user,rank" type="text"></th>
- <th class="col-read"><input id="read" name="read" class="form-control" placeholder="" value="" type="checkbox" data-type="checkbox"></th>
- <th class="col-edit"><input id="edit" name="edit" class="form-control" placeholder="" value="" type="checkbox" data-type="checkbox"></th>
- <th class="col-delete"><input id="delete" name="delete" class="form-control" placeholder="" value="" type="checkbox" data-type="checkbox"></th>
-
- <th class="col-configure text-center"><input id="configure" name="configure" class="form-control" placeholder="" value="" type="checkbox" data-type="checkbox"></th>
- <th class="col-recursive text-center"><input id="recursive" name="recursive" class="form-control" placeholder="" value="" type="checkbox" data-type="checkbox"></th>
- <th class="text-right"><div onclick="core_permission_save();" class="btn btn-success btn-mini"><i class="fas fa-check"></i></div></th>
- </tr>
- </thead>
-
- <tbody>
- <tr data-id="{{id}}" class="hidden">
-
- <td class="col-target">{{{target}}}</td>
- <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>
- <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>
- <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>
- <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>
- <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>
-
- <td class="text-right">
-
- <div class="btn btn-dark btn-mini " onclick="core_permission_delete(this);"><i class="far fa-trash-alt"></i></div>
-
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-secondary" data-dismiss="modal">Fermer</button>
- </div>
- </div>
- </div>
- </div>
- <?php echo Plugin::callHook('application_bottom'); ?>
- <!-- Bootstrap core JavaScript -->
- <!-- Placed at the end of the document so the pages load faster -->
- <?php if($conf->get('offline_mode')): ?>
- <script src="<?php echo $mediaRoot ?>/js/vendor/jquery.min.js"></script>
- <?php else: ?>
- <script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
- <script>window.jQuery || document.write('<script src="<?php echo $mediaRoot ?>/js/vendor/jquery.min.js"><\/script>');</script>
- <?php endif; ?>
- <!-- For fontawesome 5 pseudo-elements -->
- <script> window.FontAwesomeConfig = {searchPseudoElements: true}</script>
- <!-- lib js -->
- <script src="<?php echo $mediaRoot ?>/js/vendor/popper.min.js"></script>
-
- <script src="<?php echo $mediaRoot ?>/js/vendor/mustache.min.js"></script>
- <script src="<?php echo $mediaRoot ?>/js/vendor/jquery-ui.min.js"></script>
- <script src="<?php echo $mediaRoot ?>/js/vendor/jquery.timepicker.js"></script>
- <!-- prevent jquery ui / boostrap conflit on $.tooltip() -->
- <script>$.widget.bridge('uitooltip', $.ui.tooltip);</script>
- <script src="<?php echo $mediaRoot ?>/js/vendor/bootstrap.min.js"></script>
- <script src="<?php echo $mediaRoot ?>/js/vendor/bootstrap3-typeahead.min.js"></script>
- <script src="<?php echo $mediaRoot ?>/js/vendor/trumbowyg.min.js"></script>
- <script src="<?php echo $mediaRoot ?>/js/vendor/trumbowyg.plugins.js"></script>
- <!-- custom js -->
- <script src="<?php echo $mediaRoot ?>/js/fontawesome.js"></script>
- <script src="<?php echo $mediaRoot ?>/js/vendor/Chart.min.js"></script>
- <script src="<?php echo $mediaRoot ?>/js/plugins.js?v=<?php echo $cacheVersion ?>"></script>
- <script src="<?php echo $mediaRoot ?>/js/filter.component.js?v=<?php echo $cacheVersion ?>"></script>
- <script src="<?php echo $mediaRoot ?>/js/main.js?v=<?php echo $cacheVersion ?>"></script>
- <?php echo Plugin::callJs($mediaRoot,$cacheVersion); ?>
- </body>
- </html>
|