diff --git a/plugins/browse/prospective.php b/plugins/browse/prospective.php index 52aa8634dbb247fe6d17d385e0f1568470627597..43924496735a8a62064c760e28aa62addef1fb7e 100644 --- a/plugins/browse/prospective.php +++ b/plugins/browse/prospective.php @@ -11,19 +11,35 @@ $roles = get_entities_from_metadata("profile_role", "Prospective Student", "user","",0,300); - foreach($roles as $user){ + echo '<table class="zentable cool"><thead><tr><th>Profile Icon</th><th>Username</th><th>Full Name</th><th>City</th><th>State</th><th>Country</th><th>Field(s) of Study</th><th>Birthday</th></tr></thead><tbody>'; + + foreach($roles as $user){ + + echo '<tr>'; + $user = get_user($user->guid); - echo '<div style="border:1px solid gray; padding:10px; margin-bottom:10px;">'; + echo '<td><img src="'.$CONFIG->url.'mod/profile/icon.php?username='.$user->username.'&size=small" /></td>'; //icon - echo '<img src="'.$CONFIG->url.'mod/profile/icon.php?username='.$user->username.'&size=small" />'; + echo '<td>'.$user->username.'</td>';//username - echo $user->username; + echo '<td>'.$user->name.'</td>';//full name + echo '<td>'.$user->profile_city.'</td>';//city - echo '</div>'; + echo '<td>'.$user->profile_state.'</td>';//state + + echo '<td>'.$user->profile_country.'</td>';//country + + echo '<td>'.$user->profile_fields.'</td>';//fields of study + + echo '<td>'.$user->profile_dob_month.'/'.$user->profile_dob_day.'/'.$user->profile_dob_year'</td>';//birthday + + echo '</tr>'; } + + echo '</tbody></table>'; } else {