diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-10-08 21:01:25 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-10-08 21:01:25 +0000 |
commit | 2c16ed72489c37102158d5f5038049dce401cf26 (patch) | |
tree | 76ba9a392f6b006b22ed20a726cea45b81aadc2c /phpBB/admin | |
parent | 1d0e4ee436cf7ca5790d83aac11ed9cf90a4ccda (diff) | |
download | forums-2c16ed72489c37102158d5f5038049dce401cf26.tar forums-2c16ed72489c37102158d5f5038049dce401cf26.tar.gz forums-2c16ed72489c37102158d5f5038049dce401cf26.tar.bz2 forums-2c16ed72489c37102158d5f5038049dce401cf26.tar.xz forums-2c16ed72489c37102158d5f5038049dce401cf26.zip |
Minor changes to select box
git-svn-id: file:///svn/phpbb/trunk@2944 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/admin')
-rw-r--r-- | phpBB/admin/admin_permissions.php | 4 | ||||
-rw-r--r-- | phpBB/admin/admin_viewlogs.php | 28 |
2 files changed, 15 insertions, 17 deletions
diff --git a/phpBB/admin/admin_permissions.php b/phpBB/admin/admin_permissions.php index b3f0bb7740..82b46bd108 100644 --- a/phpBB/admin/admin_permissions.php +++ b/phpBB/admin/admin_permissions.php @@ -472,7 +472,7 @@ if ( !empty($forum_id) || $mode == 'administrators' || $mode == 'supermoderators else { - $select_list = make_forum_select('f'); + $select_list = make_forum_select(); page_header($l_title); @@ -487,7 +487,7 @@ else <th align="center"><?php echo $lang['Select_a_Forum']; ?></th> </tr> <tr> - <td class="row1" align="center"> <?php echo $select_list; ?> <input type="submit" value="<?php echo $lang['Look_up_Forum']; ?>" class="mainoption" /> </td> + <td class="row1" align="center"> <select name="f"><?php echo $select_list; ?></select> <input type="submit" value="<?php echo $lang['Look_up_Forum']; ?>" class="mainoption" /> </td> </tr> </table></form> diff --git a/phpBB/admin/admin_viewlogs.php b/phpBB/admin/admin_viewlogs.php index 4fe5448bf4..a44f47dcfb 100644 --- a/phpBB/admin/admin_viewlogs.php +++ b/phpBB/admin/admin_viewlogs.php @@ -63,9 +63,16 @@ else $mode = 'admin'; } -// +if ( isset($_POST['f']) || isset($_GET['f']) ) +{ + $forum_id = ( isset($_POST['f']) ) ? $_POST['f'] : $_GET['f']; +} +else +{ + $forum_id = 0; +} + // Define some vars depending on which logs we're looking at -// $log_table_sql = ( $mode == 'admin' ) ? LOG_ADMIN_TABLE : LOG_MOD_TABLE; $l_title = ( $mode == 'admin' ) ? $lang['Admin_logs'] : $lang['Mod_logs']; $l_title_explain = ( $mode == 'admin' ) ? $lang['Admin_logs_explain'] : $lang['Mod_logs_explain']; @@ -141,19 +148,7 @@ $sort_order_options = ( $sort_dir == 'a' ) ? '<option value="a" selected="select $sort_sql = $sort_by[$sort_key] . ' ' . ( ( $sort_dir == 'd' ) ? 'DESC' : 'ASC' ); -// -// Define forum list if we're looking @ mod logs -// -$forum_box = ''; -if ( $mode == 'mod' ) -{ - include($phpbb_root_path . '/includes/functions_admin.'.$phpEx); - $forum_box = make_forum_select('f'); -} - -// // Output page -// page_header($l_title); ?> @@ -165,13 +160,16 @@ page_header($l_title); <form method="post" action="<?php echo "admin_viewlogs.$phpEx$SID&mode=$mode"; ?>"> <?php +// Define forum list if we're looking @ mod logs if ( $mode == 'mod' ) { + include($phpbb_root_path . '/includes/functions_admin.'.$phpEx); + $forum_box = make_forum_select($forum_id); ?> <table width="100%" cellpadding="1" cellspacing="1" border="0"> <tr> - <td align="right"><?php echo $lang['Select_forum']; ?>: <?php echo $forum_box; ?> <input class="liteoption" type="submit" value="<?php echo $lang['Go']; ?>" /></td> + <td align="right"><?php echo $lang['Select_forum']; ?>: <select name="f" onchange="this.form.submit()"><?php echo $forum_box; ?></select> <input class="liteoption" type="submit" value="<?php echo $lang['Go']; ?>" /></td> </tr> </table> <?php |