blob: 63738d94d46b1761e5e71eec95bdc09fe5c50917 (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
<?php
$owner = $vars['owner'];
if ($friends = elgg_get_entities_from_relationship(array('relationship' => 'friend', 'relationship_guid' => $owner->getGUID(), 'inverse_relationship' => FALSE, 'type' => 'user', 'limit' => 9999))) {
?>
<table border="0" cellspacing="0" cellpadding="0">
<?php
$col = 0;
foreach($friends as $friend) {
if ($col == 0) echo "<tr>";
$label = elgg_view("profile/icon",array('entity' => $friend, 'size' => 'tiny'));
$options[$label] = $friend->getGUID();
?>
<td>
<input type="checkbox" name="shares[]" value="<?php echo $options[$label]; ?>" />
</td>
<td >
<div style="width: 25px; margin-bottom: 15px;">
<?php
echo $label;
?>
</div>
</td>
<td style="width: 300px; padding: 5px;">
<?php
echo $friend->name;
?>
</td>
<?php
$col++;
if ($col == 3) {
$col = 0;
echo "</tr>";
}
}
if ($col != 3) {
echo "</tr>";
}
?>
</table>
<?php
/*echo elgg_view('input/checkboxes',array(
'internalname' => 'shares',
'options' => $options,
'value' => $vars['shares'],
)); */
}
?>
|