/
createAssessment.php
157 lines (142 loc) · 5.17 KB
/
createAssessment.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
147
148
149
150
151
152
153
154
155
156
157
<?php session_start();
//$_SESSION['user'] = 'User';
?>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Create Assessment</title>
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M"
crossorigin="anonymous">
<!-- Custom styles for this template -->
<link rel="stylesheet" href="css/main.css" />
</head>
<body>
<!-- Add Nav Bar part-->
<?php include "topbar-header.php";
include "sidebar-header.php";
?>
<!-- Start main html-->
<main class="col-sm-9 ml-sm-auto col-md-10 pt-3" role="main" id="createAssessment">
<H2>Create New Assessment</H2>
<span id="alertPlaceholder"></span>
<div class="row">
<div class="col-sm-4" id="categorychoice">
Category:
</div>
<div class="col-sm-4">
<label for="date">Date:</label>
<input type="date" id="startDate">
</div>
<div class="col-sm-4">
<div class="btn-group btn-group-toggle" data-toggle="buttons">
<label class="btn btn-secondary active" id="random">
<input type="radio" name="options" id="randomInput" autocomplete="off" checked> Random
</label>
<label class="btn btn-secondary" id="selfSelect">
<input type="radio" name="options" id="selfInput" autocomplete="off"> Self Select
</label>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-10">
<div id="terms">
</div>
</div>
</div>
<div class="row">
<div class="col-sm-5">
<div class="card" id="studentAssignments" style="display: none">
<div class="card-header">
Student Assignments
</div>
<div class="card-body">
<table class="table table-striped" id="studentTable">
</table>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col">
<button type="submit" class="btn btn-primary" id="submit">Create</button>
</div>
</div>
<!-- Table Part-->
<!-- <div class="table-responsive">
<table id="word_table" class="table table-striped table-bordered">
<thead>
<tr>
<th></th>
<th>Word</th>
<th>Definition</th>
</tr>
</thead>
<tbody id = "t_body"></tbody>
</table>
<div class= "messages" id="instructions"></div>
<div class="table-responsive">
<table id="assessment_table" class="table table-striped table-bordered">
<tr>
<th>Assessment ID</th>
<th>Start Date</th>
<th>End Date</th>
<th>Category and Level</th>
</tr>
<tr><td>Test</td></tr>
</table>
<p class="Buttons">
<button class = " btn btn-primary" id='addRow'>Add Assessment</button>
<button class = " btn btn-primary" id="save">Save Assessment</button>
</p>
</div> -->
<br />
<br />
<H2> List of Current Assessments</H2>
<div class="table-responsive">
<table id="assess_table" class="table table-striped table-bordered">
<thead>
<tr>
<th>Assessment ID</th>
<th>Start Date</th>
<th>End Date</th>
<th>Category And Level</th>
<th></th>
</tr>
</thead>
<tbody id = "t_body2"></tbody>
</table>
</div>
</main>
</div>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS Code from bootstrap site -->
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4"
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1"
crossorigin="anonymous"></script>
<script src="https://code.jquery.com/qunit/qunit-2.4.1.js"></script>
<script>
if (typeof ($.fn.modal) === 'undefined') {
document.write('<script src="js/bootstrap.min.js"><\/script>')
}
</script>
<script>
window.jQuery || document.write('<script src="js/jquery-3.2.1.min.js"><\/script>');
</script>
<div id="bootstrapCssTest" class="hidden"></div>
<script>
$(function () {
if ($('#bootstrapCssTest').is(':visible')) {
$("head").prepend('<link rel="stylesheet" href="css/bootstrap.min.css">');
}
});
</script>
<script src="js/createAssessment.js"></script>
</body>
</html>