From aae2743a3a1243dd6e5048ebff26820af17637af Mon Sep 17 00:00:00 2001 From: stronk7 Date: Fri, 23 Feb 2007 00:29:24 +0000 Subject: [PATCH] Now the "common settings" form in admin/auth looks like one standard admin form. Merged from MOODLE_18_STABLE --- admin/auth.php | 87 ++++++++++++++++++++++---------------------------- 1 file changed, 38 insertions(+), 49 deletions(-) diff --git a/admin/auth.php b/admin/auth.php index 8e0c9ec659..19edb791a9 100644 --- a/admin/auth.php +++ b/admin/auth.php @@ -251,69 +251,58 @@ $guestoptions[0] = get_string("hide"); $guestoptions[1] = get_string("show"); echo '
'; -print_heading(get_string('auth_common_settings', 'auth')); - -echo '
frametarget.' id="authmenu" method="post" action="auth.php">'; -echo '
'; -echo '
'; -echo ''; +echo 'frametarget.' id="adminsettings" method="post" action="auth.php">'; +echo '
'; +print_heading(get_string('auth_common_settings', 'auth')); +echo ''; +echo ''; +echo '
'; +##echo '
'; // User self registration -echo "\n"; -echo "\n"; -echo "\n"; -echo "\n"; +echo '
' . get_string("selfregistration_help", "auth") . '
'; +echo ''; // Login as guest button enabled -echo "\n"; -echo "\n"; -echo "\n"; -echo "\n"; +echo '
' . get_string("showguestlogin", "auth") . '
'; +echo ''; /// An alternate url for the login form. It means we can use login forms that are integrated /// into non-moodle pages -echo "\n"; -echo "\n"; -echo "\n"; -echo "\n"; -echo "\n"; - -echo "\n"; -echo "\n"; -echo "\n"; -echo "\n"; -echo "\n"; +echo '
' . get_string("authinstructions", "auth") . '
'; +echo ''; -echo "
\n\n"; +echo '
'; +echo ''; choose_from_menu($registrationauths, "register", $CFG->registerauth, ""); -echo "
\n"; -print_string("selfregistration_help", "auth"); -echo "
\n\n"; +echo '
'; +echo ''; choose_from_menu($guestoptions, "guestloginbutton", $CFG->guestloginbutton, ""); -echo "
\n"; -print_string("showguestlogin","auth"); -echo "
\n\n"; -echo '\n"; -echo "\n"; -print_string('alternatelogin', 'auth', htmlspecialchars($CFG->wwwroot.'/login/index.php')); -echo "
\n\n"; +echo '
'; +echo ''; +echo '\n"; +echo '
' . get_string("alternatelogin", "auth", htmlspecialchars($CFG->wwwroot.'/login/index.php')) . '
'; +echo '
'; + +/// Instructions about login/password +/// to be showed to users +echo '
'; +echo ''; echo '\n"; -echo "
\n"; -print_string('authinstructions', 'auth'); -echo "
\n"; +echo ''; //////////////////////////////////////////////////////////////////////////////// - -echo '
'; +echo '
'; +echo ''; echo '
'; admin_externalpage_print_footer($adminroot); -- 2.39.5