File size: 2.31Kb
<?php /* Smarty version Smarty3-RC3, created on 2011-09-19 02:19:34
compiled from "/home/spiderwa/public_html/sys/smarty/templates/ank.file.tpl" */ ?>
<?php /*%%SmartyHeaderCode:14957378244e76def6c76796-49291240%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'3fe124537bcf10ca61ca6916ea6c1e0d530de61e' =>
array (
0 => '/home/spiderwa/public_html/sys/smarty/templates/ank.file.tpl',
1 => 1316411284,
),
),
'nocache_hash' => '14957378244e76def6c76796-49291240',
'function' =>
array (
),
'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_modifier_escape')) include '/home/spiderwa/public_html/sys/smarty/plugins/modifier.escape.php';
?><div class="title"> My Files </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="myfile.php?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="myfile.php?page=<?php echo $_smarty_tpl->getVariable('page')->value+1;?>
">Next</a><br/>
<?php }?>
<form action="myfile.php" method="get">Page <input type="text" size="2" name="page" />
<input type="submit" value="go" /></form>
</div>
<?php }?>