124 lines
6.2 KiB
PHP
124 lines
6.2 KiB
PHP
<?php
|
|
/* Smarty version 3.1.30, created on 2024-02-05 15:07:06
|
|
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/File/IndexStructure.tpl" */
|
|
|
|
/* @var Smarty_Internal_Template $_smarty_tpl */
|
|
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
|
'version' => '3.1.30',
|
|
'unifunc' => 'content_65c0f99a294bd1_28473292',
|
|
'has_nocache_code' => false,
|
|
'file_dependency' =>
|
|
array (
|
|
'2c64852a638f53052e6cc382c2b39c488ef4b94d' =>
|
|
array (
|
|
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/File/IndexStructure.tpl',
|
|
1 => 1684736063,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'includes' =>
|
|
array (
|
|
),
|
|
),false)) {
|
|
function content_65c0f99a294bd1_28473292 (Smarty_Internal_Template $_smarty_tpl) {
|
|
if (!is_callable('smarty_block_dropDownContainer')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/block.dropDownContainer.php';
|
|
if (!is_callable('smarty_function_url')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/function.url.php';
|
|
if (!is_callable('smarty_function_insertPagination')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/function.insertPagination.php';
|
|
?>
|
|
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>(($tmp = @$_smarty_tpl->tpl_vars['moduleName']->value)===null||$tmp==='' ? "Lista" : $tmp),'icon'=>$_smarty_tpl->tpl_vars['moduleBoxConfg']->value['files'],'moduleBoxId'=>$_smarty_tpl->tpl_vars['moduleBoxId']->value,'publish'=>$_smarty_tpl->tpl_vars['param']->value['modulePublication']));
|
|
$_block_repeat1=true;
|
|
echo smarty_block_dropDownContainer(array('title'=>(($tmp = @$_smarty_tpl->tpl_vars['moduleName']->value)===null||$tmp==='' ? "Lista" : $tmp),'icon'=>$_smarty_tpl->tpl_vars['moduleBoxConfg']->value['files'],'moduleBoxId'=>$_smarty_tpl->tpl_vars['moduleBoxId']->value,'publish'=>$_smarty_tpl->tpl_vars['param']->value['modulePublication']), null, $_smarty_tpl, $_block_repeat1);
|
|
while ($_block_repeat1) {
|
|
ob_start();
|
|
?>
|
|
|
|
<table width="100%" class="datagrid" cellpadding="4" cellspacing="1" border="0">
|
|
<tr>
|
|
<th>id</th>
|
|
<th>tytuł</th>
|
|
<th>data utworzenia</th>
|
|
<th>publikacja</th>
|
|
|
|
|
|
<th style="width: 40px; text-align: center;" >
|
|
<a class="optionIcon iconAdd" title="EdDodajytuj" href="<?php echo smarty_function_url(array('File'=>'Add'),$_smarty_tpl);?>
|
|
" <?php if (isset($_smarty_tpl->tpl_vars['add']->value)) {?>onclick="alert('Aby dodać wpis, proszę zapisać element struktury'); return false;" <?php }?>> </a>
|
|
</th>
|
|
</tr>
|
|
<?php if (!isset($_smarty_tpl->tpl_vars['add']->value)) {?>
|
|
<?php $_smarty_tpl->_assignInScope('x', 1);
|
|
?>
|
|
<?php
|
|
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['arrayObj']->value, 'obj', false, NULL, 'obj', array (
|
|
'last' => true,
|
|
'iteration' => true,
|
|
'total' => true,
|
|
));
|
|
if ($_from !== null) {
|
|
foreach ($_from as $_smarty_tpl->tpl_vars['obj']->value) {
|
|
$_smarty_tpl->tpl_vars['__smarty_foreach_obj']->value['iteration']++;
|
|
$_smarty_tpl->tpl_vars['__smarty_foreach_obj']->value['last'] = $_smarty_tpl->tpl_vars['__smarty_foreach_obj']->value['iteration'] == $_smarty_tpl->tpl_vars['__smarty_foreach_obj']->value['total'];
|
|
?>
|
|
<tr <?php if ($_smarty_tpl->tpl_vars['x']->value == 1) {
|
|
$_smarty_tpl->_assignInScope('x', 0);
|
|
} else {
|
|
$_smarty_tpl->_assignInScope('x', 1);
|
|
?>class="even"<?php }?>>
|
|
<td><?php echo $_smarty_tpl->tpl_vars['obj']->value->GetId();?>
|
|
</td>
|
|
<td><?php echo $_smarty_tpl->tpl_vars['obj']->value->GetTitle();?>
|
|
</td>
|
|
<td><?php echo $_smarty_tpl->tpl_vars['obj']->value->GetDate();?>
|
|
</td>
|
|
<td><?php if ($_smarty_tpl->tpl_vars['obj']->value->GetPublication()) {?>p*<?php }?></td>
|
|
|
|
|
|
<td style="text-align: center;">
|
|
<a class="optionIcon iconEdit" title="Edytuj" href="<?php echo smarty_function_url(array('File'=>'Edit','idFile'=>$_smarty_tpl->tpl_vars['obj']->value->GetId(),'idElement'=>$_smarty_tpl->tpl_vars['idElement']->value),$_smarty_tpl);?>
|
|
"> </a>
|
|
<?php if ($_smarty_tpl->tpl_vars['admin']->value->GetRole() != 'moderator') {?>
|
|
<a class="optionIcon iconDelete" title="Usuń" href="<?php echo smarty_function_url(array('File'=>'Delete','idFile'=>$_smarty_tpl->tpl_vars['obj']->value->GetId(),'idElement'=>$_smarty_tpl->tpl_vars['idElement']->value),$_smarty_tpl);?>
|
|
" onclick="if (ConfirmAction('Czy napewno usunęć ten element?', '<?php echo smarty_function_url(array('File'=>'Delete','idFile'=>$_smarty_tpl->tpl_vars['obj']->value->GetId(),'idElement'=>$_smarty_tpl->tpl_vars['idElement']->value),$_smarty_tpl);?>
|
|
')) { } else {return false;}"> </a>
|
|
<?php }?>
|
|
</td>
|
|
</tr>
|
|
|
|
<?php if ((isset($_smarty_tpl->tpl_vars['__smarty_foreach_obj']->value['last']) ? $_smarty_tpl->tpl_vars['__smarty_foreach_obj']->value['last'] : null)) {?>
|
|
<tr>
|
|
<td colspan="10" align="center" >
|
|
<div class="paging">
|
|
<?php echo smarty_function_insertPagination(array(),$_smarty_tpl);?>
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<?php }?>
|
|
<?php
|
|
}
|
|
} else {
|
|
?>
|
|
|
|
<?php if (!isset($_smarty_tpl->tpl_vars['searchString']->value) || $_smarty_tpl->tpl_vars['searchString']->value == '') {?>
|
|
<tr>
|
|
<td colspan="5" style="text-align: center;">Brak zdefiniowanych artykułów. <br/> Aby dodać kliknij link 'dodaj'.</td>
|
|
</tr>
|
|
<?php }?>
|
|
<?php
|
|
}
|
|
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
|
?>
|
|
|
|
<?php } else { ?>
|
|
<tr>
|
|
<td colspan="5" style="text-align: center;">Aby dodać wpis, proszę zapisać element struktury.</td>
|
|
</tr>
|
|
<?php }?>
|
|
</table>
|
|
<?php $_block_repeat1=false;
|
|
echo smarty_block_dropDownContainer(array('title'=>(($tmp = @$_smarty_tpl->tpl_vars['moduleName']->value)===null||$tmp==='' ? "Lista" : $tmp),'icon'=>$_smarty_tpl->tpl_vars['moduleBoxConfg']->value['files'],'moduleBoxId'=>$_smarty_tpl->tpl_vars['moduleBoxId']->value,'publish'=>$_smarty_tpl->tpl_vars['param']->value['modulePublication']), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
|
}
|
|
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);
|
|
}
|
|
}
|