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

<?php if (empty($katao_product_categoryList)): ?>
	<p>Aucun rayon.</p>
	<p><?php echo link_to('Ajouter un rayon', '@katao_product_category_add', array('class' => 'add')) ?></p>
<?php else : ?>
  <?php echo link_to('Ajouter un rayon', '@katao_product_category_add', array('class' => 'add')) ?>
  <?php echo link_to('Supprimer les rayons sélectionnés (' . multiple_action_info_selected('katao_product_category') . ')', '@katao_product_category_delete_multiple', array('class' => 'delete', 'confirm' => 'Êtes-vous sûr de vouloir supprimer les rayons sélectionnés ?')) ?>
  <table class="admin-list">
    <tr>
	  <th nowrap="nowrap" width="1%"><?php echo multiple_action_checkbox_all('katao_product_category') ?></th>
	  <th nowrap="nowrap">Nom <?php echo sort_links($sf_request, 'name', 'kataoProductCategory/index') ?></th>
	  <th nowrap="nowrap">Code comptable <?php echo sort_links($sf_request, 'accounting-code', 'kataoProductCategory/index') ?></th>
	  <th nowrap="nowrap">Ordre <?php echo sort_links($sf_request, 'order', 'kataoProductCategory/index') ?></th>
	  <th nowrap="nowrap" width="1%">Actions</th>
	</tr>
	<?php foreach ($katao_product_categoryList as/*(KataoProductCategory)*/ $katao_product_category): ?>
    <tr valign="top" class="line">
		  <td class="center"><?php echo multiple_action_checkbox_line('katao_product_category', $katao_product_category->getId()) ?></td>
		  <td nowrap="nowrap"><?php echo $katao_product_category->getName() ?></td>
		  <td nowrap="nowrap"><?php echo $katao_product_category->getAccountingCodeSuffix() ?></td>
		  <td nowrap="nowrap"><?php echo $katao_product_category->getSortOrder() ?></td>
		  <td nowrap="nowrap">
	    <?php echo catalyz_link_to_image_tag('@katao_product_category_edit?id=' . $katao_product_category->getId(), 'actions/edit.png', array('title' => 'Modifier'), array('alt' => 'Modifier')) ?>
	    <?php if ($katao_product_category->isDeletable()): ?>
			<?php echo catalyz_link_to_image_tag('@katao_product_category_delete?id=' . $katao_product_category->getId(), 'actions/delete.png', array('title' => 'Supprimer', 'confirm' => 'Êtes-vous sûr de vouloir supprimer ce rayon ?'), array('alt' => 'Supprimer')) ?>
		<?php endif ?>
	  </td>
	</tr>
  <?php endforeach ?>
  </table>
  <?php echo pager($pager, sprintf('kataoProductCategory/index?sort=%s%s', $sf_request->getParameter('sort', 'order'), $sf_request->hasParameter('desc')?'&desc=on':''), 'katao_product_category') ?>
<?php endif ?>