mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-28 20:40:24 +02:00
Do not display table headers when no subforum is shown
git-svn-id: file:///svn/phpbb/trunk@3437 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -199,11 +199,11 @@ function get_forum_rules($mode, &$rules, &$forum_id)
|
||||
return;
|
||||
}
|
||||
|
||||
function make_jumpbox($action, $forum_id = false)
|
||||
function make_jumpbox($action, $forum_id = false, $extra_form_fields = array())
|
||||
{
|
||||
global $auth, $template, $user, $db, $nav_links, $phpEx;
|
||||
|
||||
$boxstring = '<input type="hidden" name="sid" value="' . $user->session_id . '" /><select name="f" onChange="if(this.options[this.selectedIndex].value != -1){ forms[\'jumpbox\'].submit() }"><option value="-1">' . $user->lang['Select_forum'] . '</option><option value="-1">-----------------</option>';
|
||||
$boxstring = '<select name="f" onChange="if(this.options[this.selectedIndex].value != -1){ forms[\'jumpbox\'].submit() }"><option value="-1">' . $user->lang['Select_forum'] . '</option><option value="-1">-----------------</option>';
|
||||
|
||||
$sql = 'SELECT forum_id, forum_name, forum_postable, left_id, right_id
|
||||
FROM ' . FORUMS_TABLE . '
|
||||
@@ -270,6 +270,12 @@ function make_jumpbox($action, $forum_id = false)
|
||||
|
||||
$boxstring .= '</select>';
|
||||
|
||||
$extra_form_fields['sid'] = $user->session_id;
|
||||
foreach ($extra_form_fields as $key => $val)
|
||||
{
|
||||
$boxstring .= '<input type="hidden" name="' . $key . '" value="' . htmlspecialchars($val) . '" />';
|
||||
}
|
||||
|
||||
$template->assign_vars(array(
|
||||
'L_GO' => $user->lang['Go'],
|
||||
'L_JUMP_TO' => $user->lang['Jump_to'],
|
||||
|
Reference in New Issue
Block a user