1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-26 03:22:37 +02:00

Sort fixes

git-svn-id: file:///svn/phpbb/trunk@2809 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen
2002-08-02 12:50:24 +00:00
parent 7eae8a7c1a
commit 7d1f1b4596

View File

@@ -81,9 +81,9 @@ if ( ( isset($HTTP_POST_VARS['delmarked']) || isset($HTTP_POST_VARS['delall']) )
//
//
//
if ( isset($HTTP_POST_VARS['sort']) )
if ( isset($HTTP_POST_VARS['sort']) || $start )
{
if ( !empty($HTTP_POST_VARS['sort_days']) )
if ( !empty($HTTP_POST_VARS['sort_days']) || !empty($HTTP_GET_VARS['sort_days']) )
{
$sort_days = ( !empty($HTTP_POST_VARS['sort_days']) ) ? intval($HTTP_POST_VARS['sort_days']) : intval($HTTP_GET_VARS['sort_days']);
$where_sql = time() - ( $sort_days * 86400 );
@@ -93,7 +93,6 @@ if ( isset($HTTP_POST_VARS['sort']) )
$where_sql = 0;
}
$start = 0;
$sort_key = ( isset($HTTP_POST_VARS['sort_key']) ) ? $HTTP_POST_VARS['sort_key'] : $HTTP_GET_VARS['sort_key'];
$sort_dir = ( isset($HTTP_POST_VARS['sort_dir']) ) ? $HTTP_POST_VARS['sort_dir'] : $HTTP_GET_VARS['sort_dir'];
}
@@ -143,7 +142,8 @@ $row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
$total_entries = $row['total_entries'];
$pagination = generate_pagination("admin_viewlogs.$phpEx$SID&mode=$mode&order=$sort_order", $total_entries, $board_config['topics_per_page'], $start). ' ';
$pagination = generate_pagination("admin_viewlogs.$phpEx$SID&mode=$mode&sort_days=$sort_days&sort_key=$sort_key&sort_dir=$sort_dir
", $total_entries, $board_config['topics_per_page'], $start). ' ';
page_header($lang['Admin_logs']);