|
|
|
@ -22,6 +22,11 @@ $this_section = SECTION_SOCIAL; |
|
|
|
|
$tool_name = get_lang('Search'); |
|
|
|
|
$interbreadcrumb[]= array ('url' =>'profile.php','name' => get_lang('Social')); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$query_vars = array(); |
|
|
|
|
|
|
|
|
|
$query = isset($_GET['q']) ? $_GET['q'] : null; |
|
|
|
|
|
|
|
|
|
Display :: display_header($tool_name); |
|
|
|
|
|
|
|
|
|
echo '<div id="social-content">'; |
|
|
|
@ -31,11 +36,10 @@ echo '<div id="social-content">'; |
|
|
|
|
echo '</div>'; |
|
|
|
|
echo '<div id="social-content-right">'; |
|
|
|
|
|
|
|
|
|
echo UserManager::get_search_form($_GET['q']); |
|
|
|
|
echo UserManager::get_search_form($query); |
|
|
|
|
|
|
|
|
|
//I'm searching something |
|
|
|
|
if ($_GET['q'] != '') { |
|
|
|
|
if (isset($_GET['q']) && $_GET['q']!='') { |
|
|
|
|
if ($query !='') { |
|
|
|
|
//get users from tags |
|
|
|
|
$users = UserManager::get_all_user_tags($_GET['q'], 0, 0, 5); |
|
|
|
|
$groups = GroupPortalManager::get_all_group_tags($_GET['q']); |
|
|
|
@ -66,7 +70,7 @@ echo '<div id="social-content">'; |
|
|
|
|
|
|
|
|
|
$user['firstname'] = Display::url($user['firstname'], $url); |
|
|
|
|
$user['lastname'] = Display::url($user['lastname'], $url); |
|
|
|
|
|
|
|
|
|
$user['tag'] = isset($user['tag']) ? $user['tag'] : null; |
|
|
|
|
$results[] = array($img, $user['firstname'], $user['lastname'], $user['tag']); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -147,7 +151,6 @@ echo '<div id="social-content">'; |
|
|
|
|
} |
|
|
|
|
$item_4 = '<div class="box_description_group_tags" >'.$tags.'</div>'; |
|
|
|
|
$item_5 = '<div class="box_description_group_actions" >'.$url_open.get_lang('SeeMore').$url_close.'</div>'; |
|
|
|
|
|
|
|
|
|
$grid_item_2 = $item_0.$item_1.$item_2.$item_3.$item_4.$item_5; |
|
|
|
|
$grid_groups[]= array('',$grid_item_2); |
|
|
|
|
} |
|
|
|
@ -155,7 +158,7 @@ echo '<div id="social-content">'; |
|
|
|
|
$visibility = array(true,true,true,true,true); |
|
|
|
|
Display::display_sortable_grid('mygroups', array(), $grid_groups, array('hide_navigation'=>true, 'per_page' => 5), $query_vars, false, $visibility); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
echo '</div>'; |
|
|
|
|
echo '</div>'; |
|
|
|
|
Display :: display_footer(); |