}
-/// 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");
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