<div class="content-add01">
	<div class="heading01"><h1>Liste des membres du produit "<?php echo $katao_product->getName() ?>" de la commande simulée "<?php echo $katao_order->getNumber() ?>" du fournisseur "<?php echo $katao_order->getSupplierName() ?>" pour la période "<?php echo $katao_order->getKataoPeriod()->getName() ?>"</h1></div>
</div>

<table class="admin-sub-list">
<tr>
	<td style="border:none!important">&nbsp;</td>
	<th colspan="2" style="text-align:center!important">Quantités</th>
</tr>
<tr>
	<th>Adhérent</th>
	<th nowrap="nowrap" width="1%" style="text-align:center!important">Commandée</th>
	<th nowrap="nowrap" width="1%" style="text-align:center!important">Ajustée</th>
</tr>
<?php $total = 0 ?>
<?php $total_adjusted = 0 ?>
<?php foreach ($katao_order_product->getKataoCartProductsJoinKataoCart() as/*(KataoCartProduct)*/ $katao_cart_product): ?>
	<?php $katao_cart = $katao_cart_product->getKataoCart() ?>
	<?php $katao_member = $katao_cart->getMember() ?>
	<?php $total += $katao_cart_product->getQuantity() ?>
	<?php $total_adjusted += $katao_cart_product->getQuantityAdjusted() ?>
<tr>
 	<td>
 		<?php echo $katao_member->getFullName() ?>
 		<?php echo catalyz_link_to_image_tag('@katao_cart_pdf?id=' . $katao_cart->getId(), 'actions/pdf.png', array('title' => 'Exporter en PDF'), array('alt' => 'Exporter en PDF')) ?>
 	</td>
 	<td style="text-align:center!important"><?php echo $katao_cart_product->getQuantity() ?></td>
 	<td style="text-align:center!important"><?php echo $katao_cart_product->getQuantityAdjusted() ?></td>
</tr>
<?php endforeach ?>
<tr>
	<th style="text-align:right!important">TOTAL :</th>
	<th style="text-align:center!important"><?php echo $total ?></th>
	<th style="text-align:center!important"><?php echo $total_adjusted ?></th>
</tr>
</table>