</div> <div class="row"> <div class="span12"> <ul class="thumbnails"> <form action="/orders/cart" id="order-form" method="post"> <!-- This input will store the action to be performed after adding the offer to the cart--> <input type="hidden" id="after-add" name="after-add" /> <input type="hidden" id="after-add" name="PRODUCT_CATEGORY_ID" value="<?php echo $_GET['PRODUCT_CATEGORY_ID']; ?> "/> <? foreach ($headers as $_header) { echo html_build_offer_box($rows, $variants, $copies, $delivery, $_header, $_POST['MOTIVES'], true, true, $_POST['RUNS'], $_POST['VARIANT']); } ?> <!-- Address Modal --> <div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h3 id="myModalLabel">Delivery Address</h3> </div> <div class="modal-body"> <p>By providing the number of delivery addresses you make the total price much more realistic! Max. 5 Addesses. Total amount of runs: <b id="total-runs"><?php echo array_sum($_POST['RUNS']); ?> </b><br /></p>
</div> <form method="post" action="/orders/cart" enctype="multipart/form-data"> <input type="hidden" value="" name="offer-state" id="is-offer"/> <div class="row"> <div class="span6"> <ul class="unstyled"> <? $total_environment = $Cart->getProductsCount() * DELIVERY_ENVIRONMENT; $total_delivery = 0; foreach ($Cart->getProducts() as $i => $_row) { list($headers, $rows, $variants, $copies, $delivery) = html_offer_box($_row['PRODUCTS'], $Cart->deliveryDistributionAt($i)); $total_delivery += $delivery; echo html_build_offer_box($rows, $variants, $copies, $delivery, $_row['OFFER'], $_row['PRODUCTS']['MOTIVES'], false, true, $_row['PRODUCTS']['RUNS'], $_row['PRODUCTS']['VARIANT']); echo '<li class="span4"><div> </div></li>'; } ?> <li class="span4"><hr /></li> <li class="span5"> <table class="nohover" style="font-size: 15px; margin-left: 20px;"> <tr> <td style="width: 100px;">All Products: </td> <td style="width: 160px; text-align: right;"> <strong> <?php echo number_format($Cart->getTotal(), 2); ?> </strong> <?php