mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Add sorting to user notes template
git-svn-id: file:///svn/phpbb/trunk@5332 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
9298082dde
commit
9acd80748c
2 changed files with 8 additions and 1 deletions
|
@ -94,7 +94,7 @@ function mcp_notes_user_view($id, $mode, $action)
|
||||||
$username = request_var('username', '');
|
$username = request_var('username', '');
|
||||||
$start = request_var('start', 0);
|
$start = request_var('start', 0);
|
||||||
$st = request_var('st', 0);
|
$st = request_var('st', 0);
|
||||||
$sk = request_var('sk', 'a');
|
$sk = request_var('sk', 'b');
|
||||||
$sd = request_var('sd', 'd');
|
$sd = request_var('sd', 'd');
|
||||||
|
|
||||||
$sql_where = ($user_id) ? "user_id = $user_id" : "username = '" . $db->sql_escape($username) . "'";
|
$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(
|
$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,
|
||||||
|
'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),
|
'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),
|
'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),
|
'TOTAL_REPORTS' => ($log_count == 1) ? $user->lang['LIST_REPORT'] : sprintf($user->lang['LIST_REPORTS'], $log_count),
|
||||||
|
|
|
@ -56,6 +56,9 @@
|
||||||
<!-- IF S_CLEAR_ALLOWED --><td width="5%" align="center"><input type="checkbox" name="marknote[]" value="{usernotes.ID}" /></td><!-- ENDIF -->
|
<!-- IF S_CLEAR_ALLOWED --><td width="5%" align="center"><input type="checkbox" name="marknote[]" value="{usernotes.ID}" /></td><!-- ENDIF -->
|
||||||
</tr>
|
</tr>
|
||||||
<!-- END usernotes -->
|
<!-- 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 -->
|
<!-- IF S_CLEAR_ALLOWED -->
|
||||||
<tr>
|
<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>
|
<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>
|
||||||
|
|
Loading…
Add table
Reference in a new issue