Размер файла: 1.21Kb
{if $err}
<div class="error">
{lng p="user_not_found"}
</div>
{/if}
<div class="shade">
<b>{lng p="friends"}</b>
<form action="{$selfurl}?ac=fnd{if $fid}&fid={$fid}{/if}&sid={$sid}" method="post">
<input type="text" name="user"{if $user} value="{$user}"{/if}/>
<input type="submit" class="login" value="Search"/>
</form>
</div>
{if $Count == 0}
<div class="error">
{lng p="no_user_found"}
</div>
{/if}
{foreach from=$friend item=fri key=frID}
<div class="blank">
<a href="{$selfurl}?ac=prf&id={$frID}&sid={$sid}">
<img src="{$selfurl}{if $fri.photo > 0}?ac=tub&img={/if}{$fri.url}{if $fri.photo > 0}&y=50&x=50&sid={$sid}{/if}"
class="search" alt="{$fri.username}"/>
{$fri.username}</a>
{if $userlog.id != $frID}
{if $fri.friend == 3}
<a style="float: right; margin-right: 10px; margin-top: 10px;" href="{$selfurl}?ac=msg&mid={$frID}&sid={$sid}">
<input type="button" class="blue" value="{lng p="message"}"/></a>
{/if}
{if $fri.friend == 0}
<a style="float: right; margin-right: 10px; margin-top: 10px;" href="{$selfurl}?ac=fnd&id={$frID}&sid={$sid}">
<input type="button" class="green" value="{lng p="add"}"/></a>
{/if}
{/if}
</div>
<hr/>
{/foreach}