mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
More clean ups
This commit is contained in:
parent
05c195931c
commit
440eb0d79d
4 changed files with 47 additions and 43 deletions
|
@ -347,31 +347,31 @@
|
||||||
|
|
||||||
$stradministration = get_string("administration");
|
$stradministration = get_string("administration");
|
||||||
print_header("$site->shortname: $stradministration","$site->fullname", "$stradministration");
|
print_header("$site->shortname: $stradministration","$site->fullname", "$stradministration");
|
||||||
print_simple_box_start("center", "80%", "#FFFFFF", 20);
|
print_simple_box_start("center", "90%", "$THEME->cellcontent2", 20);
|
||||||
print_heading($stradministration);
|
print_heading($stradministration);
|
||||||
|
|
||||||
$table->align = array ("right", "left");
|
$table->align = array ("right", "left");
|
||||||
$table->data[] = array("<a href=\"../course/index.php?edit=on\">".get_string("courses")."</a>",
|
$table->data[] = array("<b><a href=\"config.php\">".get_string("configvariables")."</a></b>",
|
||||||
"<font size=-1>".get_string("adminhelpcourses"));
|
get_string("adminhelpconfiguration"));
|
||||||
$table->data[] = array("<a href=\"users.php\">".get_string("users")."</a>",
|
$table->data[] = array("<b><a href=\"site.php\">".get_string("sitesettings")."</a></b>",
|
||||||
"<font size=-1>".get_string("adminhelpusers"));
|
get_string("adminhelpsitesettings"));
|
||||||
$table->data[] = array("<a href=\"config.php\">".get_string("configvariables")."</a>",
|
$table->data[] = array("<b><a href=\"../course/index.php?edit=on\">".get_string("courses")."</a></b>",
|
||||||
"<font size=-1>".get_string("adminhelpconfiguration"));
|
get_string("adminhelpcourses"));
|
||||||
$table->data[] = array("<a href=\"site.php\">".get_string("sitesettings")."</a>",
|
$table->data[] = array("<b><a href=\"users.php\">".get_string("users")."</a></b>",
|
||||||
"<font size=-1>".get_string("adminhelpsitesettings"));
|
get_string("adminhelpusers"));
|
||||||
$table->data[] = array("<a href=\"../files/index.php?id=$site->id\">".get_string("sitefiles")."</a>",
|
$table->data[] = array("<b><a href=\"../theme/index.php\">".get_string("themes")."</a></b>",
|
||||||
"<font size=-1>".get_string("adminhelpsitefiles"));
|
get_string("adminhelpthemes"));
|
||||||
$table->data[] = array("<a href=\"../theme/index.php\">".get_string("themes")."</a>",
|
$table->data[] = array("<b><a href=\"lang.php\">".get_string("language")."</a></b>",
|
||||||
"<font size=-1>".get_string("adminhelpthemes"));
|
get_string("adminhelplanguage"));
|
||||||
$table->data[] = array("<a href=\"lang.php\">".get_string("language")."</a>",
|
$table->data[] = array("<b><a href=\"modules.php\">".get_string("managemodules")."</a></b>",
|
||||||
"<font size=-1>".get_string("adminhelplanguage"));
|
get_string("adminhelpmanagemodules"));
|
||||||
$table->data[] = array("<a href=\"modules.php\">".get_string("managemodules")."</a>",
|
$table->data[] = array("<b><a href=\"../course/log.php?id=$site->id.php\">".get_string("logs")."</a></b>",
|
||||||
"<font size=-1>".get_string("adminhelpmanagemodules"));
|
get_string("adminhelplogs"));
|
||||||
$table->data[] = array("<a href=\"../course/log.php?id=$site->id.php\">".get_string("logs")."</a>",
|
$table->data[] = array("<b><a href=\"../files/index.php?id=$site->id\">".get_string("sitefiles")."</a></b>",
|
||||||
"<font size=-1>".get_string("adminhelplogs"));
|
get_string("adminhelpsitefiles"));
|
||||||
if (file_exists("$CFG->dirroot/admin/$CFG->dbtype")) {
|
if (file_exists("$CFG->dirroot/admin/$CFG->dbtype")) {
|
||||||
$table->data[] = array("<a href=\"$CFG->dbtype/frame.php\">".get_string("managedatabase")."</a>",
|
$table->data[] = array("<b><a href=\"$CFG->dbtype/frame.php\">".get_string("managedatabase")."</a></b>",
|
||||||
"<font size=-1>".get_string("adminhelpmanagedatabase"));
|
get_string("adminhelpmanagedatabase"));
|
||||||
}
|
}
|
||||||
|
|
||||||
$table->width = "90%";
|
$table->width = "90%";
|
||||||
|
|
|
@ -18,28 +18,28 @@
|
||||||
print_header("$site->shortname: $stradministration", "$site->fullname",
|
print_header("$site->shortname: $stradministration", "$site->fullname",
|
||||||
"<a href=\"index.php\">$stradministration</a> -> $strusers");
|
"<a href=\"index.php\">$stradministration</a> -> $strusers");
|
||||||
|
|
||||||
print_simple_box_start("center", "80%", "#FFFFFF", 20);
|
|
||||||
print_heading($strusers);
|
print_heading($strusers);
|
||||||
|
|
||||||
$table->align = array ("right", "left");
|
$table->align = array ("right", "left");
|
||||||
|
|
||||||
|
$table->data[] = array("<b><a href=\"auth.php\">".get_string("authentication")."</a></b>",
|
||||||
|
get_string("adminhelpauthentication"));
|
||||||
|
|
||||||
if ($CFG->auth == "email" || $CFG->auth == "none" || $CFG->auth == "manual"){
|
if ($CFG->auth == "email" || $CFG->auth == "none" || $CFG->auth == "manual"){
|
||||||
$table->data[] = array("<a href=\"$CFG->wwwroot/$CFG->admin/user.php?newuser=true\">".get_string("addnewuser")."</a>",
|
$table->data[] = array("<b><a href=\"$CFG->wwwroot/$CFG->admin/user.php?newuser=true\">".get_string("addnewuser")."</a></b>",
|
||||||
"<font size=-1>".get_string("adminhelpaddnewuser"));
|
get_string("adminhelpaddnewuser"));
|
||||||
}
|
}
|
||||||
$table->data[] = array("<a href=\"user.php\">".get_string("edituser")."</a>",
|
$table->data[] = array("<b><a href=\"user.php\">".get_string("edituser")."</a></b>",
|
||||||
"<font size=-1>".get_string("adminhelpedituser"));
|
get_string("adminhelpedituser"));
|
||||||
$table->data[] = array("<a href=\"admin.php\">".get_string("assignadmins")."</a>",
|
$table->data[] = array("<b><a href=\"admin.php\">".get_string("assignadmins")."</a></b>",
|
||||||
"<font size=-1>".get_string("adminhelpassignadmins"));
|
get_string("adminhelpassignadmins"));
|
||||||
$table->data[] = array("<a href=\"creators.php\">".get_string("assigncreators")."</a>",
|
$table->data[] = array("<b><a href=\"creators.php\">".get_string("assigncreators")."</a></b>",
|
||||||
"<font size=-1>".get_string("adminhelpassigncreators"));
|
get_string("adminhelpassigncreators"));
|
||||||
$table->data[] = array("<a href=\"auth.php\">".get_string("authentication")."</a>",
|
$table->data[] = array("<b><a href=\"../course/index.php?edit=on\">".get_string("assignteachers")."</a></b>",
|
||||||
"<font size=-1>".get_string("adminhelpauthentication"));
|
get_string("adminhelpassignteachers")." <img src=\"../pix/t/user.gif\" height=11 width=11>");
|
||||||
|
|
||||||
print_table($table);
|
print_table($table);
|
||||||
|
|
||||||
print_simple_box_end();
|
|
||||||
|
|
||||||
print_footer($site);
|
print_footer($site);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -692,6 +692,12 @@ function print_admin_links ($siteid, $width=180) {
|
||||||
$icon = "<img src=\"$CFG->wwwroot/theme/$CFG->theme/pix/i/admin.gif\" height=16 width=16 alt=\"\">";
|
$icon = "<img src=\"$CFG->wwwroot/theme/$CFG->theme/pix/i/admin.gif\" height=16 width=16 alt=\"\">";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isadmin()) {
|
||||||
|
$moddata[]="<a href=\"$CFG->wwwroot/$CFG->admin/config.php\">".get_string("configvariables")."</a>";
|
||||||
|
$modicon[]=$icon;
|
||||||
|
$moddata[]="<a href=\"$CFG->wwwroot/$CFG->admin/site.php\">".get_string("sitesettings")."</a>";
|
||||||
|
$modicon[]=$icon;
|
||||||
|
}
|
||||||
if (iscreator()) {
|
if (iscreator()) {
|
||||||
$moddata[]="<a href=\"$CFG->wwwroot/course/index.php?edit=on\">".get_string("courses")."</a>";
|
$moddata[]="<a href=\"$CFG->wwwroot/course/index.php?edit=on\">".get_string("courses")."</a>";
|
||||||
$modicon[]=$icon;
|
$modicon[]=$icon;
|
||||||
|
@ -700,12 +706,6 @@ function print_admin_links ($siteid, $width=180) {
|
||||||
if (isadmin()) {
|
if (isadmin()) {
|
||||||
$moddata[]="<a href=\"$CFG->wwwroot/$CFG->admin/users.php\">".get_string("users")."</a>";
|
$moddata[]="<a href=\"$CFG->wwwroot/$CFG->admin/users.php\">".get_string("users")."</a>";
|
||||||
$modicon[]=$icon;
|
$modicon[]=$icon;
|
||||||
$moddata[]="<a href=\"$CFG->wwwroot/$CFG->admin/config.php\">".get_string("configvariables")."</a>";
|
|
||||||
$modicon[]=$icon;
|
|
||||||
$moddata[]="<a href=\"$CFG->wwwroot/$CFG->admin/site.php\">".get_string("sitesettings")."</a>";
|
|
||||||
$modicon[]=$icon;
|
|
||||||
$moddata[]="<a href=\"$CFG->wwwroot/files/index.php?id=$siteid\">".get_string("sitefiles")."</a>";
|
|
||||||
$modicon[]=$icon;
|
|
||||||
$moddata[]="<a href=\"$CFG->wwwroot/theme/index.php\">".get_string("themes")."</a>";
|
$moddata[]="<a href=\"$CFG->wwwroot/theme/index.php\">".get_string("themes")."</a>";
|
||||||
$modicon[]=$icon;
|
$modicon[]=$icon;
|
||||||
$moddata[]="<a href=\"$CFG->wwwroot/$CFG->admin/lang.php\">".get_string("language")."</a>";
|
$moddata[]="<a href=\"$CFG->wwwroot/$CFG->admin/lang.php\">".get_string("language")."</a>";
|
||||||
|
@ -714,6 +714,8 @@ function print_admin_links ($siteid, $width=180) {
|
||||||
$modicon[]=$icon;
|
$modicon[]=$icon;
|
||||||
$moddata[]="<a href=\"$CFG->wwwroot/course/log.php?id=$siteid\">".get_string("logs")."</a>";
|
$moddata[]="<a href=\"$CFG->wwwroot/course/log.php?id=$siteid\">".get_string("logs")."</a>";
|
||||||
$modicon[]=$icon;
|
$modicon[]=$icon;
|
||||||
|
$moddata[]="<a href=\"$CFG->wwwroot/files/index.php?id=$siteid\">".get_string("sitefiles")."</a>";
|
||||||
|
$modicon[]=$icon;
|
||||||
if (file_exists("$CFG->dirroot/$CFG->admin/$CFG->dbtype")) {
|
if (file_exists("$CFG->dirroot/$CFG->admin/$CFG->dbtype")) {
|
||||||
$moddata[]="<a href=\"$CFG->wwwroot/$CFG->admin/$CFG->dbtype/frame.php\">".get_string("managedatabase")."</a>";
|
$moddata[]="<a href=\"$CFG->wwwroot/$CFG->admin/$CFG->dbtype/frame.php\">".get_string("managedatabase")."</a>";
|
||||||
$modicon[]=$icon;
|
$modicon[]=$icon;
|
||||||
|
|
|
@ -28,14 +28,15 @@ $string['admin'] = "Admin";
|
||||||
$string['adminhelpaddnewuser'] = "To manually create a new user account";
|
$string['adminhelpaddnewuser'] = "To manually create a new user account";
|
||||||
$string['adminhelpassignadmins'] = "Admins can do anything and go anywhere in the site";
|
$string['adminhelpassignadmins'] = "Admins can do anything and go anywhere in the site";
|
||||||
$string['adminhelpassigncreators'] = "Creators can create new courses and teach in them";
|
$string['adminhelpassigncreators'] = "Creators can create new courses and teach in them";
|
||||||
$string['adminhelpauthentication'] = "Internal user accounts or external databases";
|
$string['adminhelpassignteachers'] = "Select a course then use the icon to add teachers";
|
||||||
|
$string['adminhelpauthentication'] = "You can use internal user accounts or external databases";
|
||||||
$string['adminhelpconfiguration'] = "Configure variables that affect general operation of the site";
|
$string['adminhelpconfiguration'] = "Configure variables that affect general operation of the site";
|
||||||
$string['adminhelpcourses'] = "Define courses and categories and assign people to them";
|
$string['adminhelpcourses'] = "Define courses and categories and assign people to them";
|
||||||
$string['adminhelpedituser'] = "Browse the list of user accounts and edit any of them";
|
$string['adminhelpedituser'] = "Browse the list of user accounts and edit any of them";
|
||||||
$string['adminhelplanguage'] = "For checking and editing the current language pack";
|
$string['adminhelplanguage'] = "For checking and editing the current language pack";
|
||||||
$string['adminhelplogs'] = "Browse logs of all activity on this site";
|
$string['adminhelplogs'] = "Browse logs of all activity on this site";
|
||||||
$string['adminhelpmanagemodules'] = "Manage installed modules and their settings";
|
$string['adminhelpmanagemodules'] = "Manage installed modules and their settings";
|
||||||
$string['adminhelpmanagedatabase'] = "Access your database directly";
|
$string['adminhelpmanagedatabase'] = "Access the database directly (be careful!)";
|
||||||
$string['adminhelpsitesettings'] = "Define the how the front page of the site looks";
|
$string['adminhelpsitesettings'] = "Define the how the front page of the site looks";
|
||||||
$string['adminhelpsitefiles'] = "For publishing general files or uploading external backups";
|
$string['adminhelpsitefiles'] = "For publishing general files or uploading external backups";
|
||||||
$string['adminhelpthemes'] = "Choose how the site looks";
|
$string['adminhelpthemes'] = "Choose how the site looks";
|
||||||
|
@ -58,7 +59,8 @@ $string['answer'] = "Answer";
|
||||||
$string['areyousuretorestorethis'] = "Are you sure to restore it ?";
|
$string['areyousuretorestorethis'] = "Are you sure to restore it ?";
|
||||||
$string['assessment'] = "Assessment";
|
$string['assessment'] = "Assessment";
|
||||||
$string['assignadmins'] = "Assign admins";
|
$string['assignadmins'] = "Assign admins";
|
||||||
$string['assigncreators'] = "Assign course creators";
|
$string['assigncreators'] = "Assign creators";
|
||||||
|
$string['assignstudents'] = "Assign students";
|
||||||
$string['assignteachers'] = "Assign teachers";
|
$string['assignteachers'] = "Assign teachers";
|
||||||
$string['authentication'] = "Authentication";
|
$string['authentication'] = "Authentication";
|
||||||
$string['autosubscribe'] = "Forum auto-subscribe";
|
$string['autosubscribe'] = "Forum auto-subscribe";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue