Fixed up some tabs names

This commit is contained in:
moodler
2006-03-30 07:45:40 +00:00
parent 0f2178550e
commit 4c2dab47a0
2 changed files with 7 additions and 4 deletions
+3
View File
@@ -117,6 +117,9 @@
/// Print the tabs
$currenttab = 'add';
if ($rid) {
$editentry = true; //used in tabs
}
include('tabs.php');
+4 -4
View File
@@ -32,16 +32,16 @@
$inactive = NULL;
$row = array();
$row[] = new tabobject('list', $CFG->wwwroot.'/mod/data/view.php?d='.$data->id, get_string('browse','data'), '', true);
$row[] = new tabobject('list', $CFG->wwwroot.'/mod/data/view.php?d='.$data->id, get_string('list','data'), '', true);
if (isset($record)) {
$row[] = new tabobject('single', $CFG->wwwroot.'/mod/data/view.php?d='.$data->id.'&rid='.$record->id, get_string('detail','data'), '', true);
$row[] = new tabobject('single', $CFG->wwwroot.'/mod/data/view.php?d='.$data->id.'&rid='.$record->id, get_string('single','data'), '', true);
} else {
$row[] = new tabobject('single', $CFG->wwwroot.'/mod/data/view.php?d='.$data->id.'&mode=single', get_string('detail','data'), '', true);
$row[] = new tabobject('single', $CFG->wwwroot.'/mod/data/view.php?d='.$data->id.'&mode=single', get_string('single','data'), '', true);
}
if (isteacher($course->id) or ($data->participants == DATA_STUDENTS_ONLY) or ($data->participants == DATA_TEACHERS_AND_STUDENTS)){
$addstring = empty($rid) ? get_string('add', 'data') : get_string('editentry', 'data');
$addstring = empty($editentry) ? get_string('add', 'data') : get_string('editentry', 'data');
$row[] = new tabobject('add', $CFG->wwwroot.'/mod/data/add.php?d='.$data->id, $addstring, '', true);
}
if (isteacher($course->id)) {