<?
$sm = json_decode(User::a()->user['smiles'],true);
if($sm == NULL)$sm = array();
?>
<div class="content2">
<?if(isset($_GET['back'])):?>
<a class="link3" href="<?=str_replace('+','/',base64_decode($_GET['back']))?>"><img src="/img/icons/back.png" style="margin-right:2px;width:14px">Вернуться</a>
<?endif?>
<div class="info">
<?$i=0;?>
<table width="100%"><tr>
<?foreach($data as $key => $value):?>
<?if(is_int($i/2)):?>
</table></tr>
<table width="100%"><tr>
<?endif?>
<td style="width:50%"><div class="minor"><?=$value[1]?> <?=$value[0]?><?if(!array_key_exists ($key,$sm)):?><a href="<?=$_SERVER['REQUEST_URI']?>&add=<?=$key?>"><img src="/img/like.png" style="margin-left:6px;width:18px"></a><?endif?><?if(array_key_exists ($key,$sm)):?><a href="<?=$_SERVER['REQUEST_URI']?>&del=<?=$key?>"><img src="/img/icons/cancel.png" style="margin-left:6px;width:16px"></a><?endif?></div></td>
<?$i++;?>
<?endforeach?>
</table></tr>
</div>
</div>