mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-06 22:45:02 +02:00
itsy bitsy change
git-svn-id: file:///svn/phpbb/trunk@2755 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
46466285a5
commit
008a2e1687
@ -99,19 +99,15 @@ $sql = "SELECT *
|
||||
FROM " . DISALLOW_TABLE;
|
||||
$result = $db->sql_query($sql);
|
||||
|
||||
$disallow_select = '';
|
||||
if ( $row = $db->sql_fetchrow($result) )
|
||||
{
|
||||
$disallow_select = '';
|
||||
do
|
||||
{
|
||||
$disallow_select .= '<option value="' . $row['disallow_id'] . '">' . str_replace('%', '*', $row['disallow_username']) . '</option>';
|
||||
}
|
||||
while ( $row = $db->sql_fetchrow($result) );
|
||||
}
|
||||
else
|
||||
{
|
||||
$disallow_select = '<option value="">' . $lang['No_disallowed'] . '</option>';
|
||||
}
|
||||
|
||||
//
|
||||
// Output page
|
||||
@ -137,7 +133,7 @@ page_header($lang['Users']);
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="row1"><?php echo $lang['Username']; ?><br /><span class="gensmall"><?php echo $lang['Delete_disallow_explain']; ?></span></td>
|
||||
<td class="row2"><select name="disallowed_id"><?php echo $disallow_select; ?></select> <input type="submit" name="delete_name" value="<?php echo $lang['Delete']; ?>" class="liteoption" /></td>
|
||||
<td class="row2"><?php if ( $disallow_select != '' ) { ?><select name="disallowed_id"><?php echo $disallow_select; ?></select> <input type="submit" name="delete_name" value="<?php echo $lang['Delete']; ?>" class="liteoption" /><?php } else { echo $lang['No_disallowed']; } ?></td>
|
||||
</tr>
|
||||
</table></form>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user