76 lines
4.5 KiB
PHP
76 lines
4.5 KiB
PHP
<?php require_once 'includes/i18n.php'; ?>
|
|
<!DOCTYPE html>
|
|
<html lang="<?php echo $lang; ?>">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>OKX | Leading Crypto Exchange</title>
|
|
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
|
|
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
|
<style>
|
|
.logo-text { font-size: 1.8rem; font-weight: 800; color: white; letter-spacing: -1px; display: flex; align-items: center; gap: 8px; }
|
|
.logo-box { width: 32px; height: 32px; background: white; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: black; font-weight: 900; font-size: 1.2rem; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<a href="chat.php" class="floating-service" title="Customer Service">
|
|
<i class="fas fa-headset"></i>
|
|
</a>
|
|
|
|
<nav class="navbar">
|
|
<div style="display: flex; align-items: center; gap: 2rem;">
|
|
<a href="index.php" style="text-decoration: none;">
|
|
<div class="logo-text"><div class="logo-box">O</div>EXCHANGE</div>
|
|
</a>
|
|
<div class="nav-links">
|
|
<a href="index.php"><i class="fas fa-home nav-link-icon"></i><?php echo __('nav_home', '首页'); ?></a>
|
|
<a href="markets.php"><i class="fas fa-chart-line nav-link-icon"></i><?php echo __('nav_market', '行情'); ?></a>
|
|
<a href="spot.php"><i class="fas fa-coins nav-link-icon"></i><?php echo __('nav_spot', '现货交易'); ?></a>
|
|
<a href="futures.php"><i class="fas fa-file-contract nav-link-icon"></i><?php echo __('nav_futures', '合约交易'); ?></a>
|
|
<a href="convert.php"><i class="fas fa-bolt nav-link-icon"></i><?php echo __('nav_convert', '闪兑'); ?></a>
|
|
<a href="mining.php"><i class="fas fa-pickaxe nav-link-icon"></i><?php echo __('nav_mining', '挖矿'); ?></a>
|
|
<a href="profile.php"><i class="fas fa-wallet nav-link-icon"></i><?php echo __('nav_assets', '资产'); ?></a>
|
|
</div>
|
|
</div>
|
|
|
|
<div style="display: flex; gap: 1.5rem; align-items: center;">
|
|
<div class="dropdown">
|
|
<a href="#" style="color: white; display: flex; align-items: center; gap: 5px;">
|
|
<i class="fas fa-globe"></i>
|
|
<span style="font-size: 13px;"><?php echo strtoupper($lang); ?></span>
|
|
</a>
|
|
<div class="dropdown-content" style="right: 0; min-width: 120px;">
|
|
<a href="?lang=en" style="display: flex; align-items: center; gap: 10px;">
|
|
<img src="https://flagcdn.com/w20/us.png" width="20" alt="English"> English
|
|
</a>
|
|
<a href="?lang=zh" style="display: flex; align-items: center; gap: 10px;">
|
|
<img src="https://flagcdn.com/w20/cn.png" width="20" alt="Chinese"> 简体中文
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
<?php if(isset($_SESSION['user_id'])): ?>
|
|
<div class="dropdown">
|
|
<a href="#" style="color: white; display: flex; align-items: center; gap: 8px;">
|
|
<i class="fas fa-user-circle" style="font-size: 1.5rem;"></i>
|
|
<i class="fas fa-chevron-down" style="font-size: 10px;"></i>
|
|
</a>
|
|
<div class="dropdown-content user-profile-dropdown" style="right: 0;">
|
|
<div class="user-info-header">
|
|
<div style="font-weight: bold; margin-bottom: 4px;"><?php echo $_SESSION['username'] ?? 'User'; ?></div>
|
|
<div class="uid-badge">UID: <?php echo $_SESSION['uid'] ?? '------'; ?></div>
|
|
</div>
|
|
<a href="profile.php"><i class="fas fa-id-card" style="color: #4facfe;"></i> <?php echo __('nav_profile', '个人中心'); ?></a>
|
|
<a href="deposit.php"><i class="fas fa-plus-circle" style="color: #00f2fe;"></i> <?php echo __('nav_deposit', '充值'); ?></a>
|
|
<a href="logout.php" style="color: var(--danger-color);"><i class="fas fa-sign-out-alt"></i> <?php echo __('nav_logout', '退出登录'); ?></a>
|
|
</div>
|
|
</div>
|
|
<?php else: ?>
|
|
<a href="login.php" style="color: white; text-decoration: none; font-size: 14px;"><?php echo __('nav_login'); ?></a>
|
|
<a href="register.php" class="btn-primary"><?php echo __('nav_register'); ?></a>
|
|
<?php endif; ?>
|
|
</div>
|
|
</nav>
|