diff --git a/checkin_notes b/checkin_notes index 8186ae8b24..6787f98ccf 100755 --- a/checkin_notes +++ b/checkin_notes @@ -14810,3 +14810,14 @@ David 24 Dec 2005 client/ gui_rpc_server.C,h gui_rpc_server_ops.C + +Bruce 26 Dec 2005 + - Modified the pages to search users and profiles so that the results + display a bit more info about the users (date joined project, country, + total credit, RAC).. + + html/ + user/ + user_search_action.php + profile_search_action.php + diff --git a/html/user/profile_search_action.php b/html/user/profile_search_action.php index eed5a2189a..3907403ce6 100644 --- a/html/user/profile_search_action.php +++ b/html/user/profile_search_action.php @@ -5,7 +5,7 @@ require_once("../inc/util.inc"); function show_profile_link($profile, $n) { $user = lookup_user_id($profile->userid); - echo "
". user_links($user)."\n"; + echo "".user_links($user)."".date_str($user->create_time)."".$user->country."".(int)$user->total_credit."".(int)$user->expavg_credit."\n"; } db_init(); @@ -20,7 +20,7 @@ page_head("Profile search results"); echo "

Profiles containing '$search_string'

\n"; $q = "select * from profile where match(response1, response2) against ('$search_string') limit $offset,$count"; $result = mysql_query($q); -echo ""; +echo "
"; $n = 0; while ($profile = mysql_fetch_object($result)) { show_profile_link($profile, $n+$offset+1); diff --git a/html/user/user_search_action.php b/html/user/user_search_action.php index 8e4e68637c..a40c10351f 100644 --- a/html/user/user_search_action.php +++ b/html/user/user_search_action.php @@ -4,7 +4,7 @@ require_once("../inc/db.inc"); require_once("../inc/util.inc"); function show_user($user, $n) { - echo "
". user_links($user)."\n"; + echo "\n"; } db_init(); @@ -23,7 +23,7 @@ $search_string = str_replace('%', '\\\\%', $search_string); $q = "select * from user where name like '$search_string%' limit $offset,$count"; $result = mysql_query($q); -echo "
User nameJoined projectCountryTotal creditRecent credit
".user_links($user)."".date_str($user->create_time)."".$user->country."".(int)$user->total_credit."".(int)$user->expavg_credit."
"; +echo "
"; $n = 0; while ($user = mysql_fetch_object($result)) { show_user($user, $n+$offset+1);
User nameJoined projectCountryTotal creditRecent credit