114 lines
4.8 KiB
PHP
114 lines
4.8 KiB
PHP
<?php
|
|
/* Smarty version 3.1.30, created on 2024-02-03 22:32:59
|
|
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/HomeSite/ArticleBox.tpl" */
|
|
|
|
/* @var Smarty_Internal_Template $_smarty_tpl */
|
|
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
|
'version' => '3.1.30',
|
|
'unifunc' => 'content_65bebf1bc4ad04_98293590',
|
|
'has_nocache_code' => false,
|
|
'file_dependency' =>
|
|
array (
|
|
'57a5c2f194518629184ea1db04432886789382b3' =>
|
|
array (
|
|
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/HomeSite/ArticleBox.tpl',
|
|
1 => 1703168200,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'includes' =>
|
|
array (
|
|
),
|
|
),false)) {
|
|
function content_65bebf1bc4ad04_98293590 (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_modifier_translateAdmin')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/modifier.translateAdmin.php';
|
|
if (!is_callable('smarty_function_url')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/function.url.php';
|
|
?>
|
|
|
|
<?php echo '<script'; ?>
|
|
language="javascript" type="text/javascript">
|
|
urlStatic = '<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
|
';
|
|
<?php echo '</script'; ?>
|
|
>
|
|
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>"Treść strona główna"));
|
|
$_block_repeat1=true;
|
|
echo smarty_block_dropDownContainer(array('title'=>"Treść strona główna"), 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>nazwa</th>
|
|
<th>Kolejność</th>
|
|
<th>Publikacja</th>
|
|
|
|
<th style="width: 40px; text-align: center;" >
|
|
<a class="optionIcon iconAdd" title="<?php echo smarty_modifier_translateAdmin('Add');?>
|
|
" href="<?php echo smarty_function_url(array('HomeSite'=>'EditArticle'),$_smarty_tpl);?>
|
|
"> </a>
|
|
|
|
|
|
</th>
|
|
</tr>
|
|
|
|
<?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 (
|
|
));
|
|
if ($_from !== null) {
|
|
foreach ($_from as $_smarty_tpl->tpl_vars['obj']->value) {
|
|
?>
|
|
<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->GetName();?>
|
|
</td>
|
|
<td><?php echo $_smarty_tpl->tpl_vars['obj']->value->GetWeight();?>
|
|
</td>
|
|
<td><a id="publicationIcon_homeArt_<?php echo $_smarty_tpl->tpl_vars['obj']->value->GetId();?>
|
|
" class="optionIcon <?php if ($_smarty_tpl->tpl_vars['obj']->value->GetPublication() == 1) {?>iconPublishOn<?php } else { ?>iconPublishOff<?php }?>" title="<?php if ($_smarty_tpl->tpl_vars['obj']->value->GetPublication() == 1) {?>Niepublikuj<?php } else { ?>Publikuj<?php }?>" href="#" onclick="PublishItem('<?php echo smarty_function_url(array('HomeSite'=>'AjaxPublishArticleBox'),$_smarty_tpl);?>
|
|
',<?php echo $_smarty_tpl->tpl_vars['obj']->value->GetId();?>
|
|
,'publicationIcon_homeArt_<?php echo $_smarty_tpl->tpl_vars['obj']->value->GetId();?>
|
|
'); return false;"> </a></td>
|
|
|
|
<td style="text-align: center;">
|
|
<a class="optionIcon iconEdit" title="Edytuj" href="<?php echo smarty_function_url(array('HomeSite'=>'EditArticle','id'=>$_smarty_tpl->tpl_vars['obj']->value->GetId()),$_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('HomeSite'=>'DeleteArticleBox','id'=>$_smarty_tpl->tpl_vars['obj']->value->GetId()),$_smarty_tpl);?>
|
|
" onclick="if (ConfirmAction('Czy napewno usunęć ten element?', '<?php echo smarty_function_url(array('HomeSite'=>'DeleteArticleBox','id'=>$_smarty_tpl->tpl_vars['obj']->value->GetId()),$_smarty_tpl);?>
|
|
')) { } else {return false;}"> </a>
|
|
<?php }?>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
|
|
<?php
|
|
}
|
|
}
|
|
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
|
?>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
<?php $_block_repeat1=false;
|
|
echo smarty_block_dropDownContainer(array('title'=>"Treść strona główna"), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
|
}
|
|
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>
|
|
|
|
|
|
<?php }
|
|
}
|