user.tpl 4.29 KB
Newer Older
1
{if $user->pending}
2
<td class="pending friendinfo rel">
3
	<ul class="actionlist">
4
        {if $user->institutions}<li>{$user->institutions|escape}</li>{/if}
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
		<li>{$user->accept}</li>
		<li>
			<a href="{$WWWROOT}user/denyrequest.php?id={$user->id}&amp;returnto={$page}" id="btn-denyrequest">
				{str tag='denyrequest' section='group'}
			</a>
		</li>
		{if $user->messages}
		<li class="last">
			<a href="{$WWWROOT}user/sendmessage.php?id={$user->id}&amp;returnto={$page}" id="btn-sendmessage">
				{str tag='sendmessage' section='group'}
			</a>
		</li>
		{/if}
	</ul>
	<div class="leftdiv" id="friendinfo_{$user->id}">
		<img src="{$WWWROOT}thumb.php?type=profileicon&amp;maxwidth=40&amp;maxheight=40&amp;id={$user->id}" alt="">
	</div>
	<div class="rightdiv">
	<h3>
		<a href="{$WWWROOT}user/view.php?id={$user->id}">
25
			{$user->display_name|escape}
26
27
28
29
30
31
32
33
34
35
36
37
38
		</a>
		- {str tag='pending' section='group'}
	</h3>
	{if $user->introduction}
		{$user->introduction|clean_html}
	{/if}
	<div class="pending">
		<strong>
			{str tag='whymakemeyourfriend' section='group'}
		</strong> 
		<span>{$user->message|format_whitespace}</span>
	</div>
	</div>
39
</td>
40
{elseif $user->friend}
41
42
<td class="friendinfo">
	<ul class="actionlist">
43
    {if $user->institutions}<li>{$user->institutions|escape}</li>{/if}
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
	{if $user->messages}
		<li>
			<a href="{$WWWROOT}user/sendmessage.php?id={$user->id}&amp;returnto={$page}" id="btn-sendmessage">
				{str tag='sendmessage' section='group'}
			</a>
		</li>
	{/if}
		<li class="last">
			<a href="{$WWWROOT}user/removefriend.php?id={$user->id}&amp;returnto={$page}" id="btn-delete">
				{str tag='removefromfriendslist' section='group'}
			</a>
		</li>
	</ul>
	<div class="leftdiv" id="friendinfo_{$user->id}">
		<img src="{$WWWROOT}thumb.php?type=profileicon&amp;maxwidth=40&amp;maxheight=40&amp;id={$user->id}" alt="">
	</div>
	<div class="rightdiv">
	<h3>
		<a href="{$WWWROOT}user/view.php?id={$user->id}">
63
			{$user->display_name|escape}
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
		</a>
		{if $page == 'find'}
			- {str tag='existingfriend' section='group'}
		{/if}
	</h3>
	{if $page == 'myfriends'}
		{if $user->views}
		<ul class="viewlist">
			<li class="label">
				<strong>{str tag='Views' section='group'}</strong>
			</li>
			{foreach from=$user->views item=view}
			<li>
				<a href="{$WWWROOT}view/view.php?id={$view->id}">
				{$view->title|escape}
				</a>
			</li>
			{/foreach}
		</ul>
		{/if}
	{/if}
	{if $user->introduction}
	<p>
		{$user->introduction}
	</p>
	{/if}
	</div>
91
</td>
92
{elseif $user->requestedfriendship}
93
94
<td class="friendinfo">
	<ul class="actionlist">
95
        {if $user->institutions}<li>{$user->institutions|escape}</li>{/if}
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
		{if $user->messages}
		<li>
			<a href="{$WWWROOT}user/sendmessage.php?id={$user->id}&amp;returnto={$page}" id="btn-sendmessage">
				{str tag='sendmessage' section='group'}
			</a>
		</li>
		{/if}
		<li class="last">
			{str tag='friendshiprequested' section='group'}
		</li>
	</ul>
	<div class="leftdiv" id="friendinfo_{$user->id}">
		<img src="{$WWWROOT}thumb.php?type=profileicon&amp;maxwidth=40&amp;maxheight=40&amp;id={$user->id}" alt="">
	</div>
	<div class="rightdiv">
	<h3>
		<a href="{$WWWROOT}user/view.php?id={$user->id}">
113
			{$user->display_name|escape}
114
115
116
117
118
119
		</a>
	</h3>
	{if $user->introduction}
		{$user->introduction}
	{/if}
	</div>
120
121
</td>
{else}
122
123
<td class="friendinfo">
	<ul class="actionlist">
124
        {if $user->institutions}<li>{$user->institutions|escape}</li>{/if}
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
		{if $user->messages}
		<li>
			<a href="{$WWWROOT}user/sendmessage.php?id={$user->id}&amp;returnto={$page}" id="btn-sendmessage">
				{str tag='sendmessage' section='group'}
			</a>
		</li>
		{/if}
		<li class="last">
			{if $user->friendscontrol == 'auth'}
			<a href="{$WWWROOT}user/requestfriendship.php?id={$user->id}&amp;returnto={$page}" id="btn-request">
				{str tag='sendfriendrequest' section='group'}
			</a>
			{elseif $user->friendscontrol == 'auto'}
				{$user->makefriend}
			{else}
				{str tag='userdoesntwantfriends' section='group'}
			{/if}
		</li>
	</ul>
    <div class="leftdiv" id="friendinfo_{$user->id}">
145
146
        <img src="{$WWWROOT}thumb.php?type=profileicon&amp;maxwidth=40&amp;maxheight=40&amp;id={$user->id}" alt="">
    </div>
147
148
149
	<div class="rightdiv">
	<h3>
		<a href="{$WWWROOT}user/view.php?id={$user->id}">
150
			{$user->display_name|escape}
151
152
153
154
155
156
		</a>
	</h3>
	{if $user->introduction}
		{$user->introduction}
	{/if}
	</div>
157
</td>
158
{/if}