forked from jurajlapcak/WEBTECH2-final-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
teacher_new_test.php
146 lines (136 loc) · 5.75 KB
/
teacher_new_test.php
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<?php
session_start();
if (isset($_SESSION["username"]) && isset($_SESSION["id"])) {
$id = $_SESSION["id"];
$email = $_SESSION["username"];
} else {
header("Location: index.php?role=professor");
die();
}
?>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Testovanie</title>
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/custom-style/new-test.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="css/dashboard.css" rel="stylesheet">
<script src="https://code.jquery.com/jquery-3.6.0.min.js" crossorigin="anonymous"></script>
<script src="js/bootstrap.bundle.min.js"></script>
<script src="script/notification.js"></script>
</head>
<body>
<header class="navbar navbar-dark sticky-top bg-dark flex-md-nowrap p-0 shadow">
<a class="navbar-brand col-md-3 col-lg-2 me-0 px-3" href="index.php">Profesor</a>
<ul class="navbar-nav px-3">
<li class="nav-item text-nowrap">
<a class="nav-link" href="logout.php">Odhlásiť sa</a>
</li>
</ul>
</header>
<div class="container-fluid">
<div class="row">
<nav id="sidebarMenu" class="col-md-3 col-lg-2 d-md-block bg-light sidebar collapse">
<div class="position-sticky pt-3">
<ul class="nav flex-column">
<li class="nav-item">
<a class="nav-link " aria-current="page" href="index.php">
Domov
</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="teacher_new_test.php">
Nový test
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="teacher_detail.php">
Detaily testov
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="teacher_reports.php">
Rozdelenie úloh
</a>
</li>
</ul>
</div>
</nav>
<main class="col-md-9 ms-sm-auto col-lg-10 px-md-4">
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
<h1 class="h2">Nový test</h1>
</div>
<div>
<label for="create-test"></label>
<input type="button" id="create-test" class="btn btn-primary" value="Vytvoriť test">
</div>
<div id="target" style="display: none">
<form>
<div class="mt-3" id="question1-container">
<h2>Krátke odpovede</h2>
<?php include "otazka/question_1.php" ?>
<hr>
</div>
<div>
<input class="btn btn-dark mt-1 mb-1" type="button" value="Ďalšia otázka" id="new-question1">
</div>
<div class="mt-3" id="question2-container">
<h2>Viaceré odpovede</h2>
<?php include "otazka/question_2.php" ?>
<hr>
</div>
<div>
<input class="btn btn-dark mt-1 mb-1" type="button" value="Ďalšia otázka" id="new-question2">
</div>
<div class="mt-3" id="question3-container">
<h2>Párovanie odpovedí</h2>
<?php include "otazka/question_3.php" ?>
<hr>
</div>
<div>
<input class="btn btn-dark mt-1 mb-1" type="button" value="Ďalšia otázka" id="new-question3">
</div>
<div class="mt-3" id="question4-container">
<h2>Kreslenie</h2>
<?php include "otazka/question_4.php" ?>
<hr>
</div>
<div class="mt-3" id="question5-container">
<h2>Matematická otázka</h2>
<?php include "otazka/question_5.php" ?>
<hr>
</div>
<div>
<input class="btn btn-dark mt-1 mb-1" type="button" value="Ďalšia otázka" id="new-question5">
</div>
<div class="mt-3">
<h2>Časomiera</h2>
<?php include "partials/time_limit.php" ?>
<hr>
</div>
<div>
<input class="btn btn-dark" type="button" value="Submit" id="Submit-Test">
</div>
</form>
</div>
<div class="mt-4">
<h5 id="fetch-response" style="color: #212529"></h5>
</div>
<?php include("partials/notification-html.php") ?>
</main>
</div>
</div>
</body>
<script src="otazka/script/question_1_script.js"></script>
<script src="otazka/script/question_2_script.js"></script>
<script src="otazka/script/question_3_script.js"></script>
<script src="otazka/script/question_4_script.js"></script>
<script src='otazka/script/question_5_script.js'></script>
<script src="script/fetch_functions.js"></script>
<script src="script/create_test.js"></script>
<script src="script/submit_test.js"></script>
<script src="https://unpkg.com/mathlive/dist/mathlive.min.js"></script>
</html>