-
Notifications
You must be signed in to change notification settings - Fork 1
/
AddCardSet.php
55 lines (35 loc) · 1.2 KB
/
AddCardSet.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
<?php
require_once "../config.php";
use \Tsugi\Core\LTIX;
// Retrieve the launch data if present
$LAUNCH = LTIX::requireData();
$p = $CFG->dbprefix;
$OUTPUT->header();
include("tool-header.html");
$OUTPUT->bodyStart();
if ( $USER->instructor ) {
include("menu.php");
?>
<form action="actions/AddCardSet_Submit.php" method="post">
<div class="row">
<div class="col-sm-offset-1 col-sm-8">
<h3>Create New Card Set</h3>
</div>
<div class="col-sm-offset-1 col-sm-8">
<div class="form-group">
<label class="control-label" for="CardSetName">Card Set Title</label>
<input id="CardSetName" name="CardSetName" class="form-control" required/>
</div>
<input name="CourseName" id="CourseName" type="hidden" value="<?php echo($CONTEXT->title); ?>"/>
<input class="btn btn-primary" type="submit" value="Add Card Set" />
</div>
</div>
</form>
<?php
} else {
// student so send back to index
header( 'Location: '.addSession('index.php') ) ;
}
$OUTPUT->footerStart();
include("tool-footer.html");
$OUTPUT->footerEnd();