forked from meyersh/moodle-block_quickmail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtabs.php
29 lines (25 loc) · 818 Bytes
/
tabs.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
<?php
/**
* Tabs for Quickmail
*
* @author Mark Nielsen
* @author Charles Fulton
* @version 2.00
* @package quickmail
**/
if (empty($course)) {
print_error('Programmer error: cannot call this script without $course set');
}
if (!isset($instanceid)) {
$instanceid = 0;
}
if (empty($currenttab)) {
$currenttab = 'compose';
}
$rows = array();
$row = array();
$row[] = new tabobject('compose', "$CFG->wwwroot/blocks/quickmail/email.php?id=$course->id&instanceid=$instanceid", get_string('compose', 'block_quickmail'));
$row[] = new tabobject('history', "$CFG->wwwroot/blocks/quickmail/emaillog.php?id=$course->id&instanceid=$instanceid", get_string('history', 'block_quickmail'));
$rows[] = $row;
print_tabs($rows, $currenttab);
?>