View file Spiderwap.in File Hosting/sys/smarty/templates_c/7d8f51a533d750b005de5a319db1e48dff7a8bef.file.cat.tpl.php

File size: 3.17Kb
<?php /* Smarty version Smarty3-RC3, created on 2010-10-10 17:32:51
         compiled from "X:/home/biling.ru/www/sys/smarty/templates/cat.tpl" */ ?>
<?php /*%%SmartyHeaderCode:234744cb1ce9355a473-39528643%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '7d8f51a533d750b005de5a319db1e48dff7a8bef' => 
    array (
      0 => 'X:/home/biling.ru/www/sys/smarty/templates/cat.tpl',
      1 => 1286552310,
    ),
  ),
  'nocache_hash' => '234744cb1ce9355a473-39528643',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_function_html_options')) include 'X:\home\biling.ru\www\sys\smarty\plugins\function.html_options.php';
if (!is_callable('smarty_modifier_escape')) include 'X:\home\biling.ru\www\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>