OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
side_navbar_testing
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
06/17/2025 10:17:24 AM
rwxrwxr-x
📄
account.php
48.19 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
analytics.php
35.05 KB
05/19/2025 10:07:13 AM
rw-r--r--
📁
assets
-
03/06/2025 05:37:05 AM
rwxr-xr-x
📄
channel.php
35.98 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
create.php
44.27 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
dashboard.php
55.6 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
featured_channels.php
32.57 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
featured_topics.php
26.63 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
follow_dash.php
33.51 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
footer.php
1.14 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
index.php
9.56 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
main.css
1.3 KB
03/05/2025 07:59:27 AM
rw-r--r--
📄
my_collection.php
152.65 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
navbar_menu.php
1.8 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
newCompaign.php
16.1 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
newsletter.php
24.66 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
request_article.php
23.34 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
saved.php
33.64 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
search_bar.php
18.97 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
settings.php
81.52 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
sidebar.php
19.1 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
social_navbar.php
25.03 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
stream.css
13.53 KB
03/06/2025 05:19:46 AM
rw-r--r--
📄
stream.php
66.21 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
styles.css
7.59 KB
03/06/2025 05:45:03 AM
rw-r--r--
📁
updated_files
-
05/19/2025 10:07:13 AM
rwxr-xr-x
Editing: index.php
Close
<!doctype html> <?php include '../inc/validate.logged.php'; include '../inc/config.php'; include 'db.php'; include '../assets/php/function.php'; $sql = "SELECT id, list_name FROM list WHERE list_name IS NOT NULL AND list_name != '' AND user_id='$gUserId' AND active = '1'"; $result = mysqli_query($conn, $sql); $listNames = []; while ($row = mysqli_fetch_assoc($result)) { $listNames[] = $row; } ?> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Knobly Cream: Create • Reach • Measure</title> <!-- CSS and JS Libraries --> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"> <link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.10.5/font/bootstrap.min.css" rel="stylesheet"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css"> <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css"> <link rel="stylesheet" href="main.css"> <link rel="stylesheet" href="../assets/css/styles.css"> <style> #preview { border: 1px solid #ccc; padding: 10px; margin-top: 10px; } textarea { width: 100%; height: 200px; display: none; } .go-back-bar { margin-top: 1px !important; } </style> <style> .sideWithMainContainer { display: flex; flex-direction: row; gap: 10px; overflow-x: hidden; } .sideMaincontent { height: 100vh; overflow-y: scroll; padding: 30px 0; } @media (min-width: 768px) { .col-md-2 { padding: 0px !important; } } @media (max-width: 768px) { .col-md-2 { display: none !important; } } .panelContent{ height: 80% !important; overflow-y: auto !important; } </style> </head> <body class="sb-nav-fixed"> <?php include "assets/php/social_navbar.php"; ?> <div class="xpressMainConatiner" style="display: flex; flex-direction:column"> <div class="sideWithMainContainer"> <div class="col-md-2"> <? include 'assets/php/sidebar.php' ?> </div> <div id="layoutSidenav" class="col-sm-12 col-md-10 sideMaincontent"> <? include 'navbar_menu.php' ?> <div id="layoutSidenav_content"> <!-- <main class=""> --> <div id="panelContent" class="container-fluid " style=" overflow-y: auto; height: 100%;"> <div class=""> <div class="main-content"> <ol class="breadcrumb my-3"> <li class="breadcrumb-item w-100" style="display:flex; justify-content:space-between; align-items:center;"> <h4 class="mt-1">Email Sender Interface</h4> </li> </ol> <div class="content"> <form id="emailForm" action="process_emails.php" method="post"> <div class="form-group"> <label for="createCampaign">Campaign name:</label> <input type="text" class="form-control" name="createCampaign" id="createCampaign" required> </div> <div class="form-group"> <label for="subject">Subject:</label> <input type="text" class="form-control" name="subject" id="subject" required> </div> <div class="form-group"> <label for="emailBody">Mail Content:</label> <!-- "Edit Content" button placed above the preview --> <div class="mb-2"> <button type="button" id="toggleButton" class="btn btn-secondary"> Edit Content </button> </div> <textarea id="emailBody" name="emailBody" style="display: none;"> <p>Your initial preview content goes here.</p> </textarea> <div id="preview"> <p>Your initial preview content goes here.</p> </div> </div> <div class="form-group"> <label for="list_id">Select List Name:</label> <select class="form-control" name="list_id" id="list_id" required> <?php foreach ($listNames as $list) { echo "<option value='{$list['id']}'>{$list['list_name']}</option>"; } ?> </select> </div> <input type="hidden" name="action" value="newsletter" /> <button type="button" class="btn btn-primary" onclick="confirmSelection()">Send Emails</button> </form> </div> </div> </div> </div> <!-- </main> --> </div> </div> </div> <?php include 'footer.php'; ?> <?php include '../assets/php/bottom_navbar.php'; ?> </div> <script> document.addEventListener('DOMContentLoaded', function() { // Retrieve data from localStorage const newsletterContent = localStorage.getItem('newsletterContent'); const campaignName = localStorage.getItem('campaignName'); // Populate the fields if data exists if (newsletterContent) { document.getElementById('emailBody').value = newsletterContent; document.getElementById('preview').innerHTML = newsletterContent; } if (campaignName) { document.getElementById('createCampaign').value = campaignName; } // Clear the localStorage data (optional, if not needed later) localStorage.removeItem('newsletterContent'); localStorage.removeItem('campaignName'); }); </script> <script> let isPreviewVisible = true; // Toggle between textarea and preview document.getElementById('toggleButton').addEventListener('click', function() { const emailBody = document.getElementById('emailBody'); const preview = document.getElementById('preview'); if (isPreviewVisible) { // Switch to edit mode emailBody.value = preview.innerHTML; // Populate textarea with current preview content emailBody.style.display = 'block'; preview.style.display = 'none'; this.textContent = 'Show Preview'; } else { // Switch to preview mode preview.innerHTML = emailBody.value; // Update preview with textarea content emailBody.style.display = 'none'; preview.style.display = 'block'; this.textContent = 'Edit Content'; } isPreviewVisible = !isPreviewVisible; // Toggle state }); // Confirm before sending function confirmSelection() { const listDropdown = document.getElementById('list_id'); const selectedListName = listDropdown.options[listDropdown.selectedIndex].text; const confirmationMessage = "Are you sure you want to send an email to this list: " + selectedListName + "?"; if (confirm(confirmationMessage)) { document.getElementById('emailForm').submit(); } } </script> </body> </html>