123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <div class="content-add01">
- <div class="heading01"><h1>Liste des périodes (<?php echo $pager->getNbResults() ?>)</h1></div>
- </div>
- <div class="filter">
- <div class="filter-left"> </div>
- <div class="filter-middle">
- <?php echo form_tag('@katao_period_filter') ?>
- <?php echo select_tag('filter_status', options_for_select(KataoPeriodPeer::getAllStatuses(), $filter_status, array('include_custom' => '— Etat —'))) ?>
- <?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>
- </form>
- </div>
- <div class="filter-right"> </div>
- </div>
- <?php if (empty($katao_periodList)): ?>
- <p>Aucune période.</p>
- <p><?php echo link_to('Ajouter une période', '@katao_period_add', array('class' => 'add')) ?></p>
- <?php else : ?>
- <?php echo link_to('Ajouter une période', '@katao_period_add', array('class' => 'add')) ?>
- <?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 ?')) ?>
- <table class="admin-list">
- <tr>
- <th nowrap="nowrap" width="1%"><?php echo multiple_action_checkbox_all('katao_period') ?></th>
- <th nowrap="nowrap">Nom <?php echo sort_links($sf_request, 'name', 'kataoPeriod/index') ?></th>
- <th nowrap="nowrap">Début <?php echo sort_links($sf_request, 'begin', 'kataoPeriod/index') ?></th>
- <th nowrap="nowrap">Fin <?php echo sort_links($sf_request, 'end', 'kataoPeriod/index') ?></th>
- <th nowrap="nowrap">Fin demandes <?php echo sort_links($sf_request, 'order', 'kataoPeriod/index') ?></th>
- <th nowrap="nowrap">Etat <?php echo sort_links($sf_request, 'active', 'kataoPeriod/index') ?></th>
- <th nowrap="nowrap" width="1%">Actions</th>
- </tr>
- <?php foreach ($katao_periodList as/*(KataoPeriod)*/ $katao_period): ?>
- <tr valign="top" class="line">
- <td class="center"><?php echo multiple_action_checkbox_line('katao_period', $katao_period->getId()) ?></td>
- <td nowrap="nowrap"><?php echo $katao_period->getName() ?></td>
- <td nowrap="nowrap"><?php echo $katao_period->getBeginAtStr() ?></td>
- <td nowrap="nowrap"><?php echo $katao_period->getFinishAtStr() ?></td>
- <td nowrap="nowrap"><?php echo $katao_period->getOrderEndedAtStr() ?></td>
- <td nowrap="nowrap"><?php echo $katao_period->getStatusStr() ?></td>
- <td nowrap="nowrap">
- <?php if (KataoPeriod::STATUS_DRAFT == $katao_period->getStatus()): ?>
- <?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')) ?>
- <?php endif ?>
- <?php echo catalyz_link_to_image_tag('@katao_period_edit?id=' . $katao_period->getId(), 'actions/edit.png', array('title' => 'Modifier'), array('alt' => 'Modifier')) ?>
- <?php echo catalyz_link_to_image_tag('@katao_period_copy?id=' . $katao_period->getId(), 'actions/copy.png', array('title' => 'Copier'), array('alt' => 'Copier')) ?>
- <?php if ($katao_period->isDeletable()): ?>
- <?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')) ?>
- <?php endif ?>
- </td>
- </tr>
- <?php endforeach ?>
- </table>
- <?php echo pager($pager, sprintf('kataoPeriod/index?sort=%s%s', $sf_request->getParameter('sort', 'name'), $sf_request->hasParameter('desc')?'&desc=on':''), 'katao_period') ?>
- <?php endif ?>
|