setting.firm.php 5.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?php
  2. global $myUser;
  3. User::check_access('firm','configure');
  4. ?>
  5. <div class="plugin-core">
  6. <div class="row">
  7. <div class="col-md-12">
  8. <div class="d-flex my-2 w-100">
  9. <h4 class="d-inline-block my-auto mx-0 text-uppercase">Liste des etablissements</h4>
  10. <div class="text-left ml-3 d-inline-block noPrint">
  11. <div onclick="window.print();" class="btn btn-info rounded-0 btn-squarred" title="Imprimer la page"><i class="fas fa-print"></i></div>
  12. <div onclick="core_firm_search(null,true);" id="export-cores-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>
  13. </div>
  14. <?php if($myUser->can('firm', 'edit')) : ?>
  15. <div class="my-auto ml-auto mr-0 noPrint">
  16. <a href="firm.php" class="btn btn-success right"><i class="fas fa-plus"></i> Ajouter</a>
  17. </div>
  18. <?php endif; ?>
  19. </div>
  20. <div class="clear noPrint"></div>
  21. </div>
  22. <div class="col-md-12">
  23. <select id="core_firm-filters" data-type="filter" data-label="Recherche" data-function="core_firm_search">
  24. <option value="main.label" data-filter-type="text">Libellé</option>
  25. <option value="main.description" data-filter-type="wysiwyg">Description</option>
  26. <option value="main.logo" data-filter-type="image">Logo</option>
  27. <option value="main.mail" data-filter-type="mail">E-mail</option>
  28. <option value="main.phone" data-filter-type="phone">N° Téléphone</option>
  29. <option value="main.fax" data-filter-type="phone">N° FAX</option>
  30. <option value="main.street" data-filter-type="textarea">Rue</option>
  31. <option value="main.street2" data-filter-type="textarea">Complément d'adresse</option>
  32. <option value="main.city" data-filter-type="text">Ville</option>
  33. <option value="main.zipcode" data-filter-type="text">Code postal</option>
  34. <option value="main.siret" data-filter-type="text">N° SIRET</option>
  35. <option value="main.iban" data-filter-type="text">N° IBAN</option>-->
  36. </select>
  37. </div>
  38. </div>
  39. <h5 class="results-count my-2"><span></span> Résultat(s)
  40. <!-- bloc de préférence de pagination -->
  41. <small class="text-muted right text-muted text-small"><div class="d-inline-block mr-1" data-type="pagination-preference" data-table="#firms" data-value="20" data-max-item="100"></div></small><div class="clear"></div>
  42. </h5>
  43. <div class="row">
  44. <!-- search results -->
  45. <div class="col-xl-12">
  46. <table id="firms" class="table table-striped " data-entity-search="core_firm_search">
  47. <thead>
  48. <tr>
  49. <th></th>
  50. <th data-sortable="label">Libellé</th>
  51. <th data-sortable="description">Description</th>
  52. <th data-sortable="mail">E-mail</th>
  53. <th data-sortable="phone">N° Téléphone</th>
  54. <th data-sortable="fax">N° FAX</th>
  55. <th data-sortable="street">Adresse</th>
  56. <th></th>
  57. </tr>
  58. </thead>
  59. <tbody>
  60. <tr data-id="{{id}}" class="hidden item-line">
  61. <td class="align-middle text-center bg-dark"><img class="rounded-sm" style="max-width: 80px;height: auto;" src="{{logo}}"></td>
  62. <td class="align-middle">{{label}}</td>
  63. <td class="align-middle">{{{description}}}</td>
  64. <td class="align-middle">{{mail}}</td>
  65. <td class="align-middle">{{phone}}</td>
  66. <td class="align-middle">{{fax}}</td>
  67. <td class="align-middle">{{street}} {{street2}} {{zipcode}} {{city}}</td>
  68. <td class="align-middle text-right">
  69. <div class="btn-group btn-group-sm" role="group">
  70. <a class="btn text-info" title="Éditer firm" href="firm.php?id={{id}}"><i class="fas fa-pencil-alt"></i></a>
  71. <div class="btn text-danger" title="Supprimer firm" onclick="core_firm_delete(this);"><i class="far fa-trash-alt"></i></div>
  72. </div>
  73. </td>
  74. </tr>
  75. </tbody>
  76. </table>
  77. <br>
  78. <!-- Pagination (data-range définit le nombre de pages max affichées avant et après la page courante) -->
  79. <ul class="pagination justify-content-center" data-range="5">
  80. <li class="page-item hidden" data-value="{{value}}" title="Voir la page {{label}}" onclick="$(this).parent().find('li').removeClass('active');$(this).addClass('active');core_firm_search();">
  81. <span class="page-link">{{label}}</span>
  82. </li>
  83. </ul>
  84. </div>
  85. </div>
  86. </div>