Skip to content

Commit

Permalink
fix for some of the MDL-8425 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
toyomoyo committed Feb 7, 2007
1 parent 211480c commit 60a9a6e
Show file tree
Hide file tree
Showing 8 changed files with 108 additions and 64 deletions.
10 changes: 5 additions & 5 deletions admin/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,11 @@

echo '<hr />';
print_heading(get_string('auth_common_settings', 'auth'));
echo '<table cellspacing="0" cellpadding="5" border="0" align="center">';
echo '<table cellspacing="0" cellpadding="5" border="0" style="margin-left:auto;margin-right:auto">';

// User self registration
echo "<tr valign=\"top\">\n";
echo "<td align=\"right\" nowrap=\"nowrap\">\n";
echo "<td align=\"right\" style=\"white-space:nowrap\">\n";
print_string("selfregistration", "auth");
echo ":</td>\n";
echo "<td>\n";
Expand All @@ -243,7 +243,7 @@

// Login as guest button enabled
echo "<tr valign=\"top\">\n";
echo "<td align=\"right\" nowrap=\"nowrap\">\n";
echo "<td style=\"white-space:nowrap;text-align:right\">\n";
print_string("guestloginbutton", "auth");
echo ":</td>\n";
echo "<td>\n";
Expand All @@ -256,7 +256,7 @@
/// An alternate url for the login form. It means we can use login forms that are integrated
/// into non-moodle pages
echo "<tr valign=\"top\">\n";
echo "<td algin=\"right\" nowrap=\"nowrap\">\n";
echo "<td algin=\"right\" style=\"white-space:nowrap\">\n";
print_string('alternateloginurl', 'auth');
echo "</td>\n";
echo "<td>\n";
Expand All @@ -272,7 +272,7 @@
////////////////////////////////////////////////////////////////////////////////


echo '<center><input type="submit" value="'.get_string('savechanges').'" /></center>';
echo '<div style="text-align:center"><input type="submit" value="'.get_string('savechanges').'" /></div>';
echo '</form>';
admin_externalpage_print_footer($adminroot);

Expand Down
4 changes: 3 additions & 1 deletion admin/enrol.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
print_simple_box(get_string('configenrolmentplugins', 'admin'), 'center', '700');

echo "<form $CFG->frametarget id=\"enrolmenu\" method=\"post\" action=\"enrol.php\">";
echo "<div>";
echo "<input type=\"hidden\" name=\"sesskey\" value=\"".$USER->sesskey."\" />";

$table = new stdClass();
Expand Down Expand Up @@ -97,7 +98,8 @@

print_table($table);

echo "<center><input type=\"submit\" value=\"".get_string("savechanges")."\" /></center>\n";
echo "<div style=\"text-align:center\"><input type=\"submit\" value=\"".get_string("savechanges")."\" /></div>\n";
echo "</div>";
echo "</form>";

admin_externalpage_print_footer($adminroot);
Expand Down
3 changes: 2 additions & 1 deletion admin/modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@

foreach ($modulebyname as $modulename => $module) {

$icon = "<img src=\"$CFG->modpixpath/$module->name/icon.gif\" hspace=\"10\" class=\"icon\" alt=\"\" />";
// took out hspace="\10\", because it does not validate. don't know what to replace with.
$icon = "<img src=\"$CFG->modpixpath/$module->name/icon.gif\" class=\"icon\" alt=\"\" />";

$delete = "<a href=\"modules.php?delete=$module->name&amp;sesskey=$USER->sesskey\">$strdelete</a>";

Expand Down
10 changes: 5 additions & 5 deletions admin/uploaduser.php
Original file line number Diff line number Diff line change
Expand Up @@ -374,13 +374,13 @@
$noyesoptions = array( get_string('no'), get_string('yes') );

$maxuploadsize = get_max_upload_file_size();
echo '<center>';
echo '<form method="post" enctype="multipart/form-data" action="uploaduser.php">'.
echo '<div style="text-align:center">';
echo '<form method="post" enctype="multipart/form-data" action="uploaduser.php"><div>'.
$strfile.'&nbsp;<input type="hidden" name="MAX_FILE_SIZE" value="'.$maxuploadsize.'" />'.
'<input type="hidden" name="sesskey" value="'.$USER->sesskey.'" />'.
'<input type="file" name="userfile" size="30" />';
print_heading(get_string('settings'));
echo '<table>';
echo '<table style="margin-left:auto;margin-right:auto">';
echo '<tr><td>' . get_string('passwordhandling', 'auth') . '</td><td>';
$passwordopts = array( 0 => get_string('infilefield', 'auth'),
1 => get_string('createpasswordifneeded', 'auth'),
Expand All @@ -397,8 +397,8 @@
echo '</td></tr>';
echo '</table><br />';
echo '<input type="submit" value="'.$struploadusers.'" />';
echo '</form><br />';
echo '</center>';
echo '</div></form><br />';
echo '</div>';

admin_externalpage_print_footer($adminroot);

Expand Down
9 changes: 4 additions & 5 deletions admin/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@

/// Bar of first initials

echo "<center><p align=\"center\">";
echo "<p style=\"text-align:center\">";
echo get_string("firstname")." : ";
if ($firstinitial) {
echo " <a href=\"user.php?sort=firstname&amp;dir=ASC&amp;".
Expand Down Expand Up @@ -249,7 +249,6 @@
}
}
echo "</p>";
echo "</center>";

print_paging_bar($usercount, $page, $perpage,
"user.php?sort=$sort&amp;dir=$dir&amp;perpage=$perpage&amp;firstinitial=$firstinitial&amp;lastinitial=$lastinitial&amp;search=".urlencode(stripslashes($search))."&amp;");
Expand Down Expand Up @@ -395,14 +394,14 @@
echo "</p>";
}

echo "<table class=\"searchbox\" align=\"center\" cellpadding=\"10\"><tr><td>";
echo "<form action=\"user.php\" method=\"get\">";
echo "<table class=\"searchbox\" style=\"margin-left:auto;margin-right:auto\" cellpadding=\"10\"><tr><td>";
echo "<form action=\"user.php\" method=\"get\"><fieldset class=\"invisiblefieldset\">";
echo "<input type=\"text\" name=\"search\" value=\"".s($search, true)."\" size=\"20\" />";
echo "<input type=\"submit\" value=\"$strsearch\" />";
if ($search) {
echo "<input type=\"button\" onclick=\"document.location='user.php';\" value=\"$strshowallusers\" />";
}
echo "</form>";
echo "</fieldset></form>";
echo "</td></tr></table>";

if (has_capability('moodle/user:create', $sitecontext)) {
Expand Down
Loading

0 comments on commit 60a9a6e

Please sign in to comment.