<div class="clear">
    <ul class="tabs">
        <li><a href="index.php?fuse=clients&amp;view=ViewInvoices"><span><?php echo $this->lang('Invoices'); ?></span></a></li>
        <li class="active"><a href="index.php?fuse=clients&amp;view=ViewInvoices_Recurring"><span><?php echo $this->lang('Recurring Charges'); ?></span></a></li>
    </ul>
</div>

<div class="boxinner" style="margin-top:20px;">
    <h2><?php echo $this->lang('Recurring Charges'); ?></h2>
    <table class="ts" cellspacing="2">
        <tr class="caption">
            <td align="center"><?php echo $this->lang('Cycle'); ?></td>
            <td><?php echo $this->lang('Product Name'); ?></td>
            <td align="right"><?php echo $this->lang('Amount'); ?></td>
        </tr>
        <?php foreach ($this->recurringCharges as $recurringcharge) { ?>
        <tr>
            <td align="center"><?php echo $recurringcharge['cycle']; ?></td>
            <td><?php if ($recurringcharge['appliestoid'] > 0) {echo '<a href="index.php?fuse=clients&view=Profile_Products&packageid='.$recurringcharge['appliestoid'].'">'.$recurringcharge['subject'].'</a>';} else { echo $recurringcharge['subject'];} ?></td>
            <td align="right"><?php echo $recurringcharge['price']; ?></td>
        </tr>
        <?php } //ending foreach ?>
        <?php if (count($this->recurringCharges) == 0) { ?>
        <tr>
            <td colspan="3" align="center"><?php echo $this->lang('You do not have any recurring charges.'); ?></td>
        </tr>
        <?php } ?>
    </table>
    <div class="viewall"><a href="index.php?fuse=clients&amp;view=Profile_Products"><?php echo $this->lang("See all your products");?> &raquo;</a></div>
</div>