diff options
Diffstat (limited to 'views/default/friends/collectiontabs.php')
-rw-r--r-- | views/default/friends/collectiontabs.php | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/views/default/friends/collectiontabs.php b/views/default/friends/collectiontabs.php index fabd9857b..1e417017f 100644 --- a/views/default/friends/collectiontabs.php +++ b/views/default/friends/collectiontabs.php @@ -1,10 +1,27 @@ <?php
+ global $friendspicker;
+ if (!isset($friendspicker)) $friendspicker = 0;
+
+ if (isset($vars['members'])) {
+ $members = implode(',',$vars['members']);
+ } else {
+ $members = "";
+ }
+
+ $friends = "";
+ if (isset($vars['friends'])) {
+ foreach($friends as $friend) {
+ if (!empty($friends)) $friends .= ",";
+ $friends .= $friend->getGUID();
+ }
+ }
+
?>
<div id="friendsPickerNavigationTabs">
<ul>
-<li class="selected"><a href="#">Collection members</a></li>
-<li><a href="#">Edit collection</a></li>
+<li class="selected"><a href='#' onclick='$("#friends_picker_placeholder<?php echo $friendspicker + 1; ?>").load("<?php echo $vars['url']; ?>friends/pickercallback.php?username=<?php echo $_SESSION['user']->username; ?>&type=list&members=<?php echo $members; ?>"); return false;'>Collection members</a></li>
+<li><a href="#" onclick='$("#friends_picker_placeholder<?php echo $friendspicker + 1; ?>").load("<?php echo $vars['url']; ?>friends/pickercallback.php?username=<?php echo $_SESSION['user']->username; ?>&type=picker&members=<?php echo $members; ?>&friends=<?php echo $friends; ?>"); return false;'>Edit collection</a></li>
</ul>
</div>
\ No newline at end of file |