saved emails, gmail, hotmail start, home, landing etc

This commit is contained in:
Dr3amFury
2025-08-20 12:58:40 +02:00
parent 08a5cead74
commit 9ec1e0f9fe
17 changed files with 683 additions and 172 deletions

View File

@@ -1,37 +1,3 @@
<?php
include($_SERVER['DOCUMENT_ROOT'] . '/inc/php/header.php');
include($_SERVER['DOCUMENT_ROOT'] . '/inc/php/resources.php');
require_once($_SERVER['DOCUMENT_ROOT'] . '/db.php');
$conn = getConnection();
$languages = getLanguages();
?>
<body>
<div class="container">
<h1>AI Email Generator</h1>
<form action="process.php" method="POST">
<label for="email_input">Your Rough Email:</label>
<textarea name="email_input" id="email_input" rows="8" required></textarea>
<label for="tone">Select Tone:</label>
<select name="tone" id="tone" required>
<option value="formal">Formal</option>
<option value="casual">Casual</option>
<option value="persuasive">Persuasive</option>
</select>
<label for="language">Select Language:</label>
<select name="language" id="language" required>
<?php foreach ($languages as $language): ?>
<option value="<?= htmlspecialchars($language) ?>"><?= htmlspecialchars($language) ?></option>
<?php endforeach; ?>
</select>
<button type="submit">Generate Email</button>
<button id="darkModeBtn" type="button">Toggle Dark Mode</button>
</form>
</div>
<script src="/inc/js/theme.js"></script>
<?php include($_SERVER['DOCUMENT_ROOT'] . '/inc/php/footer.php'); ?>
header("Location: /landing.php");
exit();