<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

        <title><?php echo $assetSymbolText; ?> <?php echo lang('view_account_asset_record_1'); ?> - <?php echo $_SESSION['SYSCONFIG']['sysconfig_site_name']; ?></title>
        <meta name="keywords" content="" />
        <meta name="description" content="" />
        <link rel="icon" href="/favicon.ico" type="image/x-ico" />

        <link rel="stylesheet" href="<?php echo base_url('static/layui/css'); ?>/layui.css">
        <link rel="stylesheet" type="text/css" href="<?php echo base_url("static/mobile"); ?>/style/style.css" />

        <!--[if lt IE 9]>
        <script src="<?php echo base_url("static/mobile"); ?>/js/css3.js"></script>
        <script src="<?php echo base_url("static/mobile"); ?>/js/html5.js"></script>
        <![endif]-->
    </head>
    <body>

        <?php $this->load->view("mobile/header"); ?>

        <style type="text/css">
            header{ height: 50px; background: #191a1f; padding: 0px 10px; position: relative; }
            header .market_list_btn{ text-align: center; font-size: 17px; color: #d5def2; line-height: 50px; }
            header .back_btn{ display: block; position: absolute; left: 10px; top: 0px; text-align: center; font-size: 17px; color: #d5def2; line-height: 50px; padding-right: 30px; }
        </style>

        <header>
            <div class="market_list_btn"><?php echo $assetSymbolText; ?> / <?php echo $coin['coin_symbol']; ?> <?php echo lang('view_account_asset_record_3'); ?></div>
            <a class="back_btn" href="<?php echo $backUrl; ?>">
                <i class="layui-icon layui-icon-left"></i>
            </a>
            <div class="clear"></div>
        </header>

        <style type="text/css">
            .account_box{ margin: 1px 0px; }
            .account_box .page_title{ background: #191a1f; padding-left: 30px; line-height: 60px; font-size: 16px; color: #d5def2; }
            .account_box .left_box{ float: left; width: 250px; background: #191a1f; margin-top: 10px; }
            .account_box .right_box{ background: #1f2126;  }

            .account_box .right_box .asset_list{ width: 100%; }
            .account_box .right_box .asset_list td{ color: #a7b7c7; font-size: 12px; line-height: 60px; height: 60px; border-bottom: #34363f solid 1px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
            .account_box .right_box .asset_list .item_line:hover{ background: rgba(53, 124, 225, 0.21); }
            .account_box .right_box .asset_list .title_line{ background: #191a1f; }
            .account_box .right_box .asset_list .title_line td{ color: #697080; font-size: 12px; line-height: 50px; }
            .account_box .right_box .asset_list .hold{ width: 20px; }
            .account_box .right_box .asset_list .action_td{ text-align: right; }
            .account_box .right_box .asset_list .action_td .action_btn{ color: #3B97E9; font-size: 12px; cursor: pointer; margin-left: 10px; }
            .account_box .right_box .asset_list .action_td .action_btn:hover{ color: #357ce1; }
            .account_box .right_box .asset_list .action_td .action_btn.off{ cursor: not-allowed; color: #697080; }
            .account_box .right_box .asset_list .coin_icon{ width: 30px; }
            .account_box .right_box .asset_list .coin_icon .coin_icon_img{ display: block; width: 20px; height: 20px; }

            .account_box .back_link{ float: right; margin-right: 50px; }
            .account_box .back_link:hover{ color: #FFF; }

            .account_box .content_box{ min-height: 300px; border-bottom: #34363f solid 1px; }
            .account_box .page_paging_box{ padding: 50px 0px 0px 50px; }
        </style>

        <div class="account_box">
            <div class="right_box">
                <div class="content_box">
                    
                    <table class="asset_list" cellpadding="0" cellspacing="0" border="0">
                        <tr class="title_line">
                            <td class="hold"></td>
                            <td><?php echo lang('view_account_asset_record_5'); ?></td>
                            <td><?php echo lang('view_account_asset_record_6'); ?></td>
                            <td class="action_td"><?php echo lang('view_account_asset_record_7'); ?></td>
                            <td class="hold"></td>
                        </tr>

                        <?php if($recordList && count($recordList)){ foreach($recordList as $record){ ?>
                        <tr class="item_line">
                            <td class="hold"></td>
                            <td><?php echo date('m/d H:i:s', $record["asset_log_time"]); ?></td>
                            <td>
                                <?php switch($record['asset_log_action']){

                                    case 1:
                                        echo lang('view_account_asset_record_8');
                                    break;

                                    case 2:
                                        echo lang('view_account_asset_record_9');
                                    break;

                                    case 3:
                                        echo lang('view_account_asset_record_10');
                                    break;

                                    case 4:
                                        echo lang('view_account_asset_record_11');
                                    break;

                                    case 5:
                                        echo lang('view_account_asset_record_12');
                                    break;

                                    case 6:
                                        echo lang('view_account_asset_record_13');
                                    break;

                                    case 7:
                                        echo lang('view_account_asset_record_14');
                                    break;

                                    case 8:
                                        echo lang('view_account_asset_record_15');
                                    break;

                                    case 9:
                                        echo lang('view_account_asset_record_16');
                                    break;

                                } ?>
                            </td>
                            <td class="action_td"><?php echo bccomp($record["asset_log_amount"], 0) > 0 ? ('+' . $record["asset_log_amount"]) : $record["asset_log_amount"]; ?></td>
                            <td class="hold"></td>
                        </tr>
                        <?php }} ?>
                    </table>

                    <div class="page_paging_box">
                        <!-- 通用分页 -->
                        <?php
                            if($recordCount > $pageSize){
                                $this->load->view('mobile/paging');
                            }
                        ?>
                    </div>
                </div>

                <?php $this->load->view("mobile/account/account_safe_text"); ?>
            </div>
            <div class="clear"></div>
        </div>

        <?php $this->load->view("mobile/footer"); ?>

        <script src="<?php echo base_url("static"); ?>/layui/layui.js"></script>

        <script type="text/javascript">

            //当前栏目
            $('footer .navitem.asset, .asset_box .account_menu .account_menu_item.exchange').addClass('active');

            layui.use(['element', 'jquery', 'form', 'layer', 'upload', 'laydate'], function () {
                
                
            });
        </script>
    </body>
</html>
