Tweaks for IE :-/

This commit is contained in:
moodler 2005-05-11 04:08:59 +00:00
parent c009421c08
commit 8ed1787bbf
2 changed files with 8 additions and 4 deletions

View file

@ -44,9 +44,9 @@ class block_login extends block_base {
$this->content->footer = ''; $this->content->footer = '';
$this->content->text = ''; $this->content->text = '';
if (empty($USER->loggedin)) { // Show the block if (empty($USER->loggedin) or isguest()) { // Show the block
$this->content->text .= '<form name="login" method="post" action="'.$wwwroot.'/login/index.php">'; $this->content->text .= '<form class="loginform" name="login" method="post" action="'.$wwwroot.'/login/index.php">';
$this->content->text .= '<table align="center" class="loginform">'; $this->content->text .= '<table align="center" cellpadding="2" cellspacing="0" class="logintable">';
$this->content->text .= '<tr><td class="c0 r0" align="right">'.get_string('username').':</td>'; $this->content->text .= '<tr><td class="c0 r0" align="right">'.get_string('username').':</td>';
$this->content->text .= '<td class="c1 r0"><input type="text" name="username" size="10" value="'.$username.'" /></td></tr>'; $this->content->text .= '<td class="c1 r0"><input type="text" name="username" size="10" value="'.$username.'" /></td></tr>';

View file

@ -1,3 +1,7 @@
.block_login .loginform { .block_login .logintable {
text-align:center; text-align:center;
} }
.block_login .loginform {
display:inline;
}