[svn r18630] logic changes - allow search for user - (partial FS#3664)

skala
Isaac Flores 16 years ago
parent 0db0c33074
commit 69bdf8272c
  1. 4
      main/social/index.php
  2. 4
      main/social/select_options.php

@ -355,7 +355,9 @@ function delete_one_message_outbox (num_id) {
}
});
}
function list_search_hide () {
$("div#id_div_search").html("");
}
</script>';
$htmlHeadXtra[] = '<link rel="stylesheet" href="../inc/lib/javascript/jquery.tabs.css" type="text/css" media="print, projection, screen">';

@ -8,7 +8,9 @@ $tbl_my_user_friend = Database :: get_main_table(TABLE_MAIN_USER_FRIEND);
$search=$_POST['search'];
$html_form='<select id="id_search_name" name="id_search_name" size="8"" class="message-select-box">';
$sql='SELECT DISTINCT u.user_id as id,concat(u.firstname," ",u.lastname," ","( ",u.email," )") as name
FROM '.$tbl_my_user.' u INNER JOIN '.$track_online_table.' t ON u.user_id=t.login_user_id';
FROM '.$tbl_my_user.' u INNER JOIN '.$track_online_table.' t ON u.user_id=t.login_user_id
WHERE u.firstname like "%'.$search.'%" OR u.lastname like "%'.$search.'%"
OR CONCAT(u.firstname," ",u.lastname) like CONCAT("%","'.$search.'","%");';
if (api_get_setting('allow_social_tool')=='true') {
//$sql.=' INNER JOIN '.$tbl_my_user_friend.' uf ON uf.friend_user_id=u.user_id ';
}

Loading…
Cancel
Save