setting.list.ad.firm.rank.php 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <?php
  2. global $myUser;
  3. User::check_access('activedirectory','read');
  4. require_once(__DIR__.SLASH.'AdFirmRank.class.php');
  5. ?>
  6. <div class="plugin-activedirectory">
  7. <div class="row">
  8. <div class="col-md-12">
  9. <select id="activedirectory_ad_firm_rank-filters" data-type="filter" data-label="Recherche" data-function="activedirectory_ad_firm_rank_search">
  10. <option value="main.label" data-filter-type="text">Libellé</option>
  11. <option value="main.firm" data-filter-type="firm">Établissement</option>
  12. <option value="main.rank" data-filter-type="rank">Rang ERP</option>
  13. <option value="main.group" data-filter-type="list" data-values='<?php echo json_encode($groups); ?>' >Groupe AD</option>
  14. </select>
  15. </div>
  16. </div>
  17. <h5 class="results-count my-2"><span></span> Résultat(s)
  18. <!-- bloc de preference de pagination -->
  19. <small class="text-muted right text-muted text-small"><div class="d-inline-block mr-1" data-type="pagination-preference" data-table="#ad-firm-ranks" data-value="20" data-max-item="100"></div></small><div class="clear"></div>
  20. </h5>
  21. <div class="row">
  22. <!-- search results -->
  23. <div class="col-xl-12">
  24. <!-- présentation tableau -->
  25. <table id="ad-firm-ranks" class="table table-striped mb-0" data-entity-search="activedirectory_ad_firm_rank_search">
  26. <thead>
  27. <tr>
  28. <!--<th>#</th>-->
  29. <th data-sortable="group">Groupe AD</th>
  30. <th data-sortable="rank">Rang ERP</th>
  31. <th data-sortable="firm">Établissement</th>
  32. <th></th>
  33. </tr>
  34. </thead>
  35. <thead>
  36. <tr id="ad-firm-rank-form" data-action="activedirectory_ad_firm_rank_save" data-id="">
  37. <th>
  38. <select class="form-control select-control" type="text" value id="group" ></select>
  39. </th>
  40. <th class="position-relative"><input value="" class="form-control" type="text" data-type="user" data-types="rank" value id="rank" ></th>
  41. <th class="position-relative"><input value="" class="form-control" type="text" data-type="firm" value id="firm" ></th>
  42. <th class="text-right"><div onclick="activedirectory_ad_firm_rank_save();" class="btn btn-success" title="Enregistrer" data-tooltip><i class="fas fa-check"></i></div></th>
  43. </tr>
  44. </thead>
  45. <tbody>
  46. <tr data-id="{{id}}" class="hidden item-line">
  47. <!--<td class="align-middle">{{id}}</td>-->
  48. <td class="align-middle">{{group}}</td>
  49. <td class="align-middle"><a href="setting.php?section=right&rank={{rank.id}}">{{rank.label}}</a></td>
  50. <td class="align-middle"><a href="firm.php?id={{firm.id}}">{{firm.label}}</a></td>
  51. <td class="align-middle text-right">
  52. <div class="btn-group btn-group-sm" role="group">
  53. <div class="btn text-info" title="Éditer ad_firm_rank" onclick="activedirectory_ad_firm_rank_edit(this);"><i class="fas fa-pencil-alt"></i></div>
  54. <div class="btn text-danger" title="Supprimer ad_firm_rank" onclick="activedirectory_ad_firm_rank_delete(this);"><i class="far fa-trash-alt"></i></div>
  55. </div>
  56. </td>
  57. </tr>
  58. </tbody>
  59. </table>
  60. <!-- Pagination (data-range définit le nombre de pages max affichées avant et après la page courante) -->
  61. <ul class="pagination justify-content-center" data-range="5">
  62. <li class="page-item hidden" data-value="{{value}}" title="Voir la page {{label}}" onclick="$(this).parent().find('li').removeClass('active');$(this).addClass('active');activedirectory_ad_firm_rank_search();">
  63. <span class="page-link">{{label}}</span>
  64. </li>
  65. </ul>
  66. </div>
  67. </div>
  68. </div>