View file Spiderwap.in File Hosting/sys/smarty/templates_c/5b1a9e3362b771acb3dc96d36ec7fc2b8ca0e733.file.cat.tpl.php

File size: 3.15Kb
<?php /* Smarty version Smarty3-RC3, created on 2011-09-19 01:56:11
         compiled from "/home/spiderwa/public_html/sys/smarty/templates/cat.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1008335974e76d97b81d107-74245075%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '5b1a9e3362b771acb3dc96d36ec7fc2b8ca0e733' => 
    array (
      0 => '/home/spiderwa/public_html/sys/smarty/templates/cat.tpl',
      1 => 1316411742,
    ),
  ),
  'nocache_hash' => '1008335974e76d97b81d107-74245075',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_function_html_options')) include '/home/spiderwa/public_html/sys/smarty/plugins/function.html_options.php';
if (!is_callable('smarty_modifier_escape')) include '/home/spiderwa/public_html/sys/smarty/plugins/modifier.escape.php';
?><div class="title">Category | <?php echo $_smarty_tpl->getVariable('name')->value;?>
</div>
<div class="ads">Sorting:
<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;?>
">Prev</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;?>
">Next</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">All Files</a></div>