indexSuccess.php 5.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <div class="content-add01">
  2. <div class="heading01"><h1>Liste des produits (<?php echo $pager->getNbResults() ?>)</h1></div>
  3. </div>
  4. <div class="filter" style="margin-bottom: 0px!important">
  5. <div class="filter-left">&nbsp;</div>
  6. <div class="filter-middle">
  7. <?php echo form_tag('@katao_product_filter') ?>
  8. <?php echo select_tag('filter_supplier', options_for_select(KataoSupplierPeer::getAllSimple(), $filter_supplier, array('include_custom' => '&mdash;&nbsp;Fournisseur&nbsp;&mdash;'))) ?>
  9. <?php echo image_tag('separator02.gif', array('alt' => '')) ?>&nbsp;<?php echo select_tag('filter_product_category', options_for_select(KataoProductCategoryPeer::getAllSimple(), $filter_product_category, array('include_custom' => '&mdash;&nbsp;Rayon&nbsp;&mdash;'))) ?>
  10. <?php echo image_tag('separator02.gif', array('alt' => '')) ?>&nbsp;<?php echo select_tag('filter_product_family', options_for_select(KataoProductFamilyPeer::getAllGroupedByCategory(), $filter_product_family, array('include_custom' => '&mdash;&nbsp;Famille&nbsp;&mdash;'))) ?>
  11. <?php echo image_tag('separator02.gif', array('alt' => '')) ?>&nbsp;<?php echo select_tag('filter_product_archived', options_for_select(array(CONST_YES => 'Oui', CONST_NO => 'Non'), $filter_product_archived, array('include_custom' => '&mdash;&nbsp;Archivé&nbsp;&mdash;'))) ?>
  12. <?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>
  13. </form>
  14. </div>
  15. <div class="filter-right">&nbsp;</div>
  16. </div>
  17. <div class="filter">
  18. <div class="filter-left">&nbsp;</div>
  19. <div class="filter-middle">
  20. <?php echo form_tag('@katao_product_search') ?>
  21. Rechercher : <?php echo input_tag('search', $search, array('style' => 'width: 250px')) ?>
  22. <?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>
  23. </form>
  24. </div>
  25. <div class="filter-right">&nbsp;</div>
  26. </div>
  27. <?php if (empty($katao_productList)): ?>
  28. <p>Aucun produit.</p>
  29. <p><?php echo link_to('Ajouter un produit', '@katao_product_add', array('class' => 'add')) ?></p>
  30. <?php else : ?>
  31. <?php echo link_to('Ajouter un produit', '@katao_product_add', array('class' => 'add')) ?>
  32. <?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 ?')) ?>
  33. <?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 ?')) ?>
  34. <table class="admin-list">
  35. <tr>
  36. <th nowrap="nowrap" width="1%"><?php echo multiple_action_checkbox_all('katao_product') ?></th>
  37. <th nowrap="nowrap">Nom <?php echo sort_links($sf_request, 'name', 'kataoProduct/index') ?></th>
  38. <th nowrap="nowrap">HT <?php echo sort_links($sf_request, 'price', 'kataoProduct/index') ?></th>
  39. <?php if (!$sf_user->isJustSupplier()): ?>
  40. <th nowrap="nowrap">Marge</th>
  41. <?php endif ?>
  42. <th nowrap="nowrap">TVA</th>
  43. <?php if (!$sf_user->isJustSupplier()): ?>
  44. <th nowrap="nowrap">TTC</th>
  45. <?php endif ?>
  46. <th nowrap="nowrap"><?php echo wpConfig::getAdditionalCurrencyName() ?></th>
  47. <th nowrap="nowrap">Rayon / Famille <?php echo sort_links($sf_request, 'category', 'kataoProduct/index') ?></th>
  48. <th nowrap="nowrap">Fournisseur <?php echo sort_links($sf_request, 'supplier', 'kataoProduct/index') ?></th>
  49. <th nowrap="nowrap" width="1%">Actions</th>
  50. </tr>
  51. <?php foreach ($katao_productList as/*(KataoProduct)*/ $katao_product): ?>
  52. <tr valign="top" class="line">
  53. <td class="center"><?php echo multiple_action_checkbox_line('katao_product', $katao_product->getId()) ?></td>
  54. <td><?php echo $katao_product->getName() ?></td>
  55. <td nowrap="nowrap" style="text-align:right!important"><?php echo $katao_product->getUnitPriceEuroStr() ?></td>
  56. <?php if (!$sf_user->isJustSupplier()): ?>
  57. <td nowrap="nowrap" style="text-align:right!important"><?php echo $katao_product->getMarginStr() ?></td>
  58. <?php endif ?>
  59. <td nowrap="nowrap" style="text-align:right!important"><?php echo $katao_product->getTvaRateStr() ?></td>
  60. <?php if (!$sf_user->isJustSupplier()): ?>
  61. <td nowrap="nowrap" style="text-align:right!important"><?php echo $katao_product->getTotalPriceWithTaxesStr() ?></td>
  62. <?php endif ?>
  63. <td nowrap="nowrap" style="text-align:right!important"><?php echo $katao_product->getMaxSolAmount() ?></td>
  64. <td nowrap="nowrap"><?php echo $katao_product->getCategoryLink() ?> / <?php echo $katao_product->getFamilylink() ?></td>
  65. <td nowrap="nowrap"><?php echo $katao_product->getSupplierName() ?></td>
  66. <td nowrap="nowrap">
  67. <?php echo catalyz_link_to_image_tag('@katao_product_edit?id=' . $katao_product->getId(), 'actions/edit.png', array('title' => 'Modifier'), array('alt' => 'Modifier')) ?>
  68. <?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')) ?>
  69. <?php if ($katao_product->isDeletable()): ?>
  70. <?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')) ?>
  71. <?php endif ?>
  72. </td>
  73. </tr>
  74. <?php endforeach ?>
  75. </table>
  76. <?php echo pager($pager, sprintf('kataoProduct/index?sort=%s%s', $sf_request->getParameter('sort', 'name'), $sf_request->hasParameter('desc')?'&desc=on':''), 'katao_product') ?>
  77. <?php endif ?>