cms.lottery-inscrits.php 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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">Id Prestation</th>
  24. <th data-sortable="true" data-field="id_dossier" data-filter-control="input" data-width="50" data-formatter="selectDossier">Id 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">Base RH</th>
  27. <th data-sortable="true" data-field="valide" data-filter-control="select">Eligible</th>
  28. <th data-sortable="true" data-field="login" data-filter-control="input">Login</th>
  29. <th data-sortable="true" data-field="prenom" data-filter-control="input">Prénom</th>
  30. <th data-sortable="true" data-field="nom" data-filter-control="input">Nom</th>
  31. <th data-sortable="true" data-field="admin" data-filter-control="select">Chargé par</th>
  32. <th data-sortable="true" data-field="cree">Le</th>
  33. </tr>
  34. </thead>
  35. </table>
  36. <script>
  37. function selectDossier(value) {
  38. 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>';
  39. }
  40. function selectPrestation(value, row) {
  41. 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>';
  42. }
  43. </script>