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
		{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}">
13
                    <img src="{$WWWROOT}thumb.php?type=profileicon&maxsize=100&id={$USERID}" alt="">
14
15
16
                </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?id={$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
		{if $USERGROUPS}
			<table id="userview_groups"><thead><tr><th colspan=2>
			{str section=mahara tag=groups}
33
34
			</td></tr></thead>
			<tbody>
35
36
		{foreach from=$USERGROUPS item=item}
                        <tr><td><a href="{$WWWROOT}contacts/groups/view.php?id={$item->id}">{$item->name}</a></td><td>{$item->type}</td></tr>
37
38
39
40
		{/foreach}
			</tbody></table>
		{/if}

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

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