View file Spiderwap.in File Hosting/sys/smarty/templates_c/73cc8caea9d7d3730b7cf6c529516459c164d039.file.cat.tpl.php

File size: 3.2Kb
<?php /* Smarty version Smarty3-RC3, created on 2010-11-14 12:16:20
         compiled from "/home/elpik209/public_html/sys/smarty/templates/cat.tpl" */ ?>
<?php /*%%SmartyHeaderCode:20306628654cdfa8e49dd348-97166360%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '73cc8caea9d7d3730b7cf6c529516459c164d039' => 
    array (
      0 => '/home/elpik209/public_html/sys/smarty/templates/cat.tpl',
      1 => 1286548710,
    ),
  ),
  'nocache_hash' => '20306628654cdfa8e49dd348-97166360',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_function_html_options')) include '/home/elpik209/public_html/sys/smarty/plugins/function.html_options.php';
if (!is_callable('smarty_modifier_escape')) include '/home/elpik209/public_html/sys/smarty/plugins/modifier.escape.php';
?><div class="title">Категория | <?php echo $_smarty_tpl->getVariable('name')->value;?>
</div>
<div class="ads">Сортировка:
<form action="cat-<?php echo $_smarty_tpl->getVariable('cat')->value;?>
" method="get">
<input type="hidden" name="" value="" />
<input type="hidden" name="page" value="<?php echo $_smarty_tpl->getVariable('page')->value;?>
" />
<?php echo smarty_function_html_options(array('name'=>'sort','options'=>$_smarty_tpl->getVariable('sorts')->value),$_smarty_tpl->smarty,$_smarty_tpl);?>
 <input type="submit" value="go">
</form>
</div>

<?php  $_smarty_tpl->tpl_vars['file'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('files')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if (count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['file']->key => $_smarty_tpl->tpl_vars['file']->value){
?>
<div class="main">
<a href="/file-<?php echo $_smarty_tpl->tpl_vars['file']->value['id'];?>
"><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['file']->value['name'],'html');?>
</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="cat-<?php echo $_smarty_tpl->getVariable('cat')->value;?>
?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="cat-<?php echo $_smarty_tpl->getVariable('cat')->value;?>
?page=<?php echo $_smarty_tpl->getVariable('page')->value+1;?>
">След.</a><br/>
<?php }?>
<form action="cat-<?php echo $_smarty_tpl->getVariable('cat')->value;?>
" method="get">Стр. <input type="text" size="2" name="page" />
<input type="submit" value="go" /></form>
</div>
<?php }?>

<div class="title"><a href="/category.php">Cписок категорий</a></div>