1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <div class="content-add01">
- <div class="heading01"><h1>Liste des produits (<?php echo $pager->getNbResults() ?>)</h1></div>
- </div>
- <div class="filter" style="margin-bottom: 0px!important">
- <div class="filter-left"> </div>
- <div class="filter-middle">
- <?php echo form_tag('@katao_product_filter') ?>
- <?php echo select_tag('filter_supplier', options_for_select(KataoSupplierPeer::getAllSimple(), $filter_supplier, array('include_custom' => '— Fournisseur —'))) ?>
- <?php echo image_tag('separator02.gif', array('alt' => '')) ?> <?php echo select_tag('filter_product_category', options_for_select(KataoProductCategoryPeer::getAllSimple(), $filter_product_category, array('include_custom' => '— Rayon —'))) ?>
- <?php echo image_tag('separator02.gif', array('alt' => '')) ?> <?php echo select_tag('filter_product_family', options_for_select(KataoProductFamilyPeer::getAllGroupedByCategory(), $filter_product_family, array('include_custom' => '— Famille —'))) ?>
- <?php echo image_tag('separator02.gif', array('alt' => '')) ?> <?php echo select_tag('filter_product_archived', options_for_select(array(CONST_YES => 'Oui', CONST_NO => 'Non'), $filter_product_archived, array('include_custom' => '— Archivé —'))) ?>
- <?php echo submit_tag('', array('class' => 'btn-search', 'title' => 'Filtrer')) ?><div style="float:right"><a href="<?php echo url_for('@katao_product_filter_reset') ?>">[annuler]</a></div>
- </form>
- </div>
- <div class="filter-right"> </div>
- </div>
- <div class="filter">
- <div class="filter-left"> </div>
- <div class="filter-middle">
- <?php echo form_tag('@katao_product_search') ?>
- Rechercher : <?php echo input_tag('search', $search, array('style' => 'width: 250px')) ?>
- <?php echo submit_tag('', array('class' => 'btn-search', 'title' => 'Rechercher')) ?><div style="float:right"><a href="<?php echo url_for('@katao_product_search_reset') ?>">[annuler]</a></div>
- </form>
- </div>
- <div class="filter-right"> </div>
- </div>
- <?php if (empty($katao_productList)): ?>
- <p>Aucun produit.</p>
- <p><?php echo link_to('Ajouter un produit', '@katao_product_add', array('class' => 'add')) ?></p>
- <?php else : ?>
- <?php echo link_to('Ajouter un produit', '@katao_product_add', array('class' => 'add')) ?>
- <?php echo link_to('Archiver les produits sélectionnés (' . multiple_action_info_selected('katao_product') . ')', '@katao_product_archive_multiple', array('class' => 'archive', 'confirm' => 'Êtes-vous sûr de vouloir archiver les produits sélectionnés ?')) ?>
- <?php echo link_to('Supprimer les produits sélectionnés (' . multiple_action_info_selected('katao_product') . ')', '@katao_product_delete_multiple', array('class' => 'delete', 'confirm' => 'Êtes-vous sûr de vouloir supprimer les produits sélectionnés ?')) ?>
- <table class="admin-list">
- <tr>
- <th nowrap="nowrap" width="1%"><?php echo multiple_action_checkbox_all('katao_product') ?></th>
- <th nowrap="nowrap">Nom <?php echo sort_links($sf_request, 'name', 'kataoProduct/index') ?></th>
- <th nowrap="nowrap">HT <?php echo sort_links($sf_request, 'price', 'kataoProduct/index') ?></th>
- <?php if (!$sf_user->isJustSupplier()): ?>
- <th nowrap="nowrap">Marge</th>
- <?php endif ?>
- <th nowrap="nowrap">TVA</th>
- <?php if (!$sf_user->isJustSupplier()): ?>
- <th nowrap="nowrap">TTC</th>
- <?php endif ?>
- <th nowrap="nowrap"><?php echo wpConfig::getAdditionalCurrencyName() ?></th>
- <th nowrap="nowrap">Rayon / Famille <?php echo sort_links($sf_request, 'category', 'kataoProduct/index') ?></th>
- <th nowrap="nowrap">Fournisseur <?php echo sort_links($sf_request, 'supplier', 'kataoProduct/index') ?></th>
- <th nowrap="nowrap" width="1%">Actions</th>
- </tr>
- <?php foreach ($katao_productList as/*(KataoProduct)*/ $katao_product): ?>
- <tr valign="top" class="line">
- <td class="center"><?php echo multiple_action_checkbox_line('katao_product', $katao_product->getId()) ?></td>
- <td><?php echo $katao_product->getName() ?></td>
- <td nowrap="nowrap" style="text-align:right!important"><?php echo $katao_product->getUnitPriceEuroStr() ?></td>
- <?php if (!$sf_user->isJustSupplier()): ?>
- <td nowrap="nowrap" style="text-align:right!important"><?php echo $katao_product->getMarginStr() ?></td>
- <?php endif ?>
- <td nowrap="nowrap" style="text-align:right!important"><?php echo $katao_product->getTvaRateStr() ?></td>
- <?php if (!$sf_user->isJustSupplier()): ?>
- <td nowrap="nowrap" style="text-align:right!important"><?php echo $katao_product->getTotalPriceWithTaxesStr() ?></td>
- <?php endif ?>
- <td nowrap="nowrap" style="text-align:right!important"><?php echo $katao_product->getMaxSolAmount() ?></td>
- <td nowrap="nowrap"><?php echo $katao_product->getCategoryLink() ?> / <?php echo $katao_product->getFamilylink() ?></td>
- <td nowrap="nowrap"><?php echo $katao_product->getSupplierName() ?></td>
- <td nowrap="nowrap">
- <?php echo catalyz_link_to_image_tag('@katao_product_edit?id=' . $katao_product->getId(), 'actions/edit.png', array('title' => 'Modifier'), array('alt' => 'Modifier')) ?>
- <?php echo catalyz_link_to_image_tag('@katao_product_edit_presentation?id=' . $katao_product->getId(), 'actions/presentation.png', array('title' => 'Modifier la présentation'), array('alt' => 'Modifier la présentation')) ?>
- <?php if ($katao_product->isDeletable()): ?>
- <?php echo catalyz_link_to_image_tag('@katao_product_delete?id=' . $katao_product->getId(), 'actions/delete.png', array('title' => 'Supprimer', 'confirm' => 'Êtes-vous sûr de vouloir supprimer ce produit ?'), array('alt' => 'Supprimer')) ?>
- <?php endif ?>
- </td>
- </tr>
- <?php endforeach ?>
- </table>
- <?php echo pager($pager, sprintf('kataoProduct/index?sort=%s%s', $sf_request->getParameter('sort', 'name'), $sf_request->hasParameter('desc')?'&desc=on':''), 'katao_product') ?>
- <?php endif ?>
|