Corrected valid until field

This commit is contained in:
Jamie Cameron
2007-07-24 04:46:34 +00:00
parent a3cd1356ba
commit bd2029940e
2 changed files with 5 additions and 5 deletions

View File

@@ -60,13 +60,13 @@ printf "<input type=radio name=other value=0 %s> $text{'no'}</td> </tr>\n",
$user[4] =~ /t|1/ ? '' : 'checked';
print "<tr> <td><b>$text{'user_until'}</b></td> <td colspan=3>\n";
if (!$user[7]) {
if (!$user[6]) {
printf "<input type=radio name=until_def value=1 %s> %s\n",
$user[7] ? '' : 'checked', $text{'user_forever'};
$user[6] ? '' : 'checked', $text{'user_forever'};
printf "<input type=radio name=until_def value=0 %s>\n",
$user[7] ? 'checked' : '';
$user[6] ? 'checked' : '';
}
print "<input name=until size=30 value='$user[7]'></td> </tr>\n";
print "<input name=until size=30 value='$user[6]'></td> </tr>\n";
print "</table></td></tr></table>\n";
print "<table width=100%><tr>\n";

View File

@@ -24,7 +24,7 @@ foreach $u (sort { $a->[0] cmp $b->[0] } @{$s->{'data'}}) {
push(@cols, $u->[5] ? $text{'yes'} : $text{'no'});
push(@cols, $u->[2] =~ /t|1/ ? $text{'yes'} : $text{'no'});
push(@cols, $u->[4] =~ /t|1/ ? $text{'yes'} : $text{'no'});
push(@cols, $u->[7] ? &html_escape($u->[7])
push(@cols, $u->[6] ? &html_escape($u->[6])
: $text{'user_forever'});
print &ui_checked_columns_row(\@cols, undef, "d", $u->[0]);
}