Skip to content
Snippets Groups Projects
Commit 02b7731a authored by Seth Meranda's avatar Seth Meranda
Browse files

Changed formatting to display more data in a table view.

parent ba9229c2
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment