client/addons/admin/ui/_site/index.html
Jacob Schmidt 9ad0ab9820 feat: Enhance UI and functionality across multiple addons
This commit introduces several improvements to the UI and functionality of various addons, including:

- **Admin Panel:** Updated header statistics layout and added payday functionality with rank-based amounts. Enhanced styling for better user experience.
- **Bank Addon:** Improved balance display with updated styling and structure for better readability.
- **Garage Addon:** Refined vehicle and maintenance statistics display with enhanced UI elements.
- **Locker Addon:** Updated storage and item statistics layout for improved clarity and usability.
- **Organization Addon:** Enhanced organization statistics display and improved transaction handling with better sorting and formatting.
- **Store Addon:** Updated payment method selection and improved overall styling for a more cohesive look.

These changes aim to provide a more intuitive and visually appealing user experience across the platform.
2025-04-19 14:51:11 -05:00

121 lines
5.2 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Forge Admin Panel</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
<script src="script.js" defer></script>
</head>
<body>
<header>
<div class="header-content">
<h1>Admin Panel</h1>
<div class="admin-stats">
<div class="stat-item">
<div class="stat-icon">👥</div>
<div class="stat-info">
<span class="stat-label">Online Players</span>
<span class="stat-value" id="playerCount">0</span>
</div>
</div>
<div class="stat-divider"></div>
<div class="stat-item">
<div class="stat-icon">👑</div>
<div class="stat-info">
<span class="stat-label">Staff Online</span>
<span class="stat-value" id="staffCount">0</span>
</div>
</div>
</div>
</div>
</header>
<main class="container">
<div class="sections-grid">
<div class="action-sections">
<!-- Global Actions Section -->
<div class="admin-section">
<h2>Global Actions</h2>
<div class="form-group">
<label for="paydayAmount">Payday</label>
<p class="payday-description">Players will receive money based on their rank</p>
</div>
<button class="submit-btn" onclick="Payday()">Payday</button>
</div>
<!-- Give All Section -->
<div class="admin-section">
<h2>Give All Money</h2>
<div class="form-group">
<label for="giveAllAmount">Amount to Give</label>
<input type="number" id="giveAllAmount" min="0" placeholder="Enter amount to give to all players...">
</div>
<button class="submit-btn" onclick="giveAllMoney()">Give to All</button>
</div>
<!-- Message System Section -->
<div class="admin-section">
<h2>Broadcast Message</h2>
<div class="form-group">
<label for="broadcastMessage">Message</label>
<input type="text" id="broadcastMessage" placeholder="Enter message to broadcast...">
</div>
<button class="submit-btn" onclick="broadcastMessage()">Send to All</button>
</div>
</div>
<!-- Player List Section -->
<div class="admin-section player-list-section">
<div class="search-bar">
<input type="text" id="playerSearch" class="search-input" placeholder="Search players...">
<div class="filter-bar">
<button class="filter-btn active" data-filter="all">All</button>
<button class="filter-btn" data-filter="online">Online</button>
<button class="filter-btn" data-filter="staff">Staff</button>
</div>
</div>
<div class="player-list" id="playerList">
<!-- Players will be populated dynamically -->
</div>
</div>
</div>
</main>
<!-- Message Modal -->
<div id="messageModal" class="modal">
<div class="modal-content">
<div class="modal-header">
<h2>Send Message</h2>
<button class="close-modal" onclick="closeMessageModal()">&times;</button>
</div>
<div class="form-group">
<label for="messageInput">Message to <span id="messagePlayerName"></span></label>
<input type="text" id="messageInput" placeholder="Enter your message...">
</div>
<button class="submit-btn" onclick="sendPlayerMessage()">Send Message</button>
</div>
</div>
<!-- Money Modal -->
<div id="moneyModal" class="modal">
<div class="modal-content">
<div class="modal-header">
<h2>Modify Money</h2>
<button class="close-modal" onclick="closeMoneyModal()">&times;</button>
</div>
<div class="form-group">
<label for="moneyAmount">Amount</label>
<input type="number" id="moneyAmount" placeholder="Enter amount...">
</div>
<div class="player-actions">
<button class="action-btn promote-btn" onclick="giveMoney()">Give Money</button>
<button class="action-btn demote-btn" onclick="takeMoney()">Take Money</button>
</div>
</div>
</div>
</body>
</html>