adjustProductSuccess.php 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php $katao_order = $katao_order_product->getKataoOrder() ?>
  2. <div class="content-add01">
  3. <div class="heading01"><h1>Ajustement de la commande "<?php echo $katao_order->getNumber() ?>" du fournisseur "<?php echo $katao_order->getSupplierName() ?>" pour la période "<?php echo $katao_order->getKataoPeriod()->getName() ?>"</h1></div>
  4. </div>
  5. <?php echo form_tag('@katao_order_product_adjust?id=' . $katao_order_product->getId()) ?>
  6. <?php $katao_product = $katao_order_product->getKataoProduct() ?>
  7. <h3><?php echo $katao_order_product->getProductName() ?></h3>
  8. <table class="admin-sub-list">
  9. <tr>
  10. <td style="border:none!important">Commande : <?php echo $katao_product->getOrderDetails($katao_order_product->getKataoOrder()->getKataoPeriodId(), $katao_order_product->getKataoOrder()->getKataoNodeId(), true) ?></td>
  11. <th colspan="2" style="text-align:center!important">Quantités</th>
  12. </tr>
  13. <tr>
  14. <th>Adhérent</th>
  15. <th nowrap="nowrap" width="1%">Commandée</th>
  16. <th nowrap="nowrap" width="1%">Ajustée</th>
  17. </tr>
  18. <?php foreach ($katao_order_product->getKataoCartProductsJoinKataoCart() as/*(KataoCartProduct)*/ $katao_cart_product): ?>
  19. <?php $katao_member = $katao_cart_product->getKataoCart()->getMember() ?>
  20. <tr>
  21. <td>
  22. <?php echo catalyz_link_to_image_tag('@katao_cart_pdf?id=' . $katao_cart_product->getKataoCartId(), 'actions/pdf.png', array('title' => 'Exporter la demande correspondante en PDF'), array('alt' => 'Exporter la demande correspondante en PDF', 'align' => 'top')) ?>
  23. <?php echo $katao_member->getFullName() ?>
  24. </td>
  25. <td><?php echo $katao_cart_product->getQuantity() ?></td>
  26. <td nowrap="nowrap">
  27. <?php if (!$view_mode_only): ?>
  28. <a href="javascript://" onclick="document.getElementById('quantity_<?php echo $katao_cart_product->getId() ?>').value = Math.max(0, parseInt(document.getElementById('quantity_<?php echo $katao_cart_product->getId() ?>').value) - 1)" title="Diminuer la quantité"><?php echo image_tag('minus.png', array('alt' => 'Diminuer la quantité', 'align' => 'top')) ?></a>
  29. <?php echo input_tag('quantity[' . $katao_cart_product->getId() . ']', $katao_cart_product->getQuantityAdjusted(), array('style' => 'width: 20px; text-align: center;')) ?>
  30. <a href="javascript://" onclick="document.getElementById('quantity_<?php echo $katao_cart_product->getId() ?>').value = parseInt(document.getElementById('quantity_<?php echo $katao_cart_product->getId() ?>').value) + 1" title="Augmenter la quantité"><?php echo image_tag('plus.png', array('alt' => 'Augmenter la quantité', 'align' => 'top')) ?></a>
  31. <?php else: ?>
  32. <?php echo $katao_cart_product->getQuantityAdjusted() ?>
  33. <?php endif ?>
  34. </td>
  35. </tr>
  36. <?php endforeach ?>
  37. <?php if (!$view_mode_only): ?>
  38. <tr>
  39. <td><?php echo select_tag('new_user_id', options_for_select($katao_order_product->getMembersWithoutProduct(), false, array('include_custom' => '&mdash;&nbsp;Ajouter une commande à un adhérent&nbsp;&mdash;'))) ?></td>
  40. <td>-</td>
  41. <td nowrap="nowrap">
  42. <a href="javascript://" onclick="document.getElementById('quantity_0').value = Math.max(0, parseInt(document.getElementById('quantity_0').value) - 1)" title="Diminuer la quantité"><?php echo image_tag('minus.png', array('alt' => 'Diminuer la quantité', 'align' => 'top')) ?></a>
  43. <?php echo input_tag('quantity[0]', '0', array('style' => 'width: 20px; text-align: center;')) ?>
  44. <a href="javascript://" onclick="document.getElementById('quantity_0').value = parseInt(document.getElementById('quantity_0').value) + 1" title="Augmenter la quantité"><?php echo image_tag('plus.png', array('alt' => 'Augmenter la quantité', 'align' => 'top')) ?></a>
  45. </td>
  46. </tr>
  47. <?php endif ?>
  48. </table>
  49. <br /><?php if (!$view_mode_only): ?><?php echo submit_tag('Ajuster') ?> ou <?php endif ?><a href="<?php echo url_for('kataoOrder/index') ?>">annuler</a>
  50. </form>