users}"; if ( !empty( $s ) ) { $search = '%' . trim( $s ) . '%'; $query .= " WHERE user_login LIKE '$search' OR user_email LIKE '$search'"; } $order_by = isset( $_GET['sortby'] ) ? $_GET['sortby'] : 'id'; if ( $order_by == 'email' ) { $query .= ' ORDER BY user_email '; } elseif ( $order_by == 'login' ) { $query .= ' ORDER BY user_login '; } elseif ( $order_by == 'name' ) { $query .= ' ORDER BY display_name '; } elseif ( $order_by == 'registered' ) { $query .= ' ORDER BY user_registered '; } else { $order_by = 'id'; $query .= ' ORDER BY ID '; } $order = isset($_GET['order']) ? $_GET['order'] : 'ASC'; $order = ( 'DESC' == $order ) ? 'DESC' : 'ASC'; $query .= $order; if ( !empty( $s ) ) $total = $wpdb->get_var( str_replace('SELECT *', 'SELECT COUNT(ID)', $query) ); else $total = $wpdb->get_var( "SELECT COUNT(ID) FROM {$wpdb->users}"); $query .= " LIMIT " . intval( ( $apage - 1 ) * $num) . ", " . intval( $num ); $user_list = $wpdb->get_results( $query, ARRAY_A ); // Pagination $user_navigation = paginate_links( array( 'total' => ceil($total / $num), 'current' => $apage, 'base' => add_query_arg( 'apage', '%#%' ), 'format' => '' )); if ( $user_navigation ) { $user_navigation = sprintf( '' . __( 'Displaying %s–%s of %s' ) . '%s', number_format_i18n( ( $apage - 1 ) * $num + 1 ), number_format_i18n( min( $apage * $num, $total ) ), number_format_i18n( $total ), $user_navigation ); } ?>

$user_navigation
"; ?>

'display name' $posts_columns = array( 'checkbox' => '', 'login' => __('Username'), 'name' => __('Name'), 'email' => __('E-mail'), 'registered' => __('Registered'), 'blogs' => '' ); $posts_columns = apply_filters('wpmu_users_columns', $posts_columns); ?> $column_display_name) { if ( $column_id == 'blogs' ) { echo ''; } elseif ( $column_id == 'checkbox') { echo ''; } else { ?> "site-spammed", "deleted" => "site-deleted" ); foreach ( $status_list as $status => $col ) { if ( $user[$status] ) $class = $col; } ?> $column_display_name) : switch($column_name) { case 'checkbox': ?>
'.__('Sites').'apage=">
' name='allusers[]' value='' />
Edit Delete */ ?>
g:i a'), $user['user_registered']); ?> $val ) { $path = ($val->path == '/') ? '' : $val->path; echo '' . str_replace( '.' . $current_site->domain, '', $val->domain . $path ) . ''; echo ' '; // Edit echo '' . __('Edit') . ' | '; // View echo 'userblog_id, 'spam' ) == 1 ) echo 'style="background-color: #f66" '; echo 'target="_new" href="http://'.$val->domain . $val->path.'">' . __('View') . ''; echo '
'; } } ?>
$user_navigation
"; ?>