-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadd_homework.php
More file actions
83 lines (73 loc) · 2.14 KB
/
add_homework.php
File metadata and controls
83 lines (73 loc) · 2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?php
session_start();
if (!isset($_SESSION["role"]) || $_SESSION["role"] !== "Tutor") {
exit("Δεν έχετε δικαίωμα πρόσβασης.");
}
?>
<style>
.popup-container {
width: 400px;
background: white;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0,0,0,0.2);
padding: 20px;
position: relative;
text-align: center;
}
.popup-header {
font-size: 18px;
font-weight: bold;
padding-bottom: 10px;
border-bottom: 1px solid #ddd;
}
.popup-content {
margin-top: 15px;
}
.popup-container input,
.popup-container textarea {
width: 100%;
padding: 8px;
margin: 5px 0;
border: 1px solid #ccc;
border-radius: 5px;
}
.popup-container button {
background-color: #007bff;
color: white;
padding: 10px 15px;
border: none;
cursor: pointer;
border-radius: 5px;
margin-top: 10px;
width: 100%;
}
.popup-container button:hover {
background-color: #0056b3;
}
.close {
position: absolute;
top: 10px;
right: 15px;
font-size: 20px;
cursor: pointer;
}
</style>
<div class="popup-container">
<span class="close" onclick="closeHomeworkPopup()">×</span>
<div class="popup-header">
Προσθήκη Νέας Εργασίας
</div>
<div class="popup-content">
<form id="homeworkForm">
<label for="stoxoi">Στόχοι:</label>
<textarea id="stoxoi" name="stoxoi" rows="3" required></textarea>
<label for="ekfonisi">Εκφώνηση:</label>
<textarea id="ekfonisi" name="ekfonisi" rows="3" required></textarea>
<label for="paradotea">Παραδοτέα:</label>
<textarea id="paradotea" name="paradotea" rows="3" required></textarea>
<label for="date">Ημερομηνία Παράδοσης:</label>
<input type="datetime-local" id="date" name="date" required>
<button type="submit">Προσθήκη</button>
</form>
</div>
</div>