view.tpl 1.51 KB
Newer Older
Penny Leach's avatar
Penny Leach committed
1
{include file="header.tpl"}
Martyn Smith's avatar
Martyn Smith committed
2
{include file="sidebar.tpl"}
Penny Leach's avatar
Penny Leach committed
3

4
{include file="columnleftstart.tpl"}
Penny Leach's avatar
Penny Leach committed
5
			<div id="userview">
Penny Leach's avatar
Penny Leach committed
6
			<h3>{$NAME}</h3>
7
8
            <div></div>
            <div>
Penny Leach's avatar
Penny Leach committed
9
			<table id="userview_profile"><tbody>
10
11
12
13
14
15
16
		{foreach from=$USERFIELDS name=userfields key=key item=item}
			<tr>{if $smarty.foreach.userfields.first}
                <td style="width: 100px;" rowspan="{$smarty.foreach.userfields.total+1}">
                    <img src="{$WWWROOT}thumb.php?type=profileicon&size=100x100&id={$USERID}" alt="">
                </td>{/if}
                <th>{str section=artefact.internal tag=$key}</th><td>{$item}</td>
            </tr>
Penny Leach's avatar
Penny Leach committed
17
18
		{/foreach}
			</tbody></table>
19
            </div>
Penny Leach's avatar
Penny Leach committed
20
		{if $VIEWS}
Penny Leach's avatar
Penny Leach committed
21
22
23
24
			<table id="userview_views"><thead><tr><th>
			{str section=mahara tag=views}
			</td></tr></thead>
			<tbody><tr><td><ul>
Penny Leach's avatar
Penny Leach committed
25
		{foreach from=$VIEWS key=key item=item name=view}
26
			<li><a href="{$WWWROOT}view/view.php?view={$key}">{$item}</a></li>
Penny Leach's avatar
Penny Leach committed
27
		{/foreach}
Penny Leach's avatar
Penny Leach committed
28
			</ul></td></tr></tbody></table>
Penny Leach's avatar
Penny Leach committed
29
		{/if}
30
31
32
33
34
35
36
37
38
39
40
		{if $USERCOMMUNITIES}
			<table id="userview_communities"><thead><tr><th colspan=2>
			{str section=mahara tag=communities}
			</td></tr></thead>
			<tbody>
		{foreach from=$USERCOMMUNITIES item=item}
                        <tr><td><a href="{$WWWROOT}contacts/communities/view.php?id={$item->id}">{$item->name}</a></td><td>{$item->type}</td></tr>
		{/foreach}
			</tbody></table>
		{/if}

41
42
43
44
                <br>
		{$INVITEFORM}
		{$ADDFORM}
		{$FRIENDFORM}
Penny Leach's avatar
Penny Leach committed
45
		</div>
46
{include file="columnleftend.tpl"}
Penny Leach's avatar
Penny Leach committed
47

Penny Leach's avatar
Penny Leach committed
48
{include file="footer.tpl"}