From 02b7731a3c77ef4849cfd28080559fe92664a935 Mon Sep 17 00:00:00 2001
From: Seth Meranda <smeranda2@unl.edu>
Date: Tue, 13 Oct 2009 16:29:45 +0000
Subject: [PATCH] Changed formatting to display more data in a table view.

---
 plugins/browse/prospective.php | 26 +++++++++++++++++++++-----
 1 file changed, 21 insertions(+), 5 deletions(-)

diff --git a/plugins/browse/prospective.php b/plugins/browse/prospective.php
index 52aa8634..43924496 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 {
-- 
GitLab