mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Fixed bug #459427
git-svn-id: file:///svn/phpbb/trunk@999 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
6695be87e8
commit
7cd384c5b4
9 changed files with 39 additions and 27 deletions
|
@ -292,8 +292,12 @@ else if( isset($HTTP_GET_VARS[POST_GROUPS_URL]) || isset($HTTP_POST_VARS[POST_GR
|
||||||
|
|
||||||
$jumpbox = make_jumpbox();
|
$jumpbox = make_jumpbox();
|
||||||
$template->assign_vars(array(
|
$template->assign_vars(array(
|
||||||
"JUMPBOX_LIST" => $jumpbox,
|
"L_GO" => $lang['Go'],
|
||||||
"SELECT_NAME" => POST_FORUM_URL)
|
"L_JUMP_TO" => $lang['Jump_to'],
|
||||||
|
"L_SELECT_FORUM" => $lang['Select_forum'],
|
||||||
|
|
||||||
|
"S_JUMPBOX_LIST" => $jumpbox,
|
||||||
|
"S_JUMPBOX_ACTION" => append_sid("viewforum.$phpEx"))
|
||||||
);
|
);
|
||||||
$template->assign_var_from_handle("JUMPBOX", "jumpbox");
|
$template->assign_var_from_handle("JUMPBOX", "jumpbox");
|
||||||
|
|
||||||
|
|
|
@ -150,12 +150,12 @@ function make_jumpbox()
|
||||||
|
|
||||||
// $is_auth_ary = auth(AUTH_VIEW, AUTH_LIST_ALL, $userdata);
|
// $is_auth_ary = auth(AUTH_VIEW, AUTH_LIST_ALL, $userdata);
|
||||||
|
|
||||||
$boxstring = '<option value="-1">' . $lang['Select_forum'] . '</option>';
|
$boxstring = '<select name="' . POST_FORUM_URL . '"><option value="-1">' . $lang['Select_forum'] . '</option>';
|
||||||
for($i = 0; $i < $total_categories; $i++)
|
for($i = 0; $i < $total_categories; $i++)
|
||||||
{
|
{
|
||||||
$boxstring .= "<option value=\"-1\"> </option>\n";
|
$boxstring .= '<option value="-1"> </option>';
|
||||||
$boxstring .= "<option value=\"-1\">" . stripslashes($category_rows[$i]['cat_title']) . "</option>\n";
|
$boxstring .= '<option value="-1">' . $category_rows[$i]['cat_title'] . '</option>';
|
||||||
$boxstring .= "<option value=\"-1\">----------------</option>\n";
|
$boxstring .= '<option value="-1">----------------</option>';
|
||||||
|
|
||||||
if($total_forums)
|
if($total_forums)
|
||||||
{
|
{
|
||||||
|
@ -163,19 +163,20 @@ function make_jumpbox()
|
||||||
{
|
{
|
||||||
if( $forum_rows[$y]['cat_id'] == $category_rows[$i]['cat_id'] )
|
if( $forum_rows[$y]['cat_id'] == $category_rows[$i]['cat_id'] )
|
||||||
{
|
{
|
||||||
$boxstring .= "<option value=\"" . $forum_rows[$y]['forum_id'] . "\">" . stripslashes($forum_rows[$y]['forum_name']) . "</option>\n";
|
$boxstring .= '<option value="' . $forum_rows[$y]['forum_id'] . '">' . $forum_rows[$y]['forum_name'] . '</option>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$boxstring .= "<option value=\"-1\">-- ! No Forums ! --</option>\n";
|
$boxstring .= '<option value="-1">-- ! No Forums ! --</option>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$boxstring .= '</select>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$boxstring .= "<option value=\"-1\">-- ! No Categories ! --</option>\n";
|
$boxstring .= '<select><option value="-1">-- ! No Categories ! --</option></select>';
|
||||||
}
|
}
|
||||||
|
|
||||||
return($boxstring);
|
return($boxstring);
|
||||||
|
|
|
@ -140,8 +140,9 @@ if(($selected_members = $db->sql_numrows($result)) > 0)
|
||||||
"L_GO" => $lang['Go'],
|
"L_GO" => $lang['Go'],
|
||||||
"L_JUMP_TO" => $lang['Jump_to'],
|
"L_JUMP_TO" => $lang['Jump_to'],
|
||||||
"L_SELECT_FORUM" => $lang['Select_forum'],
|
"L_SELECT_FORUM" => $lang['Select_forum'],
|
||||||
"JUMPBOX_LIST" => $jumpbox,
|
|
||||||
"SELECT_NAME" => POST_FORUM_URL)
|
"S_JUMPBOX_LIST" => $jumpbox,
|
||||||
|
"S_JUMPBOX_ACTION" => append_sid("viewforum.$phpEx"))
|
||||||
);
|
);
|
||||||
$template->assign_var_from_handle("JUMPBOX", "jumpbox");
|
$template->assign_var_from_handle("JUMPBOX", "jumpbox");
|
||||||
|
|
||||||
|
|
|
@ -1767,9 +1767,9 @@ $template->assign_vars(array(
|
||||||
"L_GO" => $lang['Go'],
|
"L_GO" => $lang['Go'],
|
||||||
"L_JUMP_TO" => $lang['Jump_to'],
|
"L_JUMP_TO" => $lang['Jump_to'],
|
||||||
"L_SELECT_FORUM" => $lang['Select_forum'],
|
"L_SELECT_FORUM" => $lang['Select_forum'],
|
||||||
|
|
||||||
"JUMPBOX_LIST" => $jumpbox,
|
"S_JUMPBOX_LIST" => $jumpbox,
|
||||||
"SELECT_NAME" => POST_FORUM_URL)
|
"S_JUMPBOX_ACTION" => append_sid("viewforum.$phpEx"))
|
||||||
);
|
);
|
||||||
$template->assign_var_from_handle("JUMPBOX", "jumpbox");
|
$template->assign_var_from_handle("JUMPBOX", "jumpbox");
|
||||||
|
|
||||||
|
|
|
@ -61,8 +61,9 @@ if(isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']))
|
||||||
"L_GO" => $lang['Go'],
|
"L_GO" => $lang['Go'],
|
||||||
"L_JUMP_TO" => $lang['Jump_to'],
|
"L_JUMP_TO" => $lang['Jump_to'],
|
||||||
"L_SELECT_FORUM" => $lang['Select_forum'],
|
"L_SELECT_FORUM" => $lang['Select_forum'],
|
||||||
"JUMPBOX_LIST" => $jumpbox,
|
|
||||||
"SELECT_NAME" => POST_FORUM_URL)
|
"S_JUMPBOX_LIST" => $jumpbox,
|
||||||
|
"S_JUMPBOX_ACTION" => append_sid("viewforum.$phpEx"))
|
||||||
);
|
);
|
||||||
$template->assign_var_from_handle("JUMPBOX", "jumpbox");
|
$template->assign_var_from_handle("JUMPBOX", "jumpbox");
|
||||||
|
|
||||||
|
@ -222,8 +223,9 @@ if(isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']))
|
||||||
"L_GO" => $lang['Go'],
|
"L_GO" => $lang['Go'],
|
||||||
"L_JUMP_TO" => $lang['Jump_to'],
|
"L_JUMP_TO" => $lang['Jump_to'],
|
||||||
"L_SELECT_FORUM" => $lang['Select_forum'],
|
"L_SELECT_FORUM" => $lang['Select_forum'],
|
||||||
"JUMPBOX_LIST" => $jumpbox,
|
|
||||||
"SELECT_NAME" => POST_FORUM_URL)
|
"S_JUMPBOX_LIST" => $jumpbox,
|
||||||
|
"S_JUMPBOX_ACTION" => append_sid("viewforum.$phpEx"))
|
||||||
);
|
);
|
||||||
$template->assign_var_from_handle("JUMPBOX", "jumpbox");
|
$template->assign_var_from_handle("JUMPBOX", "jumpbox");
|
||||||
|
|
||||||
|
@ -896,8 +898,9 @@ if(isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']))
|
||||||
"L_GO" => $lang['Go'],
|
"L_GO" => $lang['Go'],
|
||||||
"L_JUMP_TO" => $lang['Jump_to'],
|
"L_JUMP_TO" => $lang['Jump_to'],
|
||||||
"L_SELECT_FORUM" => $lang['Select_forum'],
|
"L_SELECT_FORUM" => $lang['Select_forum'],
|
||||||
"JUMPBOX_LIST" => $jumpbox,
|
|
||||||
"SELECT_NAME" => POST_FORUM_URL)
|
"S_JUMPBOX_LIST" => $jumpbox,
|
||||||
|
"S_JUMPBOX_ACTION" => append_sid("viewforum.$phpEx"))
|
||||||
);
|
);
|
||||||
$template->assign_var_from_handle("JUMPBOX", "jumpbox");
|
$template->assign_var_from_handle("JUMPBOX", "jumpbox");
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
<form method="post" action="{S_JUMPBOX_ACTION}"><table cellspacing="0" cellpadding="0" border="0">
|
<form method="post" action="{S_JUMPBOX_ACTION}"><table cellspacing="0" cellpadding="0" border="0">
|
||||||
<tr>
|
<tr>
|
||||||
<td nowrap="nowrap"><span class="gensmall">{L_JUMP_TO}: <select name="{SELECT_NAME}">{JUMPBOX_LIST}</select> <input type="submit" value="{L_GO}" /></span></td>
|
<td nowrap="nowrap"><span class="gensmall">{L_JUMP_TO}: {S_JUMPBOX_LIST} <input type="submit" value="{L_GO}" /></span></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table></form>
|
</table></form>
|
||||||
|
|
|
@ -322,8 +322,9 @@ $template->assign_vars(array(
|
||||||
"L_GO" => $lang['Go'],
|
"L_GO" => $lang['Go'],
|
||||||
"L_JUMP_TO" => $lang['Jump_to'],
|
"L_JUMP_TO" => $lang['Jump_to'],
|
||||||
"L_SELECT_FORUM" => $lang['Select_forum'],
|
"L_SELECT_FORUM" => $lang['Select_forum'],
|
||||||
"JUMPBOX_LIST" => $jumpbox,
|
|
||||||
"SELECT_NAME" => POST_FORUM_URL)
|
"S_JUMPBOX_LIST" => $jumpbox,
|
||||||
|
"S_JUMPBOX_ACTION" => append_sid("viewforum.$phpEx"))
|
||||||
);
|
);
|
||||||
$template->assign_var_from_handle("JUMPBOX", "jumpbox");
|
$template->assign_var_from_handle("JUMPBOX", "jumpbox");
|
||||||
|
|
||||||
|
|
|
@ -50,8 +50,9 @@ $template->assign_vars(array(
|
||||||
"L_GO" => $lang['Go'],
|
"L_GO" => $lang['Go'],
|
||||||
"L_JUMP_TO" => $lang['Jump_to'],
|
"L_JUMP_TO" => $lang['Jump_to'],
|
||||||
"L_SELECT_FORUM" => $lang['Select_forum'],
|
"L_SELECT_FORUM" => $lang['Select_forum'],
|
||||||
"JUMPBOX_LIST" => $jumpbox,
|
|
||||||
"SELECT_NAME" => POST_FORUM_URL)
|
"S_JUMPBOX_LIST" => $jumpbox,
|
||||||
|
"S_JUMPBOX_ACTION" => append_sid("viewforum.$phpEx"))
|
||||||
);
|
);
|
||||||
$template->assign_var_from_handle("JUMPBOX", "jumpbox");
|
$template->assign_var_from_handle("JUMPBOX", "jumpbox");
|
||||||
//
|
//
|
||||||
|
|
|
@ -385,8 +385,9 @@ $template->assign_vars(array(
|
||||||
"L_GO" => $lang['Go'],
|
"L_GO" => $lang['Go'],
|
||||||
"L_JUMP_TO" => $lang['Jump_to'],
|
"L_JUMP_TO" => $lang['Jump_to'],
|
||||||
"L_SELECT_FORUM" => $lang['Select_forum'],
|
"L_SELECT_FORUM" => $lang['Select_forum'],
|
||||||
"JUMPBOX_LIST" => $jumpbox,
|
|
||||||
"SELECT_NAME" => POST_FORUM_URL)
|
"S_JUMPBOX_LIST" => $jumpbox,
|
||||||
|
"S_JUMPBOX_ACTION" => append_sid("viewforum.$phpEx"))
|
||||||
);
|
);
|
||||||
$template->assign_var_from_handle("JUMPBOX", "jumpbox");
|
$template->assign_var_from_handle("JUMPBOX", "jumpbox");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue