Make WordPress Core


Ignore:
Timestamp:
05/10/2006 08:35:10 PM (19 years ago)
Author:
matt
Message:

Lots of style and admin tweaks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/users.php

    r3759 r3770  
    210210<div class="wrap">
    211211    <h2><?php _e('User List by Role'); ?></h2>
    212   <table cellpadding="3" cellspacing="3" width="100%">
    213     <?php
    214     foreach($roleclasses as $role => $roleclass) {
    215         ksort($roleclass);
    216         ?>
    217 
    218     <tr>
    219         <th colspan="8" align="left"><h3><?php echo $wp_roles->role_names[$role]; ?></h3></th>
    220     </tr>
    221     <tr>
    222         <th><?php _e('ID') ?></th>
    223         <th><?php _e('Username') ?></th>
    224         <th><?php _e('Name') ?></th>
    225         <th><?php _e('E-mail') ?></th>
    226         <th><?php _e('Website') ?></th>
    227         <th><?php _e('Posts') ?></th>
    228         <th>&nbsp;</th>
    229     </tr>
    230     <tbody id="role-<?php echo $role; ?>"><?php
    231     $style = '';
    232     foreach ($roleclass as $user_object) {
    233         $style = (' class="alternate"' == $style) ? '' : ' class="alternate"';
    234         echo "\n\t" . user_row( $user_object, $style );
    235     }
    236 
    237     ?>
    238 
    239     </tbody>
    240 <?php
    241     }
    242 ?>
    243   </table>
     212<table class="widefat">
     213<?php
     214foreach($roleclasses as $role => $roleclass) {
     215    ksort($roleclass);
     216?>
     217
     218<tr>
     219    <th colspan="8" align="left"><h3><?php echo $wp_roles->role_names[$role]; ?></h3></th>
     220</tr>
     221<thead>
     222<tr>
     223    <th style="text-align: left"><?php _e('ID') ?></th>
     224    <th style="text-align: left"><?php _e('Username') ?></th>
     225    <th style="text-align: left"><?php _e('Name') ?></th>
     226    <th style="text-align: left"><?php _e('E-mail') ?></th>
     227    <th style="text-align: left"><?php _e('Website') ?></th>
     228    <th><?php _e('Posts') ?></th>
     229    <th>&nbsp;</th>
     230</tr>
     231</thead>
     232<tbody id="role-<?php echo $role; ?>"><?php
     233$style = '';
     234foreach ($roleclass as $user_object) {
     235    $style = (' class="alternate"' == $style) ? '' : ' class="alternate"';
     236    echo "\n\t" . user_row( $user_object, $style );
     237}
     238
     239?>
     240
     241</tbody>
     242<?php
     243}
     244?>
     245</table>
    244246
    245247
Note: See TracChangeset for help on using the changeset viewer.