2006-03-01 08:43:41 +00:00
|
|
|
<?php // $Id$
|
|
|
|
/**
|
2007-03-19 17:22:46 +00:00
|
|
|
* Sets up the tabs used by the question bank editing page
|
|
|
|
*
|
|
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
|
|
|
|
* @package questionbank
|
|
|
|
*/
|
2006-03-01 08:43:41 +00:00
|
|
|
|
|
|
|
/// This file to be included so we can assume config.php has already been included.
|
|
|
|
|
|
|
|
if (!isset($currenttab)) {
|
|
|
|
$currenttab = '';
|
|
|
|
}
|
2007-08-09 21:51:09 +00:00
|
|
|
if (!isset($COURSE)) {
|
2008-05-21 07:53:23 +00:00
|
|
|
print_error('invalidcourse');
|
2006-03-01 08:43:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
$tabs = array();
|
|
|
|
$inactive = array();
|
2007-03-21 10:41:28 +00:00
|
|
|
$row = array();
|
2007-08-20 03:36:07 +00:00
|
|
|
questionbank_navigation_tabs($row, $contexts, $thispageurl->get_query_string());
|
2006-03-01 08:43:41 +00:00
|
|
|
$tabs[] = $row;
|
|
|
|
|
2007-03-21 10:41:28 +00:00
|
|
|
print_tabs($tabs, $currenttab, array());
|
2007-08-20 03:36:07 +00:00
|
|
|
|
2006-03-01 08:43:41 +00:00
|
|
|
|
|
|
|
?>
|