{include file="public/mall_top" /} 
{include file="public/mall_header" /}

<link rel="stylesheet" href="{$Think.config.url_domain_root}static/home/css/member.css">
<div class="dsm-container">
    {include file="public/member_left" /}
    <div class="right-layout">
        <div class="tabmenu">
            {include file="public/member_items" /}
            <a class="dsm-btn dsm-btn-orange" title="在线充值" href="{:url('/home/predeposit/recharge_add')}"> <i class="icon-shield"></i> 在线充值 </a>
        </div>




        <div class="alert"><span class="mr30">{$Think.lang.predeposit_pricetype_available}{$Think.lang.ds_colon}<strong class="mr5 red" style="font-size: 18px;"><?php echo$member_info['available_predeposit']; ?></strong>{$Think.lang.currency_zh}</span><span>{$Think.lang.predeposit_pricetype_freeze}{$Think.lang.ds_colon}<strong class="mr5 blue" style="font-size: 18px;"><?php echo$member_info['freeze_predeposit']; ?></strong>{$Think.lang.currency_zh}</span></div>
        <table class="dsm-default-table">
            <thead>
                <tr>
                    <th class="w10"></th>
                    <th class="w150 tl">{$Think.lang.predeposit_addtime}</th>
                    <th class="w150 tl">收入({$Think.lang.currency_zh})</th>
                    <th class="w150 tl">支出({$Think.lang.currency_zh})</th>
                    <th class="w150 tl">冻结({$Think.lang.currency_zh})</th>
                    <th class="tl">{$Think.lang.predeposit_log_desc}</th>
                </tr>
            </thead>
            <tbody>
                <?php  if (count($list)>0) { ?>
                <?php foreach($list as $v) { ?>
                <tr class="bd-line">
                    <td></td>
                    <td class="goods-time tl"><?php echo @date('Y-m-d H:i:s',$v['lg_add_time']);?></td>
                    <?php $availableFloat = (float) $v['lg_av_amount']; if ($availableFloat > 0) { ?>
                    <td class="tl red">+<?php echo $v['lg_av_amount']; ?></td>
                    <td class="tl green"></td>
                    <?php } elseif ($availableFloat < 0) { ?>
                    <td class="tl red"></td>
                    <td class="tl green"><?php echo $v['lg_av_amount']; ?></td>
                    <?php } else { ?>
                    <td class="tl red"></td>
                    <td class="tl green"></td>
                    <?php } ?>
                    <td class="tl blue"><?php echo floatval($v['lg_freeze_amount']) ? (floatval($v['lg_freeze_amount']) > 0 ? '+' : null ).$v['lg_freeze_amount'] : null;?></td>
                    <td class="tl"><?php echo $v['lg_desc'];?></td>
                </tr>
                <?php } ?>
                <?php } else {?>
                <tr>
                    <td colspan="20" class="norecord"><div class="warning-option"><i>&nbsp;</i><span>{$Think.lang.no_record}</span></div></td>
                </tr>
                <?php } ?>
            </tbody>
            <tfoot>
                <?php  if (count($list)>0) { ?>
                <tr>
                    <td colspan="20"><div class="pagination">{$page}</div></td>
                </tr>
                <?php } ?>
            </tfoot>
        </table>








    </div>
</div>
{include file="public/mall_server" /}
{include file="public/mall_footer" /}