Просмотр файла template/m/online.tpl

Размер файла: 1.59Kb
<div class="shade"><b>{lng p="online"}</b>
<form action="{$selfurl}?ac=on&amp;sid={$sid}" method="post">
  <input type="text" name="q" maxlength="32"{if $search} value="{$search}"{/if}/>
  <input type="submit" class="login" value="Search"/><br/>
{lng p="all"}
<input type="radio" name="typ"{if $type == 1} checked="checked" {/if} value="1"/>
{lng p="friends"}
<input type="radio" name="typ"{if $type == 2} checked="checked" {/if} value="2"/>
</form>
</div>
{if $Count == 0}
<div class="error">
{if $result}
{$result}
{else}
{lng p="no"} {if $type == 2}{lng p="friends"} {/if}{lng p="online"}
{/if}
</div>
{/if}
{foreach from=$online item=on key=onID}
<div class="blank">
<a href="{$selfurl}?ac=prf&amp;id={$onID}&amp;sid={$sid}">
<img src="{$selfurl}{if $on.photo > 0}?ac=tub&amp;img={/if}{$on.photo}{if $on.photo > 0}&amp;y=50&amp;x=50&amp;sid={$sid}{/if}" 
class="search" alt="{$on.username}"/> 
{$on.username}</a> 
{if $userlog.id != $onID}
{if $on.friend == 3} 
<a style="float: right; margin-right: 10px; margin-top: 10px;" href="{$selfurl}?ac=msg&amp;mid={$onID}&amp;sid={$sid}">
<input type="button" class="blue" value="{lng p="message"}"/></a>
{/if}
{if $on.friend == 0} 
<a cstyle="float: right; margin-right: 10px; margin-top: 10px;" href="{$selfurl}?ac=fnd&amp;id={$onID}&amp;sid={$sid}">
<input type="button" class="green" value="{lng p="add"}"/></a>
{/if}
{/if}
</div>
{/foreach}
{if $older}
<div class="shader">
<a href="{$selfurl}?ac=on{if $search}&amp;q={$search}{/if}{if $type}&amp;typ={$type}{/if}&amp;pg={$older}&amp;sid={$sid}">{lng p="see_more_results"}</a>
</div>
{/if}