EIOS/integration/tpl/templates_c/5ef96fe461288f80495aec019c5...

62 lines
3.8 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/* Smarty version 4.0.0-rc.0, created on 2023-09-19 11:25:55
from '/home/admin/web/eios.mkgtu.ru/public_html/rabprog/tpl/mod_navpages.html' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '4.0.0-rc.0',
'unifunc' => 'content_65095b1312d1e9_79458188',
'has_nocache_code' => false,
'file_dependency' =>
array (
'5ef96fe461288f80495aec019c5f716465eba367' =>
array (
0 => '/home/admin/web/eios.mkgtu.ru/public_html/rabprog/tpl/mod_navpages.html',
1 => 1663218165,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_65095b1312d1e9_79458188 (Smarty_Internal_Template $_smarty_tpl) {
?><div class="row">
<div class="col-md-2">
<span>Всего записей: <?php echo $_smarty_tpl->tpl_vars['nav']->value['all'];?>
</span> |
</div>
<div class="col-md-10">
<?php if ($_smarty_tpl->tpl_vars['nav']->value['pages'] > 24) {?>
<select class="form-select form-control-sm navpage_select" data-url="<?php echo $_smarty_tpl->tpl_vars['url']->value;?>
">
<?php
$_smarty_tpl->tpl_vars['i'] = new Smarty_Variable(null, $_smarty_tpl->isRenderingCache);$_smarty_tpl->tpl_vars['i']->step = 1;$_smarty_tpl->tpl_vars['i']->total = (int) ceil(($_smarty_tpl->tpl_vars['i']->step > 0 ? $_smarty_tpl->tpl_vars['nav']->value['pages']+1 - (1) : 1-($_smarty_tpl->tpl_vars['nav']->value['pages'])+1)/abs($_smarty_tpl->tpl_vars['i']->step));
if ($_smarty_tpl->tpl_vars['i']->total > 0) {
for ($_smarty_tpl->tpl_vars['i']->value = 1, $_smarty_tpl->tpl_vars['i']->iteration = 1;$_smarty_tpl->tpl_vars['i']->iteration <= $_smarty_tpl->tpl_vars['i']->total;$_smarty_tpl->tpl_vars['i']->value += $_smarty_tpl->tpl_vars['i']->step, $_smarty_tpl->tpl_vars['i']->iteration++) {
$_smarty_tpl->tpl_vars['i']->first = $_smarty_tpl->tpl_vars['i']->iteration === 1;$_smarty_tpl->tpl_vars['i']->last = $_smarty_tpl->tpl_vars['i']->iteration === $_smarty_tpl->tpl_vars['i']->total;?>
<option value="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" <?php if ($_smarty_tpl->tpl_vars['i']->value == $_smarty_tpl->tpl_vars['nav']->value['curpage']) {?>SELECTED<?php }?>><?php echo $_smarty_tpl->tpl_vars['i']->value;?>
<?php if ($_smarty_tpl->tpl_vars['i']->value == $_smarty_tpl->tpl_vars['nav']->value['curpage']) {?>текущая<?php }?></option>
<?php }
}
?>
</select>
<?php } else { ?>
<?php
$_smarty_tpl->tpl_vars['i'] = new Smarty_Variable(null, $_smarty_tpl->isRenderingCache);$_smarty_tpl->tpl_vars['i']->step = 1;$_smarty_tpl->tpl_vars['i']->total = (int) ceil(($_smarty_tpl->tpl_vars['i']->step > 0 ? $_smarty_tpl->tpl_vars['nav']->value['pages']+1 - (1) : 1-($_smarty_tpl->tpl_vars['nav']->value['pages'])+1)/abs($_smarty_tpl->tpl_vars['i']->step));
if ($_smarty_tpl->tpl_vars['i']->total > 0) {
for ($_smarty_tpl->tpl_vars['i']->value = 1, $_smarty_tpl->tpl_vars['i']->iteration = 1;$_smarty_tpl->tpl_vars['i']->iteration <= $_smarty_tpl->tpl_vars['i']->total;$_smarty_tpl->tpl_vars['i']->value += $_smarty_tpl->tpl_vars['i']->step, $_smarty_tpl->tpl_vars['i']->iteration++) {
$_smarty_tpl->tpl_vars['i']->first = $_smarty_tpl->tpl_vars['i']->iteration === 1;$_smarty_tpl->tpl_vars['i']->last = $_smarty_tpl->tpl_vars['i']->iteration === $_smarty_tpl->tpl_vars['i']->total;?>
<a href="<?php echo $_smarty_tpl->tpl_vars['url']->value;?>
p<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
/" class="btn btn-sm <?php if ($_smarty_tpl->tpl_vars['i']->value == $_smarty_tpl->tpl_vars['nav']->value['curpage']) {?>btn-success<?php } else { ?>btn-secondary<?php }?>" style="padding-bottom: 0;padding-top: 0;"><?php echo $_smarty_tpl->tpl_vars['i']->value;?>
</a>
<?php }
}
?>
<?php }?>
</div>
</div><?php }
}