Просмотр файла template_c/1da73dfdacaf5389d7bb0dd4a5b1104199c2687c.file.friends.tpl.php

Размер файла: 3.79Kb
<?php /* Smarty version Smarty3-b8, created on 2013-03-10 08:22:10
         compiled from "template/m/friends.tpl" */ ?>
<?php /*%%SmartyHeaderCode:8363513c42b265f978-87182143%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '1da73dfdacaf5389d7bb0dd4a5b1104199c2687c' => 
    array (
      0 => 'template/m/friends.tpl',
      1 => 1362903687,
    ),
  ),
  'nocache_hash' => '8363513c42b265f978-87182143',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_smarty_tpl->getVariable('err')->value){?>
<div class="error">
<?php echo Lang(array('p'=>"user_not_found"),$_smarty_tpl->smarty,$_smarty_tpl);?>

</div>
<?php }?>
<div class="shade">
<b><?php echo Lang(array('p'=>"friends"),$_smarty_tpl->smarty,$_smarty_tpl);?>
</b>
<form action="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=fnd<?php if ($_smarty_tpl->getVariable('fid')->value){?>&amp;fid=<?php echo $_smarty_tpl->getVariable('fid')->value;?>
<?php }?>&amp;sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
" method="post">
<input type="text" name="user"<?php if ($_smarty_tpl->getVariable('user')->value){?> value="<?php echo $_smarty_tpl->getVariable('user')->value;?>
"<?php }?>/>
<input type="submit" class="login" value="Search"/>
</form>
</div>
<?php if ($_smarty_tpl->getVariable('Count')->value==0){?>
<div class="error">
<?php echo Lang(array('p'=>"no_user_found"),$_smarty_tpl->smarty,$_smarty_tpl);?>

</div>
<?php }?>
<?php  $_smarty_tpl->tpl_vars['fri'] = new Smarty_Variable;
 $_smarty_tpl->tpl_vars['frID'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('friend')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if (count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['fri']->key => $_smarty_tpl->tpl_vars['fri']->value){
 $_smarty_tpl->tpl_vars['frID']->value = $_smarty_tpl->tpl_vars['fri']->key;
?>
<div class="blank">
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=prf&amp;id=<?php echo $_smarty_tpl->getVariable('frID')->value;?>
&amp;sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
">
<img src="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
<?php if ($_smarty_tpl->getVariable('fri')->value['photo']>0){?>?ac=tub&amp;img=<?php }?><?php echo $_smarty_tpl->getVariable('fri')->value['url'];?>
<?php if ($_smarty_tpl->getVariable('fri')->value['photo']>0){?>&amp;y=50&amp;x=50&amp;sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
<?php }?>" 
class="search" alt="<?php echo $_smarty_tpl->getVariable('fri')->value['username'];?>
"/> 
<?php echo $_smarty_tpl->getVariable('fri')->value['username'];?>
</a> 
<?php if ($_smarty_tpl->getVariable('userlog')->value['id']!=$_smarty_tpl->getVariable('frID')->value){?>
<?php if ($_smarty_tpl->getVariable('fri')->value['friend']==3){?> 
<a style="float: right; margin-right: 10px; margin-top: 10px;" href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=msg&amp;mid=<?php echo $_smarty_tpl->getVariable('frID')->value;?>
&amp;sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
">
<input type="button" class="blue" value="<?php echo Lang(array('p'=>"message"),$_smarty_tpl->smarty,$_smarty_tpl);?>
"/></a>
<?php }?>
<?php if ($_smarty_tpl->getVariable('fri')->value['friend']==0){?> 
<a style="float: right; margin-right: 10px; margin-top: 10px;" href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=fnd&amp;id=<?php echo $_smarty_tpl->getVariable('frID')->value;?>
&amp;sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
">
<input type="button" class="green" value="<?php echo Lang(array('p'=>"add"),$_smarty_tpl->smarty,$_smarty_tpl);?>
"/></a>
<?php }?>
<?php }?>
</div>
<hr/>
<?php }} ?>