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

Размер файла: 4.07Kb
<?php /* Smarty version Smarty3-b8, created on 2013-03-09 06:31:25
         compiled from "template/m/search.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1462513ad73da9b126-53295476%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'c30cb9abf63dab121281a941d9d1951777a941a3' => 
    array (
      0 => 'template/m/search.tpl',
      1 => 1362810642,
    ),
  ),
  'nocache_hash' => '1462513ad73da9b126-53295476',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<div class="shade"><b><?php echo Lang(array('p'=>"search"),$_smarty_tpl->smarty,$_smarty_tpl);?>
</b>
<form id="search" action="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
" method="get">
  <input type="hidden" name="ac" value="srh"/>
  <input type="text" name="q" maxlength="32"<?php if ($_smarty_tpl->getVariable('q')->value){?> value="<?php echo $_smarty_tpl->getVariable('q')->value;?>
"<?php }?>/>
  <input type="submit" class="login" value="<?php echo Lang(array('p'=>"search"),$_smarty_tpl->smarty,$_smarty_tpl);?>
"/>
  <input type="hidden" name="sid" value="<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"/>
</form>
</div>
<?php if ($_smarty_tpl->getVariable('err')->value){?>
<div class="error"> <?php echo $_smarty_tpl->getVariable('err')->value;?>
 </div>
<?php }else{ ?>
<?php  $_smarty_tpl->tpl_vars['se'] = new Smarty_Variable;
 $_smarty_tpl->tpl_vars['searID'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('sear')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if (count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['se']->key => $_smarty_tpl->tpl_vars['se']->value){
 $_smarty_tpl->tpl_vars['searID']->value = $_smarty_tpl->tpl_vars['se']->key;
?>
<div class="blank">
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=prf&amp;id=<?php echo $_smarty_tpl->getVariable('searID')->value;?>
&amp;sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
">
<img src="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
<?php if ($_smarty_tpl->getVariable('se')->value['photo']>0){?>?ac=tub&amp;img=<?php }?><?php echo $_smarty_tpl->getVariable('se')->value['url'];?>
<?php if ($_smarty_tpl->getVariable('se')->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('se')->value['username'];?>
"/> 
<?php echo $_smarty_tpl->getVariable('se')->value['username'];?>
</a> 
<?php if ($_smarty_tpl->getVariable('userlog')->value['id']!=$_smarty_tpl->getVariable('searID')->value){?>
<?php if ($_smarty_tpl->getVariable('se')->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('searID')->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('se')->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('searID')->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 }} ?>
<?php if ($_smarty_tpl->getVariable('older')->value){?>
<div class="shader"> <a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=srh&amp;q=<?php echo $_smarty_tpl->getVariable('q')->value;?>
&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 }?>
<?php }?>