<?php if (!isset($redirect)) { ?>
<table cellpadding="0" cellspacing="0" border="0" class="osc-tab-sum">
    <tr class="zag">
        <td><?php echo $column_image; ?></td>
        <td width="250" align="right"><?php echo $column_name; ?></td>
        <td align="center"><?php echo $column_model; ?></td>
        <td align="center"><?php echo $column_quantity; ?></td>
        <td width="45" align="center"><?php echo $column_price; ?></td>
        <td width="90" align="left"><?php echo $column_total; ?></td>
    </tr>
    <?php foreach ($products as $product) { ?>
    <tr>
        <td style="float:right;"><?php if ($product['thumb']) { ?>
              <a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" title="<?php echo $product['name']; ?>" /></a>
              <?php } ?></td>
        <td width="256" align="right">
            <a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a>
            <?php 
             if(!empty($product['option'])){ ?>
                 <ul class="osc-product-opt">
                  <?php  foreach ($product['option'] as $option) {
                       echo '<li>'. $option['name']. ' : ' .$option['value'].'</li>';
                   } ?>
                 </ul>  
             <?php } 
             if (!empty($product['reward'])) { ?>
             <ul class="osc-product-opt">
              <?php echo $product['reward']; ?>
               </ul>
            <?php } ?></td>
        <td align="center"><?php echo $product['model']; ?></td>
        <td align="center"><?php echo $product['quantity']; ?></td>
        <td width="45" align="center"><?php echo $product['price']; ?></td>
        <td width="90" align="left"><?php echo $product['total']; ?></td>
    </tr>
    <?php } ?>

    <?php foreach ($vouchers as $voucher) { ?>
    <tr>
       <td width="250" align="right"><?php echo $voucher['description']; ?></td>
       <td align="center"></td>
       <td align="center">1</td>
       <td width="45" align="center"><?php echo $voucher['amount']; ?></td>
       <td width="90" align="left"><?php echo $voucher['amount']; ?></td>
    </tr>
    <?php } ?>
</table>

<table cellpadding="0" cellspacing="0" border="0" class="osc-tab-sum-tot">
    <?php foreach ($totals as $total) { ?>
    <tr>
        <td align="left"><?php echo $total['title']; ?>:</td>
        <td width="90" align="left"><?php echo $total['text']; ?></td>
    </tr>
    <?php } ?>
</table>
<?php } else { ?>
<script type="text/javascript"><!--
location = '<?php echo $redirect; ?>';
//--></script>
<?php } ?>