diff options
author | Graham Eames <grahamje@users.sourceforge.net> | 2005-12-13 21:50:57 +0000 |
---|---|---|
committer | Graham Eames <grahamje@users.sourceforge.net> | 2005-12-13 21:50:57 +0000 |
commit | 9acd80748c9e63c049d56f6504810fc28fff96b7 (patch) | |
tree | 61cdb1cf59f43b1307a18e6acf9e3915a6d17c67 | |
parent | 9298082ddedb32873b953ed15399ef74e98ebf1f (diff) | |
download | forums-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
-rwxr-xr-x | phpBB/includes/mcp/mcp_notes.php | 6 | ||||
-rwxr-xr-x | phpBB/styles/subSilver/template/mcp_notes_user.html | 3 |
2 files changed, 8 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&i=$id&mode=$mode&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&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), diff --git a/phpBB/styles/subSilver/template/mcp_notes_user.html b/phpBB/styles/subSilver/template/mcp_notes_user.html index 01e63e7759..110e462f32 100755 --- a/phpBB/styles/subSilver/template/mcp_notes_user.html +++ b/phpBB/styles/subSilver/template/mcp_notes_user.html @@ -56,6 +56,9 @@ <!-- IF S_CLEAR_ALLOWED --><td width="5%" align="center"><input type="checkbox" name="marknote[]" value="{usernotes.ID}" /></td><!-- ENDIF --> </tr> <!-- END usernotes --> + <tr align="center"> + <td class="row3" colspan="2"><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} <input class="btnlite" type="submit" value="{L_GO}" name="sort" /></td> + </tr> <!-- IF S_CLEAR_ALLOWED --> <tr> <td class="cat" colspan="2" align="center"><input class="btnlite" type="submit" name="action[del_marked]" value="{L_DELETE_MARKED}" /> <input class="btnlite" type="submit" name="action[del_all]" value="{L_DELETE_ALL}" /></td> |