<div class="content-add01">
	<div class="heading01"><h1>Liste des familles (<?php echo $pager->getNbResults() ?>)</h1></div>
</div>

<div class="filter">
	<div class="filter-left">&nbsp;</div>
	<div class="filter-middle">
		<?php echo form_tag('@katao_product_family_filter') ?>
			<?php echo select_tag('filter_product_category', options_for_select(KataoProductCategoryPeer::getAllSimple(), $filter_product_category, array('include_custom' => '&mdash;&nbsp;Rayon&nbsp;&mdash;'))) ?>
			<?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>
		</form>
	</div>
	<div class="filter-right">&nbsp;</div>
</div>

<?php if (empty($katao_product_familyList)): ?>
	<p>Aucune famille.</p>
	<p><?php echo link_to('Ajouter une famille', '@katao_product_family_add', array('class' => 'add')) ?></p>
<?php else : ?>
  <?php echo link_to('Ajouter une famille', '@katao_product_family_add', array('class' => 'add')) ?>
  <?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 ?')) ?>
  <table class="admin-list">
    <tr>
	  <th nowrap="nowrap" width="1%"><?php echo multiple_action_checkbox_all('katao_product_family') ?></th>
	  <th nowrap="nowrap">Nom <?php echo sort_links($sf_request, 'name', 'kataoProductFamily/index') ?></th>
	  <th nowrap="nowrap">Rayon <?php echo sort_links($sf_request, 'category', 'kataoProductFamily/index') ?></th>
	  <th nowrap="nowrap" width="1%">Actions</th>
	</tr>
	<?php foreach ($katao_product_familyList as/*(KataoProductFamily)*/ $katao_product_family): ?>
    <tr valign="top" class="line">
		  <td class="center"><?php echo multiple_action_checkbox_line('katao_product_family', $katao_product_family->getId()) ?></td>
		  <td nowrap="nowrap"><?php echo $katao_product_family->getName() ?></td>
		  <td nowrap="nowrap"><?php echo $katao_product_family->getKataoProductCategoryLink() ?></td>
		  <td nowrap="nowrap">
	    <?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')) ?>
	<?php if ($katao_product_family->isDeletable()): ?>
		<?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')) ?>
	<?php endif ?>
	  </td>
	</tr>
  <?php endforeach ?>
  </table>
  <?php echo pager($pager, sprintf('kataoProductFamily/index?sort=%s%s', $sf_request->getParameter('sort', 'name'), $sf_request->hasParameter('desc')?'&desc=on':''), 'katao_product_family') ?>
<?php endif ?>