Просмотр файла template_c/c27a7b42428ac172100af3d2938b3c1d12b8b1d7.file.online.tpl.php

Размер файла: 4.87Kb
<?php /* Smarty version Smarty3-b8, created on 2013-03-12 11:47:08
         compiled from "template/m/online.tpl" */ ?>
<?php /*%%SmartyHeaderCode:24786513f15bc5cf586-37747266%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'c27a7b42428ac172100af3d2938b3c1d12b8b1d7' => 
    array (
      0 => 'template/m/online.tpl',
      1 => 1363088824,
    ),
  ),
  'nocache_hash' => '24786513f15bc5cf586-37747266',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<div class="shade"><b><?php echo Lang(array('p'=>"online"),$_smarty_tpl->smarty,$_smarty_tpl);?>
</b>
<form action="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=on&amp;sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
" method="post">
  <input type="text" name="q" maxlength="32"<?php if ($_smarty_tpl->getVariable('search')->value){?> value="<?php echo $_smarty_tpl->getVariable('search')->value;?>
"<?php }?>/>
  <input type="submit" class="login" value="Search"/><br/>
<?php echo Lang(array('p'=>"all"),$_smarty_tpl->smarty,$_smarty_tpl);?>

<input type="radio" name="typ"<?php if ($_smarty_tpl->getVariable('type')->value==1){?> checked="checked" <?php }?> value="1"/>
<?php echo Lang(array('p'=>"friends"),$_smarty_tpl->smarty,$_smarty_tpl);?>

<input type="radio" name="typ"<?php if ($_smarty_tpl->getVariable('type')->value==2){?> checked="checked" <?php }?> value="2"/>
</form>
</div>
<?php if ($_smarty_tpl->getVariable('Count')->value==0){?>
<div class="error">
<?php if ($_smarty_tpl->getVariable('result')->value){?>
<?php echo $_smarty_tpl->getVariable('result')->value;?>

<?php }else{ ?>
<?php echo Lang(array('p'=>"no"),$_smarty_tpl->smarty,$_smarty_tpl);?>
 <?php if ($_smarty_tpl->getVariable('type')->value==2){?><?php echo Lang(array('p'=>"friends"),$_smarty_tpl->smarty,$_smarty_tpl);?>
 <?php }?><?php echo Lang(array('p'=>"online"),$_smarty_tpl->smarty,$_smarty_tpl);?>

<?php }?>
</div>
<?php }?>
<?php  $_smarty_tpl->tpl_vars['on'] = new Smarty_Variable;
 $_smarty_tpl->tpl_vars['onID'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('online')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if (count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['on']->key => $_smarty_tpl->tpl_vars['on']->value){
 $_smarty_tpl->tpl_vars['onID']->value = $_smarty_tpl->tpl_vars['on']->key;
?>
<div class="blank">
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=prf&amp;id=<?php echo $_smarty_tpl->getVariable('onID')->value;?>
&amp;sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
">
<img src="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
<?php if ($_smarty_tpl->getVariable('on')->value['photo']>0){?>?ac=tub&amp;img=<?php }?><?php echo $_smarty_tpl->getVariable('on')->value['photo'];?>
<?php if ($_smarty_tpl->getVariable('on')->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('on')->value['username'];?>
"/> 
<?php echo $_smarty_tpl->getVariable('on')->value['username'];?>
</a> 
<?php if ($_smarty_tpl->getVariable('userlog')->value['id']!=$_smarty_tpl->getVariable('onID')->value){?>
<?php if ($_smarty_tpl->getVariable('on')->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('onID')->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('on')->value['friend']==0){?> 
<a cstyle="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('onID')->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>
<?php }} ?>
<?php if ($_smarty_tpl->getVariable('older')->value){?>
<div class="shader">
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=on<?php if ($_smarty_tpl->getVariable('search')->value){?>&amp;q=<?php echo $_smarty_tpl->getVariable('search')->value;?>
<?php }?><?php if ($_smarty_tpl->getVariable('type')->value){?>&amp;typ=<?php echo $_smarty_tpl->getVariable('type')->value;?>
<?php }?>&amp;pg=<?php echo $_smarty_tpl->getVariable('older')->value;?>
&amp;sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php echo Lang(array('p'=>"see_more_results"),$_smarty_tpl->smarty,$_smarty_tpl);?>
</a>
</div>
<?php }?>