diff options
author | Friendika <info@friendika.com> | 2011-04-12 01:31:55 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-04-12 01:31:55 -0700 |
commit | 61915a524debe3db08a07f0adb86033ee894be28 (patch) | |
tree | 6eddd43d6e6994bf2571b868ba0f4db515eb520e /mod/group.php | |
parent | 6da84027afa18633ac5d5dacce99bb244be2aa7b (diff) | |
download | volse-hubzilla-61915a524debe3db08a07f0adb86033ee894be28.tar.gz volse-hubzilla-61915a524debe3db08a07f0adb86033ee894be28.tar.bz2 volse-hubzilla-61915a524debe3db08a07f0adb86033ee894be28.zip |
first cut at group chooser UI
Diffstat (limited to 'mod/group.php')
-rw-r--r-- | mod/group.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/mod/group.php b/mod/group.php index 591c93627..8733614dd 100644 --- a/mod/group.php +++ b/mod/group.php @@ -158,10 +158,29 @@ function group_content(&$a) { } $o .= '<div id="group-members">'; + $o .= '<h3>' . t('In Group') . '</h3>'; foreach($members as $member) { + $member['click'] = 'groupMember(' . $member['id'] . '); return true;'; $o .= micropro($member,true,'mpgroup'); } + $o .= '</div><div id="group-members-end"></div>'; + $o .= '<hr id="group-separator" />'; + $o .= '<div id="group-all-contacts">'; + + $o .= '<h3>' . t('All Contacts') . '</h3>'; + $r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `blocked` = 0 and `pending` = 0 and `self` = 0 ORDER BY `name` ASC", + intval(local_user()) + ); + + if(count($r)) { + foreach($r as $member) { + $member['click'] = 'groupMember(' . $member['id'] . '); return true;'; + $o .= micropro($member,true,'mpall'); + } + } + + $o .= '</div><div id="group-all-contacts-end"></div>'; return $o; |