Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Management Portal</title>
- <style>
- body {
- font-family: Arial, sans-serif;
- margin: 0;
- padding: 20px;
- background-color: #f5f5f5;
- }
- .portal {
- max-width: 1200px;
- margin: 0 auto;
- background: white;
- border-radius: 10px;
- box-shadow: 0 0 20px rgba(0,0,0,0.1);
- overflow: hidden;
- }
- .header {
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- color: white;
- padding: 20px;
- text-align: center;
- }
- .content {
- display: flex;
- min-height: 500px;
- }
- .sidebar {
- width: 250px;
- background: #2c3e50;
- color: white;
- padding: 20px;
- }
- .main-content {
- flex: 1;
- padding: 20px;
- }
- .nav-item {
- padding: 10px;
- margin: 5px 0;
- cursor: pointer;
- border-radius: 5px;
- transition: background 0.3s;
- }
- .nav-item:hover {
- background: #34495e;
- }
- .nav-item.active {
- background: #3498db;
- }
- .form-group {
- margin-bottom: 15px;
- }
- label {
- display: block;
- margin-bottom: 5px;
- font-weight: bold;
- }
- input, select, textarea {
- width: 100%;
- padding: 10px;
- border: 1px solid #ddd;
- border-radius: 5px;
- }
- .btn {
- background: #3498db;
- color: white;
- padding: 10px 20px;
- border: none;
- border-radius: 5px;
- cursor: pointer;
- }
- .btn:hover {
- background: #2980b9;
- }
- .data-table {
- width: 100%;
- border-collapse: collapse;
- margin-top: 20px;
- }
- .data-table th, .data-table td {
- border: 1px solid #ddd;
- padding: 12px;
- text-align: left;
- }
- .data-table th {
- background-color: #f2f2f2;
- }
- .data-table tr:nth-child(even) {
- background-color: #f9f9f9;
- }
- </style>
- </head>
- <body>
- <div class="portal">
- <div class="header">
- <h1>Management Portal</h1>
- <p>Configure your application settings</p>
- </div>
- <div class="content">
- <div class="sidebar">
- <h3>Navigation</h3>
- <div class="nav-item active" onclick="showSection('dashboard')">Dashboard</div>
- <div class="nav-item" onclick="showSection('settings')">Settings</div>
- <div class="nav-item" onclick="showSection('users')">User Management</div>
- <div class="nav-item" onclick="showSection('analytics')">Analytics</div>
- <div class="nav-item" onclick="showSection('reports')">Reports</div>
- </div>
- <div class="main-content">
- <div id="dashboard" class="section">
- <h2>Dashboard</h2>
- <p>Welcome to your management portal. Select a section from the left menu to get started.</p>
- <div style="background: #e8f4f8; padding: 15px; border-radius: 5px; margin-top: 20px;">
- <h3>Quick Stats</h3>
- <p>Users: <strong>1,243</strong></p>
- <p>Active Sessions: <strong>87</strong></p>
- <p>System Status: <strong>Operational</strong></p>
- </div>
- </div>
- <div id="settings" class="section" style="display: none;">
- <h2>Application Settings</h2>
- <form id="settingsForm">
- <div class="form-group">
- <label for="appName">Application Name</label>
- <input type="text" id="appName" value="My Application">
- </div>
- <div class="form-group">
- <label for="theme">Theme</label>
- <select id="theme">
- <option value="light">Light</option>
- <option value="dark" selected>Dark</option>
- <option value="blue">Blue</option>
- </select>
- </div>
- <div class="form-group">
- <label for="notifications">Enable Notifications</label>
- <input type="checkbox" id="notifications" checked>
- </div>
- <div class="form-group">
- <label for="backupInterval">Backup Interval (hours)</label>
- <input type="number" id="backupInterval" value="24" min="1">
- </div>
- <button type="button" class="btn" onclick="saveSettings()">Save Settings</button>
- </form>
- </div>
- <div id="users" class="section" style="display: none;">
- <h2>User Management</h2>
- <table class="data-table">
- <thead>
- <tr>
- <th>ID</th>
- <th>Name</th>
- <th>Email</th>
- <th>Status</th>
- <th>Actions</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>1</td>
- <td>John Doe</td>
- <td>[email protected]</td>
- <td>Active</td>
- <td><button class="btn">Edit</button></td>
- </tr>
- <tr>
- <td>2</td>
- <td>Jane Smith</td>
- <td>[email protected]</td>
- <td>Active</td>
- <td><button class="btn">Edit</button></td>
- </tr>
- <tr>
- <td>3</td>
- <td>Bob Johnson</td>
- <td>[email protected]</td>
- <td>Inactive</td>
- <td><button class="btn">Edit</button></td>
- </tr>
- </tbody>
- </table>
- </div>
- <div id="analytics" class="section" style="display: none;">
- <h2>Analytics Dashboard</h2>
- <p>Analytics data would be displayed here in a real implementation.</p>
- <div style="background: #e8f4f8; padding: 15px; border-radius: 5px; margin-top: 20px;">
- <h3>Usage Statistics</h3>
- <p>Page Views: 12,430</p>
- <p>Unique Visitors: 3,245</p>
- <p>Avg. Session Duration: 4m 32s</p>
- </div>
- </div>
- <div id="reports" class="section" style="display: none;">
- <h2>Reports</h2>
- <p>Generate and download reports here.</p>
- <div style="margin-top: 20px;">
- <button class="btn">Generate Daily Report</button>
- <button class="btn">Generate Weekly Report</button>
- <button class="btn">Generate Monthly Report</button>
- </div>
- </div>
- </div>
- </div>
- </div>
- <script>
- // Navigation between sections
- function showSection(sectionId) {
- // Hide all sections
- const sections = document.querySelectorAll('.section');
- sections.forEach(section => {
- section.style.display = 'none';
- });
- // Show selected section
- document.getElementById(sectionId).style.display = 'block';
- // Update active nav item
- const navItems = document.querySelectorAll('.nav-item');
- navItems.forEach(item => {
- item.classList.remove('active');
- });
- event.target.classList.add('active');
- }
- // Save settings function
- function saveSettings() {
- const appName = document.getElementById('appName').value;
- const theme = document.getElementById('theme').value;
- const notifications = document.getElementById('notifications').checked;
- const backupInterval = document.getElementById('backupInterval').value;
- alert(`Settings saved!\nApplication: ${appName}\nTheme: ${theme}\nNotifications: ${notifications}\nBackup Interval: ${backupInterval} hours`);
- }
- // Initialize with dashboard shown
- document.addEventListener('DOMContentLoaded', function() {
- showSection('dashboard');
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment