membersearchresults.tpl 1.14 KB
Newer Older
1
{if !empty($results.data)}
2
3
4
        {foreach from=$results.cdata item=row}
          <tr class="r1">
            {foreach from=$row item=r}
5
6
            <td>
              <div class="fl"><img src="{$WWWROOT}thumb.php?type=profileicon&amp;maxsize=40&amp;id={$r.id|escape}" alt=""></div>
7
                <h4><a href="{$WWWROOT}user/view.php?id={$r.id|escape}">{$r.name|escape}</a></h4>
8
                {if $r.role}
9
                <p>{$results.roles[$r.role]->display}{if $caneditroles} (<a href="{$WWWROOT}group/changerole.php?group={$group}&amp;user={$r.id}">{str tag=changerole section=group}</a>){/if}</p>
10
11
                <p><strong>Joined:</strong> {$r.jointime}</p>
                <p>{$r.introduction|str_shorten:80:true}</p>
12
13
14
15
16
17
                {elseif $membershiptype == 'request'}
                <p>{str tag=hasrequestedmembership section=group}</p>
                <p>{$r.addform}</p>
                {elseif $membershiptype == 'invite'}
                <p>{str tag=hasbeeninvitedtojoin section=group}</p>
                {/if}
18
            </td>
19
            {/foreach}
20
21
22
23
24
          </tr>
        {/foreach}
{else}
    <div>{str tag="noresultsfound"}</div>
{/if}