38239-vm/profile.php
2026-02-07 05:53:52 +00:00

70 lines
2.9 KiB
PHP

<?php
include_once 'config.php';
check_auth();
$user_id = $_SESSION['user_id'];
$account = get_account($user_id);
include 'header.php';
?>
<div class="container py-5">
<div class="row">
<div class="col-md-4">
<div class="glass-card p-4 bg-dark">
<div class="text-center mb-4">
<i class="bi bi-person-circle display-1 text-warning"></i>
<h4 class="mt-3 text-white"><?php echo $_SESSION['username']; ?></h4>
<span class="badge bg-warning text-dark">UID: <?php echo $account['uid']; ?></span>
</div>
<hr class="border-secondary">
<div class="d-flex justify-content-between mb-2">
<span class="text-secondary">信用分</span>
<span class="text-white"><?php echo $account['credit_score']; ?></span>
</div>
<div class="d-flex justify-content-between mb-2">
<span class="text-secondary">实名状态</span>
<span class="text-white"><?php echo $account['kyc_status']; ?></span>
</div>
</div>
</div>
<div class="col-md-8">
<div class="glass-card p-4 bg-dark mb-4">
<h5 class="text-white mb-4">资产概览</h5>
<div class="row text-center">
<div class="col-6">
<div class="text-secondary small">可用余额 (USDT)</div>
<div class="fs-3 fw-bold text-success"><?php echo number_format($account['balance'], 2); ?></div>
</div>
<div class="col-6">
<div class="text-secondary small">冻结金额 (USDT)</div>
<div class="fs-3 fw-bold text-danger"><?php echo number_format($account['frozen_balance'], 2); ?></div>
</div>
</div>
</div>
<div class="glass-card p-4 bg-dark">
<h5 class="text-white mb-4">最近交易</h5>
<div class="table-responsive">
<table class="table table-dark table-hover small">
<thead>
<tr class="text-secondary">
<th>时间</th>
<th>币种</th>
<th>类型</th>
<th>金额</th>
<th>状态</th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="5" class="text-center text-secondary py-4">暂无记录</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<?php include 'footer.php'; ?>