Responsive design;
New menus (members); Improved interface for parent editing;
This commit is contained in:
18
template/templates/city_create.tpl
Normal file
18
template/templates/city_create.tpl
Normal file
@@ -0,0 +1,18 @@
|
||||
<div class="form_wrapper">
|
||||
<form method="post">
|
||||
<input type="hidden" name="action" value="city_create">
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="scc_city">Új település neve:</label>
|
||||
<div><input type="text" name="scc_city" id="scc_city" required></div>
|
||||
</div>
|
||||
|
||||
|
||||
<div>
|
||||
<div>
|
||||
<input class="button black" type="submit" value="Létrehozás">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
23
template/templates/city_list.tpl
Normal file
23
template/templates/city_list.tpl
Normal file
@@ -0,0 +1,23 @@
|
||||
<div class="form_wrapper">
|
||||
<form method="post">
|
||||
<input type="hidden" name="action" value="city_update">
|
||||
<div class="buttons">
|
||||
<a href="/admin/create/city" class="addbutton add-big">Új település hozzáadása</a>
|
||||
</div>
|
||||
{foreach $scc_assoc_array as $scc}
|
||||
<div>
|
||||
<div style="float: left;">
|
||||
<input type="text" name="scc_{$scc.scc_id}" id="scc_{$scc.scc_id}" value="{$scc.scc_city}">
|
||||
<a href="/admin/delete_city/{$scc.scc_id}" class="addbutton delete">Törlés</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{/foreach}
|
||||
<div>
|
||||
<div style="float: left;">
|
||||
<input class="button black" type="submit" value="Mentés">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
44
template/templates/coach_create.tpl
Normal file
44
template/templates/coach_create.tpl
Normal file
@@ -0,0 +1,44 @@
|
||||
<div class="form_wrapper">
|
||||
<form method="post">
|
||||
<input type="hidden" name="action" value="coach_create">
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="ua_name">Név:</label>
|
||||
<div><input type="text" name="ua_name" id="ua_name" required></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="ua_email">Email cím:</label>
|
||||
<div><input type="text" name="ua_email" id="ua_email" required></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="ua_can_login">Be tud lépni:</label>
|
||||
<div><input type="checkbox" name="ua_can_login" id="ua_can_login"></div>
|
||||
</div>
|
||||
|
||||
<div id="password">
|
||||
<label class="desc" id="title1" for="ua_password">Jelszó:</label>
|
||||
<div><input type="text" name="ua_password" id="ua_password"></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div>
|
||||
<input class="button black" type="submit" value="Létrehozás">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
$( document ).ready(function() {
|
||||
$("#password").hide();
|
||||
});
|
||||
|
||||
$('#ua_can_login').click(function() {
|
||||
$("#password").toggle(this.checked);
|
||||
});
|
||||
|
||||
</script>
|
||||
49
template/templates/coach_data_edit.tpl
Normal file
49
template/templates/coach_data_edit.tpl
Normal file
@@ -0,0 +1,49 @@
|
||||
<div class="form_wrapper">
|
||||
<form method="post">
|
||||
<div class="buttons">
|
||||
<a href="/admin/delete_coach/{$user_data.ua_id}" class="addbutton delete-big">Edző törlése</a>
|
||||
</div>
|
||||
<input type="hidden" name="action" value="coach_data_edit">
|
||||
<input type="hidden" name="ua_id" value="{$user_data.ua_id}">
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="ua_name">Név:</label>
|
||||
<div><input type="text" name="ua_name" id="ua_name" value="{$user_data.ua_name}" required></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="ua_email">Email cím:</label>
|
||||
<div><input type="text" name="ua_email" id="ua_email" value="{$user_data.ua_email}" required></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="ua_can_login">Be tud lépni:</label>
|
||||
<div><input type="checkbox" name="ua_can_login" id="ua_can_login" {if $user_data.ua_password != ''}checked{/if}></div>
|
||||
</div>
|
||||
|
||||
<div id="password">
|
||||
<label class="desc" id="title1" for="ua_password">Új jelszó:</label>
|
||||
<div><input type="text" name="ua_password" id="ua_password"></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div>
|
||||
<input class="button black" type="submit" value="Mentés">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
$( document ).ready(function() {
|
||||
//
|
||||
if (!$('#ua_can_login').attr('checked')) $("#password").hide();
|
||||
});
|
||||
|
||||
$('#ua_can_login').click(function() {
|
||||
$("#password").toggle(this.checked);
|
||||
});
|
||||
|
||||
</script>
|
||||
18
template/templates/coach_list.tpl
Normal file
18
template/templates/coach_list.tpl
Normal file
@@ -0,0 +1,18 @@
|
||||
<div class="buttons">
|
||||
|
||||
<a href="/admin/create/coach" class="addbutton add-big">Új edző hozzáadása</a>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="list">
|
||||
{foreach $user_array as $user}
|
||||
<a href="/admin/coaches/{$user->get_ua_id()}">
|
||||
<div class="list_item">
|
||||
<img src="/_image/coach.png">
|
||||
{$user->get_ua_name()}
|
||||
</div>
|
||||
</a>
|
||||
{/foreach}
|
||||
|
||||
</div>
|
||||
|
||||
@@ -1,17 +1,22 @@
|
||||
<div class="form_wrapper">
|
||||
<form method="post">
|
||||
<input type="hidden" name="action" id="action" value="login">
|
||||
<input type="hidden" name="user_type" id="user_type" value="1">
|
||||
<table>
|
||||
<tr>
|
||||
<td>Felhasználónév:</td>
|
||||
<td><input type="text" name="user_name" id="user_name"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Jelszó:</td>
|
||||
<td><input type="password" name="user_password" id="user_password"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><input type="submit" value="Belépés"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<div>
|
||||
<label class="desc" id="title1" for="user_name">Név:</label>
|
||||
<div><input type="text" name="user_name" id="user_name" required></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="user_password">Jelszó:</label>
|
||||
<div><input type="password" name="user_password" id="user_password" required></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div>
|
||||
<input class="button black" type="submit" value="Belépés">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
@@ -1,10 +1,19 @@
|
||||
<ul class="topnav" id="myTopnav">
|
||||
{if $can_logout}
|
||||
<li class="icon">
|
||||
<a href="javascript:void(0);" style="font-size:15px;" onclick="myFunction()">Menü ☰</a>
|
||||
</li>
|
||||
<li><a href="/admin/members">Tagok</a></li>
|
||||
<li><a href="/admin/trainings">Edzések</a></li>
|
||||
<li><a href="/admin/presence">Jelenlét</a></li>
|
||||
<li><a href="/admin/coaches">Edzők</a></li>
|
||||
|
||||
{else}
|
||||
|
||||
<li><a href="#">Bejelentkezés</a></li>
|
||||
{/if}
|
||||
|
||||
{if $can_logout}<li style="float: right;"><a href="/admin/logout">Kijelentkezés</a></li>{/if}
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
@@ -1,42 +1,32 @@
|
||||
<form method="post">
|
||||
<input type="hidden" name="action" value="parent_create">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
Név:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="up_name">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
E-mail cím:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="up_email">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Telefonszám:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="up_phone">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Facebook:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="up_facebook">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<input type="submit" value="Létrehozás">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<div class="form_wrapper">
|
||||
<form method="post">
|
||||
<input type="hidden" name="action" value="parent_create">
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="up_name">Név:</label>
|
||||
<div><input type="text" name="up_name" id="up_name" required></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="up_email">Email cím:</label>
|
||||
<div><input type="text" name="up_email" id="up_email"></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="up_phone">Telefonszám:</label>
|
||||
<div><input type="text" name="up_phone" id="up_phone"></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="up_phone">Facebook:</label>
|
||||
<div><input type="text" name="up_phone" id="up_phone"></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div>
|
||||
<input class="button black" type="submit" value="Létrehozás">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
@@ -1,46 +1,37 @@
|
||||
<div class="form_wrapper">
|
||||
<form method="post">
|
||||
<input type="hidden" name="action" value="parent_data_update">
|
||||
<input type="hidden" name="up_id" value="{$parent->get_up_id()}">
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="2"><a href="/admin/delete_parent/{$parent->get_up_id()}">TÖRLÉS</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Név:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="up_name" value="{$parent->get_up_name()}">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
E-mail cím:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="up_email" value="{$parent->get_up_email()}">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Telefonszám:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="up_phone" value="{$parent->get_up_phone()}">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Facebook:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="up_facebook" value="{$parent->get_up_facebook()}">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<input type="submit" value="Mentés">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<div class="buttons">
|
||||
<a href="/admin/delete_parent/{$parent->get_up_id()}" class="addbutton delete-big">Törlés</a>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="up_name">Név:</label>
|
||||
<div><input type="text" name="up_name" id="up_name" value="{$parent->get_up_name()}" required></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="up_email">Email cím:</label>
|
||||
<div><input type="text" name="up_email" id="up_email" value="{$parent->get_up_email()}"></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="up_phone">Telefonszám:</label>
|
||||
<div><input type="text" name="up_phone" id="up_phone" value="{$parent->get_up_phone()}"></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="up_facebook">Facebook:</label>
|
||||
<div><input type="text" name="up_facebook" id="up_facebook" value="{$parent->get_up_facebook()}"></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div>
|
||||
<input class="button black" type="submit" value="Mentés">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
</div>
|
||||
@@ -1,17 +1,18 @@
|
||||
<table>
|
||||
<div class="buttons">
|
||||
|
||||
<tr>
|
||||
<td class="create"><a href="/admin/create/parent">+ Új szülő hozzádása</a></td>
|
||||
</tr>
|
||||
<a href="/admin/create/parent" class="addbutton add-big">Új szülő hozzádása</a>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="list">
|
||||
{foreach $parent_array as $parent}
|
||||
<tr>
|
||||
<td>
|
||||
<a href="/admin/parents/{$parent->get_up_id()}">
|
||||
{$parent->get_up_name()}
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<a href="/admin/parents/{$parent->get_up_id()}">
|
||||
<div class="list_item">
|
||||
<img src="/_image/shuttlecock.png">
|
||||
{$parent->get_up_name()}
|
||||
</div>
|
||||
|
||||
</a>
|
||||
{/foreach}
|
||||
|
||||
</table>
|
||||
</div>
|
||||
@@ -1,50 +1,82 @@
|
||||
<h1>Jelenlét kezelése</h1>
|
||||
<div class="list">
|
||||
<div class="list_item">
|
||||
<label class="desc" id="title1" for="tr_date">
|
||||
<img src="/_image/training.png">
|
||||
Dátum:
|
||||
</label>
|
||||
<div>{$training->get_tr_date(true)}</div>
|
||||
</div>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>Edzés dátuma:</td>
|
||||
<td>
|
||||
{$training->get_tr_date()|substr:0:-3}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Típus: </td>
|
||||
<td>{$training->get_tr_type_name_by_id()}</td>
|
||||
<tr>
|
||||
<td>Edző(k):</td>
|
||||
<td>
|
||||
{foreach $trc_coaches as $coach}
|
||||
{$coach->get_ua_name()}<br>
|
||||
{/foreach}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Létszám:</td>
|
||||
<td>
|
||||
<div id="headcount">
|
||||
{$headcount}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="list_item">
|
||||
<label class="desc" id="title2" for="tr_training_type_trt_id">
|
||||
<img src="/_image/tipus.png">
|
||||
Típus:
|
||||
</label>
|
||||
<div>
|
||||
{$training->get_tr_type_name_by_id()}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input type="hidden" id="tr_id" value="{$tr_id}">
|
||||
<div class="list_item">
|
||||
<label class="desc" id="title1" for="tr_duration">
|
||||
<img src="/_image/time.png">
|
||||
Időtartam:
|
||||
</label>
|
||||
<div>{$training->get_tr_duration()} perc</div>
|
||||
</div>
|
||||
|
||||
{foreach $users as $user}
|
||||
|
||||
<div class="{if $user->get_uk_presence($tr_id)}name_tag_checked{else}name_tag{/if}" id="{$user->get_uk_id()}">{$user->get_uk_name()}</div>
|
||||
|
||||
{if $trc_coaches}
|
||||
<div class="list_item">
|
||||
<label class="desc" id="title1" for="coaches">
|
||||
<img src="/_image/coach.png">
|
||||
Edző(k):
|
||||
</label>
|
||||
<div>
|
||||
{foreach $trc_coaches as $coach}
|
||||
{$coach->get_ua_name()}<br>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<br><br>
|
||||
<div class="list_item">
|
||||
<label class="desc" id="title1" for="tr_headcount">
|
||||
<img src="/_image/letszam.png">
|
||||
Létszám:
|
||||
</label>
|
||||
<div id="headcount">
|
||||
{$headcount} fő
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{foreach $rest_users as $rest_user}
|
||||
|
||||
<div class="{if $rest_user->get_uk_presence($tr_id)}name_tag_checked{else}name_tag{/if}" id="{$rest_user->get_uk_id()}">{$rest_user->get_uk_name()}</div>
|
||||
|
||||
{/foreach}
|
||||
|
||||
|
||||
<input type="hidden" id="tr_id" value="{$tr_id}">
|
||||
|
||||
<br><br><br>
|
||||
|
||||
<div class="list">
|
||||
{foreach $users as $user}
|
||||
|
||||
<div class="{if $user->get_uk_presence($tr_id)}name_tag_checked{else}name_tag{/if}" id="{$user->get_uk_id()}">
|
||||
<img src="/_image/shuttlecock.png">
|
||||
<div>{$user->get_uk_name()}</div>
|
||||
</div>
|
||||
|
||||
{/foreach}
|
||||
</div>
|
||||
|
||||
<br><br>
|
||||
|
||||
<div class="list">
|
||||
{foreach $rest_users as $rest_user}
|
||||
<div class="{if $rest_user->get_uk_presence($tr_id)}name_tag_checked{else}name_tag{/if}" id="{$rest_user->get_uk_id()}">
|
||||
<img src="/_image/shuttlecock.png">
|
||||
<div>{$rest_user->get_uk_name()}</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
@@ -62,14 +94,14 @@ $('.name_tag').click(function() {
|
||||
$(this).css('backgroundColor', '#1eea0b');
|
||||
var el = $('#headcount');
|
||||
var num = parseInt(el.text());
|
||||
el.text(num+1);
|
||||
el.text(num+1).append(" fő");
|
||||
|
||||
}
|
||||
else {
|
||||
$(this).css('backgroundColor', '#e2edff');
|
||||
var el = $('#headcount');
|
||||
var num = parseInt(el.text());
|
||||
el.text(num-1);
|
||||
el.text(num-1).append(" fő");
|
||||
}
|
||||
//alert(checked);
|
||||
|
||||
@@ -96,14 +128,14 @@ $('.name_tag_checked').click(function() {
|
||||
$(this).css('backgroundColor', '#1eea0b');
|
||||
var el = $('#headcount');
|
||||
var num = parseInt(el.text());
|
||||
el.text(num+1);
|
||||
el.text(num+1).append(" fő");
|
||||
|
||||
}
|
||||
else {
|
||||
$(this).css('backgroundColor', '#e2edff');
|
||||
var el = $('#headcount');
|
||||
var num = parseInt(el.text());
|
||||
el.text(num-1);
|
||||
el.text(num-1).append(" fő");
|
||||
}
|
||||
//alert(checked);
|
||||
|
||||
|
||||
@@ -1,18 +1,23 @@
|
||||
<h1>Jelenlét</h1>
|
||||
|
||||
<table>
|
||||
|
||||
|
||||
<div class="list">
|
||||
|
||||
{foreach $training_array as $training}
|
||||
<tr>
|
||||
<td>
|
||||
<a href="/admin/{if $edit=='edit'}edit_training{elseif $edit=='view'}trainings{else}presence{/if}/{$training->get_tr_id()}">
|
||||
{$training->get_tr_date()|substr:0:-3} ({$training->get_tr_type_name_by_id()})
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
{if
|
||||
$training@first ||
|
||||
(
|
||||
$training_array[$training@index]->get_tr_date()|substr:5:2 != $training_array[$training@index-1]->get_tr_date()|substr:5:2
|
||||
)
|
||||
|
||||
}
|
||||
<span class="date_separator">{$training_array[$training@index]->get_tr_date()|substr:0:4}. {$months[$training_array[$training@index]->get_tr_date()|substr:5:2]}</span>
|
||||
{/if}
|
||||
<a href="/admin/{if $edit=='edit'}edit_training{elseif $edit=='view'}trainings{else}presence{/if}/{$training->get_tr_id()}">
|
||||
<div class="list_item">
|
||||
<img src="/_image/training.png">
|
||||
{$training->get_tr_date(true)} ({$training->get_tr_type_name_by_id()})
|
||||
</div>
|
||||
</a>
|
||||
{/foreach}
|
||||
|
||||
</table>
|
||||
</div>
|
||||
23
template/templates/shirt_create.tpl
Normal file
23
template/templates/shirt_create.tpl
Normal file
@@ -0,0 +1,23 @@
|
||||
<div class="form_wrapper">
|
||||
<form method="post">
|
||||
<input type="hidden" name="action" value="shirt_create">
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="shirt_name">Póló típus neve:</label>
|
||||
<div><input type="text" name="shirt_name" id="shirt_name" required></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="shirt_year">Év:</label>
|
||||
<div><input type="text" name="shirt_year" id="shirt_year"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<div>
|
||||
<div>
|
||||
<input class="button black" type="submit" value="Létrehozás">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
27
template/templates/shirt_data_edit.tpl
Normal file
27
template/templates/shirt_data_edit.tpl
Normal file
@@ -0,0 +1,27 @@
|
||||
<div class="form_wrapper">
|
||||
<form method="post">
|
||||
<div class="buttons">
|
||||
<a href="/admin/delete_shirt/{$shirt_array.shirt_id}" class="addbutton delete-big">Póló törlése</a>
|
||||
</div>
|
||||
<input type="hidden" name="action" value="shirt_data_edit">
|
||||
<input type="hidden" name="shirt_id" value="{$shirt_array.shirt_id}">
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="shirt_name">Póló típus neve:</label>
|
||||
<div><input type="text" name="shirt_name" id="shirt_name" value="{$shirt_array.shirt_name}" required></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="shirt_year">Év:</label>
|
||||
<div><input type="text" name="shirt_year" id="shirt_year" value="{$shirt_array.shirt_year}"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<div>
|
||||
<div>
|
||||
<input class="button black" type="submit" value="Létrehozás">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
18
template/templates/shirt_list.tpl
Normal file
18
template/templates/shirt_list.tpl
Normal file
@@ -0,0 +1,18 @@
|
||||
<div class="buttons">
|
||||
|
||||
<a href="/admin/create/shirt" class="addbutton add-big">Új póló hozzáadása</a>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="list">
|
||||
{foreach $shirt_assoc_array as $shirt}
|
||||
<a href="/admin/shirts/{$shirt.shirt_id}">
|
||||
<div class="list_item">
|
||||
<img src="/_image/shirt.png">
|
||||
{$shirt.shirt_name} {if $shirt.shirt_year}({$shirt.shirt_year}){/if}
|
||||
</div>
|
||||
</a>
|
||||
{/foreach}
|
||||
|
||||
</div>
|
||||
|
||||
@@ -1,18 +1,17 @@
|
||||
<form method="post">
|
||||
<input type="hidden" name="action" id="action" value="training_data_create">
|
||||
<table>
|
||||
|
||||
|
||||
<div class="form_wrapper">
|
||||
<form method="post">
|
||||
<input type="hidden" name="action" id="action" value="training_data_create">
|
||||
|
||||
<tr>
|
||||
<td>Dátum: </td>
|
||||
<td>
|
||||
<input type="text" id="tr_date" name="tr_date">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Típus: </td>
|
||||
<td>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="tr_date">Dátum:</label>
|
||||
<div><input type="text" name="tr_date" id="tr_date" title="ÉÉÉÉ-HH-NN ÓÓ:PP" placeholder="ÉÉÉÉ-HH-NN ÓÓ:PP" required></div>
|
||||
</div>
|
||||
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title2" for="tr_training_type_trt_id">Típus:</label>
|
||||
<div>
|
||||
<select name="tr_training_type_trt_id" id="tr_training_type_trt_id">
|
||||
<option value="null"> - </option>
|
||||
{foreach $training_type_assoc_array as $training_type_array}
|
||||
@@ -21,30 +20,34 @@
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Edzés időtartama: </td>
|
||||
<td>
|
||||
<input type="text" id="tr_duration" name="tr_duration" size="3">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Minden héten ebben az időpontban</td>
|
||||
<td><input type="checkbox" name="every_week"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Edző(k): </td>
|
||||
<td>
|
||||
|
||||
{foreach $coach_array as $coach}
|
||||
<input type="checkbox" name="coaches[]" value="{$coach->get_ua_id()}">{$coach->get_ua_name()} <br>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><input type="submit" value="Létrehozás"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<div>
|
||||
<label class="desc" id="title1" for="tr_duration">Időtartam (perc):</label>
|
||||
<div><input type="text" name="tr_duration" id="tr_duration" required></div>
|
||||
</div>
|
||||
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="every_week">Minden héten ebben az időpontban: (az adott hónapban)</label>
|
||||
<div><input type="checkbox" name="every_week" id="every_week" value="1"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="coaches">Edző(k):</label>
|
||||
{foreach $coach_array as $coach}
|
||||
<div>
|
||||
<input type="checkbox" name="coaches[]" value="{$coach->get_ua_id()}">{$coach->get_ua_name()}
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div>
|
||||
<input class="button black" type="submit" value="Létrehozás">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@@ -1,21 +1,19 @@
|
||||
<form method="post">
|
||||
<input type="hidden" name="action" id="action" value="training_data_edit">
|
||||
<input type="hidden" name="tr_id" id="tr_id" value="{$training_data.tr_id}">
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="2"><a href="/admin/trainings/{$training_data.tr_id}">MEGTEKINTÉS</a></td>
|
||||
</tr>
|
||||
|
||||
<div class="form_wrapper">
|
||||
<form method="post">
|
||||
<div class="buttons">
|
||||
<a href="/admin/delete_training/{$training_data.tr_id}" class="addbutton delete-big">Törlés</a>
|
||||
</div>
|
||||
<input type="hidden" name="action" id="action" value="training_data_edit">
|
||||
<input type="hidden" name="tr_id" id="tr_id" value="{$training_data.tr_id}">
|
||||
|
||||
<tr>
|
||||
<td>Dátum: </td>
|
||||
<td>
|
||||
<input type="text" id="tr_date" name="tr_date" value="{$training_data.tr_date}">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Típus: </td>
|
||||
<td>
|
||||
<div>
|
||||
<label class="desc" id="title1" for="tr_date">Dátum:</label>
|
||||
<div><input type="text" name="tr_date" id="tr_date" value="{$training_data.tr_date|substr:0:-3}" required></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title2" for="tr_training_type_trt_id">Típus:</label>
|
||||
<div>
|
||||
<select name="tr_training_type_trt_id" id="tr_training_type_trt_id">
|
||||
<option value="null"> - </option>
|
||||
{foreach $training_type_assoc_array as $training_type_array}
|
||||
@@ -24,25 +22,28 @@
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Edzés időtartama: </td>
|
||||
<td>
|
||||
<input type="text" id="tr_duration" name="tr_duration" size="3" value="{$training_data.tr_duration}">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Edző(k): </td>
|
||||
<td>
|
||||
{foreach $coach_array as $coach}
|
||||
<input type="checkbox" name="coaches[]" value="{$coach->get_ua_id()}"{if $coach->is_coach_at_training($tr_id)} checked{/if}>
|
||||
{$coach->get_ua_name()}<br>
|
||||
{/foreach}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><input type="submit" value="Mentés"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="tr_duration">Időtartam (perc):</label>
|
||||
<div><input type="text" name="tr_duration" id="tr_duration" value="{$training_data.tr_duration}" required></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="coaches">Edző(k):</label>
|
||||
{foreach $coach_array as $coach}
|
||||
<div>
|
||||
<input type="checkbox" name="coaches[]" value="{$coach->get_ua_id()}"{if $coach->is_coach_at_training($tr_id)} checked{/if}>{$coach->get_ua_name()}
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div>
|
||||
<input class="button black" type="submit" value="Mentés">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
@@ -1,19 +1,25 @@
|
||||
<table>
|
||||
|
||||
<tr>
|
||||
<td class="create"><a href="/admin/create/training">+ Új edzés hozzáadása</a></td>
|
||||
<td class="create"><a href="/admin/training_types">+ Edzés típusok szerkesztése</a></td>
|
||||
</tr>
|
||||
|
||||
{foreach $training_array as $training}
|
||||
<tr>
|
||||
<td>
|
||||
<a href="/admin/{if $edit=='edit'}edit_training{elseif $edit=='view'}trainings{else}presence{/if}/{$training->get_tr_id()}">
|
||||
{$training->get_tr_date()|substr:0:-3} ({$training->get_tr_type_name_by_id()})
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<div class="buttons">
|
||||
<a href="/admin/create/training" class="addbutton add-big">Új edzés hozzáadása</a>
|
||||
<a href="/admin/training_types" class="addbutton add-big">Edzés típusok szerkesztése</a>
|
||||
</div>
|
||||
|
||||
<div class="list">
|
||||
{foreach $training_array as $training}
|
||||
{if
|
||||
$training@first ||
|
||||
(
|
||||
$training_array[$training@index]->get_tr_date()|substr:5:2 != $training_array[$training@index-1]->get_tr_date()|substr:5:2
|
||||
)
|
||||
|
||||
}
|
||||
<span class="date_separator">{$training_array[$training@index]->get_tr_date()|substr:0:4}. {$months[$training_array[$training@index]->get_tr_date()|substr:5:2]}</span>
|
||||
{/if}
|
||||
<a href="/admin/{if $edit=='edit'}edit_training{elseif $edit=='view'}trainings{else}presence{/if}/{$training->get_tr_id()}">
|
||||
<div class="list_item">
|
||||
<img src="/_image/training.png">
|
||||
{$training->get_tr_date(true)} ({$training->get_tr_type_name_by_id()})
|
||||
</div>
|
||||
</a>
|
||||
{/foreach}
|
||||
|
||||
</table>
|
||||
</div>
|
||||
@@ -1,18 +1,18 @@
|
||||
<form method="post">
|
||||
<input type="hidden" name="action" value="training_type_create">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
Új edzés típus neve:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="trt_name">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<input type="submit" value="Létrehozás">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<div class="form_wrapper">
|
||||
<form method="post">
|
||||
<input type="hidden" name="action" value="training_type_create">
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="trt_name">Új edzés típus neve:</label>
|
||||
<div><input type="text" name="trt_name" id="trt_name" required></div>
|
||||
</div>
|
||||
|
||||
|
||||
<div>
|
||||
<div>
|
||||
<input class="button black" type="submit" value="Létrehozás">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
@@ -1,25 +1,23 @@
|
||||
<form method="post">
|
||||
<input type="hidden" name="action" value="training_type_update">
|
||||
<table>
|
||||
<div class="form_wrapper">
|
||||
<form method="post">
|
||||
<input type="hidden" name="action" value="training_type_update">
|
||||
<div class="buttons">
|
||||
<a href="/admin/create/training_type" class="addbutton add-big">Új edzés típus hozzáadása</a>
|
||||
</div>
|
||||
{foreach $tr_type_assoc_array as $tr_type}
|
||||
<div>
|
||||
<div style="float: left;">
|
||||
<input type="text" name="trt_{$tr_type.trt_id}" id="trt_{$tr_type.trt_id}" value="{$tr_type.trt_name}">
|
||||
<a href="/admin/delete_training_type/{$tr_type.trt_id}" class="addbutton delete">Törlés</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<tr>
|
||||
<td class="create"><a href="/admin/create/training_type">+ Új edzés típus hozzáadása</a></td>
|
||||
</tr>
|
||||
|
||||
{foreach $tr_type_assoc_array as $tr_type}
|
||||
<tr>
|
||||
<td>
|
||||
<input name="trt_{$tr_type.trt_id}" type="text" value="{$tr_type.trt_name}">
|
||||
</td>
|
||||
<td>
|
||||
<a href="/admin/delete_training_type/{$tr_type.trt_id}">Törlés</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<input type="submit" value="Mentés">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
{/foreach}
|
||||
<div>
|
||||
<div style="float: left;">
|
||||
<input class="button black" type="submit" value="Mentés">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@@ -1,86 +1,91 @@
|
||||
<div class="form_wrapper">
|
||||
<form method="post">
|
||||
<input type="hidden" name="action" id="action" value="user_data_create">
|
||||
<table>
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_name">Név:</label>
|
||||
<div><input type="text" name="uk_name" id="uk_name" size="8" class="field text fn" required></div>
|
||||
</div>
|
||||
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_is_active">Aktív:</label>
|
||||
<div><input type="checkbox" name="uk_is_active" id="uk_is_active" value="1" checked></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_last_modified">Utolsó módosítás dátuma:</label>
|
||||
<div><input type="text" name="uk_last_modified" id="uk_last_modified" value="{$today}"></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_password">Jelszó:</label>
|
||||
<div><input type="text" name="uk_password" id="uk_password"></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<legend class="desc" id="title1" for="uk_gender">Nem: </legend>
|
||||
<div>
|
||||
<input id="r_01" type="radio" name="uk_gender" value="1" checked>
|
||||
<label class="choice" for="r_01">Fiú</label>
|
||||
</div>
|
||||
<div>
|
||||
<input id="r_02" type="radio" name="uk_gender" value="2">
|
||||
<label class="choice" for="r_02">Lány</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_birth_date">Születési dátum:</label>
|
||||
<div><input type="text" name="uk_birth_date" id="uk_birth_date"></div>
|
||||
</div>
|
||||
|
||||
<tr>
|
||||
<td>Név: </td>
|
||||
<td><input type="text" name="uk_name" id="uk_name"></td>
|
||||
</tr>
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_birth_year">Születési év:</label>
|
||||
<div><input type="text" name="uk_birth_year" id="uk_birth_year"></div>
|
||||
</div>
|
||||
|
||||
<tr>
|
||||
<td>Aktív: </td>
|
||||
<td><input type="checkbox" name="uk_is_active" id="uk_is_active" value="1" checked></td>
|
||||
</tr>
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_address">Lakcím:</label>
|
||||
<div><input type="text" name="uk_address" id="uk_address"></div>
|
||||
</div>
|
||||
|
||||
<tr>
|
||||
<td>Utolsó módosítás dátuma: </td>
|
||||
<td><input type="text" name="uk_last_modified" id="uk_last_modified" value="{$today}"></td>
|
||||
</tr>
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_first_training">Első edzés dátuma:</label>
|
||||
<div><input type="text" name="uk_first_training" id="uk_first_training"></div>
|
||||
</div>
|
||||
|
||||
<tr>
|
||||
<td>Jelszó: </td>
|
||||
<td><input type="text" name="uk_password" id="uk_password"></td>
|
||||
</tr>
|
||||
|
||||
<div>
|
||||
<legend class="desc" id="title1" for="uk_hand">Kéz: </legend>
|
||||
<div>
|
||||
<input id="r_03" type="radio" name="uk_hand" value="1">
|
||||
<label class="choice" for="r_03">Bal</label>
|
||||
</div>
|
||||
<div>
|
||||
<input id="r_04" type="radio" name="uk_hand" value="2" checked>
|
||||
<label class="choice" for="r_04">Jobb</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_email">Email cím:</label>
|
||||
<div><input type="email" name="uk_email" id="uk_email"></div>
|
||||
</div>
|
||||
|
||||
<tr>
|
||||
<td>Nem: </td>
|
||||
<td>
|
||||
<input type="radio" name="uk_gender" value="1" checked>Fiú
|
||||
|
||||
<input type="radio" name="uk_gender" value="2">Lány
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_phone">Telefonszám:</label>
|
||||
<div><input type="text" name="uk_phone" id="uk_phone"></div>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_facebook">Facebook:</label>
|
||||
<div><input type="text" name="uk_facebook" id="uk_facebook"></div>
|
||||
</div>
|
||||
|
||||
<tr>
|
||||
<td>Születési dátum: </td>
|
||||
<td><input type="text" name="uk_birth_date" id="uk_birth_date"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Születési év: </td>
|
||||
<td><input type="text" name="uk_birth_year" id="uk_birth_year"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Lakcím: </td>
|
||||
<td><input type="text" name="uk_address" id="uk_address"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Első edzés dátuma: </td>
|
||||
<td><input type="text" name="uk_first_training" id="uk_first_training"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Kéz: </td>
|
||||
<td>
|
||||
<input type="radio" name="uk_hand" value="1" checked>Balkezes
|
||||
|
||||
<input type="radio" name="uk_hand" value="2">Jobbkezes
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Email cím: </td>
|
||||
<td><input type="text" name="uk_email" id="uk_email"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Telefonszám: </td>
|
||||
<td><input type="text" name="uk_phone" id="uk_phone"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Facebook: </td>
|
||||
<td><input type="text" name="uk_facebook" id="uk_facebook"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Iskola neve: </td>
|
||||
<td>
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_school_sc_id">Iskola neve:</label>
|
||||
<div>
|
||||
<select name="uk_school_sc_id" id="uk_school_sc_id">
|
||||
<option value="null"> - </option>
|
||||
{foreach $school_assoc_array as $school_array}
|
||||
@@ -89,13 +94,12 @@
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<input type="text" name="add_school" id="add_school">
|
||||
</td>
|
||||
</tr>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<tr>
|
||||
<td>Iskola települése: </td>
|
||||
<td>
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_school_city_scc_id">Iskola települése:</label>
|
||||
<div>
|
||||
<select name="uk_school_city_scc_id" id="uk_school_city_scc_id">
|
||||
<option value="null"> - </option>
|
||||
{foreach $school_city_assoc_array as $school_city_array}
|
||||
@@ -104,17 +108,22 @@
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<tr>
|
||||
<td>Iskola kerülete: </td>
|
||||
<td><input type="text" name="uk_school_district" id="uk_school_district" value="0"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Pólóméret: </td>
|
||||
<td>
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_school_district">Iskola kerülete:</label>
|
||||
<div><input type="text" name="uk_school_district" id="uk_school_district" value="0"></div>
|
||||
</div>
|
||||
<div>
|
||||
<label class="desc" id="title1" for="add_school">Új iskola felvétele:</label>
|
||||
<div><input type="text" name="add_school" id="add_school"></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_shirt_size_ss_id">Pólóméret:</label>
|
||||
<div>
|
||||
<select name="uk_shirt_size_ss_id" id="uk_shirt_size_ss_id">
|
||||
<option value="null"> - </option>
|
||||
{foreach $shirt_size_assoc_array as $shirt_size_array}
|
||||
@@ -123,12 +132,12 @@
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<tr>
|
||||
<td>Szülő1: </td>
|
||||
<td>
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_parent_1">Szülő1:</label>
|
||||
<div>
|
||||
<select name="uk_parent_1" id="uk_parent_1">
|
||||
<option value="null"> - </option>
|
||||
{foreach $parent_assoc_array as $parent_array}
|
||||
@@ -137,28 +146,32 @@
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<input type="text" name="add_parent_1" id="add_parent_1">
|
||||
</td>
|
||||
</tr>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<tr>
|
||||
<td>Szülő1 email cím: </td>
|
||||
<td><input type="text" name="parent_1_email" id="parent_1_email"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Szülő1 facebook: </td>
|
||||
<td><input type="text" name="parent_1_facebook" id="parent_1_facebook"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Szülő1 telefonszám: </td>
|
||||
<td><input type="text" name="parent_1_phone" id="parent_1_phone"></td>
|
||||
</tr>
|
||||
<div class="add_parent_1_block">
|
||||
<label class="desc" id="title1" for="add_parent_1">Új szülő neve:</label>
|
||||
<div><input type="text" name="add_parent_1" id="add_parent_1"></div>
|
||||
</div>
|
||||
|
||||
<div class="add_parent_1_block">
|
||||
<label class="desc" id="title1" for="parent_1_email">Email címe:</label>
|
||||
<div><input type="text" name="parent_1_email" id="parent_1_email"></div>
|
||||
</div>
|
||||
|
||||
<div class="add_parent_1_block">
|
||||
<label class="desc" id="title1" for="parent_1_facebook">Facebook:</label>
|
||||
<div><input type="text" name="parent_1_facebook" id="parent_1_facebook"></div>
|
||||
</div>
|
||||
|
||||
<tr>
|
||||
<td>Szülő2: </td>
|
||||
<td>
|
||||
<div class="add_parent_1_block">
|
||||
<label class="desc" id="title1" for="parent_1_phone">Telefonszám:</label>
|
||||
<div><input type="text" name="parent_1_phone" id="parent_1_phone"></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title2" for="uk_parent_2">Szülő2:</label>
|
||||
<div>
|
||||
<select name="uk_parent_2" id="uk_parent_2">
|
||||
<option value="null"> - </option>
|
||||
{foreach $parent_assoc_array as $parent_array}
|
||||
@@ -167,26 +180,50 @@
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<input type="text" name="add_parent_2" id="add_parent_2">
|
||||
</td>
|
||||
</tr>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<tr>
|
||||
<td>Szülő2 email cím: </td>
|
||||
<td><input type="text" name="parent_2_email" id="parent_2_email"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Szülő2 facebook: </td>
|
||||
<td><input type="text" name="parent_2_facebook" id="parent_2_facebook"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Szülő2 telefonszám: </td>
|
||||
<td><input type="text" name="parent_2_phone" id="parent_2_phone"></td>
|
||||
</tr>
|
||||
<div class="add_parent_2_block">
|
||||
<label class="desc" id="title2" for="add_parent_2">Új szülő neve:</label>
|
||||
<div><input type="text" name="add_parent_2" id="add_parent_2"></div>
|
||||
</div>
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><input type="submit" value="Létrehozás"></td>
|
||||
</tr>
|
||||
<div class="add_parent_2_block">
|
||||
<label class="desc" id="title2" for="parent_2_email">Email címe:</label>
|
||||
<div><input type="text" name="parent_2_email" id="parent_2_email"></div>
|
||||
</div>
|
||||
|
||||
</table>
|
||||
</form>
|
||||
<div class="add_parent_2_block">
|
||||
<label class="desc" id="title2" for="parent_2_facebook">Facebook:</label>
|
||||
<div><input type="text" name="parent_2_facebook" id="parent_2_facebook"></div>
|
||||
</div>
|
||||
|
||||
<div class="add_parent_2_block">
|
||||
<label class="desc" id="title2" for="parent_2_phone">Telefonszám:</label>
|
||||
<div><input type="text" name="parent_2_phone" id="parent_2_phone"></div>
|
||||
</div>
|
||||
|
||||
<br><br>
|
||||
|
||||
|
||||
<div>
|
||||
<div>
|
||||
<input class="button black" type="submit" value="Létrehozás">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
$('#uk_parent_1').change(function() {
|
||||
$(".add_parent_1_block").toggle(this.value == 'null');
|
||||
});
|
||||
|
||||
$('#uk_parent_2').change(function() {
|
||||
$(".add_parent_2_block").toggle(this.value == 'null');
|
||||
});
|
||||
|
||||
</script>
|
||||
@@ -1,86 +1,97 @@
|
||||
<div class="form_wrapper">
|
||||
<div class="buttons">
|
||||
<a href="/admin/delete_member/{$user_data.uk_id}" class="addbutton delete-big">Törlés</a>
|
||||
</div>
|
||||
<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="{$user_data.uk_id}">
|
||||
<table>
|
||||
<tr>
|
||||
<td><a href="/admin/members/{$user_data.uk_id}">MEGTEKINTÉS</a></td>
|
||||
<td><a href="/admin/delete_member/{$user_data.uk_id}">TÖRLÉS</a></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Név: </td>
|
||||
<td><input type="text" name="uk_name" id="uk_name" value="{$user_data.uk_name}"></td>
|
||||
</tr>
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_name">Név:</label>
|
||||
<div><input type="text" name="uk_name" id="uk_name" size="8" class="field text fn" value="{$user_data.uk_name}" required></div>
|
||||
</div>
|
||||
|
||||
|
||||
<tr>
|
||||
<td>Aktív: </td>
|
||||
<td><input type="checkbox" name="uk_is_active" id="uk_is_active" value="1" {if 1==$user_data.uk_is_active}checked{/if}></td>
|
||||
</tr>
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_is_active">Aktív:</label>
|
||||
<div><input type="checkbox" name="uk_is_active" id="uk_is_active" value="1" {if 1==$user_data.uk_is_active}checked{/if}></div>
|
||||
</div>
|
||||
|
||||
<tr>
|
||||
<td>Utolsó módosítás dátuma: </td>
|
||||
<td><input type="text" name="uk_last_modified" id="uk_last_modified" value="{$user_data.uk_last_modified}"></td>
|
||||
</tr>
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_last_modified">Utolsó módosítás dátuma:</label>
|
||||
<div><input type="text" name="uk_last_modified" id="uk_last_modified" value="{$user_data.uk_last_modified}"></div>
|
||||
</div>
|
||||
|
||||
<tr>
|
||||
<td>Jelszó: </td>
|
||||
<td><input type="text" name="uk_password" id="uk_password" value="{$user_data.uk_password}"></td>
|
||||
</tr>
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_password">Jelszó:</label>
|
||||
<div><input type="text" name="uk_password" id="uk_password" value="{$user_data.uk_password}"></div>
|
||||
</div>
|
||||
|
||||
<tr>
|
||||
<td>Nem: </td>
|
||||
<td>
|
||||
<input type="radio" name="uk_gender" value="1" {if 1==$user_data.uk_gender}checked{/if}>Fiú
|
||||
|
||||
<input type="radio" name="uk_gender" value="2" {if 2==$user_data.uk_gender}checked{/if}>Lány
|
||||
<div>
|
||||
<legend class="desc" id="title1" for="uk_gender">Nem: </legend>
|
||||
<div>
|
||||
<input id="r_01" type="radio" name="uk_gender" value="1" {if 1==$user_data.uk_gender}checked{/if}>
|
||||
<label class="choice" for="r_01">Fiú</label>
|
||||
</div>
|
||||
<div>
|
||||
<input id="r_02" type="radio" name="uk_gender" value="2" {if 2==$user_data.uk_gender}checked{/if}>
|
||||
<label class="choice" for="r_02">Lány</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_birth_date">Születési dátum:</label>
|
||||
<div><input type="text" name="uk_birth_date" id="uk_birth_date" value="{$user_data.uk_birth_date}"></div>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_birth_year">Születési év:</label>
|
||||
<div><input type="text" name="uk_birth_year" id="uk_birth_year" value="{$user_data.uk_birth_year}"></div>
|
||||
</div>
|
||||
|
||||
<tr>
|
||||
<td>Születési dátum: </td>
|
||||
<td><input type="text" name="uk_birth_date" id="uk_birth_date" value="{$user_data.uk_birth_date}"></td>
|
||||
</tr>
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_address">Lakcím:</label>
|
||||
<div><input type="text" name="uk_address" id="uk_address" value="{$user_data.uk_address}"></div>
|
||||
</div>
|
||||
|
||||
<tr>
|
||||
<td>Lakcím: </td>
|
||||
<td><input type="text" name="uk_address" id="uk_address" value="{$user_data.uk_address}"></td>
|
||||
</tr>
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_first_training">Első edzés dátuma:</label>
|
||||
<div><input type="text" name="uk_first_training" id="uk_first_training" value="{$user_data.uk_first_training}"></div>
|
||||
</div>
|
||||
|
||||
<tr>
|
||||
<td>Első edzés dátuma: </td>
|
||||
<td><input type="text" name="uk_first_training" id="uk_first_training" value="{$user_data.uk_first_training}"></td>
|
||||
</tr>
|
||||
|
||||
<div>
|
||||
<legend class="desc" id="title1" for="uk_hand">Kéz: </legend>
|
||||
<div>
|
||||
<input id="r_03" type="radio" name="uk_hand" value="1" {if 1==$user_data.uk_hand}checked{/if}>
|
||||
<label class="choice" for="r_03">Bal</label>
|
||||
</div>
|
||||
<div>
|
||||
<input id="r_04" type="radio" name="uk_hand" value="2" {if 2==$user_data.uk_hand}checked{/if}>
|
||||
<label class="choice" for="r_04">Jobb</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_email">Email cím:</label>
|
||||
<div><input type="email" name="uk_email" id="uk_email" value="{$user_data.uk_email}"></div>
|
||||
</div>
|
||||
|
||||
<tr>
|
||||
<td>Kéz: </td>
|
||||
<td>
|
||||
<input type="radio" name="uk_hand" value="1" {if 1==$user_data.uk_hand}checked{/if}>Balkezes
|
||||
|
||||
<input type="radio" name="uk_hand" value="2" {if 2==$user_data.uk_hand}checked{/if}>Jobbkezes
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_phone">Telefonszám:</label>
|
||||
<div><input type="text" name="uk_phone" id="uk_phone" value="{$user_data.uk_phone}"></div>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_facebook">Facebook:</label>
|
||||
<div><input type="text" name="uk_facebook" id="uk_facebook" value="{$user_data.uk_facebook}"></div>
|
||||
</div>
|
||||
|
||||
<tr>
|
||||
<td>Email cím: </td>
|
||||
<td><input type="text" name="uk_email" id="uk_email" value="{$user_data.uk_email}"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Telefonszám: </td>
|
||||
<td><input type="text" name="uk_phone" id="uk_phone" value="{$user_data.uk_phone}"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Facebook: </td>
|
||||
<td><input type="text" name="uk_facebook" id="uk_facebook" value="{$user_data.uk_facebook}"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Pólóméret: </td>
|
||||
<td>
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_shirt_size_ss_id">Pólóméret:</label>
|
||||
<div>
|
||||
<select name="uk_shirt_size_ss_id" id="uk_shirt_size_ss_id">
|
||||
<option value="null"> - </option>
|
||||
{foreach $shirt_size_assoc_array as $shirt_size_array}
|
||||
@@ -89,73 +100,144 @@
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<tr>
|
||||
<td>Iskola neve: </td>
|
||||
<td>
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_school_sc_id">Iskola neve:</label>
|
||||
<div>
|
||||
<select name="uk_school_sc_id" id="uk_school_sc_id">
|
||||
<option value="null"> - </option>
|
||||
{foreach $school_assoc_array as $school_array}
|
||||
<option value="{$school_array.sc_id}" {if $school_array.sc_id == $user_data.uk_school_sc_id} selected{/if}>
|
||||
<option value="{$school_array.sc_id}"{if $school_array.sc_id == $user_data.uk_school_sc_id} selected{/if}>
|
||||
{$school_array.sc_name}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<tr>
|
||||
<td>Iskola települése: </td>
|
||||
<td>
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_school_city_scc_id">Iskola települése:</label>
|
||||
<div>
|
||||
<select name="uk_school_city_scc_id" id="uk_school_city_scc_id">
|
||||
<option value="null"> - </option>
|
||||
{foreach $school_city_assoc_array as $school_city_array}
|
||||
<option value="{$school_city_array.scc_id}" {if $school_city_array.scc_id == $user_data.uk_school_city_scc_id} selected{/if}>
|
||||
<option value="{$school_city_array.scc_id}"{if $school_city_array.scc_id == $user_data.uk_school_city_scc_id} selected{/if}>
|
||||
{$school_city_array.scc_city}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<tr>
|
||||
<td>Iskola kerülete: </td>
|
||||
<td><input type="text" name="uk_school_district" id="uk_school_district" value="{$user_data.uk_school_district}"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Szülő1: </td>
|
||||
<td>
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_school_district">Iskola kerülete:</label>
|
||||
<div><input type="text" name="uk_school_district" id="uk_school_district" value="{$user_data.uk_school_district}"></div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="uk_parent_1">Szülő1:</label>
|
||||
<div>
|
||||
<select name="uk_parent_1" id="uk_parent_1">
|
||||
<option value="null"> - </option>
|
||||
<option value="null"> - (állítsd erre új szülő felvételéhez)</option>
|
||||
{foreach $parent_assoc_array as $parent_array}
|
||||
<option value="{$parent_array.up_id}"{if $parent_array.up_id == $user_data.uk_parent_1} selected{/if}>
|
||||
{$parent_array.up_name}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<tr>
|
||||
<td>Szülő2: </td>
|
||||
<td>
|
||||
<div class="add_parent_1_block">
|
||||
<label class="desc" id="title1" for="add_parent_1">Új szülő neve:</label>
|
||||
<div><input type="text" name="add_parent_1" id="add_parent_1"></div>
|
||||
</div>
|
||||
|
||||
<div class="add_parent_1_block">
|
||||
<label class="desc" id="title1" for="parent_1_email">Email címe:</label>
|
||||
<div><input type="text" name="parent_1_email" id="parent_1_email"></div>
|
||||
</div>
|
||||
|
||||
<div class="add_parent_1_block">
|
||||
<label class="desc" id="title1" for="parent_1_facebook">Facebook:</label>
|
||||
<div><input type="text" name="parent_1_facebook" id="parent_1_facebook"></div>
|
||||
</div>
|
||||
|
||||
<div class="add_parent_1_block">
|
||||
<label class="desc" id="title1" for="parent_1_phone">Telefonszám:</label>
|
||||
<div><input type="text" name="parent_1_phone" id="parent_1_phone"></div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title2" for="uk_parent_2">Szülő2:</label>
|
||||
<div>
|
||||
<select name="uk_parent_2" id="uk_parent_2">
|
||||
<option value="null"> - </option>
|
||||
<option value="null"> - (állítsd erre új szülő felvételéhez)</option>
|
||||
{foreach $parent_assoc_array as $parent_array}
|
||||
<option value="{$parent_array.up_id}"{if $parent_array.up_id == $user_data.uk_parent_2} selected{/if}>
|
||||
{$parent_array.up_name}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><input type="submit" value="Mentés"></td>
|
||||
</tr>
|
||||
<div class="add_parent_2_block">
|
||||
<label class="desc" id="title2" for="add_parent_2">Új szülő neve:</label>
|
||||
<div><input type="text" name="add_parent_2" id="add_parent_2"></div>
|
||||
</div>
|
||||
|
||||
</table>
|
||||
</form>
|
||||
<div class="add_parent_2_block">
|
||||
<label class="desc" id="title2" for="parent_2_email">Email címe:</label>
|
||||
<div><input type="text" name="parent_2_email" id="parent_2_email"></div>
|
||||
</div>
|
||||
|
||||
<div class="add_parent_2_block">
|
||||
<label class="desc" id="title2" for="parent_2_facebook">Facebook:</label>
|
||||
<div><input type="text" name="parent_2_facebook" id="parent_2_facebook"></div>
|
||||
</div>
|
||||
|
||||
<div class="add_parent_2_block">
|
||||
<label class="desc" id="title2" for="parent_2_phone">Telefonszám:</label>
|
||||
<div><input type="text" name="parent_2_phone" id="parent_2_phone"></div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<br><br>
|
||||
|
||||
|
||||
<div>
|
||||
<div>
|
||||
<input class="button black" type="submit" value="Mentés">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$( document ).ready(function() {
|
||||
if ($("#uk_parent_1").val() == 'null') $(".add_parent_1_block").show();
|
||||
else $(".add_parent_1_block").hide();
|
||||
if ($("#uk_parent_2").val() == 'null') $(".add_parent_2_block").show();
|
||||
else $(".add_parent_2_block").hide();
|
||||
});
|
||||
|
||||
$('#uk_parent_1').change(function() {
|
||||
$(".add_parent_1_block").toggle(this.value == 'null');
|
||||
});
|
||||
|
||||
$('#uk_parent_2').change(function() {
|
||||
$(".add_parent_2_block").toggle(this.value == 'null');
|
||||
});
|
||||
|
||||
</script>
|
||||
161
template/templates/user_data_edit_old.tpl
Normal file
161
template/templates/user_data_edit_old.tpl
Normal file
@@ -0,0 +1,161 @@
|
||||
<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="{$user_data.uk_id}">
|
||||
<table>
|
||||
<tr>
|
||||
<td><a href="/admin/members/{$user_data.uk_id}">MEGTEKINTÉS</a></td>
|
||||
<td><a href="/admin/delete_member/{$user_data.uk_id}">TÖRLÉS</a></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Név: </td>
|
||||
<td><input type="text" name="uk_name" id="uk_name" value="{$user_data.uk_name}"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Aktív: </td>
|
||||
<td><input type="checkbox" name="uk_is_active" id="uk_is_active" value="1" {if 1==$user_data.uk_is_active}checked{/if}></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="{$user_data.uk_last_modified}"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Jelszó: </td>
|
||||
<td><input type="text" name="uk_password" id="uk_password" value="{$user_data.uk_password}"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Nem: </td>
|
||||
<td>
|
||||
<input type="radio" name="uk_gender" value="1" {if 1==$user_data.uk_gender}checked{/if}>Fiú
|
||||
|
||||
<input type="radio" name="uk_gender" value="2" {if 2==$user_data.uk_gender}checked{/if}>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="{$user_data.uk_birth_date}"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Lakcím: </td>
|
||||
<td><input type="text" name="uk_address" id="uk_address" value="{$user_data.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="{$user_data.uk_first_training}"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Kéz: </td>
|
||||
<td>
|
||||
<input type="radio" name="uk_hand" value="1" {if 1==$user_data.uk_hand}checked{/if}>Balkezes
|
||||
|
||||
<input type="radio" name="uk_hand" value="2" {if 2==$user_data.uk_hand}checked{/if}>Jobbkezes
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Email cím: </td>
|
||||
<td><input type="text" name="uk_email" id="uk_email" value="{$user_data.uk_email}"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Telefonszám: </td>
|
||||
<td><input type="text" name="uk_phone" id="uk_phone" value="{$user_data.uk_phone}"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Facebook: </td>
|
||||
<td><input type="text" name="uk_facebook" id="uk_facebook" value="{$user_data.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>
|
||||
{foreach $shirt_size_assoc_array as $shirt_size_array}
|
||||
<option value="{$shirt_size_array.shirt_id}"{if $shirt_size_array.shirt_id == $user_data.uk_shirt_size_ss_id} selected{/if}>
|
||||
{$shirt_size_array.shirt_name}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Iskola neve: </td>
|
||||
<td>
|
||||
<select name="uk_school_sc_id" id="uk_school_sc_id">
|
||||
<option value="null"> - </option>
|
||||
{foreach $school_assoc_array as $school_array}
|
||||
<option value="{$school_array.sc_id}" {if $school_array.sc_id == $user_data.uk_school_sc_id} selected{/if}>
|
||||
{$school_array.sc_name}
|
||||
</option>
|
||||
{/foreach}
|
||||
</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>
|
||||
{foreach $school_city_assoc_array as $school_city_array}
|
||||
<option value="{$school_city_array.scc_id}" {if $school_city_array.scc_id == $user_data.uk_school_city_scc_id} selected{/if}>
|
||||
{$school_city_array.scc_city}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Iskola kerülete: </td>
|
||||
<td><input type="text" name="uk_school_district" id="uk_school_district" value="{$user_data.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>
|
||||
{foreach $parent_assoc_array as $parent_array}
|
||||
<option value="{$parent_array.up_id}"{if $parent_array.up_id == $user_data.uk_parent_1} selected{/if}>
|
||||
{$parent_array.up_name}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Szülő2: </td>
|
||||
<td>
|
||||
<select name="uk_parent_2" id="uk_parent_2">
|
||||
<option value="null"> - </option>
|
||||
{foreach $parent_assoc_array as $parent_array}
|
||||
<option value="{$parent_array.up_id}"{if $parent_array.up_id == $user_data.uk_parent_2} selected{/if}>
|
||||
{$parent_array.up_name}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><input type="submit" value="Mentés"></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</form>
|
||||
@@ -1,18 +1,22 @@
|
||||
<table>
|
||||
<div class="buttons">
|
||||
|
||||
<tr>
|
||||
<td class="create"><a href="/admin/create/member">+ Új tag hozzáadása</a></td>
|
||||
<td class="create"><a href="/admin/parents">+ Szülők kezelése</a></td>
|
||||
</tr>
|
||||
<a href="/admin/create/member" class="addbutton add-big">Új tag hozzáadása</a>
|
||||
<a href="/admin/parents" class="addbutton add-big">Szülők</a>
|
||||
<a href="/admin/shirts" class="addbutton add-big">Pólók</a>
|
||||
<a href="/admin/cities" class="addbutton add-big">Települések</a>
|
||||
<!-- a href="/admin/school" class="addbutton add-big">Iskolák</a -->
|
||||
|
||||
{foreach $user_array as $user}
|
||||
<tr>
|
||||
<td>
|
||||
<a href="/admin/{if !$edit}members{else}edit_member{/if}/{$user->get_uk_id()}">
|
||||
</div>
|
||||
|
||||
<div class="list">
|
||||
{foreach $user_array as $user}
|
||||
<a href="/admin/{if !$edit}members{else}edit_member{/if}/{$user->get_uk_id()}">
|
||||
<div class="list_item">
|
||||
<img src="/_image/shuttlecock.png">
|
||||
{$user->get_uk_name()}
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</div>
|
||||
</a>
|
||||
{/foreach}
|
||||
|
||||
</div>
|
||||
|
||||
</table>
|
||||
Reference in New Issue
Block a user