-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmc_q.php
83 lines (72 loc) · 3.82 KB
/
mc_q.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
<?php require_once('include/top.php');
if (!isset($_SESSION['username'])) {
header('Location: login.php');
}
?>
<?php require_once('include/config.php'); ?>
<?php require_once('server.php'); ?>
<?php
$asmnt_name = $_GET['assessment_name'];
?>
</head>
<body>
<div id="wrapper">
<?php require_once('include/header.php'); ?>
<div class="container-fluid body-section">
<div class="row">
<div class="col-md-3">
<?php require_once('include/left-sidebar.php'); ?>
</div>
<div class="col-md-9">
<h1><i class="fa fa-graduation-cap" aria-hidden="true"></i> <?php echo $asmnt_name?> <small>Multiple choice</small></h1><hr>
<ol class="breadcrumb">
<li><a href="home.php"><i class="fa fa-tachometer"></i> Dashboard</a></li>
<li class="active"><i class="fa fa-folder-open"></i> Assessments</li>
</ol>
</div>
<div class="col-md-8">
<div class="row">
<form action="newquiz.php">
<input type="hidden" name="page" value="mc">
<div class="form-group">
<label for="question">Question:</label>
<input type="text" name="question_content" placeholder="Type question here" class="form-control">
<br>
<label for="answer">Type in possible options:</label>
</div>
<div class="col-lg-10">
<div class="input-group">
<span class="input-group-addon"><input value = "r1" type="radio" name="correct_input" aria-label="Radio button for following text input"></span>
<input name = "mc_1" type="text" class="form-control" aria-label="Text input with radio button" >
</div>
<label class="control-label col-md-12"></label>
<div class="input-group">
<span class="input-group-addon"><input value = "r2" type="radio" name="correct_input" aria-label="Radio button for following text input"></span>
<input name = "mc_2" type="text" class="form-control" aria-label="Text input with radio button">
</div>
<label class="control-label col-md-12"></label>
<div class="input-group">
<span class="input-group-addon"><input value = "r3" type="radio" name="correct_input" aria-label="Radio button for following text input"></span>
<input name = "mc_3" type="text" class="form-control" aria-label="Text input with radio button">
</div>
<label class="control-label col-md-12"></label>
<div class="input-group">
<span class="input-group-addon"><input value = "r4" type="radio" name="correct_input" aria-label="Radio button for following text input"></span>
<input name = "mc_4" type="text" class="form-control" aria-label="Text input with radio button">
</div>
</div>
<label class="control-label col-md-12"></label>
<div class="col-md-5">
<label for="points">Points:</label>
<input name = "points" type="text" class="form-control">
</div>
<label class="control-label col-md-12"></label>
<div class="col-md-8">
<input type="submit" value="Save Question" name="submit_mc_question" class="btn btn-primary">
<input type="hidden" name="assessment_name" value= "<?php echo $_GET['assessment_name'] ?>" >
</div>
</form>
</div>
</div>
</div>
<?php require_once('include/footer.php'); ?>