<?php if (!defined('IN_CONTEXT')) die('access violation error!'); ?>


<div class="art_list">
	<div class="art_list_title"><?php _e('My Account'); ?></div>
	<div class="ordernow"><input type="button" value="<?php _e('Online Saving'); ?>" class="saving_o_b" onclick="location.href='index.php?<?php echo Html::xuriquery('mod_onlinepay', 'saving'); ?>'" /></div>
	
	<div class="order_1"><?php _e('Total Saving'); ?></div><div class="order_2"><?php echo $curr_user_ext->total_saving; ?></div><div class="blankbar1"></div>
	<div class="order_1"><?php _e('Total Payment'); ?></div><div class="order_2"><?php echo $curr_user_ext->total_payment; ?></div><div class="blankbar1"></div>
	<div class="order_1"><?php _e('Balance'); ?></div><div class="order_2"><?php echo $curr_user_ext->balance; ?></div><div class="blankbar1"></div>
	<div class="order_1"><input type="button" value="<?php _e('Online Saving'); ?>" class="saving_o_b" onclick="location.href='index.php?<?php echo Html::xuriquery('mod_onlinepay', 'saving'); ?>'" /></div><div class="blankbar1"></div>
	
</div>


<div class="art_list">
	<div class="art_list_title"><?php _e('Transaction History'); ?></div>
	<b><div class="order_1"><?php _e('Time'); ?></div><div class="order_2"><?php _e('Amount'); ?></div><div class="order_3"><?php _e('Type'); ?></div><div class="order_4"><?php _e('Memo'); ?></div></b><div class="o_b1"></div>
	
    <?php
    if (sizeof($transactions) > 0) {
        $row_idx = 0;
        foreach ($transactions as $transaction) {
    ?>
	<div class="order_1"><?php echo date('Y-m-d H:i:s', $transaction->action_time); ?></div><div class="order_2"><?php echo $transaction->amount; ?></div><div class="order_3"><?php echo Toolkit::switchText($transaction->type, 
                    array('1' => __('Saving'), '2' => __('Deduction'))); ?></div><div class="order_4"><?php echo $transaction->memo; ?></div><div class="o_b"></div>
    <?php
            $row_idx = 1 - $row_idx;
        }
    } else {
    ?>
	<?php _e('No Records!'); ?>
	
    <?php
    }
    ?>

</div>

<?php
include_once(P_TPL.'/common/pager.php');
?>
