68 lines
3.4 KiB
PHP
68 lines
3.4 KiB
PHP
<?php
|
|
require_once 'includes/header.php';
|
|
|
|
// Simple flag for submission status
|
|
$message = '';
|
|
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|
// In a real application, you would process and save the data here.
|
|
// For now, we'll just simulate success.
|
|
$title = htmlspecialchars($_POST['title'] ?? 'N/A');
|
|
$message = '<div class="alert alert-success">Assignment "' . $title . '" created successfully! (This is a demo - no data was saved).</div>';
|
|
}
|
|
?>
|
|
|
|
<div class="container page-content">
|
|
<div class="row">
|
|
<div class="col-lg-8 mx-auto">
|
|
<h1 class="mb-4">Create New Assignment</h1>
|
|
|
|
<?php if ($message) echo $message; ?>
|
|
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<form action="create_assignment.php" method="POST">
|
|
<div class="mb-3">
|
|
<label for="title" class="form-label">Assignment Title</label>
|
|
<input type="text" class="form-control" id="title" name="title" required>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="description" class="form-label">Description</label>
|
|
<textarea class="form-control" id="description" name="description" rows="5" required></textarea>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="due_date" class="form-label">Due Date</label>
|
|
<input type="date" class="form-control" id="due_date" name="due_date" required>
|
|
</div>
|
|
<fieldset class="mb-4">
|
|
<legend class="form-label h6">AI Detection Level</legend>
|
|
<div class="form-check">
|
|
<input class="form-check-input" type="radio" name="ai_level" id="ai_standard" value="standard" checked>
|
|
<label class="form-check-label" for="ai_standard">
|
|
Standard <small class="text-muted">(Basic plagiarism and AI check)</small>
|
|
</label>
|
|
</div>
|
|
<div class="form-check">
|
|
<input class="form-check-input" type="radio" name="ai_level" id="ai_strict" value="strict">
|
|
<label class="form-check-label" for="ai_strict">
|
|
Strict <small class="text-muted">(In-depth analysis and stylometry)</small>
|
|
</label>
|
|
</div>
|
|
<div class="form-check">
|
|
<input class="form-check-input" type="radio" name="ai_level" id="ai_paranoid" value="paranoid">
|
|
<label class="form-check-label" for="ai_paranoid">
|
|
Paranoid <small class="text-muted">(Real-time monitoring and forensic analysis)</small>
|
|
</label>
|
|
</div>
|
|
</fieldset>
|
|
<div class="text-center">
|
|
<button type="submit" class="btn btn-primary btn-lg">Create Assignment</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<?php require_once 'includes/footer.php'; ?>
|