forked from IPFModules/profile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofile_friendship.html
81 lines (81 loc) · 3.9 KB
/
profile_friendship.html
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
81
<{include file="db:profile_header.html"}>
<{if $profile_friendships[2]}>
<div class="profile-friendships-container outer">
<h2 class="head">
<a href="#" onclick ="jQuery('div#profile-friendships-accepted').toggle(400);"><img src="images/toggle.png" /> <{$lang_friendships_accepted}></a>
</h2>
<div id="profile-friendships-accepted">
<{foreach name=friends item=friend from=$profile_friendships[2]}>
<div class="profile-friendships-friend" style="width:<{$itemwidth}>%">
<{if $friend.friendship_avatar}><{$friend.friendship_avatar}><br /><{/if}>
<{$friend.friendship_linkedUname}><br />
<{if $friend.userCanEditAndDelete}>
<{$friend.deleteItemLink}>
<{/if}>
</div>
<{if $smarty.foreach.friends.iteration is div by $rowitems || $smarty.foreach.friends.last == TRUE}>
<div class="clear"></div>
<{/if}>
<{/foreach}>
</div>
</div>
<{/if}>
<{if $profile_friendships[1]}>
<div class="profile-friendships-container outer">
<h2 class="head">
<a href="#" onclick ="jQuery('div#profile-friendships-pending').toggle(400);"><img src="images/toggle.png" /> <{$lang_friendships_pending}></a>
</h2>
<div id="profile-friendships-pending" style="display: none">
<{foreach name=friends item=friend from=$profile_friendships[1]}>
<div class="profile-friendships-friend" style="width:<{$itemwidth}>%">
<{if $friend.friendship_avatar}><{$friend.friendship_avatar}><br /><{/if}>
<{$friend.friendship_linkedUname}><br />
<{if $friend.userCanEditAndDelete}>
<form action="<{$icms_url}>/modules/<{$icms_dirname}>/index.php?uid=<{$uid}>" method="post" class="profile-quickform">
<input type="hidden" value="<{$friend.friendship_id}>" name="friendship_id" />
<input type="hidden" value="2" name="status" />
<input type="hidden" value="editfriendship" name="op" />
<{$token}>
<input class="image" name="submit" type="image" alt="<{$lang_friendship_accept}>" title="<{$lang_friendship_accept}>" src="<{$image_ok}>" style="vertical-align:middle" />
</form>
<form action="<{$icms_url}>/modules/<{$icms_dirname}>/index.php?uid=<{$uid}>" method="post" class="profile-quickform">
<input type="hidden" value="<{$friend.friendship_id}>" name="friendship_id" />
<input type="hidden" value="3" name="status" />
<input type="hidden" value="editfriendship" name="op" />
<{$token}>
<input class="image" name="submit" type="image" alt="<{$lang_friendship_reject}>" title="<{$lang_friendship_reject}>" src="<{$image_cancel}>" style="vertical-align:middle" />
</form>
<{/if}>
</div>
<{if $smarty.foreach.friends.iteration is div by $rowitems || $smarty.foreach.friends.last == TRUE}>
<div class="clear"></div>
<{/if}>
<{/foreach}>
</div>
</div>
<{/if}>
<{if $profile_friendships[3]}>
<div class="profile-friendships-container outer">
<h2 class="head">
<a href="#" onclick ="jQuery('div#profile-friendships-rejected').toggle(400);"><img src="images/toggle.png" /> <{$lang_friendships_rejected}></a>
</h2>
<div id="profile-friendships-rejected" style="display: none">
<{foreach name=friends item=friend from=$profile_friendships[3]}>
<div class="profile-friendships-friend" style="width:<{$itemwidth}>%">
<{if $friend.friendship_avatar}><{$friend.friendship_avatar}><br /><{/if}>
<{$friend.friendship_linkedUname}><br />
<{if $friend.userCanEditAndDelete}>
<{$friend.deleteItemLink}>
<{/if}>
</div>
<{if $smarty.foreach.friends.iteration is div by $rowitems || $smarty.foreach.friends.last == TRUE}>
<div class="clear"></div>
<{/if}>
<{/foreach}>
</div>
</div>
<{/if}>
<{if $icmspersistable_delete_confirm}>
<{$icmspersistable_delete_confirm}>
<{/if}>
<{if $lang_nocontent}><div class="resultMsg"><p><{$lang_nocontent}></p></div><{/if}>