blob: 1e417017f3854ac2fb028a25c53ffae210256d0b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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='#' 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>
|