Don't show tabs when creating admin user

This commit is contained in:
moodler 2006-04-16 16:49:28 +00:00
parent 9e458bb388
commit 0236ec73be

View File

@ -314,26 +314,17 @@
}
/// Print tabs at top
/// This same call is made in:
/// /user/view.php
/// /user/edit.php
/// /course/user.php
$currenttab = 'editprofile';
include('tabs.php');
$teacher = strtolower($course->teacher);
if (!isadmin()) {
$teacheronly = "(".get_string("teacheronly", "", $teacher).")";
} else {
$teacheronly = "";
}
if (isset($USER->newadminuser)) {
print_simple_box(get_string("configintroadmin", 'admin'), "center", "50%");
echo "<br />";
print_simple_box(get_string('configintroadmin', 'admin'), 'center', '50%');
echo '<br />';
} else {
/// Print tabs at top
/// This same call is made in:
/// /user/view.php
/// /user/edit.php
/// /course/user.php
$currenttab = 'editprofile';
include('tabs.php');
}
print_simple_box_start("center");
@ -344,6 +335,13 @@
echo "</center>";
}
$teacher = strtolower($course->teacher);
if (!isadmin()) {
$teacheronly = '('.get_string('teacheronly', '', $teacher).')';
} else {
$teacheronly = '';
}
include("edit.html");
if (!isadmin()) { /// Lock all the locked fields using Javascript