289 lines
9.9 KiB
PHP
Executable File
289 lines
9.9 KiB
PHP
Executable File
<?php /* Smarty version 3.1.27, created on 2016-11-06 22:40:58
|
|
compiled from "template/templates/user_data_edit.tpl" */ ?>
|
|
<?php
|
|
/*%%SmartyHeaderCode:1371035005581fa36af07935_63127217%%*/
|
|
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
$_valid = $_smarty_tpl->decodeProperties(array (
|
|
'file_dependency' =>
|
|
array (
|
|
'0daa726415612b42547a6b66a59aa1f658e617c7' =>
|
|
array (
|
|
0 => 'template/templates/user_data_edit.tpl',
|
|
1 => 1478468413,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'nocache_hash' => '1371035005581fa36af07935_63127217',
|
|
'variables' =>
|
|
array (
|
|
'user_data' => 0,
|
|
'shirt_size_assoc_array' => 0,
|
|
'shirt_size_array' => 0,
|
|
'school_assoc_array' => 0,
|
|
'school_array' => 0,
|
|
'school_city_assoc_array' => 0,
|
|
'school_city_array' => 0,
|
|
'parent_assoc_array' => 0,
|
|
'parent_array' => 0,
|
|
),
|
|
'has_nocache_code' => false,
|
|
'version' => '3.1.27',
|
|
'unifunc' => 'content_581fa36b0bd6f3_92404884',
|
|
),false);
|
|
/*/%%SmartyHeaderCode%%*/
|
|
if ($_valid && !is_callable('content_581fa36b0bd6f3_92404884')) {
|
|
function content_581fa36b0bd6f3_92404884 ($_smarty_tpl) {
|
|
|
|
$_smarty_tpl->properties['nocache_hash'] = '1371035005581fa36af07935_63127217';
|
|
?>
|
|
<form method="post">
|
|
<input type="hidden" name="action" id="action" value="user_data_edit">
|
|
<input type="hidden" name="user_type" id="user_type" value="1">
|
|
<input type="hidden" name="uk_id" id="uk_id" value="<?php echo $_smarty_tpl->tpl_vars['user_data']->value['uk_id'];?>
|
|
">
|
|
<table>
|
|
<tr>
|
|
<td><a href="/admin/members/<?php echo $_smarty_tpl->tpl_vars['user_data']->value['uk_id'];?>
|
|
">MEGTEKINTÉS</a></td>
|
|
<td><a href="/admin/delete_member/<?php echo $_smarty_tpl->tpl_vars['user_data']->value['uk_id'];?>
|
|
">TÖRLÉS</a></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>Név: </td>
|
|
<td><input type="text" name="uk_name" id="uk_name" value="<?php echo $_smarty_tpl->tpl_vars['user_data']->value['uk_name'];?>
|
|
"></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>Aktív: </td>
|
|
<td><input type="checkbox" name="uk_is_active" id="uk_is_active" value="1" <?php if (1 == $_smarty_tpl->tpl_vars['user_data']->value['uk_is_active']) {?>checked<?php }?>></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>Utolsó módosítás dátuma: </td>
|
|
<td><input type="text" name="uk_last_modified" id="uk_last_modified" value="<?php echo $_smarty_tpl->tpl_vars['user_data']->value['uk_last_modified'];?>
|
|
"></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>Jelszó: </td>
|
|
<td><input type="text" name="uk_password" id="uk_password" value="<?php echo $_smarty_tpl->tpl_vars['user_data']->value['uk_password'];?>
|
|
"></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>Nem: </td>
|
|
<td>
|
|
<input type="radio" name="uk_gender" value="1" <?php if (1 == $_smarty_tpl->tpl_vars['user_data']->value['uk_gender']) {?>checked<?php }?>>Fiú
|
|
|
|
<input type="radio" name="uk_gender" value="2" <?php if (2 == $_smarty_tpl->tpl_vars['user_data']->value['uk_gender']) {?>checked<?php }?>>Lány
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>Születési dátum: </td>
|
|
<td><input type="text" name="uk_birth_date" id="uk_birth_date" value="<?php echo $_smarty_tpl->tpl_vars['user_data']->value['uk_birth_date'];?>
|
|
"></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>Lakcím: </td>
|
|
<td><input type="text" name="uk_address" id="uk_address" value="<?php echo $_smarty_tpl->tpl_vars['user_data']->value['uk_address'];?>
|
|
"></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>Első edzés dátuma: </td>
|
|
<td><input type="text" name="uk_first_training" id="uk_first_training" value="<?php echo $_smarty_tpl->tpl_vars['user_data']->value['uk_first_training'];?>
|
|
"></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>Kéz: </td>
|
|
<td>
|
|
<input type="radio" name="uk_hand" value="1" <?php if (1 == $_smarty_tpl->tpl_vars['user_data']->value['uk_hand']) {?>checked<?php }?>>Balkezes
|
|
|
|
<input type="radio" name="uk_hand" value="2" <?php if (2 == $_smarty_tpl->tpl_vars['user_data']->value['uk_hand']) {?>checked<?php }?>>Jobbkezes
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>Email cím: </td>
|
|
<td><input type="text" name="uk_email" id="uk_email" value="<?php echo $_smarty_tpl->tpl_vars['user_data']->value['uk_email'];?>
|
|
"></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>Telefonszám: </td>
|
|
<td><input type="text" name="uk_phone" id="uk_phone" value="<?php echo $_smarty_tpl->tpl_vars['user_data']->value['uk_phone'];?>
|
|
"></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>Facebook: </td>
|
|
<td><input type="text" name="uk_facebook" id="uk_facebook" value="<?php echo $_smarty_tpl->tpl_vars['user_data']->value['uk_facebook'];?>
|
|
"></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>Pólóméret: </td>
|
|
<td>
|
|
<select name="uk_shirt_size_ss_id" id="uk_shirt_size_ss_id">
|
|
<option value="null"> - </option>
|
|
<?php
|
|
$_from = $_smarty_tpl->tpl_vars['shirt_size_assoc_array']->value;
|
|
if (!is_array($_from) && !is_object($_from)) {
|
|
settype($_from, 'array');
|
|
}
|
|
$_smarty_tpl->tpl_vars['shirt_size_array'] = new Smarty_Variable;
|
|
$_smarty_tpl->tpl_vars['shirt_size_array']->_loop = false;
|
|
foreach ($_from as $_smarty_tpl->tpl_vars['shirt_size_array']->value) {
|
|
$_smarty_tpl->tpl_vars['shirt_size_array']->_loop = true;
|
|
$foreach_shirt_size_array_Sav = $_smarty_tpl->tpl_vars['shirt_size_array'];
|
|
?>
|
|
<option value="<?php echo $_smarty_tpl->tpl_vars['shirt_size_array']->value['shirt_id'];?>
|
|
"<?php if ($_smarty_tpl->tpl_vars['shirt_size_array']->value['shirt_id'] == $_smarty_tpl->tpl_vars['user_data']->value['uk_shirt_size_ss_id']) {?> selected<?php }?>>
|
|
<?php echo $_smarty_tpl->tpl_vars['shirt_size_array']->value['shirt_name'];?>
|
|
|
|
</option>
|
|
<?php
|
|
$_smarty_tpl->tpl_vars['shirt_size_array'] = $foreach_shirt_size_array_Sav;
|
|
}
|
|
?>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>Iskola neve: </td>
|
|
<td>
|
|
<select name="uk_school_sc_id" id="uk_school_sc_id">
|
|
<option value="null"> - </option>
|
|
<?php
|
|
$_from = $_smarty_tpl->tpl_vars['school_assoc_array']->value;
|
|
if (!is_array($_from) && !is_object($_from)) {
|
|
settype($_from, 'array');
|
|
}
|
|
$_smarty_tpl->tpl_vars['school_array'] = new Smarty_Variable;
|
|
$_smarty_tpl->tpl_vars['school_array']->_loop = false;
|
|
foreach ($_from as $_smarty_tpl->tpl_vars['school_array']->value) {
|
|
$_smarty_tpl->tpl_vars['school_array']->_loop = true;
|
|
$foreach_school_array_Sav = $_smarty_tpl->tpl_vars['school_array'];
|
|
?>
|
|
<option value="<?php echo $_smarty_tpl->tpl_vars['school_array']->value['sc_id'];?>
|
|
" <?php if ($_smarty_tpl->tpl_vars['school_array']->value['sc_id'] == $_smarty_tpl->tpl_vars['user_data']->value['uk_school_sc_id']) {?> selected<?php }?>>
|
|
<?php echo $_smarty_tpl->tpl_vars['school_array']->value['sc_name'];?>
|
|
|
|
</option>
|
|
<?php
|
|
$_smarty_tpl->tpl_vars['school_array'] = $foreach_school_array_Sav;
|
|
}
|
|
?>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>Iskola települése: </td>
|
|
<td>
|
|
<select name="uk_school_city_scc_id" id="uk_school_city_scc_id">
|
|
<option value="null"> - </option>
|
|
<?php
|
|
$_from = $_smarty_tpl->tpl_vars['school_city_assoc_array']->value;
|
|
if (!is_array($_from) && !is_object($_from)) {
|
|
settype($_from, 'array');
|
|
}
|
|
$_smarty_tpl->tpl_vars['school_city_array'] = new Smarty_Variable;
|
|
$_smarty_tpl->tpl_vars['school_city_array']->_loop = false;
|
|
foreach ($_from as $_smarty_tpl->tpl_vars['school_city_array']->value) {
|
|
$_smarty_tpl->tpl_vars['school_city_array']->_loop = true;
|
|
$foreach_school_city_array_Sav = $_smarty_tpl->tpl_vars['school_city_array'];
|
|
?>
|
|
<option value="<?php echo $_smarty_tpl->tpl_vars['school_city_array']->value['scc_id'];?>
|
|
" <?php if ($_smarty_tpl->tpl_vars['school_city_array']->value['scc_id'] == $_smarty_tpl->tpl_vars['user_data']->value['uk_school_city_scc_id']) {?> selected<?php }?>>
|
|
<?php echo $_smarty_tpl->tpl_vars['school_city_array']->value['scc_city'];?>
|
|
|
|
</option>
|
|
<?php
|
|
$_smarty_tpl->tpl_vars['school_city_array'] = $foreach_school_city_array_Sav;
|
|
}
|
|
?>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>Iskola kerülete: </td>
|
|
<td><input type="text" name="uk_school_district" id="uk_school_district" value="<?php echo $_smarty_tpl->tpl_vars['user_data']->value['uk_school_district'];?>
|
|
"></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>Szülő1: </td>
|
|
<td>
|
|
<select name="uk_parent_1" id="uk_parent_1">
|
|
<option value="null"> - </option>
|
|
<?php
|
|
$_from = $_smarty_tpl->tpl_vars['parent_assoc_array']->value;
|
|
if (!is_array($_from) && !is_object($_from)) {
|
|
settype($_from, 'array');
|
|
}
|
|
$_smarty_tpl->tpl_vars['parent_array'] = new Smarty_Variable;
|
|
$_smarty_tpl->tpl_vars['parent_array']->_loop = false;
|
|
foreach ($_from as $_smarty_tpl->tpl_vars['parent_array']->value) {
|
|
$_smarty_tpl->tpl_vars['parent_array']->_loop = true;
|
|
$foreach_parent_array_Sav = $_smarty_tpl->tpl_vars['parent_array'];
|
|
?>
|
|
<option value="<?php echo $_smarty_tpl->tpl_vars['parent_array']->value['up_id'];?>
|
|
"<?php if ($_smarty_tpl->tpl_vars['parent_array']->value['up_id'] == $_smarty_tpl->tpl_vars['user_data']->value['uk_parent_1']) {?> selected<?php }?>>
|
|
<?php echo $_smarty_tpl->tpl_vars['parent_array']->value['up_name'];?>
|
|
|
|
</option>
|
|
<?php
|
|
$_smarty_tpl->tpl_vars['parent_array'] = $foreach_parent_array_Sav;
|
|
}
|
|
?>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>Szülő2: </td>
|
|
<td>
|
|
<select name="uk_parent_2" id="uk_parent_2">
|
|
<option value="null"> - </option>
|
|
<?php
|
|
$_from = $_smarty_tpl->tpl_vars['parent_assoc_array']->value;
|
|
if (!is_array($_from) && !is_object($_from)) {
|
|
settype($_from, 'array');
|
|
}
|
|
$_smarty_tpl->tpl_vars['parent_array'] = new Smarty_Variable;
|
|
$_smarty_tpl->tpl_vars['parent_array']->_loop = false;
|
|
foreach ($_from as $_smarty_tpl->tpl_vars['parent_array']->value) {
|
|
$_smarty_tpl->tpl_vars['parent_array']->_loop = true;
|
|
$foreach_parent_array_Sav = $_smarty_tpl->tpl_vars['parent_array'];
|
|
?>
|
|
<option value="<?php echo $_smarty_tpl->tpl_vars['parent_array']->value['up_id'];?>
|
|
"<?php if ($_smarty_tpl->tpl_vars['parent_array']->value['up_id'] == $_smarty_tpl->tpl_vars['user_data']->value['uk_parent_2']) {?> selected<?php }?>>
|
|
<?php echo $_smarty_tpl->tpl_vars['parent_array']->value['up_name'];?>
|
|
|
|
</option>
|
|
<?php
|
|
$_smarty_tpl->tpl_vars['parent_array'] = $foreach_parent_array_Sav;
|
|
}
|
|
?>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan="2"><input type="submit" value="Mentés"></td>
|
|
</tr>
|
|
|
|
</table>
|
|
</form><?php }
|
|
}
|
|
?>
|