mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
Some slight cleanup of the mcp notes code - adding pagination support
and missing language entries git-svn-id: file:///svn/phpbb/trunk@5317 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
417b6f5f0a
commit
d6785155ad
4 changed files with 19 additions and 3 deletions
|
@ -208,12 +208,12 @@ function mcp_notes_user_view($id, $mode, $action)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$pagination = generate_pagination("mcp.$phpEx$SID&i=$id&mode=$mode&u=$user_id&st=$st&sk=$sk&sd=$sd", $log_count, $config['posts_per_page'], $start);
|
|
||||||
|
|
||||||
$template->assign_vars(array(
|
$template->assign_vars(array(
|
||||||
'U_POST_ACTION' => "mcp.$phpEx$SID&i=$id&mode=$mode&u=$user_id",
|
'U_POST_ACTION' => "mcp.$phpEx$SID&i=$id&mode=$mode&u=$user_id",
|
||||||
'S_CLEAR_ALLOWED' => ($auth->acl_get('a_clearlogs')) ? true : false,
|
'S_CLEAR_ALLOWED' => ($auth->acl_get('a_clearlogs')) ? true : false,
|
||||||
'PAGINATION' => $pagination,
|
'PAGE_NUMBER' => on_page($log_count, $config['posts_per_page'], $start),
|
||||||
|
'PAGINATION' => generate_pagination("mcp.$phpEx$SID&i=$id&mode=$mode&u=$user_id&st=$st&sk=$sk&sd=$sd", $log_count, $config['posts_per_page'], $start),
|
||||||
|
'TOTAL_REPORTS' => ($log_count == 1) ? $user->lang['LIST_REPORT'] : sprintf($user->lang['LIST_REPORTS'], $log_count),
|
||||||
|
|
||||||
'USERNAME' => $userrow['username'],
|
'USERNAME' => $userrow['username'],
|
||||||
'USER_COLOR' => (!empty($userrow['user_colour'])) ? $userrow['user_colour'] : '',
|
'USER_COLOR' => (!empty($userrow['user_colour'])) ? $userrow['user_colour'] : '',
|
||||||
|
|
|
@ -316,6 +316,7 @@ $lang += array(
|
||||||
'REPLY_WITH_QUOTE' => 'Reply with quote',
|
'REPLY_WITH_QUOTE' => 'Reply with quote',
|
||||||
'REPLYING_GLOBAL_ANNOUNCE' => 'Replying to global announcement',
|
'REPLYING_GLOBAL_ANNOUNCE' => 'Replying to global announcement',
|
||||||
'REPLYING_MESSAGE' => 'Replying to message in %s',
|
'REPLYING_MESSAGE' => 'Replying to message in %s',
|
||||||
|
'REPORT_BY' => 'Report by',
|
||||||
'REPORT_POST' => 'Report this post',
|
'REPORT_POST' => 'Report this post',
|
||||||
'RESEND_ACTIVATION' => 'Resend activation email',
|
'RESEND_ACTIVATION' => 'Resend activation email',
|
||||||
'RESET' => 'Reset',
|
'RESET' => 'Reset',
|
||||||
|
|
|
@ -78,6 +78,8 @@ $lang += array(
|
||||||
'LATEST_REPORTED' => 'Latest 5 reports',
|
'LATEST_REPORTED' => 'Latest 5 reports',
|
||||||
'LATEST_UNAPPROVED' => 'Latest 5 posts awaiting for approval',
|
'LATEST_UNAPPROVED' => 'Latest 5 posts awaiting for approval',
|
||||||
'LEAVE_SHADOW' => 'Leave shadow topic in place',
|
'LEAVE_SHADOW' => 'Leave shadow topic in place',
|
||||||
|
'LIST_REPORT' => '1 Report',
|
||||||
|
'LIST_REPORTS' => '%d Reports',
|
||||||
'LOCK' => 'Lock',
|
'LOCK' => 'Lock',
|
||||||
'LOCK_POST_POST' => 'Lock Post',
|
'LOCK_POST_POST' => 'Lock Post',
|
||||||
'LOCK_POST_POST_CONFIRM'=> 'Are you sure you want to prevent editing this post?',
|
'LOCK_POST_POST_CONFIRM'=> 'Are you sure you want to prevent editing this post?',
|
||||||
|
@ -129,6 +131,10 @@ $lang += array(
|
||||||
'MCP_MAKE_NORMALS' => 'Make Standard Topics',
|
'MCP_MAKE_NORMALS' => 'Make Standard Topics',
|
||||||
'MCP_MAKE_NORMALS_CONFIRM' => 'Are you sure you want to revert the selected topics?',
|
'MCP_MAKE_NORMALS_CONFIRM' => 'Are you sure you want to revert the selected topics?',
|
||||||
|
|
||||||
|
'MCP_NOTES' => 'User Notes',
|
||||||
|
'MCP_NOTES_FRONT' => 'Front Page',
|
||||||
|
'MCP_NOTES_USER' => 'User Details',
|
||||||
|
|
||||||
'MCP_QUEUE' => 'Moderation Queue',
|
'MCP_QUEUE' => 'Moderation Queue',
|
||||||
'MCP_QUEUE_REPORTS' => 'Reports',
|
'MCP_QUEUE_REPORTS' => 'Reports',
|
||||||
'MCP_QUEUE_UNAPPROVED_POSTS' => 'Posts awaiting for approval',
|
'MCP_QUEUE_UNAPPROVED_POSTS' => 'Posts awaiting for approval',
|
||||||
|
@ -198,6 +204,7 @@ $lang += array(
|
||||||
|
|
||||||
'SELECT_ACTION' => 'Select desired action',
|
'SELECT_ACTION' => 'Select desired action',
|
||||||
'SELECT_TOPIC' => 'Select topic',
|
'SELECT_TOPIC' => 'Select topic',
|
||||||
|
'SELECT_USER' => 'Select user',
|
||||||
'SORT_ACTION' => 'Log action',
|
'SORT_ACTION' => 'Log action',
|
||||||
'SORT_DATE' => 'Date',
|
'SORT_DATE' => 'Date',
|
||||||
'SORT_IP' => 'IP address',
|
'SORT_IP' => 'IP address',
|
||||||
|
|
|
@ -79,6 +79,14 @@
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
<table width="100%" cellspacing="0" cellpadding="0">
|
||||||
|
<tr>
|
||||||
|
<td class="pagination">{PAGE_NUMBER} [ {TOTAL_REPORTS} ]</td>
|
||||||
|
<td align="right"><span class="pagination"><!-- IF PAGINATION --><a href="javascript:jumpto();">{L_GOTO_PAGE}</a> <!-- IF PREVIOUS_PAGE --><a href="{PREVIOUS_PAGE}">{L_PREVIOUS}</a> <!-- ENDIF -->{PAGINATION}<!-- IF NEXT_PAGE --> <a href="{NEXT_PAGE}">{L_NEXT}</a><!-- ENDIF --><!-- ENDIF --></span></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</table>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<br clear="all" /><br />
|
<br clear="all" /><br />
|
||||||
|
|
Loading…
Add table
Reference in a new issue