indexSuccess.php 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <div class="content-add01">
  2. <div class="heading01"><h1>Liste des périodes (<?php echo $pager->getNbResults() ?>)</h1></div>
  3. </div>
  4. <div class="filter">
  5. <div class="filter-left">&nbsp;</div>
  6. <div class="filter-middle">
  7. <?php echo form_tag('@katao_period_filter') ?>
  8. <?php echo select_tag('filter_status', options_for_select(KataoPeriodPeer::getAllStatuses(), $filter_status, array('include_custom' => '&mdash;&nbsp;Etat&nbsp;&mdash;'))) ?>
  9. <?php echo submit_tag('', array('class' => 'btn-search', 'title' => 'Filtrer')) ?><div style="float:right"><a href="<?php echo url_for('@katao_period_filter_reset') ?>">[annuler]</a></div>
  10. </form>
  11. </div>
  12. <div class="filter-right">&nbsp;</div>
  13. </div>
  14. <?php if (empty($katao_periodList)): ?>
  15. <p>Aucune période.</p>
  16. <p><?php echo link_to('Ajouter une période', '@katao_period_add', array('class' => 'add')) ?></p>
  17. <?php else : ?>
  18. <?php echo link_to('Ajouter une période', '@katao_period_add', array('class' => 'add')) ?>
  19. <?php echo link_to('Supprimer les périodes sélectionnées (' . multiple_action_info_selected('katao_period') . ')', '@katao_period_delete_multiple', array('class' => 'delete', 'confirm' => 'Êtes-vous sûr de vouloir supprimer les périodes sélectionnées ?')) ?>
  20. <table class="admin-list">
  21. <tr>
  22. <th nowrap="nowrap" width="1%"><?php echo multiple_action_checkbox_all('katao_period') ?></th>
  23. <th nowrap="nowrap">Nom <?php echo sort_links($sf_request, 'name', 'kataoPeriod/index') ?></th>
  24. <th nowrap="nowrap">Début <?php echo sort_links($sf_request, 'begin', 'kataoPeriod/index') ?></th>
  25. <th nowrap="nowrap">Fin <?php echo sort_links($sf_request, 'end', 'kataoPeriod/index') ?></th>
  26. <th nowrap="nowrap">Fin demandes <?php echo sort_links($sf_request, 'order', 'kataoPeriod/index') ?></th>
  27. <th nowrap="nowrap">Etat <?php echo sort_links($sf_request, 'active', 'kataoPeriod/index') ?></th>
  28. <th nowrap="nowrap" width="1%">Actions</th>
  29. </tr>
  30. <?php foreach ($katao_periodList as/*(KataoPeriod)*/ $katao_period): ?>
  31. <tr valign="top" class="line">
  32. <td class="center"><?php echo multiple_action_checkbox_line('katao_period', $katao_period->getId()) ?></td>
  33. <td nowrap="nowrap"><?php echo $katao_period->getName() ?></td>
  34. <td nowrap="nowrap"><?php echo $katao_period->getBeginAtStr() ?></td>
  35. <td nowrap="nowrap"><?php echo $katao_period->getFinishAtStr() ?></td>
  36. <td nowrap="nowrap"><?php echo $katao_period->getOrderEndedAtStr() ?></td>
  37. <td nowrap="nowrap"><?php echo $katao_period->getStatusStr() ?></td>
  38. <td nowrap="nowrap">
  39. <?php if (KataoPeriod::STATUS_DRAFT == $katao_period->getStatus()): ?>
  40. <?php echo catalyz_link_to_image_tag('@katao_period_activate?id=' . $katao_period->getId(), 'actions/activate.png', array('title' => 'Activer', 'confirm' => 'Êtes-vous sûr de vouloir activer cette période ?'), array('alt' => 'Activer')) ?>
  41. <?php endif ?>
  42. <?php echo catalyz_link_to_image_tag('@katao_period_edit?id=' . $katao_period->getId(), 'actions/edit.png', array('title' => 'Modifier'), array('alt' => 'Modifier')) ?>
  43. <?php echo catalyz_link_to_image_tag('@katao_period_copy?id=' . $katao_period->getId(), 'actions/copy.png', array('title' => 'Copier'), array('alt' => 'Copier')) ?>
  44. <?php if ($katao_period->isDeletable()): ?>
  45. <?php echo catalyz_link_to_image_tag('@katao_period_delete?id=' . $katao_period->getId(), 'actions/delete.png', array('title' => 'Supprimer', 'confirm' => 'Êtes-vous sûr de vouloir supprimer cette période ?'), array('alt' => 'Supprimer')) ?>
  46. <?php endif ?>
  47. </td>
  48. </tr>
  49. <?php endforeach ?>
  50. </table>
  51. <?php echo pager($pager, sprintf('kataoPeriod/index?sort=%s%s', $sf_request->getParameter('sort', 'name'), $sf_request->hasParameter('desc')?'&desc=on':''), 'katao_period') ?>
  52. <?php endif ?>