indexSuccess.php 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <div class="content-add01">
  2. <div class="heading01"><h1>Liste des familles (<?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_product_family_filter') ?>
  8. <?php echo select_tag('filter_product_category', options_for_select(KataoProductCategoryPeer::getAllSimple(), $filter_product_category, array('include_custom' => '&mdash;&nbsp;Rayon&nbsp;&mdash;'))) ?>
  9. <?php echo submit_tag('', array('class' => 'btn-search', 'title' => 'Filtrer')) ?><div style="float:right"><a href="<?php echo url_for('@katao_product_family_filter_reset') ?>">[annuler]</a></div>
  10. </form>
  11. </div>
  12. <div class="filter-right">&nbsp;</div>
  13. </div>
  14. <?php if (empty($katao_product_familyList)): ?>
  15. <p>Aucune famille.</p>
  16. <p><?php echo link_to('Ajouter une famille', '@katao_product_family_add', array('class' => 'add')) ?></p>
  17. <?php else : ?>
  18. <?php echo link_to('Ajouter une famille', '@katao_product_family_add', array('class' => 'add')) ?>
  19. <?php echo link_to('Supprimer les familles sélectionnées (' . multiple_action_info_selected('katao_product_family') . ')', '@katao_product_family_delete_multiple', array('class' => 'delete', 'confirm' => 'Êtes-vous sûr de vouloir supprimer les familles sélectionnées ?')) ?>
  20. <table class="admin-list">
  21. <tr>
  22. <th nowrap="nowrap" width="1%"><?php echo multiple_action_checkbox_all('katao_product_family') ?></th>
  23. <th nowrap="nowrap">Nom <?php echo sort_links($sf_request, 'name', 'kataoProductFamily/index') ?></th>
  24. <th nowrap="nowrap">Rayon <?php echo sort_links($sf_request, 'category', 'kataoProductFamily/index') ?></th>
  25. <th nowrap="nowrap" width="1%">Actions</th>
  26. </tr>
  27. <?php foreach ($katao_product_familyList as/*(KataoProductFamily)*/ $katao_product_family): ?>
  28. <tr valign="top" class="line">
  29. <td class="center"><?php echo multiple_action_checkbox_line('katao_product_family', $katao_product_family->getId()) ?></td>
  30. <td nowrap="nowrap"><?php echo $katao_product_family->getName() ?></td>
  31. <td nowrap="nowrap"><?php echo $katao_product_family->getKataoProductCategoryLink() ?></td>
  32. <td nowrap="nowrap">
  33. <?php echo catalyz_link_to_image_tag('@katao_product_family_edit?id=' . $katao_product_family->getId(), 'actions/edit.png', array('title' => 'Modifier'), array('alt' => 'Modifier')) ?>
  34. <?php if ($katao_product_family->isDeletable()): ?>
  35. <?php echo catalyz_link_to_image_tag('@katao_product_family_delete?id=' . $katao_product_family->getId(), 'actions/delete.png', array('title' => 'Supprimer', 'confirm' => 'Êtes-vous sûr de vouloir supprimer cette famille ?'), array('alt' => 'Supprimer')) ?>
  36. <?php endif ?>
  37. </td>
  38. </tr>
  39. <?php endforeach ?>
  40. </table>
  41. <?php echo pager($pager, sprintf('kataoProductFamily/index?sort=%s%s', $sf_request->getParameter('sort', 'name'), $sf_request->hasParameter('desc')?'&desc=on':''), 'katao_product_family') ?>
  42. <?php endif ?>