68 lines
2.1 KiB
PHP
68 lines
2.1 KiB
PHP
<?php /* Smarty version 3.1.27, created on 2016-11-01 11:09:59
|
|
compiled from "template/templates/training_list.tpl" */ ?>
|
|
<?php
|
|
/*%%SmartyHeaderCode:1507137256581869f7605c74_55456203%%*/
|
|
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
$_valid = $_smarty_tpl->decodeProperties(array (
|
|
'file_dependency' =>
|
|
array (
|
|
'13018198cb1e222ff806c89075f6697c0a9d8f02' =>
|
|
array (
|
|
0 => 'template/templates/training_list.tpl',
|
|
1 => 1477994997,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'nocache_hash' => '1507137256581869f7605c74_55456203',
|
|
'variables' =>
|
|
array (
|
|
'training_array' => 0,
|
|
'edit' => 0,
|
|
'training' => 0,
|
|
),
|
|
'has_nocache_code' => false,
|
|
'version' => '3.1.27',
|
|
'unifunc' => 'content_581869f766ae75_24014916',
|
|
),false);
|
|
/*/%%SmartyHeaderCode%%*/
|
|
if ($_valid && !is_callable('content_581869f766ae75_24014916')) {
|
|
function content_581869f766ae75_24014916 ($_smarty_tpl) {
|
|
|
|
$_smarty_tpl->properties['nocache_hash'] = '1507137256581869f7605c74_55456203';
|
|
?>
|
|
<table>
|
|
|
|
<tr>
|
|
<td colspan="2" class="create"><a href="/admin/create/training">+ Új edzés hozzáadása</a></td>
|
|
</tr>
|
|
|
|
<?php
|
|
$_from = $_smarty_tpl->tpl_vars['training_array']->value;
|
|
if (!is_array($_from) && !is_object($_from)) {
|
|
settype($_from, 'array');
|
|
}
|
|
$_smarty_tpl->tpl_vars['training'] = new Smarty_Variable;
|
|
$_smarty_tpl->tpl_vars['training']->_loop = false;
|
|
foreach ($_from as $_smarty_tpl->tpl_vars['training']->value) {
|
|
$_smarty_tpl->tpl_vars['training']->_loop = true;
|
|
$foreach_training_Sav = $_smarty_tpl->tpl_vars['training'];
|
|
?>
|
|
<tr>
|
|
<td>
|
|
<a href="/admin/<?php if ($_smarty_tpl->tpl_vars['edit']->value == 'edit') {?>edit_training<?php } elseif ($_smarty_tpl->tpl_vars['edit']->value == 'view') {?>trainings<?php } else { ?>presence<?php }?>/<?php echo $_smarty_tpl->tpl_vars['training']->value->get_tr_id();?>
|
|
">
|
|
<?php echo substr($_smarty_tpl->tpl_vars['training']->value->get_tr_date(),0,-3);?>
|
|
(<?php echo $_smarty_tpl->tpl_vars['training']->value->get_tr_type_name_by_id();?>
|
|
)
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
|
|
<?php
|
|
$_smarty_tpl->tpl_vars['training'] = $foreach_training_Sav;
|
|
}
|
|
?>
|
|
|
|
</table><?php }
|
|
}
|
|
?>
|