<div id="main_borders">
  <div id="main_inner_borders">
    <h2><strong>
      <?=$title?>
      </strong></h2>
          <? if ($this-> session-> flashdata('message')): ?>
    <div class='warning'>
      <?=$this-> session-> flashdata('message');?>
    </div>
    <? endif; ?>

    <? if ($orders) { ?>
<div id="cart_tbl">
<table cellpadding="6" cellspacing="1" class="full" border="0">
<tr>
  <th><?=$this->lang->line('order_date')?></th>
  <th style="text-align:right"><?=$this->lang->line('cart_actions')?></th>
</tr>
    <? foreach($orders as $result=>$ord): ?>
<tr>
<td><?=date("d.m.Y",mysql_to_unix($ord['date_added']))?></td>
<td style="text-align:right"><?=anchor('view_order/'.$ord['id'], $this->lang->line('view_order'));?></td>
</tr>
    <? endforeach ?>
</table>

</div>    <? } ?>
  </div>
</div>