setting.list.adserver.php 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <?php
  2. global $myUser;
  3. User::check_access('activedirectory','read');
  4. require_once(__DIR__.SLASH.'AdServer.class.php');
  5. ?>
  6. <div class="plugin-activedirectory">
  7. <div class="row">
  8. <div class="col-md-12"><br>
  9. <div class="btn btn btn-success ml-2 float-right" onclick="activedirectory_setting_save();"><i class="fas fa-check"></i> Enregistrer</div>
  10. <h3>Configuration générales</h3>
  11. <div class="clear"></div>
  12. <hr>
  13. </div>
  14. </div>
  15. <div class="row">
  16. <div class="col-md-12">
  17. <?php echo Configuration::html('activedirectory'); ?>
  18. </div>
  19. </div>
  20. <div class="row">
  21. <div class="col-md-12">
  22. <div class="d-flex my-2 w-100">
  23. <h4 class="d-inline-block my-auto mx-0 text-uppercase">Liste des serveur active directorys</h4>
  24. <div class="text-left ml-3 d-inline-block noPrint">
  25. <div onclick="window.print();" class="btn btn-info rounded-0 btn-squarred" title="Imprimer la page"><i class="fas fa-print"></i></div>
  26. <div onclick="activedirectory_adserver_search(null,true);" id="export-activedirectorys-btn" class="btn btn-info rounded-0 btn-squarred ml-1 btn-export" title="Exporter les résultats"><i class="fas fa-file-export"></i></div>
  27. </div>
  28. <div class="my-auto ml-auto mr-0 noPrint">
  29. <?php if($myUser->can('activedirectory', 'edit')) : ?>
  30. <a href="setting.php?section=sheet.adserver" class="btn btn-success right"><i class="fas fa-plus"></i> Ajouter</a>
  31. <?php endif; ?>
  32. </div>
  33. </div>
  34. <div class="clear noPrint"></div>
  35. </div>
  36. <div class="col-md-12">
  37. <select id="activedirectory_adserver-filters" data-type="filter" data-label="Recherche" data-function="activedirectory_adserver_search">
  38. <option value="main.label" data-filter-type="text">Libellé</option>
  39. <option value="main.ip" data-filter-type="text">IP</option>
  40. <option value="main.port" data-filter-type="integer">Port</option>
  41. <option value="main.sslPort" data-filter-type="integer">Port SSL</option>
  42. <option value="main.protocolVersion" data-filter-type="text">Version de protocole ldap</option>
  43. <option value="main.domain" data-filter-type="text">Domaine</option>
  44. <option value="main.userRoot" data-filter-type="textarea">Racine des comptes utilisateurs</option>
  45. <option value="main.groupRoot" data-filter-type="textarea">Racine des groupes utilisateurs</option>
  46. <option value="main.readonlyLogin" data-filter-type="text">Identifiant du compte lecture seule</option>
  47. <option value="main.adminLogin" data-filter-type="text">Identifiant compte administrateur</option>
  48. <option value="main.authenticationMode" data-filter-type="text">Authentication mode</option>
  49. <option value="main.defaultRank" data-filter-type="rank">Rang par défaut</option>
  50. </select>
  51. </div>
  52. </div>
  53. <h5 class="results-count my-2"><span></span> Résultat(s)
  54. <!-- bloc de preference de pagination -->
  55. <small class="text-muted right text-muted text-small"><div class="d-inline-block mr-1" data-type="pagination-preference" data-table="#adservers" data-value="20" data-max-item="100"></div></small><div class="clear"></div>
  56. </h5>
  57. <div class="row">
  58. <!-- search results -->
  59. <div class="col-xl-12">
  60. <!-- présentation tableau -->
  61. <table id="adservers" class="table table-striped " data-entity-search="activedirectory_adserver_search">
  62. <thead>
  63. <tr>
  64. <!--<th>#</th>-->
  65. <th data-sortable="ip">IP</th>
  66. <th data-sortable="port">Port</th>
  67. <th data-sortable="domain">Domaine</th>
  68. <th data-available="userRoot" data-sortable="protocolVersion">Version</th>
  69. <th data-available="userRoot" data-sortable="userRoot">Racines</th>
  70. <th></th>
  71. </tr>
  72. </thead>
  73. <tbody>
  74. <tr data-id="{{id}}" class="hidden item-line">
  75. <!--<td class="align-middle">{{id}}</td>-->
  76. <td class="align-middle">{{ip}}</td>
  77. <td class="align-middle">{{port}} / {{sslPort}}</td>
  78. <td class="align-middle">{{domain}}</td>
  79. <td class="align-middle">{{protocolVersion}}</td>
  80. <td class="align-middle"><small class="text-muted">{{userRoot}}<br>{{groupRoot}}</small></td>
  81. <td class="align-middle text-right">
  82. <div class="btn-group btn-group-sm" role="group">
  83. <a class="btn text-info" title="Éditer adserver" href="setting.php?section=sheet.adserver&id={{id}}"><i class="fas fa-pencil-alt"></i></a>
  84. <div class="btn text-danger" title="Supprimer adserver" onclick="activedirectory_adserver_delete(this);"><i class="far fa-trash-alt"></i></div>
  85. </div>
  86. </td>
  87. </tr>
  88. </tbody>
  89. </table>
  90. <br>
  91. <!-- Pagination (data-range définit le nombre de pages max affichées avant et après la page courante) -->
  92. <ul class="pagination justify-content-center" data-range="5">
  93. <li class="page-item hidden" data-value="{{value}}" title="Voir la page {{label}}" onclick="$(this).parent().find('li').removeClass('active');$(this).addClass('active');activedirectory_adserver_search();">
  94. <span class="page-link">{{label}}</span>
  95. </li>
  96. </ul>
  97. </div>
  98. </div>
  99. </div>