Files
aktualia.com.pl/_rejestracja/_Admin/temp/compile/6428a887e83c2aec5b73912172885b476f3dd801_0.file.Index.tpl.php
2026-04-24 15:32:21 +02:00

98 lines
3.6 KiB
PHP

<?php
/* Smarty version 3.1.30, created on 2021-07-22 14:26:29
from "/home/www/_rejestracja/Admin/template/partial/User/Index.tpl" */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.30',
'unifunc' => 'content_60f963f5cefd96_56190704',
'has_nocache_code' => false,
'file_dependency' =>
array (
'6428a887e83c2aec5b73912172885b476f3dd801' =>
array (
0 => '/home/www/_rejestracja/Admin/template/partial/User/Index.tpl',
1 => 1271768768,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_60f963f5cefd96_56190704 (Smarty_Internal_Template $_smarty_tpl) {
if (!is_callable('smarty_function_tableSort')) require_once '/home/www/_rejestracja/core/plugins/Smarty/function.tableSort.php';
if (!is_callable('smarty_function_url')) require_once '/home/www/_rejestracja/core/plugins/Smarty/function.url.php';
?>
<div class="panelRightTop"></div>
<div class="panelRightBody">
<div class="paddedContent">
<div class="panelContentTop"><h2><a href="#" class="long">Administracja</a></h2></div>
<div class="panelContentBody">
<table class="datagrid" cellpadding="0" cellspacing="0" width="100%">
<thead>
<tr >
<th align="left"><?php echo smarty_function_tableSort(array('field'=>'login','title'=>'Login'),$_smarty_tpl);?>
</th>
<th><?php echo smarty_function_tableSort(array('field'=>'last_name','title'=>'Nazwisko'),$_smarty_tpl);?>
</th>
<th><?php echo smarty_function_tableSort(array('field'=>'email','title'=>'email'),$_smarty_tpl);?>
</th>
<th><?php echo smarty_function_tableSort(array('field'=>'role','title'=>'Rola'),$_smarty_tpl);?>
</th>
<th><?php echo smarty_function_tableSort(array('field'=>'last_login','title'=>'Ostatnio zalogowany'),$_smarty_tpl);?>
</th>
<th class="light"><a style="color: #ffffff;" href="<?php echo smarty_function_url(array('User'=>'add'),$_smarty_tpl);?>
">dodaj</a></th>
</tr>
</thead>
<tbody>
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['userList']->value, 'item', false, 'j', 'main_items', array (
));
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['j']->value => $_smarty_tpl->tpl_vars['item']->value) {
?>
<tr <?php if (!(1 & $_smarty_tpl->tpl_vars['j']->value)) {?>class="even"<?php }?>>
<td>
<a href="#"><b><?php echo $_smarty_tpl->tpl_vars['item']->value->GetLogin();?>
</b></a></td>
<td align="center"> <?php echo $_smarty_tpl->tpl_vars['item']->value->GetName();?>
</td>
<td align="center"> <?php echo $_smarty_tpl->tpl_vars['item']->value->GetEmail();?>
</td>
<td align="center"> <?php echo $_smarty_tpl->tpl_vars['item']->value->GetRole();?>
</td>
<td align="center"> <?php echo $_smarty_tpl->tpl_vars['item']->value->GetLastLogin();?>
</td>
<td align="center"> <a href="<?php echo smarty_function_url(array('User'=>'edit','id'=>$_smarty_tpl->tpl_vars['item']->value->GetId()),$_smarty_tpl);?>
">edycja</a> | <a href="<?php echo smarty_function_url(array('user'=>'delete','id'=>$_smarty_tpl->tpl_vars['item']->value->GetId(),'ok'=>1),$_smarty_tpl);?>
" onclick="if(confirm('Czy napewno usunąć tego użytkownika?')){return true;}else{return false;}">usuń</a> </td>
</tr>
<?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
?>
</tbody>
</table>
</div>
<div class="panelContentBottom"></div>
</div>
</div>
<div class="panelRightBottom">
<div class="panelButtons">
</div>
</div><?php }
}