mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
- add missing pagination to queue/reports
- hide the close button on closed reports page - fix a JS bug in mcp/acp ban view git-svn-id: file:///svn/phpbb/trunk@5733 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
19b5f17ff8
commit
e7140d658d
6 changed files with 29 additions and 11 deletions
|
@ -12,16 +12,19 @@
|
||||||
<!--
|
<!--
|
||||||
|
|
||||||
var ban_length = new Array();
|
var ban_length = new Array();
|
||||||
|
ban_length[-1] = "";
|
||||||
<!-- BEGIN ban_length -->
|
<!-- BEGIN ban_length -->
|
||||||
ban_length['{ban_length.BAN_ID}'] = "{ban_length.LENGTH}";
|
ban_length['{ban_length.BAN_ID}'] = "{ban_length.LENGTH}";
|
||||||
<!-- END ban_length -->
|
<!-- END ban_length -->
|
||||||
|
|
||||||
var ban_reason = new Array();
|
var ban_reason = new Array();
|
||||||
|
ban_reason[-1] = "";
|
||||||
<!-- BEGIN ban_reason -->
|
<!-- BEGIN ban_reason -->
|
||||||
ban_reason['{ban_reason.BAN_ID}'] = "{ban_reason.REASON}";
|
ban_reason['{ban_reason.BAN_ID}'] = "{ban_reason.REASON}";
|
||||||
<!-- END ban_reason -->
|
<!-- END ban_reason -->
|
||||||
|
|
||||||
var ban_give_reason = new Array();
|
var ban_give_reason = new Array();
|
||||||
|
ban_give_reason[-1] = "";
|
||||||
<!-- BEGIN ban_give_reason -->
|
<!-- BEGIN ban_give_reason -->
|
||||||
ban_give_reason['{ban_give_reason.BAN_ID}'] = "{ban_give_reason.REASON}";
|
ban_give_reason['{ban_give_reason.BAN_ID}'] = "{ban_give_reason.REASON}";
|
||||||
<!-- END ban_give_reason -->
|
<!-- END ban_give_reason -->
|
||||||
|
@ -81,7 +84,7 @@
|
||||||
<!-- IF S_BANNED_OPTIONS -->
|
<!-- IF S_BANNED_OPTIONS -->
|
||||||
<dl>
|
<dl>
|
||||||
<dt><label for="unban">{L_BAN_CELL}:</label></dt>
|
<dt><label for="unban">{L_BAN_CELL}:</label></dt>
|
||||||
<dd><select id="unban" name="unban[]" multiple="multiple" size="10" style="width: 50%" onchange="display_details(this.options[this.selectedIndex].value)">{BANNED_OPTIONS}</select></dd>
|
<dd><select id="unban" name="unban[]" multiple="multiple" size="10" style="width: 50%" onchange="if (this.selectedIndex > -1) display_details(this.options[this.selectedIndex].value); else display_details(-1);">{BANNED_OPTIONS}</select></dd>
|
||||||
</dl>
|
</dl>
|
||||||
<dl>
|
<dl>
|
||||||
<dt><label for="unbanlength">{L_BAN_LENGTH}:</label></dt>
|
<dt><label for="unbanlength">{L_BAN_LENGTH}:</label></dt>
|
||||||
|
|
|
@ -288,7 +288,11 @@ class mcp_queue
|
||||||
// Now display the page
|
// Now display the page
|
||||||
$template->assign_vars(array(
|
$template->assign_vars(array(
|
||||||
'L_DISPLAY_ITEMS' => ($mode == 'unapproved_posts') ? $user->lang['DISPLAY_POSTS'] : $user->lang['DISPLAY_TOPICS'],
|
'L_DISPLAY_ITEMS' => ($mode == 'unapproved_posts') ? $user->lang['DISPLAY_POSTS'] : $user->lang['DISPLAY_TOPICS'],
|
||||||
'S_FORUM_OPTIONS' => $forum_options)
|
'S_FORUM_OPTIONS' => $forum_options,
|
||||||
|
|
||||||
|
'PAGINATION' => generate_pagination("{$phpbb_root_path}mcp.$phpEx$SID&i=$id&mode=$mode&f=$forum_id", $total, $config['topics_per_page'], $start),
|
||||||
|
'PAGE_NUMBER' => on_page($total, $config['topics_per_page'], $start),
|
||||||
|
'TOTAL' => $total)
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->tpl_name = 'mcp_queue';
|
$this->tpl_name = 'mcp_queue';
|
||||||
|
|
|
@ -291,7 +291,6 @@ class mcp_reports
|
||||||
'U_VIEW_REPORTER_PROFILE' => ($row['reporter_id'] != ANONYMOUS) ? "{$phpbb_root_path}memberlist.$phpEx$SID&mode=viewprofile&u={$row['reporter_id']}" : '',
|
'U_VIEW_REPORTER_PROFILE' => ($row['reporter_id'] != ANONYMOUS) ? "{$phpbb_root_path}memberlist.$phpEx$SID&mode=viewprofile&u={$row['reporter_id']}" : '',
|
||||||
|
|
||||||
'S_CHECKBOX' => $s_checkbox,
|
'S_CHECKBOX' => $s_checkbox,
|
||||||
'S_CLOSED' => ($mode == 'reports_closed') ? true : false,
|
|
||||||
|
|
||||||
'FORUM_NAME' => $row['forum_name'],
|
'FORUM_NAME' => $row['forum_name'],
|
||||||
'POSTER' => $poster,
|
'POSTER' => $poster,
|
||||||
|
@ -307,9 +306,12 @@ class mcp_reports
|
||||||
|
|
||||||
// Now display the page
|
// Now display the page
|
||||||
$template->assign_vars(array(
|
$template->assign_vars(array(
|
||||||
'L_DISPLAY_ITEMS' => $user->lang['DISPLAY_POSTS'],
|
'PAGINATION' => generate_pagination("{$phpbb_root_path}mcp.$phpEx$SID&i=$id&mode=$mode&f=$forum_id&t=$topic_id", $total, $config['topics_per_page'], $start),
|
||||||
'S_MCP_ACTION' => "{$phpbb_root_path}mcp.$phpEx$SID&i=$id&mode=$mode&t=0",
|
'PAGE_NUMBER' => on_page($total, $config['topics_per_page'], $start),
|
||||||
'S_FORUM_OPTIONS' => $forum_options)
|
'TOTAL' => $total,
|
||||||
|
'S_MCP_ACTION' => "{$phpbb_root_path}mcp.$phpEx$SID&i=$id&mode=$mode&t=0",
|
||||||
|
'S_FORUM_OPTIONS' => $forum_options,
|
||||||
|
'S_CLOSED' => ($mode == 'reports_closed') ? true : false)
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->tpl_name = 'mcp_reports';
|
$this->tpl_name = 'mcp_reports';
|
||||||
|
@ -488,7 +490,7 @@ function close_report($post_id_list, $mode, $action)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
meta_refresh(3, "viewforum.$phpEx$SID&f=$forum_id");
|
meta_refresh(3, "viewforum.$phpEx$SID&f=$forum_id");
|
||||||
trigger_error($user->lang[$success_msg] . '<br /><br />' . sprintf($user->lang['RETURN_FORUM'], "<a href=\"{$phpbb_root_path}viewforum.$phpEx$SID&f=" . $forum_id . '">', '</a>'));
|
trigger_error($user->lang[$success_msg] . '<br /><br />' . sprintf($user->lang['RETURN_PAGE'], "<a href=\"$redirect\">", '</a>'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -477,7 +477,7 @@ function mcp_sorting($mode, &$sort_days, &$sort_key, &$sort_dir, &$sort_by_sql,
|
||||||
'S_SELECT_SORT_DAYS'=> $s_limit_days)
|
'S_SELECT_SORT_DAYS'=> $s_limit_days)
|
||||||
);
|
);
|
||||||
|
|
||||||
if (($sort_days && $mode != 'viewlogs') || $mode == 'reports' || $where_sql != 'WHERE')
|
if (($sort_days && $mode != 'viewlogs') || in_array($mode, array('reports', 'unapproved_topics', 'unapproved_posts')) || $where_sql != 'WHERE')
|
||||||
{
|
{
|
||||||
$result = $db->sql_query($sql);
|
$result = $db->sql_query($sql);
|
||||||
$total = ($row = $db->sql_fetchrow($result)) ? $row['total'] : 0;
|
$total = ($row = $db->sql_fetchrow($result)) ? $row['total'] : 0;
|
||||||
|
|
|
@ -6,16 +6,19 @@
|
||||||
<!--
|
<!--
|
||||||
|
|
||||||
var ban_length = new Array();
|
var ban_length = new Array();
|
||||||
|
ban_length[-1] = "";
|
||||||
<!-- BEGIN ban_length -->
|
<!-- BEGIN ban_length -->
|
||||||
ban_length['{ban_length.BAN_ID}'] = "{ban_length.LENGTH}";
|
ban_length['{ban_length.BAN_ID}'] = "{ban_length.LENGTH}";
|
||||||
<!-- END ban_length -->
|
<!-- END ban_length -->
|
||||||
|
|
||||||
var ban_reason = new Array();
|
var ban_reason = new Array();
|
||||||
|
ban_reason[-1] = "";
|
||||||
<!-- BEGIN ban_reason -->
|
<!-- BEGIN ban_reason -->
|
||||||
ban_reason['{ban_reason.BAN_ID}'] = "{ban_reason.REASON}";
|
ban_reason['{ban_reason.BAN_ID}'] = "{ban_reason.REASON}";
|
||||||
<!-- END ban_reason -->
|
<!-- END ban_reason -->
|
||||||
|
|
||||||
var ban_give_reason = new Array();
|
var ban_give_reason = new Array();
|
||||||
|
ban_give_reason[-1] = "";
|
||||||
<!-- BEGIN ban_give_reason -->
|
<!-- BEGIN ban_give_reason -->
|
||||||
ban_give_reason['{ban_give_reason.BAN_ID}'] = "{ban_give_reason.REASON}";
|
ban_give_reason['{ban_give_reason.BAN_ID}'] = "{ban_give_reason.REASON}";
|
||||||
<!-- END ban_give_reason -->
|
<!-- END ban_give_reason -->
|
||||||
|
@ -79,7 +82,7 @@
|
||||||
<!-- IF S_BANNED_OPTIONS -->
|
<!-- IF S_BANNED_OPTIONS -->
|
||||||
<tr>
|
<tr>
|
||||||
<td class="row1" valign="top" width="45%"><b>{L_BAN_CELL}:</b></td>
|
<td class="row1" valign="top" width="45%"><b>{L_BAN_CELL}:</b></td>
|
||||||
<td class="row2"><select name="unban[]" multiple="multiple" size="10" style="width: 50%" onchange="display_details(this.options[this.selectedIndex].value)">{BANNED_OPTIONS}</select></td>
|
<td class="row2"><select name="unban[]" multiple="multiple" size="10" style="width: 50%" onchange="if (this.selectedIndex > -1) display_details(this.options[this.selectedIndex].value); else display_details(-1);">{BANNED_OPTIONS}</select></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="row1" valign="top"><b>{L_BAN_LENGTH}:</b></td>
|
<td class="row1" valign="top"><b>{L_BAN_LENGTH}:</b></td>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<th colspan="5" height="28" nowrap="nowrap">{L_DISPLAY_OPTIONS}</th>
|
<th colspan="5" height="28" nowrap="nowrap">{L_DISPLAY_OPTIONS}</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="5" class="cat" height="28" align="center"><span class="gensmall">{L_DISPLAY_ITEMS}:</span> {S_SELECT_SORT_DAYS} <span class="gensmall">{L_SORT_BY}</span> {S_SELECT_SORT_KEY} {S_SELECT_SORT_DIR} <span class="gensmall">{L_FORUM}</span> <select name="f">{S_FORUM_OPTIONS}</select> <input class="btnlite" type="submit" name="sort" value="{L_GO}" /></span></td>
|
<td colspan="5" class="cat" height="28" align="center"><span class="gensmall">{L_DISPLAY_POSTS}:</span> {S_SELECT_SORT_DAYS} <span class="gensmall">{L_SORT_BY}</span> {S_SELECT_SORT_KEY} {S_SELECT_SORT_DIR} <span class="gensmall">{L_FORUM}</span> <select name="f">{S_FORUM_OPTIONS}</select> <input class="btnlite" type="submit" name="sort" value="{L_GO}" /></span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th height="28"> {L_POST} </th>
|
<th height="28"> {L_POST} </th>
|
||||||
|
@ -32,7 +32,13 @@
|
||||||
</tr>
|
</tr>
|
||||||
<!-- END postrow -->
|
<!-- END postrow -->
|
||||||
<tr>
|
<tr>
|
||||||
<td class="cat" colspan="5" height="28" align="center"><!-- IF not S_CLOSED --><input class="btnmain" type="submit" name="action[close]" value="{L_CLOSE_REPORTS}" /> <!-- ENDIF --><input class="btnlite" type="submit" value="{L_DELETE_REPORTS}" name="action[delete]" /></td>
|
<td class="cat" colspan="5" height="28" align="center">
|
||||||
|
<!-- IF S_CLOSED -->
|
||||||
|
<input class="btnmain" type="submit" value="{L_DELETE_REPORTS}" name="action[delete]" />
|
||||||
|
<!-- ELSE -->
|
||||||
|
<input class="btnmain" type="submit" name="action[close]" value="{L_CLOSE_REPORTS}" /> <input class="btnlite" type="submit" value="{L_DELETE_REPORTS}" name="action[delete]" />
|
||||||
|
<!-- ENDIF -->
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</form></table>
|
</form></table>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue