cms.lottery-inscrits.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <div style="float:right; margin-top: -60px;">
  2. <?php
  3. $lottery = lottery::getFiche(core::getGet("id"));
  4. if($lottery["sortDate"] == NULL){
  5. ?>
  6. <a href="/?p=lottery-upload-excel&id=<?php echo core::getGet("id") ?>"><button type="submit" class="btn btn-outline-success btn-sm"><span data-feather="download"></span> Importer les inscrits</button></a>
  7. <?php } ?>
  8. </div>
  9. <table
  10. id="table"
  11. class="table-striped table-hover table-sm"
  12. data-page-size="25"
  13. data-toggle="table"
  14. data-show-columns="true"
  15. data-search="true"
  16. data-buttons-align="left"
  17. data-pagination="true"
  18. data-filter-control="true"
  19. data-flat="true"
  20. data-url="/json.php?jsonData=lottery-inscrits&id=<?php echo core::getGet("id") ?>">
  21. <thead>
  22. <tr>
  23. <th data-sortable="true" data-field="id_presta" data-width="50" data-formatter="selectPrestation">Prestation</th>
  24. <th data-sortable="true" data-field="id_dossier" data-filter-control="input" data-width="50" data-formatter="selectDossier">Dossier</th>
  25. <th data-sortable="true" data-field="id_salarie" data-filter-control="input" data-width="50">Id Salarié</th>
  26. <th data-sortable="true" data-field="actif" data-filter-control="select" data-width="50">Base RH</th>
  27. <th data-sortable="true" data-field="valide" data-filter-control="select" data-width="50">Eligible</th>
  28. <th data-sortable="true" data-field="login" data-filter-control="input" data-width="150">Login</th>
  29. <th data-sortable="true" data-field="prenom" data-filter-control="input" data-width="150">Prénom</th>
  30. <th data-sortable="true" data-field="nom" data-filter-control="input" data-width="150">Nom</th>
  31. <th data-sortable="true" data-field="lieu" data-filter-control="input" data-width="175">Rattachement</th>
  32. <th data-sortable="true" data-field="admin" data-filter-control="select">Chargé par</th>
  33. <th data-sortable="true" data-field="cree" data-width="175">Le</th>
  34. </tr>
  35. </thead>
  36. </table>
  37. <script>
  38. function selectDossier(value) {
  39. return '<a href="https://www.cse-invent.com/gestion/prestations/dossiers/' + value + '/edit?pagesize=20&page=1" target="_blank"><button type="submit" class="btn btn-outline-primary btn-sm">' + value + '</button></a>';
  40. }
  41. function selectPrestation(value, row) {
  42. return '<a href="https://www.cse-invent.com/gestion/prestations/' + value + '/edit?search=avance&page=1&pagesize=20" target="_blank"><button type="submit" class="btn btn-outline-primary btn-sm">' + value + '</button></a>';
  43. }
  44. </script>