Files
code-cegled/template/templates_c/40bbe654196f43be67b196e07aa8f00618314caa_0.file.training_data_edit.tpl.php
2016-11-10 19:08:45 +01:00

116 lines
4.1 KiB
PHP
Executable File

<?php /* Smarty version 3.1.27, created on 2016-11-01 13:58:46
compiled from "template/templates/training_data_edit.tpl" */ ?>
<?php
/*%%SmartyHeaderCode:743223821581891866eb9d8_80375404%%*/
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'40bbe654196f43be67b196e07aa8f00618314caa' =>
array (
0 => 'template/templates/training_data_edit.tpl',
1 => 1478004507,
2 => 'file',
),
),
'nocache_hash' => '743223821581891866eb9d8_80375404',
'variables' =>
array (
'training_data' => 0,
'training_type_assoc_array' => 0,
'training_type_array' => 0,
'coach_data_assoc_array' => 0,
'coach_data_array' => 0,
),
'has_nocache_code' => false,
'version' => '3.1.27',
'unifunc' => 'content_581891867590e8_13812852',
),false);
/*/%%SmartyHeaderCode%%*/
if ($_valid && !is_callable('content_581891867590e8_13812852')) {
function content_581891867590e8_13812852 ($_smarty_tpl) {
$_smarty_tpl->properties['nocache_hash'] = '743223821581891866eb9d8_80375404';
?>
<form method="post">
<input type="hidden" name="action" id="action" value="training_data_edit">
<input type="hidden" name="tr_id" id="tr_id" value="<?php echo $_smarty_tpl->tpl_vars['training_data']->value['tr_id'];?>
">
<table>
<tr>
<td colspan="2"><a href="/admin/trainings/<?php echo $_smarty_tpl->tpl_vars['training_data']->value['tr_id'];?>
">MEGTEKINTÉS</a></td>
</tr>
<tr>
<td>Dátum: </td>
<td>
<input type="text" id="tr_date" name="tr_date" value="<?php echo $_smarty_tpl->tpl_vars['training_data']->value['tr_date'];?>
">
</td>
</tr>
<tr>
<td>Típus: </td>
<td>
<select name="tr_training_type_trt_id" id="tr_training_type_trt_id">
<option value="null"> - </option>
<?php
$_from = $_smarty_tpl->tpl_vars['training_type_assoc_array']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['training_type_array'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['training_type_array']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['training_type_array']->value) {
$_smarty_tpl->tpl_vars['training_type_array']->_loop = true;
$foreach_training_type_array_Sav = $_smarty_tpl->tpl_vars['training_type_array'];
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['training_type_array']->value['trt_id'];?>
"<?php if ($_smarty_tpl->tpl_vars['training_type_array']->value['trt_id'] == $_smarty_tpl->tpl_vars['training_data']->value['tr_training_type_trt_id']) {?> selected<?php }?>>
<?php echo $_smarty_tpl->tpl_vars['training_type_array']->value['trt_name'];?>
</option>
<?php
$_smarty_tpl->tpl_vars['training_type_array'] = $foreach_training_type_array_Sav;
}
?>
</select>
</td>
</tr>
<tr>
<td>Edző: </td>
<td>
<select name="tr_user_coach_uc_id" id="tr_user_coach_uc_id">
<option value="null"> - </option>
<?php
$_from = $_smarty_tpl->tpl_vars['coach_data_assoc_array']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['coach_data_array'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['coach_data_array']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['coach_data_array']->value) {
$_smarty_tpl->tpl_vars['coach_data_array']->_loop = true;
$foreach_coach_data_array_Sav = $_smarty_tpl->tpl_vars['coach_data_array'];
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['coach_data_array']->value['ua_id'];?>
"<?php if ($_smarty_tpl->tpl_vars['coach_data_array']->value['ua_id'] == $_smarty_tpl->tpl_vars['training_data']->value['tr_user_coach_uc_id']) {?> selected<?php }?>>
<?php echo $_smarty_tpl->tpl_vars['coach_data_array']->value['ua_last_name'];?>
<?php echo $_smarty_tpl->tpl_vars['coach_data_array']->value['ua_first_name'];?>
</option>
<?php
$_smarty_tpl->tpl_vars['coach_data_array'] = $foreach_coach_data_array_Sav;
}
?>
</select>
</td>
</tr>
<tr>
<td colspan="2"><input type="submit" value="Mentés"></td>
</tr>
</table>
</form><?php }
}
?>