aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/mcp/mcp_notes.php
diff options
context:
space:
mode:
authorGraham Eames <grahamje@users.sourceforge.net>2005-12-13 21:50:57 +0000
committerGraham Eames <grahamje@users.sourceforge.net>2005-12-13 21:50:57 +0000
commit9acd80748c9e63c049d56f6504810fc28fff96b7 (patch)
tree61cdb1cf59f43b1307a18e6acf9e3915a6d17c67 /phpBB/includes/mcp/mcp_notes.php
parent9298082ddedb32873b953ed15399ef74e98ebf1f (diff)
downloadforums-9acd80748c9e63c049d56f6504810fc28fff96b7.tar
forums-9acd80748c9e63c049d56f6504810fc28fff96b7.tar.gz
forums-9acd80748c9e63c049d56f6504810fc28fff96b7.tar.bz2
forums-9acd80748c9e63c049d56f6504810fc28fff96b7.tar.xz
forums-9acd80748c9e63c049d56f6504810fc28fff96b7.zip
Add sorting to user notes template
git-svn-id: file:///svn/phpbb/trunk@5332 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/mcp/mcp_notes.php')
-rwxr-xr-xphpBB/includes/mcp/mcp_notes.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/phpBB/includes/mcp/mcp_notes.php b/phpBB/includes/mcp/mcp_notes.php
index b508fb987c..5d73941f60 100755
--- a/phpBB/includes/mcp/mcp_notes.php
+++ b/phpBB/includes/mcp/mcp_notes.php
@@ -94,7 +94,7 @@ function mcp_notes_user_view($id, $mode, $action)
$username = request_var('username', '');
$start = request_var('start', 0);
$st = request_var('st', 0);
- $sk = request_var('sk', 'a');
+ $sk = request_var('sk', 'b');
$sd = request_var('sd', 'd');
$sql_where = ($user_id) ? "user_id = $user_id" : "username = '" . $db->sql_escape($username) . "'";
@@ -211,6 +211,10 @@ function mcp_notes_user_view($id, $mode, $action)
$template->assign_vars(array(
'U_POST_ACTION' => "mcp.$phpEx$SID&amp;i=$id&amp;mode=$mode&amp;u=$user_id",
'S_CLEAR_ALLOWED' => ($auth->acl_get('a_clearlogs')) ? true : false,
+ 'S_SELECT_SORT_DIR' => $s_sort_dir,
+ 'S_SELECT_SORT_KEY' => $s_sort_key,
+ 'S_SELECT_SORT_DAYS' => $s_limit_days,
+
'PAGE_NUMBER' => on_page($log_count, $config['posts_per_page'], $start),
'PAGINATION' => generate_pagination("mcp.$phpEx$SID&amp;i=$id&amp;mode=$mode&amp;u=$user_id&amp;st=$st&amp;sk=$sk&amp;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),