View file Spiderwap.in File Hosting/sys/smarty/templates_c/8bed23db0166b13d136b64fc8d52f32d5698ee21.file.users.tpl.php

File size: 3.22Kb
<?php /* Smarty version Smarty3-RC3, created on 2010-10-10 17:33:49
         compiled from "X:/home/biling.ru/www/sys/smarty/templates/users.tpl" */ ?>
<?php /*%%SmartyHeaderCode:216164cb1cecdd197a6-53562709%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '8bed23db0166b13d136b64fc8d52f32d5698ee21' => 
    array (
      0 => 'X:/home/biling.ru/www/sys/smarty/templates/users.tpl',
      1 => 1286705348,
    ),
  ),
  'nocache_hash' => '216164cb1cecdd197a6-53562709',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_block_php')) include 'X:\home\biling.ru\www\sys\smarty\plugins\block.php.php';
?><div class="title"> Пользователи </div>
<?php include_once ('X:\home\biling.ru\www\sys\file\img.php');?>

<?php  $_smarty_tpl->tpl_vars['user1'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('users')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if (count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['user1']->key => $_smarty_tpl->tpl_vars['user1']->value){
?>
<div class="main">
<?php if (is_file("ava/".($_smarty_tpl->tpl_vars['user1']->value['ava']))){?>
<?php if (!is_file("avatmp/".($_smarty_tpl->tpl_vars['user1']->value['ava']))){?>
<?php $_smarty_tpl->smarty->_tag_stack[] = array('php', array()); $_block_repeat=true; smarty_block_php(array(), null, $_smarty_tpl->smarty, $_block_repeat, $_smarty_tpl);while ($_block_repeat) { ob_start();?>

echo '<img src="avatmp/'.resize('<?php echo $_smarty_tpl->tpl_vars['user1']->value['ava'];?>
',30,'',true).'" alt="ava" />';
<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_php(array(), $_block_content, $_smarty_tpl->smarty, $_block_repeat, $_smarty_tpl); } array_pop($_smarty_tpl->smarty->_tag_stack);?>

<?php }else{ ?>
<img src="/avatmp/<?php echo $_smarty_tpl->tpl_vars['user1']->value['ava'];?>
" alt="ava" />
<?php }?>
<?php }else{ ?>
<img src="/images/guest.gif" alt="" />
<?php }?>
 <a href="/anketa-<?php echo $_smarty_tpl->tpl_vars['user1']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['user1']->value['nick'];?>
</a>
</div>
<?php }} ?>

<?php ob_start();?><?php echo $_smarty_tpl->getVariable('vse')->value;?>
<?php $_tmp1=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->getVariable('one')->value;?>
<?php $_tmp2=ob_get_clean();?><?php if ($_tmp1>$_tmp2){?>
<div class="ads">
<?php ob_start();?><?php echo $_smarty_tpl->getVariable('page')->value;?>
<?php $_tmp3=ob_get_clean();?><?php if ($_tmp3>1){?>
<a href="users.php?page=<?php echo $_smarty_tpl->getVariable('page')->value-1;?>
">Пред.</a>
<?php }?>
<?php ob_start();?><?php echo $_smarty_tpl->getVariable('page')->value;?>
<?php $_tmp4=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->getVariable('all')->value;?>
<?php $_tmp5=ob_get_clean();?><?php if ($_tmp4<$_tmp5){?>
<a href="users.php?page=<?php echo $_smarty_tpl->getVariable('page')->value+1;?>
">След.</a><br/>
<?php }?>
<form action="users.php" method="get">Стр. <input type="text" size="2" name="page" />
<input type="submit" value="go" /></form>
</div>
<?php }?>