camps 1
This commit is contained in:
108
template/templates/applies.tpl
Normal file
108
template/templates/applies.tpl
Normal file
@@ -0,0 +1,108 @@
|
||||
<h1 class="apply">Visszaigazolt jelentkezések</h1>
|
||||
<p class="center italic">A jelentkezés részleteinek megtekintéséhez kattintson az adatokra!</p>
|
||||
<div class="outer">
|
||||
<table class="apply_table">
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>Táborozó</th>
|
||||
<th>Tábor helye, ideje</th>
|
||||
<th>Jelentkezés ideje</th>
|
||||
<th>Státusz</th>
|
||||
<th>Visszaigazolás dátuma</th>
|
||||
<th>Jelentkezés törlése</th>
|
||||
</tr>
|
||||
{if !count($apply_array)}
|
||||
<tr>
|
||||
<td colspan="7" class="no_data">Nincs még visszaigazolt jelentkezése</td>
|
||||
</tr>
|
||||
{else}
|
||||
{foreach $apply_array as $apply}
|
||||
<tr>
|
||||
<td>
|
||||
<a href="/tabor/jelentkezesek/{$apply->get_capp_id()}">{$apply->get_capp_id()}</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="/tabor/jelentkezesek/{$apply->get_capp_id()}">{$apply->get_capp_camp_kid_ck_id()->get_ck_name()}</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="/tabor/jelentkezesek/{$apply->get_capp_id()}">{$apply->get_capp_camp_id()->get_camp_city()}
|
||||
({$short_months[$apply->get_capp_camp_id()->get_camp_from()|date_format:"%m"]}. {$apply->get_capp_camp_id()->get_camp_from()|date_format:"%e"}. -
|
||||
{if $apply->get_capp_camp_id()->get_camp_from()|date_format:"%m" != $apply->get_capp_camp_id()->get_camp_to()|date_format:"%m"}
|
||||
{$short_months[$apply->get_capp_camp_id()->get_camp_to()|date_format:"%m"]}.
|
||||
{/if}
|
||||
{$apply->get_capp_camp_id()->get_camp_to()|date_format:"%e"}.)</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="/tabor/jelentkezesek/{$apply->get_capp_id()}">{$apply->get_capp_date()|substr:0:16}</a>
|
||||
</td>
|
||||
<td style="color: {$color}; font-weight: bold;">
|
||||
<a href="/tabor/jelentkezesek/{$apply->get_capp_id()}">{$apply->get_capp_status()}</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="/tabor/jelentkezesek/{$apply->get_capp_id()}">{$apply->get_capp_accept_date()|substr:0:16}</a>
|
||||
</td>
|
||||
<td>
|
||||
<img id="{$apply->get_capp_id()}" onclick="delete_apply(this);" src="/_image/delete.png">
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h1 class="apply">Függőben lévő jelentkezések</h1>
|
||||
<p class="center italic">A jelentkezés részleteinek megtekintéséhez kattintson az adatokra!</p>
|
||||
<div class="outer">
|
||||
<table class="apply_table">
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>Táborozó</th>
|
||||
<th>Tábor helye, ideje</th>
|
||||
<th>Jelentkezés ideje</th>
|
||||
<th>Jelentkezés törlése</th>
|
||||
</tr>
|
||||
{if !count($pending_apply_array)}
|
||||
<tr>
|
||||
<td colspan="5" class="no_data">Nincs függőben lévő jelentkezése</td>
|
||||
</tr>
|
||||
{else}
|
||||
{foreach $pending_apply_array as $apply}
|
||||
<tr>
|
||||
<td>
|
||||
<a href="/tabor/jelentkezesek/{$apply->get_capp_id()}">{$apply->get_capp_id()}</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="/tabor/jelentkezesek/{$apply->get_capp_id()}">{$apply->get_capp_camp_kid_ck_id()->get_ck_name()}</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="/tabor/jelentkezesek/{$apply->get_capp_id()}">{$apply->get_capp_camp_id()->get_camp_city()}
|
||||
({$short_months[$apply->get_capp_camp_id()->get_camp_from()|date_format:"%m"]}. {$apply->get_capp_camp_id()->get_camp_from()|date_format:"%e"}. -
|
||||
{if $apply->get_capp_camp_id()->get_camp_from()|date_format:"%m" != $apply->get_capp_camp_id()->get_camp_to()|date_format:"%m"}
|
||||
{$short_months[$apply->get_capp_camp_id()->get_camp_to()|date_format:"%m"]}.
|
||||
{/if}
|
||||
{$apply->get_capp_camp_id()->get_camp_to()|date_format:"%e"}.)</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="/tabor/jelentkezesek/{$apply->get_capp_id()}">{$apply->get_capp_date()|substr:0:16}</a>
|
||||
</td>
|
||||
<td>
|
||||
<img id="{$apply->get_capp_id()}" onclick="delete_apply(this);" src="/_image/delete.png">
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
function delete_apply(img) {
|
||||
var r = confirm("Biztos törli ezt a jelentkezést?");
|
||||
if (r == true) {
|
||||
location.href = '/tabor/delete_apply/' + $(img).attr("id");
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
383
template/templates/camp_apply.tpl
Normal file
383
template/templates/camp_apply.tpl
Normal file
@@ -0,0 +1,383 @@
|
||||
{if $step == 1}
|
||||
|
||||
<div class="form_wrapper">
|
||||
<form method="post" id="apply_1">
|
||||
<div><div><h1>1/3. Táborozó adatainak megadása</h1></div></div>
|
||||
<input type="hidden" name="action" id="action" value="apply_1">
|
||||
<input type="hidden" name="ck_original_id" id="ck_original_id" value="null">
|
||||
<input type="hidden" name="ck_owner_id" id="ck_owner_id" value="{$user_login->get_cu_id()}">
|
||||
<div>
|
||||
<label class="desc" for="ck_list">Korábban megadott adatok:</label>
|
||||
<div>
|
||||
<select name="ck_list" id="ck_list">
|
||||
<option value="null"> - (új adatok megadása) </option>
|
||||
{foreach $kids as $kid}
|
||||
<option value="{$kid->get_ck_id()}">
|
||||
{$kid->get_ck_name()}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div>
|
||||
<label class="desc" for="ck_name">Táborozó neve:</label>
|
||||
<div><input type="text" name="ck_name" id="ck_name" required></div>
|
||||
</div>
|
||||
<div>
|
||||
<label class="desc" for="ck_birth_year">Születési év:</label>
|
||||
<div><input type="text" name="ck_birth_year" id="ck_birth_year" required></div>
|
||||
</div>
|
||||
<div>
|
||||
<label class="desc" for="ck_ss_number">TAJ szám:</label>
|
||||
<div><input type="text" name="ck_ss_number" id="ck_ss_number" required></div>
|
||||
</div>
|
||||
<div>
|
||||
<label class="desc" for="ck_email">E-mail cím:</label>
|
||||
<div><input type="text" name="ck_email" id="ck_email"></div>
|
||||
</div>
|
||||
<div>
|
||||
<label class="desc" for="ck_mobile">Telefonszám:</label>
|
||||
<div><input type="text" name="ck_mobile" id="ck_mobile"></div>
|
||||
</div>
|
||||
<div>
|
||||
<label class="desc" for="ck_badminton_history">Tollaslabda múlt:</label>
|
||||
<div><textarea rows="5" name="ck_badminton_history" id="ck_badminton_history"></textarea></div>
|
||||
</div>
|
||||
<div>
|
||||
<label class="desc" for="ck_sport_history">Sport múlt:</label>
|
||||
<div><textarea rows="5" name="ck_sport_history" id="ck_sport_history"></textarea></div>
|
||||
</div>
|
||||
<div>
|
||||
<label class="desc" for="ck_list">Pólóméret:</label>
|
||||
<div>
|
||||
<select required="required" name="ck_shirt_size_id" id="ck_shirt_size_id">
|
||||
<option value="" disabled selected>Válasszon...</option>
|
||||
{foreach $shirts as $shirt}
|
||||
<option value="{$shirt->get_cshirt_id()}">
|
||||
{$shirt->get_cshirt_name()}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<label class="desc" for="ck_food_info">Étkezéssel kapcsolatos tudnivalók:</label>
|
||||
<div><textarea rows="5" name="ck_food_info" id="ck_food_info"></textarea></div>
|
||||
</div>
|
||||
<div>
|
||||
<label class="desc" for="ck_hygiene_info">Tisztálkodással kapcsolatos tudnivalók:</label>
|
||||
<div><textarea rows="5" name="ck_hygiene_info" id="ck_hygiene_info"></textarea></div>
|
||||
</div>
|
||||
<div>
|
||||
<label class="desc" for="ck_health_info">Egészségügyi tudnivalók:</label>
|
||||
<div><textarea rows="5" name="ck_health_info" id="ck_health_info"></textarea></div>
|
||||
</div>
|
||||
<div>
|
||||
<label class="desc" for="ck_pharma_info">Rendszeres vagy alkalmi gyógyszer:</label>
|
||||
<div><textarea rows="5" name="ck_pharma_info" id="ck_pharma_info"></textarea></div>
|
||||
</div>
|
||||
<div>
|
||||
<label class="desc" for="ck_other_info">Egyéb tudnivalók:</label>
|
||||
<div><textarea rows="5" name="ck_other_info" id="ck_other_info"></textarea></div>
|
||||
</div>
|
||||
<div>
|
||||
<div>
|
||||
<input class="button black" type="submit" value="Tovább a kapcsolattartó adataihoz">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{elseif $step == 2}
|
||||
|
||||
<h1 class="apply">2/3. Kapcsolattartó adatainak megadása</h1>
|
||||
<p class="center reset"><a href="/tabor/jelentkezes/1">Jelentkezés újrakezdése</a><img src="/_image/delete.png"></p>
|
||||
<div class="form_wrapper">
|
||||
<form method="post" id="apply_2">
|
||||
<input type="hidden" name="action" id="action" value="apply_2">
|
||||
<input type="hidden" name="camp_apply_id" id="camp_apply_id" value="{$camp_apply_id}">
|
||||
<input type="hidden" name="cc_original_id" id="cc_original_id" value="null">
|
||||
<input type="hidden" name="cc_owner_id" id="cc_owner_id" value="{$user_login->get_cu_id()}">
|
||||
<input type="hidden" name="add_more" id="add_more" value="0">
|
||||
<div>
|
||||
<label class="desc" for="ck_list">Korábban megadott adatok:</label>
|
||||
<div>
|
||||
<select name="cc_list" id="cc_list">
|
||||
<option value="null"> - (új adatok megadása) </option>
|
||||
{foreach $contacts as $contact}
|
||||
<option value="{$contact->get_cc_id()}">
|
||||
{$contact->get_cc_name()}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div>
|
||||
<label class="desc" for="cc_name">Kapcsolattartó neve:</label>
|
||||
<div><input type="text" name="cc_name" id="cc_name" required></div>
|
||||
</div>
|
||||
{if !$has_responsible}
|
||||
<div>
|
||||
<label class="desc" for="cc_is_responsible">Felelős kapcsolattartó (Táborozónként 1 felelős kapcsolattartó megadása kötelező!):</label>
|
||||
<div><input type="checkbox" name="cc_is_responsible" id="cc_is_responsible" value="1" checked></div>
|
||||
</div>
|
||||
{/if}
|
||||
<div>
|
||||
<label class="desc" for="cc_mobile">Telefonszám:</label>
|
||||
<div><input type="text" name="cc_mobile" id="cc_mobile" required></div>
|
||||
</div>
|
||||
<div>
|
||||
<label class="desc" for="cc_email">E-mail cím:</label>
|
||||
<div><input type="text" name="cc_email" id="cc_email" required></div>
|
||||
</div>
|
||||
<div>
|
||||
<label class="desc" for="cc_facebook">Facebook:</label>
|
||||
<div><input type="text" name="cc_facebook" id="cc_facebook"></div>
|
||||
</div>
|
||||
<div>
|
||||
<label class="desc" for="ck_list">Kapcsolat a Táborozóval:</label>
|
||||
<div>
|
||||
<select name="cc_camp_contact_type_cct_id" id="cc_camp_contact_type_cct_id">
|
||||
{foreach $cct_array as $cct}
|
||||
<option value="{$cct->get_cct_id()}">
|
||||
{$cct->get_cct_name()}
|
||||
</option>
|
||||
{/foreach}
|
||||
<option value="new">- új megadása -</option>
|
||||
</select>
|
||||
</div>
|
||||
<div id="cct_extra_row"><input type="text" name="cct_add_new" id="cct_add_new" placeholder="Új kapcsolat megadása"></div>
|
||||
</div>
|
||||
<div>
|
||||
<div>
|
||||
<button class="button black" id="add_more_cct">Mentés és új kapcsolattartó hozzáadása</button>
|
||||
</div>
|
||||
{if $has_contact}
|
||||
<div>
|
||||
<button class="button black" id="move_next">Továbblépés mentés nélkül</button>
|
||||
</div>
|
||||
{/if}
|
||||
<div>
|
||||
<input class="button black" type="submit" value="Mentés és tovább a tábor adatok megadásához">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{elseif $step == 3}
|
||||
|
||||
<div><h1>2/3. Kapcsolattartó adatainak megadása</h1></div>
|
||||
<div class="danger">Ön nem adott meg felelős kapcsolattartót. Kérjük, a jelentkezéshez válasszon ki 1 felelős kapcsolattartót!</div>
|
||||
<form method="post" id="apply_3">
|
||||
<input type="hidden" name="action" id="action" value="apply_3">
|
||||
<input type="hidden" name="camp_apply_id" id="camp_apply_id" value="{$camp_apply_id}">
|
||||
<table>
|
||||
{foreach $contacts as $contact}
|
||||
<tr>
|
||||
<td>{$contact->get_cc_name()}</td>
|
||||
<td><input type="radio" name="cc_is_responsible" value="{$contact->get_cc_id()}" {if $contact@first} checked{/if}></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
<div>
|
||||
<input class="button black middle" type="submit" value="Tovább a tábor adatok megadásához">
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
{elseif $step == 4}
|
||||
|
||||
<div><h1>3/3. Tábor kiválasztása</h1></div>
|
||||
<p class="center reset"><a href="/tabor/jelentkezes/1">Jelentkezés újrakezdése</a><img src="/_image/delete.png"></p>
|
||||
<form method="post" id="apply_4">
|
||||
<input type="hidden" name="action" id="action" value="apply_4">
|
||||
<input type="hidden" name="camp_apply_id" id="camp_apply_id" value="{$camp_apply_id}">
|
||||
<table>
|
||||
{foreach $camp_array as $camp}
|
||||
<td>{$camp->get_camp_city()}</td>
|
||||
<td>({$short_months[$camp->get_camp_from()|date_format:"%m"]}. {$camp->get_camp_from()|date_format:"%e"}. -
|
||||
{if $camp->get_camp_from()|date_format:"%m" != $camp->get_camp_to()|date_format:"%m"}
|
||||
{$short_months[$camp->get_camp_to()|date_format:"%m"]}.
|
||||
{/if}
|
||||
{$camp->get_camp_to()|date_format:"%e"}.{if $camp->get_camp_type()->get_ct_name() != " "}, {$camp->get_camp_type()->get_ct_name()}{/if})</td>
|
||||
<td><input id="camp_{$camp->get_camp_id()}" class="camp_id" type="radio" name="camp_id" value="{$camp->get_camp_id()}" {if $camp@first} checked{/if}></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
<div id="accom_list"></div>
|
||||
<div id="shuttle_list"></div>
|
||||
<table class="accept_terms_box">
|
||||
<tr>
|
||||
<td>Kijelentem, hogy minden, az edzőtábor szempontjából fontos információt megadtam, a gyerek egyesületének edzőjét az edzőtáborról tájékoztattam.</td>
|
||||
<td><input type="checkbox" name="accept_terms" id="accept_terms"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div>
|
||||
<input id="submit_apply" class="button apply middle" type="submit" value="Jelentkezés leadása" disabled="disabled">
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<script type="text/javascript">
|
||||
$( document ).ready(function() {
|
||||
$('.camp_id:checked').trigger('change');
|
||||
});
|
||||
</script>
|
||||
|
||||
{elseif $step == 5}
|
||||
|
||||
<h1>Jelentkezését sikeresen rögzítettük!</h1><br><br>
|
||||
<h2>A jelentkezés állapotát a 'Korábbi jelentkezések' menüpont alatt tekintheti meg!
|
||||
|
||||
{/if}
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
$("#cc_camp_contact_type_cct_id" ).change(function() {
|
||||
if ($(this).val() == 'new') {
|
||||
$("#cct_extra_row" ).show();
|
||||
}
|
||||
else {
|
||||
$("#cct_extra_row" ).hide();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$("#add_more_cct" ).click(function() {
|
||||
$("#add_more").val('1');
|
||||
$("#apply_2").submit();
|
||||
});
|
||||
|
||||
$("#move_next" ).click(function() {
|
||||
location.href = "/tabor/move_next";
|
||||
});
|
||||
|
||||
$(".camp_id").change(function() {
|
||||
$.post("/_ajax/get_camp_shuttle_list.php",
|
||||
{
|
||||
camp_id: $(this).val()
|
||||
},
|
||||
function(data, status){
|
||||
var pdata = JSON.parse(data);
|
||||
//console.log(pdata);
|
||||
if (pdata.length >= 2) {
|
||||
var content = '<h2>Kérjük, válassza ki a Táborozó által előnyben részesített labda típust!</h2><table>';
|
||||
$.each(pdata, function(shuttle_id, shuttle_name){
|
||||
content +=
|
||||
'\
|
||||
<tr>\
|
||||
<td>'+shuttle_name['cst_name']+'</td>\
|
||||
<td><input type="radio" name="camp_shuttle" value="'+shuttle_name['cst_id']+ '"' + (shuttle_id==0?' checked':'') +'></td>\
|
||||
</tr>\
|
||||
'
|
||||
});
|
||||
content += '</table>';
|
||||
document.getElementById('shuttle_list').innerHTML = content;
|
||||
}
|
||||
else if (pdata.length == 1) {
|
||||
content = '<input type="hidden" name="camp_shuttle" value="'+pdata[0]['cst_id']+'">';
|
||||
document.getElementById('shuttle_list').innerHTML = content;
|
||||
}
|
||||
});
|
||||
|
||||
$.post("/_ajax/get_camp_accomodation_list.php",
|
||||
{
|
||||
camp_id: $(this).val()
|
||||
|
||||
},
|
||||
function(data, status){
|
||||
var pdata = JSON.parse(data);
|
||||
//console.log(pdata);
|
||||
if (pdata.length >= 2) {
|
||||
var content = '<h2>Kérjük, válassza ki a tábor típusát!</h2><table>';
|
||||
$.each(pdata, function(accom_id, accom_data){
|
||||
content +=
|
||||
'\
|
||||
<tr>\
|
||||
<td>'+accom_data['cat_name']+'</td>\
|
||||
<td><input type="radio" name="camp_accomodation" value="'+accom_data['cat_id']+ '"' + (accom_id==0?' checked':'') +'></td>\
|
||||
</tr>\
|
||||
'
|
||||
});
|
||||
content += '</table>';
|
||||
document.getElementById('accom_list').innerHTML = content;
|
||||
}
|
||||
else if (pdata.length == 1) {
|
||||
content = '<input type="hidden" name="camp_accomodation" value="'+pdata[0]['cat_id']+'">';
|
||||
document.getElementById('accom_list').innerHTML = content;
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
$("#ck_list").change(function() {
|
||||
if ($("#ck_list").val() == 'null') {
|
||||
document.getElementById("apply_1").reset();
|
||||
}
|
||||
else {
|
||||
$.post("/_ajax/get_camp_kid_data.php",
|
||||
{
|
||||
camp_kid_id: $(this).val()
|
||||
},
|
||||
function(data, status){
|
||||
var pdata = JSON.parse(data);
|
||||
//console.log(pdata);
|
||||
|
||||
$.each(pdata[0], function(index, ck_data){
|
||||
if (
|
||||
index != 'ck_deleted' &&
|
||||
index != 'ck_id' &&
|
||||
index != 'ck_original_id' &&
|
||||
index != 'ck_owner_id'
|
||||
) {
|
||||
$("#"+index).val(ck_data);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$("#cc_list").change(function() {
|
||||
if ($("#cc_list").val() == 'null') {
|
||||
document.getElementById("apply_2").reset();
|
||||
}
|
||||
else {
|
||||
$.post("/_ajax/get_camp_contact_data.php",
|
||||
{
|
||||
camp_contact_id: $(this).val()
|
||||
},
|
||||
function(data, status){
|
||||
var pdata = JSON.parse(data);
|
||||
//console.log(pdata);
|
||||
$.each(pdata[0], function(index, ck_data){
|
||||
if (
|
||||
index != 'cc_id' &&
|
||||
index != 'cc_original_id' &&
|
||||
index != 'cc_owner_id'
|
||||
|
||||
) {
|
||||
$("#"+index).val(ck_data);
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$("#accept_terms").change(function() {
|
||||
if ($("#accept_terms").is(':checked')) {
|
||||
$("#submit_apply").prop('disabled', false);
|
||||
}
|
||||
else {
|
||||
$("#submit_apply").prop('disabled', true);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
71
template/templates/camp_create.tpl
Normal file
71
template/templates/camp_create.tpl
Normal file
@@ -0,0 +1,71 @@
|
||||
<div class="form_wrapper">
|
||||
<form method="post">
|
||||
<input type="hidden" name="action" value="camp_create">
|
||||
|
||||
<div>
|
||||
<label class="desc" for="camp_city">Helyszín:</label>
|
||||
<div><input type="text" name="camp_city" id="camp_city" required></div>
|
||||
</div>
|
||||
<div>
|
||||
<label class="desc" for="camp_from">Tábor kezdete:</label>
|
||||
<div><input type="text" name="camp_from" id="camp_from" class="datepicker" required></div>
|
||||
</div>
|
||||
<div>
|
||||
<label class="desc" for="camp_to">Tábor vége:</label>
|
||||
<div><input type="text" name="camp_to" id="camp_to" class="datepicker" required></div>
|
||||
</div>
|
||||
<div>
|
||||
<label class="desc" for="camp_leader">Táborvezető:</label>
|
||||
<div><input type="text" name="camp_leader" id="camp_leader"></div>
|
||||
</div>
|
||||
<div>
|
||||
<label class="desc" for="camp_helpers">Segítők:</label>
|
||||
<div><input type="text" name="camp_helpers" id="camp_helpers"></div>
|
||||
</div>
|
||||
<div>
|
||||
<label class="desc" for="camp_is_open">Lehet jelentkezni:</label>
|
||||
<div><input type="checkbox" name="camp_is_open" id="camp_is_open" value="1" checked></div>
|
||||
</div>
|
||||
<div>
|
||||
<label class="desc" for="camp_camp_type_ct_id">Típus:</label>
|
||||
<div>
|
||||
<select name="camp_camp_type_ct_id" id="camp_camp_type_ct_id">
|
||||
{foreach $camp_type_array as $camp_type}
|
||||
<option value="{$camp_type->get_ct_id()}">
|
||||
{$camp_type->get_ct_name()}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<label class="desc" for="shuttles">Labda típus:</label>
|
||||
<table>
|
||||
{foreach $shuttle_array as $shuttle}
|
||||
<tr>
|
||||
<td><input type="checkbox" name="shuttles[]" value="{$shuttle->get_cst_id()}" class="coach_type"></td>
|
||||
<td class="coach">{$shuttle->get_cst_name()}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</div>
|
||||
<div>
|
||||
<label class="desc" for="shuttles">Bejárás típusa:</label>
|
||||
<table>
|
||||
{foreach $accomodation_array as $accomodation}
|
||||
<tr>
|
||||
<td><input type="checkbox" name="accomodations[]" value="{$accomodation->get_cat_id()}" class="coach_type"></td>
|
||||
<td class="coach">{$accomodation->get_cat_name()}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div>
|
||||
<input class="button black" type="submit" value="Létrehozás">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
195
template/templates/camp_data_update.tpl
Normal file
195
template/templates/camp_data_update.tpl
Normal file
@@ -0,0 +1,195 @@
|
||||
<div class="form_wrapper">
|
||||
<form method="post">
|
||||
<div class="buttons">
|
||||
<a href="/admin/delete_camp/{$camp->get_camp_id()}" class="addbutton delete-big">Tábor törlése</a>
|
||||
</div>
|
||||
<input type="hidden" name="action" value="camp_update">
|
||||
<input type="hidden" name="camp_id" value="{$camp->get_camp_id()}">
|
||||
|
||||
<div>
|
||||
<label class="desc" for="camp_city">Helyszín:</label>
|
||||
<div><input type="text" name="camp_city" id="camp_city" value="{$camp->get_camp_city()}" required></div>
|
||||
</div>
|
||||
<div>
|
||||
<label class="desc" for="camp_from">Tábor kezdete:</label>
|
||||
<div><input type="text" name="camp_from" id="camp_from" value="{$camp->get_camp_from()}" class="datepicker" required></div>
|
||||
</div>
|
||||
<div>
|
||||
<label class="desc" for="camp_to">Tábor vége:</label>
|
||||
<div><input type="text" name="camp_to" id="camp_to" value="{$camp->get_camp_to()}" class="datepicker" required></div>
|
||||
</div>
|
||||
<div>
|
||||
<label class="desc" for="camp_leader">Táborvezető:</label>
|
||||
<div><input type="text" name="camp_leader" id="camp_leader" value="{$camp->get_camp_leader()}"></div>
|
||||
</div>
|
||||
<div>
|
||||
<label class="desc" for="camp_helpers">Segítők:</label>
|
||||
<div><input type="text" name="camp_helpers" id="camp_helpers" value="{$camp->get_camp_helpers()}"></div>
|
||||
</div>
|
||||
<div>
|
||||
<label class="desc" for="camp_is_open">Lehet jelentkezni:</label>
|
||||
<div><input type="checkbox" name="camp_is_open" id="camp_is_open" value="1" {if 1==$camp->get_camp_is_open()}checked{/if}></div>
|
||||
</div>
|
||||
<div>
|
||||
<label class="desc" for="camp_camp_type_ct_id">Típus:</label>
|
||||
<div>
|
||||
<select name="camp_camp_type_ct_id" id="camp_camp_type_ct_id">
|
||||
{foreach $camp_type_array as $camp_type}
|
||||
<option value="{$camp_type->get_ct_id()}" {if $camp->get_camp_camp_type_ct_id() == $camp_type->get_ct_id()}selected{/if}>
|
||||
{$camp_type->get_ct_name()}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<label class="desc" for="shuttles">Labda típus:</label>
|
||||
<table>
|
||||
{foreach $shuttle_array as $shuttle}
|
||||
<tr>
|
||||
<td><input type="checkbox" name="shuttles[]" value="{$shuttle->get_cst_id()}" class="coach_type" {if in_array($shuttle->get_cst_id(), $shuttles)}checked{/if}></td>
|
||||
<td class="coach">{$shuttle->get_cst_name()}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</div>
|
||||
<div>
|
||||
<label class="desc" for="shuttles">Bejárás típusa:</label>
|
||||
<table>
|
||||
{foreach $accomodation_array as $accomodation}
|
||||
<tr>
|
||||
<td><input type="checkbox" name="accomodations[]" value="{$accomodation->get_cat_id()}" class="coach_type" {if in_array($accomodation->get_cat_id(), $accomodations)}checked{/if}></td>
|
||||
<td class="coach">{$accomodation->get_cat_name()}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div>
|
||||
<input class="button black" type="submit" value="Mentés">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<br><br>
|
||||
|
||||
<h1 class="apply" id="applies">Függőben lévő jelentkezések</h1>
|
||||
<div class="outer">
|
||||
<table class="apply_table">
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>Jelentkező</th>
|
||||
<th>Jelentkezés ideje</th>
|
||||
<th>Elfogadás</th>
|
||||
<th>Elutasítás</th>
|
||||
<th>E-mail</th>
|
||||
</tr>
|
||||
{if !count($pending_apply_array)}
|
||||
<tr>
|
||||
<td colspan="6" class="no_data">Nincs függőben lévő jelentkezés</td>
|
||||
</tr>
|
||||
{else}
|
||||
{foreach $pending_apply_array as $apply}
|
||||
<tr>
|
||||
<td>
|
||||
<a href="/admin/apply/{$apply->get_capp_id()}" class="bold">{$apply->get_capp_id()}</a>
|
||||
</td>
|
||||
<td>
|
||||
{$apply->get_capp_camp_kid_ck_id()->get_ck_name()}
|
||||
</td>
|
||||
<td>
|
||||
{$apply->get_capp_date()|substr:0:16}
|
||||
</td>
|
||||
<td>
|
||||
<a href="/admin/accept_apply/{$apply->get_capp_id()}"><img src="/_image/tick.png"></a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="/admin/deny_apply/{$apply->get_capp_id()}"><img src="/_image/delete.png"></a>
|
||||
</td>
|
||||
<td>
|
||||
<a href='mailto:{$apply->get_responsible_contact()->get_cc_email()}?subject=Tollaslabda tábor {$camp->get_camp_from()|substr:0:4}. {$months[$camp->get_camp_from()|date_format:"%m"]} {$camp->get_camp_from()|date_format:"%e"}{if $camp->get_camp_from()|date_format:"%m" != $camp->get_camp_to()|date_format:"%m"}. - {$months[$camp->get_camp_to()|date_format:"%m"]} {else} - {/if}{$camp->get_camp_to()|date_format:"%e"}.
|
||||
&body=Kedves {$apply->get_responsible_contact()->get_cc_name()}!'>{$apply->get_responsible_contact()->get_cc_email()}</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{if count($deleted_apply_array)}
|
||||
<h1 class="apply">Törölt jelentkezések</h1>
|
||||
<div class="outer">
|
||||
<table class="apply_table">
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>Jelentkező</th>
|
||||
<th>Törlés ideje</th>
|
||||
<th>Eltávolítás a listából</th>
|
||||
</tr>
|
||||
{foreach $deleted_apply_array as $apply}
|
||||
<tr>
|
||||
<td class="bold">
|
||||
<a href="/admin/apply/{$apply->get_capp_id()}" class="bold">{$apply->get_capp_id()}</a>
|
||||
</td>
|
||||
<td>
|
||||
{$apply->get_capp_camp_kid_ck_id()->get_ck_name()}
|
||||
</td>
|
||||
<td>
|
||||
{$apply->get_capp_accept_date()|substr:0:16}
|
||||
</td>
|
||||
<td>
|
||||
<a href="/admin/remove_apply/{$apply->get_capp_id()}"><img src="/_image/delete.png"></a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<h1 class="apply">Visszaigazolt jelentkezések ({count($camp->get_camp_applies())} fő)</h1>
|
||||
<div class="outer">
|
||||
<table class="apply_table">
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>Jelentkező</th>
|
||||
<th>Jelentkezés ideje</th>
|
||||
<th>Státusz</th>
|
||||
<th>Visszaigazolva</th>
|
||||
<th>Módosítás</th>
|
||||
</tr>
|
||||
{if !count($apply_array)}
|
||||
<tr>
|
||||
<td colspan="6" class="no_data">Nincs még visszaigazolt jelentkezés</td>
|
||||
</tr>
|
||||
{else}
|
||||
{foreach $apply_array as $apply}
|
||||
<tr>
|
||||
<td class="bold">
|
||||
<a href="/admin/apply/{$apply->get_capp_id()}" class="bold">{$apply->get_capp_id()}</a>
|
||||
</td>
|
||||
<td>
|
||||
{$apply->get_capp_camp_kid_ck_id()->get_ck_name()}
|
||||
</td>
|
||||
<td>
|
||||
{$apply->get_capp_date()|substr:0:16}
|
||||
</td>
|
||||
<td style="color: {if $apply->get_capp_status() == 'Elfogadva'}green{else}red{/if}; font-weight: bold;">
|
||||
{$apply->get_capp_status()}
|
||||
</td>
|
||||
<td>
|
||||
{$apply->get_capp_accept_date()|substr:0:16}
|
||||
</td>
|
||||
<td>
|
||||
{if $apply->get_capp_status() == 'Elutasítva'}
|
||||
<a href="/admin/accept_apply/{$apply->get_capp_id()}"><img src="/_image/tick.png"></a>
|
||||
{else}
|
||||
<a href="/admin/deny_apply/{$apply->get_capp_id()}"><img src="/_image/delete.png"></a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</table>
|
||||
</div>
|
||||
65
template/templates/camp_details.tpl
Normal file
65
template/templates/camp_details.tpl
Normal file
@@ -0,0 +1,65 @@
|
||||
<div class="list full_width camp_list">
|
||||
{foreach $camps as $camp}
|
||||
|
||||
<span onclick="block_action('camp_'+{$camp->get_camp_id()})" class="date_separator clickable">
|
||||
{$camp->get_camp_from()|substr:0:4}.
|
||||
{$months[$camp->get_camp_from()|date_format:"%m"]} {$camp->get_camp_from()|date_format:"%e"}. -
|
||||
{if $camp->get_camp_from()|date_format:"%m" != $camp->get_camp_to()|date_format:"%m"}
|
||||
{$months[$camp->get_camp_to()|date_format:"%m"]}.
|
||||
{/if}
|
||||
{$camp->get_camp_to()|date_format:"%e"}., {$camp->get_camp_type()->get_ct_name()}
|
||||
|
||||
|
||||
({$camp->get_camp_city()})
|
||||
<img src="/_image/open_folder.png">
|
||||
<div class="float_right">
|
||||
{count($camp->get_camp_applies())} fő
|
||||
</div>
|
||||
</span>
|
||||
|
||||
<div id="camp_{$camp->get_camp_id()}" class="month_block">
|
||||
{foreach $camp->get_camp_applies() as $apply}
|
||||
|
||||
<a href="/{if $page == 'admin'}admin{else}taborvezeto{/if}/{if $page == 'admin'}apply{else}jelentkezes{/if}/{$apply->get_capp_id()}">
|
||||
<div class="list_item">
|
||||
<img src="/_image/person.png">
|
||||
{$apply->get_capp_camp_kid_ck_id()->get_ck_name()}
|
||||
</div>
|
||||
</a>
|
||||
{/foreach}
|
||||
</div>
|
||||
{/foreach}
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
function open_block(block_id) {
|
||||
$("#"+block_id).slideDown("slow");
|
||||
}
|
||||
|
||||
function close_block(block_id) {
|
||||
$("#"+block_id).slideUp("slow");
|
||||
}
|
||||
|
||||
function block_action(block_id) {
|
||||
if ($("#"+block_id).is(':hidden')) {
|
||||
open_block(block_id);
|
||||
}
|
||||
else {
|
||||
close_block(block_id);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$( document ).ready(function() {
|
||||
var divs = $( "div[class=month_block]" );
|
||||
$( ".list" ).find( divs ).hide();
|
||||
var div_list = $( ".list" ).find( divs );
|
||||
|
||||
//open_block(div_list[0].id);
|
||||
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
95
template/templates/camp_list.tpl
Normal file
95
template/templates/camp_list.tpl
Normal file
@@ -0,0 +1,95 @@
|
||||
<div class="buttons">
|
||||
<div class="buttons">
|
||||
<a href="/admin/create/camp" class="addbutton add-big">Új tábor létrehozása</a>
|
||||
<a href="/admin/camp_types" class="addbutton add-big">Tábor típusok</a>
|
||||
<a href="/admin/camp_shirt_type" class="addbutton add-big">Pólók</a>
|
||||
<a href="/admin/camp_details" class="addbutton add-big">Turnus lista</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list full_width">
|
||||
{foreach $camp_array as $camp}
|
||||
{if
|
||||
$camp@first ||
|
||||
(
|
||||
$camp_array[$camp@index]->get_camp_to()|substr:5:2 != $camp_array[$camp@index-1]->get_camp_to()|substr:5:2
|
||||
)
|
||||
|
||||
}
|
||||
{if !$camp@first &&
|
||||
$camp_array[$camp@index]->get_camp_to()|substr:5:2 != $camp_array[$camp@index-1]->get_camp_to()|substr:5:2
|
||||
}
|
||||
</div>
|
||||
{/if}
|
||||
<span onclick="block_action('block_{$camp->get_camp_to()|substr:0:4}{$camp->get_camp_to()|substr:5:2}');" class="date_separator clickable">{$camp_array[$camp@index]->get_camp_to()|substr:0:4}.
|
||||
{$months[$camp_array[$camp@index]->get_camp_to()|substr:5:2]}
|
||||
<img src="/_image/open_folder.png">
|
||||
</span>
|
||||
<div id="block_{$camp->get_camp_to()|substr:0:4}{$camp->get_camp_to()|substr:5:2}" class="month_block">
|
||||
{/if}
|
||||
<a href="/admin/camps/{$camp->get_camp_id()}">
|
||||
<div class="list_item" {if $camp->has_pending_apply() || $camp->has_deleted_apply()}style="background-color: #ff9205;"{/if}>
|
||||
<img src="/_image/camp.png">
|
||||
{strip}
|
||||
{$camp->get_camp_from()|substr:0:4}.
|
||||
{$months[$camp->get_camp_from()|date_format:"%m"]} {$camp->get_camp_from()|date_format:"%e"}
|
||||
{if $camp->get_camp_from()|date_format:"%m" != $camp->get_camp_to()|date_format:"%m"}
|
||||
. - {$months[$camp->get_camp_to()|date_format:"%m"]}
|
||||
{else}
|
||||
-
|
||||
{/if}
|
||||
{$camp->get_camp_to()|date_format:"%e"}., {$camp->get_camp_type()->get_ct_name()}
|
||||
{/strip}
|
||||
|
||||
|
||||
({$camp->get_camp_city()})
|
||||
|
||||
{if $camp->has_pending_apply()}
|
||||
<span class="pending">[{$camp->has_pending_apply()} új jelentkezés]</span>
|
||||
{/if}
|
||||
{if $camp->has_deleted_apply()}
|
||||
<span class="pending">[{$camp->has_deleted_apply()} törölt jelentkezés]</span>
|
||||
{/if}
|
||||
</div>
|
||||
</a>
|
||||
{if $camp@last}
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
function open_block(block_id) {
|
||||
$("#"+block_id).slideDown("slow");
|
||||
}
|
||||
|
||||
function close_block(block_id) {
|
||||
$("#"+block_id).slideUp("slow");
|
||||
}
|
||||
|
||||
function block_action(block_id) {
|
||||
if ($("#"+block_id).is(':hidden')) {
|
||||
open_block(block_id);
|
||||
}
|
||||
else {
|
||||
close_block(block_id);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$( document ).ready(function() {
|
||||
var divs = $( "div[class=month_block]" );
|
||||
$( ".list" ).find( divs ).hide();
|
||||
var div_list = $( ".list" ).find( divs );
|
||||
|
||||
//open_block(div_list[0].id);
|
||||
//alert(div_list.length);
|
||||
for (var i = 0; i <= div_list.length - 1; i++) {
|
||||
open_block(div_list[i].id);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
17
template/templates/camp_shirt_create.tpl
Normal file
17
template/templates/camp_shirt_create.tpl
Normal file
@@ -0,0 +1,17 @@
|
||||
<div class="form_wrapper">
|
||||
<form method="post">
|
||||
<input type="hidden" name="action" value="camp_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>
|
||||
<div>
|
||||
<input class="button black" type="submit" value="Létrehozás">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
23
template/templates/camp_shirt_data_edit.tpl
Normal file
23
template/templates/camp_shirt_data_edit.tpl
Normal file
@@ -0,0 +1,23 @@
|
||||
<div class="form_wrapper">
|
||||
<form method="post">
|
||||
<div class="buttons">
|
||||
<a href="/admin/delete_camp_shirt/{$camp_shirt_array.cshirt_id}" class="addbutton delete-big">Póló törlése</a>
|
||||
</div>
|
||||
<input type="hidden" name="action" value="camp_shirt_data_edit">
|
||||
<input type="hidden" name="shirt_id" value="{$camp_shirt_array.cshirt_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="{$camp_shirt_array.cshirt_name}" required></div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div>
|
||||
<div>
|
||||
<input class="button black" type="submit" value="Mentés">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
18
template/templates/camp_shirt_list.tpl
Normal file
18
template/templates/camp_shirt_list.tpl
Normal file
@@ -0,0 +1,18 @@
|
||||
<div class="buttons">
|
||||
|
||||
<a href="/admin/create/camp_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/camp_shirt_type/{$shirt.cshirt_id}">
|
||||
<div class="list_item">
|
||||
<img src="/_image/shirt.png">
|
||||
{$shirt.cshirt_name}
|
||||
</div>
|
||||
</a>
|
||||
{/foreach}
|
||||
|
||||
</div>
|
||||
|
||||
17
template/templates/camp_type_create.tpl
Normal file
17
template/templates/camp_type_create.tpl
Normal file
@@ -0,0 +1,17 @@
|
||||
<div class="form_wrapper">
|
||||
<form method="post">
|
||||
<input type="hidden" name="action" value="camp_type_create">
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="ct_name">Tábor típus neve:</label>
|
||||
<div><input type="text" name="ct_name" id="ct_name" required></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div>
|
||||
<input class="button black" type="submit" value="Létrehozás">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
23
template/templates/camp_type_list.tpl
Normal file
23
template/templates/camp_type_list.tpl
Normal file
@@ -0,0 +1,23 @@
|
||||
<div class="form_wrapper">
|
||||
<form method="post">
|
||||
<input type="hidden" name="action" value="camp_type_update">
|
||||
<div class="buttons">
|
||||
<a href="/admin/create/camp_type" class="addbutton add-big">Új tábor típus hozzáadása</a>
|
||||
</div>
|
||||
{foreach $ct_array as $ct}
|
||||
<div>
|
||||
<div style="float: left;">
|
||||
<input type="text" name="ct_{$ct->get_ct_id()}" id="scc_{$ct->get_ct_id()}" value="{$ct->get_ct_name()}">
|
||||
<a href="/admin/delete_camp_type/{$ct->get_ct_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>
|
||||
@@ -1,4 +1,3 @@
|
||||
{if $page == 'tabor'}<div class="danger">Probléma, kérdés, hibás adat esetén kérjük, küldjön üzenetet a <a href="mailto:szucs.zoltan@tollaslabda.info">szucs.zoltan@tollaslabda.info</a> címre!</div>{/if}
|
||||
<div class="login-page">
|
||||
<div class="form">
|
||||
<form class="login-form" id="login-form" method="post">
|
||||
|
||||
Reference in New Issue
Block a user