🐘
Editor.php
Back
📝 Php ⚡ Executable Ctrl+S: Save • Ctrl+R: Run • Ctrl+F: Find
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Site Manager</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <style> body { margin: 0; font-family: Arial, sans-serif; background: #f0f0f0; } header { background: #2f3237; padding: 15px; display: flex; gap: 15px; align-items: center; } header button { padding: 5px 5px; background: #4b5059; color: white; border: none; border-radius: 6px; cursor: pointer; font-size: 1em; transition: 0.2s; } header button:hover { background: #6a707a; } header button.viewsite { background: #2d6cdf; } header button.viewsite:hover { background: #3c7af7; } iframe { width: 100%; height: calc(100vh - 70px); border: none; background: white; } </style> </head> <body> <header> <button onclick="loadFrame('edit_bio.php')">Bio</button> <button onclick="loadFrame('edit_opening.php')">Opening</button> <!-- These MUST open the UI files, NOT the upload processors --> <button onclick="loadFrame('upload_image_ui.php')">Upload Image</button> <button onclick="loadFrame('upload_audio_ui.php')">Upload Audio</button> <button class="viewsite" onclick="window.open('index.html', '_blank')">View Site</button> </header> <iframe id="editorFrame" src=""></iframe> <script> function loadFrame(url) { document.getElementById("editorFrame").src = url; } </script> </body> </html>