indexSuccess.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <div class="content-add01">
  2. <div class="heading01"><h1>Liste des noeuds (<?php echo $pager->getNbResults() ?>)</h1></div>
  3. </div>
  4. <?php $is_admin_or_seo = $sf_user->hasCredential(array('admin', 'seo'), false) ?>
  5. <?php if (empty($katao_nodeList)): ?>
  6. <p>Aucun noeud.</p>
  7. <p><?php echo link_to('Ajouter un noeud', '@katao_node_add', array('class' => 'add')) ?></p>
  8. <?php else : ?>
  9. <?php if ($is_admin_or_seo): ?>
  10. <?php echo link_to('Ajouter un noeud', '@katao_node_add', array('class' => 'add')) ?>
  11. <?php echo link_to('Supprimer les noeuds sélectionnés (' . multiple_action_info_selected('katao_node') . ')', '@katao_node_delete_multiple', array('class' => 'delete', 'confirm' => 'Êtes-vous sûr de vouloir supprimer les noeuds sélectionnés ?')) ?>
  12. <?php endif ?>
  13. <table class="admin-list">
  14. <tr>
  15. <?php if ($is_admin_or_seo): ?>
  16. <th nowrap="nowrap" width="1%"><?php echo multiple_action_checkbox_all('katao_node') ?></th>
  17. <?php endif ?>
  18. <th nowrap="nowrap">Ville <?php echo sort_links($sf_request, 'city', 'kataoNode/index') ?></th>
  19. <th nowrap="nowrap">Délégué <?php echo sort_links($sf_request, 'delegate', 'kataoNode/index') ?></th>
  20. <th nowrap="nowrap">Date de début <?php echo sort_links($sf_request, 'date', 'kataoNode/index') ?></th>
  21. <th nowrap="nowrap" width="1%">Actions</th>
  22. </tr>
  23. <?php foreach ($katao_nodeList as/*(KataoNode)*/ $katao_node): ?>
  24. <tr valign="top" class="line">
  25. <?php if ($is_admin_or_seo): ?>
  26. <td class="center"><?php echo multiple_action_checkbox_line('katao_node', $katao_node->getId()) ?></td>
  27. <?php endif ?>
  28. <td nowrap="nowrap"><?php echo $katao_node->getCity() ?></td>
  29. <td nowrap="nowrap"><?php echo $katao_node->getResponsibleLink() ?></td>
  30. <td nowrap="nowrap"><?php echo $katao_node->getBeginAtStr() ?></td>
  31. <td nowrap="nowrap">
  32. <?php if (!empty($managed_node_ids[$katao_node->getId()])): ?>
  33. <?php echo catalyz_link_to_image_tag('@katao_node_manage_products?id=' . $katao_node->getId(), 'actions/products.png', array('title' => 'Gérer les produits par période'), array('alt' => 'Gérer les produits par période')) ?>
  34. <?php endif ?>
  35. <?php if ($is_admin_or_seo): ?>
  36. <?php echo catalyz_link_to_image_tag('@katao_node_edit?id=' . $katao_node->getId(), 'actions/edit.png', array('title' => 'Modifier'), array('alt' => 'Modifier')) ?>
  37. <?php if (!$katao_node->getIsDefault() && $katao_node->isDeletable()): ?>
  38. <?php echo catalyz_link_to_image_tag('@katao_node_delete?id=' . $katao_node->getId(), 'actions/delete.png', array('title' => 'Supprimer', 'confirm' => 'Êtes-vous sûr de vouloir supprimer ce noeud ?'), array('alt' => 'Supprimer')) ?>
  39. <?php endif ?>
  40. <?php endif ?>
  41. </td>
  42. </tr>
  43. <?php endforeach ?>
  44. </table>
  45. <?php echo pager($pager, sprintf('kataoNode/index?sort=%s%s', $sf_request->getParameter('sort', 'city'), $sf_request->hasParameter('desc')?'&desc=on':''), $is_admin_or_seo?'katao_node':'') ?>
  46. <?php endif ?>