users}"; if ( !empty( $s ) ) { $search = '%' . trim( $s ) . '%'; $query .= " WHERE user_login LIKE '$search' OR user_email LIKE '$search'"; } if ( !isset($_GET['sortby']) ) { $_GET['sortby'] = 'id'; } if ( $_GET['sortby'] == 'email' ) { $query .= ' ORDER BY user_email '; } elseif ( $_GET['sortby'] == 'id' ) { $query .= ' ORDER BY ID '; } elseif ( $_GET['sortby'] == 'login' ) { $query .= ' ORDER BY user_login '; } elseif ( $_GET['sortby'] == 'name' ) { $query .= ' ORDER BY display_name '; } elseif ( $_GET['sortby'] == 'registered' ) { $query .= ' ORDER BY user_registered '; } $query .= ( $_GET['order'] == 'DESC' ) ? 'DESC' : 'ASC'; 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 ); } ?>

site_name ); ?>

$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 { ?> "#faa", "deleted" => "#f55" ); $bgcolour = ""; foreach ( $status_list as $status => $col ) { if ( $user[$status] ) { $bgcolour = "style='background: $col'"; } } ?> class=""> $column_display_name) : switch($column_name) { case 'checkbox': ?>
'.__('Blogs').'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
"; ?>