deletes and fixes
This commit is contained in:
@@ -1,109 +0,0 @@
|
||||
<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>
|
||||
<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>
|
||||
@@ -1,227 +0,0 @@
|
||||
<div class="list">
|
||||
<h1>Táborozó adatai</h1>
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/person.png">
|
||||
Név:
|
||||
</label>
|
||||
<div>{$apply->get_capp_camp_kid_ck_id()->get_ck_name()}</div>
|
||||
</div>
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/person.png">
|
||||
Születés éve:
|
||||
</label>
|
||||
<div>{$apply->get_capp_camp_kid_ck_id()->get_ck_birth_year()}</div>
|
||||
</div>
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/person.png">
|
||||
TAJ-szám:
|
||||
</label>
|
||||
<div>{$apply->get_capp_camp_kid_ck_id()->get_ck_ss_number()}</div>
|
||||
</div>
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/person.png">
|
||||
E-mail cím:
|
||||
</label>
|
||||
<div>{$apply->get_capp_camp_kid_ck_id()->get_ck_email()}</div>
|
||||
</div>
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/person.png">
|
||||
Mobilszám:
|
||||
</label>
|
||||
<div>{$apply->get_capp_camp_kid_ck_id()->get_ck_mobile()}</div>
|
||||
</div>
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/person.png">
|
||||
Tollaslabda múlt:
|
||||
</label>
|
||||
<div><br>{nl2br($apply->get_capp_camp_kid_ck_id()->get_ck_badminton_history())}</div>
|
||||
</div>
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/person.png">
|
||||
Sport múlt:
|
||||
</label>
|
||||
<div>{$apply->get_capp_camp_kid_ck_id()->get_ck_sport_history()}</div>
|
||||
</div>
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/person.png">
|
||||
Pólóméret:
|
||||
</label>
|
||||
<div>{$apply->get_capp_camp_kid_ck_id()->get_ck_shirt()->get_cshirt_name()}</div>
|
||||
</div>
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/person.png">
|
||||
Étkezéssel kapcsolatos információk:
|
||||
</label>
|
||||
<div><br>{nl2br($apply->get_capp_camp_kid_ck_id()->get_ck_food_info())}</div>
|
||||
</div>
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/person.png">
|
||||
Tisztálkodással kapcsolatos információk:
|
||||
</label>
|
||||
<div><br>{nl2br($apply->get_capp_camp_kid_ck_id()->get_ck_hygiene_info())}</div>
|
||||
</div>
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/person.png">
|
||||
Egészségügyi információk:
|
||||
</label>
|
||||
<div><br>{nl2br($apply->get_capp_camp_kid_ck_id()->get_ck_health_info())}</div>
|
||||
</div>
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/person.png">
|
||||
Rendszeres vagy alkalmi gyógyszerek:
|
||||
</label>
|
||||
<div><br>{nl2br($apply->get_capp_camp_kid_ck_id()->get_ck_pharma_info())}</div>
|
||||
</div>
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/person.png">
|
||||
Egyéb információk:
|
||||
</label>
|
||||
<div><br>{nl2br($apply->get_capp_camp_kid_ck_id()->get_ck_other_info())}</div>
|
||||
</div>
|
||||
|
||||
<h1>Tábor adatok</h1>
|
||||
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/person.png">
|
||||
Tábor helyszíne:
|
||||
</label>
|
||||
<div>{$apply->get_capp_camp_id()->get_camp_city()}</div>
|
||||
</div>
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/person.png">
|
||||
Tábor időpontja:
|
||||
</label>
|
||||
<div>
|
||||
{$apply->get_capp_camp_id()->get_camp_from()|substr:0:4}.
|
||||
{$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"}
|
||||
{$months[$apply->get_capp_camp_id()->get_camp_to()|date_format:"%m"]}.
|
||||
{/if}
|
||||
{$apply->get_capp_camp_id()->get_camp_to()|date_format:"%e"}.
|
||||
</div>
|
||||
</div>
|
||||
{if $page != "tabor"}
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/person.png">
|
||||
Táborvezető:
|
||||
</label>
|
||||
<div>{$apply->get_capp_camp_id()->get_camp_leader()}</div>
|
||||
</div>
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/person.png">
|
||||
Segítők:
|
||||
</label>
|
||||
<div>{$apply->get_capp_camp_id()->get_camp_helpers()}</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/person.png">
|
||||
Tábor típus:
|
||||
</label>
|
||||
<div>{$apply->get_capp_accomodation_type()->get_cat_name()}</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/person.png">
|
||||
Labda típus:
|
||||
</label>
|
||||
<div>{$apply->get_capp_shuttle_type()->get_cst_name()}</div>
|
||||
</div>
|
||||
|
||||
|
||||
<h1>Felelős kapcsolattartó</h1>
|
||||
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/person.png">
|
||||
Név:
|
||||
</label>
|
||||
<div>{$res_cc->get_cc_name()}</div>
|
||||
</div>
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/person.png">
|
||||
Mobil:
|
||||
</label>
|
||||
<div>{$res_cc->get_cc_mobile()}</div>
|
||||
</div>
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/person.png">
|
||||
E-mail cím:
|
||||
</label>
|
||||
<div>{$res_cc->get_cc_email()}</div>
|
||||
</div>
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/person.png">
|
||||
Facebook:
|
||||
</label>
|
||||
<div>{$res_cc->get_cc_facebook()}</div>
|
||||
</div>
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/person.png">
|
||||
Kapcsolat:
|
||||
</label>
|
||||
<div>{$res_cc->get_cc_camp_contact_type()->get_cct_name()}</div>
|
||||
</div>
|
||||
|
||||
<h1>További kapcsolattartó(k)</h1>
|
||||
|
||||
{foreach $contacts as $res_cc}
|
||||
|
||||
<h2>{$res_cc->get_cc_name()}</h2>
|
||||
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/person.png">
|
||||
Mobil:
|
||||
</label>
|
||||
<div>{$res_cc->get_cc_mobile()}</div>
|
||||
</div>
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/person.png">
|
||||
E-mail cím:
|
||||
</label>
|
||||
<div>{$res_cc->get_cc_email()}</div>
|
||||
</div>
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/person.png">
|
||||
Facebook:
|
||||
</label>
|
||||
<div>{$res_cc->get_cc_facebook()}</div>
|
||||
</div>
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/person.png">
|
||||
Kapcsolat:
|
||||
</label>
|
||||
<div>{$res_cc->get_cc_camp_contact_type()->get_cct_name()}</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
|
||||
|
||||
</div>
|
||||
@@ -1,385 +0,0 @@
|
||||
{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 name="ck_shirt_size_id" id="ck_shirt_size_id">
|
||||
{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>
|
||||
<table class="accept_terms_box">
|
||||
<tr>
|
||||
<td>Kérjük, a tábor kezdetére hozzák magukkal a táborozó egészégügyi igazolását! Ehhez mintát az <a href="http://www.janoczki.hu/doc/szuloi_nyilatkozat_taborozashoz.pdf" target="_blank">alábbi linken</a> talál.</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>';
|
||||
}
|
||||
else {
|
||||
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>';
|
||||
}
|
||||
else {
|
||||
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>
|
||||
@@ -1,71 +0,0 @@
|
||||
<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" 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" 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>
|
||||
@@ -1,195 +0,0 @@
|
||||
<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()}" 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()}" 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"]}.{/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>
|
||||
@@ -1,65 +0,0 @@
|
||||
<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>
|
||||
@@ -1,92 +0,0 @@
|
||||
<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_user" class="addbutton add-big">Táborvezető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">
|
||||
{$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()})
|
||||
|
||||
{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>
|
||||
@@ -1,17 +0,0 @@
|
||||
<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>
|
||||
@@ -1,23 +0,0 @@
|
||||
<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>
|
||||
@@ -1,18 +0,0 @@
|
||||
<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>
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
<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>
|
||||
@@ -1,23 +0,0 @@
|
||||
<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,37 +0,0 @@
|
||||
<div class="list">
|
||||
<div class="list_item">
|
||||
<label class="desc" id="title1" for="tr_duration">
|
||||
Címzett:
|
||||
</label>
|
||||
<div>{$email->get_el_to_name()}<br><{$email->get_el_to_email()}></div>
|
||||
</div>
|
||||
<div class="list_item">
|
||||
<label class="desc" id="title1" for="tr_duration">
|
||||
Tárgy:
|
||||
</label>
|
||||
<div>{$email->get_el_subject()}</div>
|
||||
</div>
|
||||
<div class="list_item">
|
||||
<label class="desc" id="title1" for="tr_duration">
|
||||
Kiküldés dátuma:
|
||||
</label>
|
||||
<div>{$email->get_el_sent_date()}</div>
|
||||
</div>
|
||||
<div class="list_item">
|
||||
<label class="desc" id="title1" for="tr_duration">
|
||||
Üzenet:
|
||||
</label>
|
||||
<div>{$email->get_el_message()}</div>
|
||||
</div>
|
||||
|
||||
{if $email->get_el_exception()}
|
||||
<div class="list_item">
|
||||
<label class="desc" id="title1" for="tr_duration">
|
||||
Üzenet:
|
||||
</label>
|
||||
<div>{$email->get_el_exception()}</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
|
||||
</div>
|
||||
@@ -1,75 +0,0 @@
|
||||
{if $fold}
|
||||
|
||||
<div class="navigator">
|
||||
<div class="previous">
|
||||
{if $previous_id}
|
||||
<a href="/admin/emails/{$previous_id}">
|
||||
{/if}
|
||||
<img src="/_image/previous.png" {if !$previous_id}class="grayscale"{/if}>
|
||||
{if $previous_id}
|
||||
</a>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="next">
|
||||
{if $next_id}
|
||||
<a href="/admin/emails/{$next_id}">
|
||||
{/if}
|
||||
<img src="/_image/previous.png" {if !$next_id}class="grayscale"{/if}>
|
||||
{if $next_id}
|
||||
</a>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/if}
|
||||
|
||||
<div style="overflow-x:auto;">
|
||||
<table class="email log">
|
||||
<tr>
|
||||
<th class="left">#ID</th>
|
||||
<th class="left">Címzett</th>
|
||||
<th class="left">Kiküldés dátuma</th>
|
||||
<th class="left">Tárgy</th>
|
||||
<th class="left">Üzenet</th>
|
||||
<th class="left">Hibaüzenet</th>
|
||||
</tr>
|
||||
{foreach $el_array as $log}
|
||||
<tr class="email-log{if $log->get_el_exception()} delete{else} tick{/if}" data-log-id="{$log->get_el_id()}">
|
||||
<td>#{$log->get_el_id()}</td>
|
||||
<td>{$log->get_el_to_name()}<br><{$log->get_el_to_email()}></td>
|
||||
<td>{$log->get_el_sent_date()}</td>
|
||||
<td>{$log->get_el_subject()}</td>
|
||||
<td>{$log->get_el_message()|truncate:50}</td>
|
||||
<td>{$log->get_el_exception()|truncate:50}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="navigator">
|
||||
<div class="previous">
|
||||
{if $previous_id}
|
||||
<a href="/admin/emails/{$previous_id}">
|
||||
{/if}
|
||||
<img src="/_image/previous.png" {if !$previous_id}class="grayscale"{/if}>
|
||||
{if $previous_id}
|
||||
</a>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="next">
|
||||
{if $next_id}
|
||||
<a href="/admin/emails/{$next_id}">
|
||||
{/if}
|
||||
<img src="/_image/previous.png" {if !$next_id}class="grayscale"{/if}>
|
||||
{if $next_id}
|
||||
</a>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$('table.email.log tr.email-log').click(function() {
|
||||
window.location.href = '/admin/email/'+$(this).data('log-id');
|
||||
});
|
||||
</script>
|
||||
@@ -1,25 +0,0 @@
|
||||
<div class="form_wrapper">
|
||||
{if isset($error)}
|
||||
<p class="error_msg">
|
||||
{$error}
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
{if !isset($success)}
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="action" value="upload_milestone">
|
||||
<div>
|
||||
<label for="fileToUpload">Fájl:</label>
|
||||
<div><input type="file" name="fileToUpload" id="fileToUpload"></div>
|
||||
</div>
|
||||
<div>
|
||||
<div style="float: left;">
|
||||
<input class="button black" type="submit" value="Feltöltés">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{else}
|
||||
<p class="success_msg">{$success}</p>
|
||||
<a href="/admin/milestones">Vissza</a>
|
||||
{/if}
|
||||
</div>
|
||||
@@ -6,14 +6,6 @@
|
||||
<a href="/admin/money_update{$url_postfix}" class="addbutton add-big">Egyenleg frissítése</a>
|
||||
|
||||
</div>
|
||||
<br>
|
||||
{if $page_id == 2 || $page_id == 3 || $page_id == 4 || $page_id == 5}
|
||||
<div class="buttons">
|
||||
<a href="/admin/balance_list/3" class="addbutton big">Legnagyobb tartozás előre</a>
|
||||
<a href="/admin/balance_list/4" class="addbutton big">Legkisebb tartozás előre</a>
|
||||
<a href="/admin/balance_list/5" class="addbutton big">Kiküldés szerint rendezés</a>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="list half_width">
|
||||
{foreach $user_kids as $user}
|
||||
@@ -21,52 +13,8 @@
|
||||
<div class="list_item">
|
||||
<img src="/_image/shuttlecock.png">
|
||||
{$user->get_uk_name()}
|
||||
{if $user->get_uk_last_notification() && $page_id >= 2}
|
||||
<span style="font-size: 14px; font-weight: normal; font-style: italic;">({$user->get_uk_last_notification()})</span>
|
||||
{/if}
|
||||
{if $user->get_uk_balance() < 0 && $page_id >= 2}
|
||||
<span class="float_right notification-text" id="{$user->get_uk_id()}">Értesítő e-mail</span>
|
||||
{/if}
|
||||
<span class="float_right">{$user->get_uk_balance()|number_format:0:'':' '} Ft</span>
|
||||
</div>
|
||||
</a>
|
||||
{/foreach}
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
var clickFunction = function(event) {
|
||||
event.preventDefault();
|
||||
$(event.target).off('click', clickFunction)
|
||||
$(event.target).addClass('in-progress');
|
||||
$(event.target).html('Küldés folyamatban...');
|
||||
|
||||
$.post("/_ajax/send_notify.php",
|
||||
{
|
||||
uk_id: event.target.id,
|
||||
},
|
||||
function(data, status){
|
||||
var pdata = JSON.parse(data);
|
||||
|
||||
if (null == pdata) {
|
||||
//error
|
||||
$(event.target).removeClass('in-progress');
|
||||
$(event.target).addClass('fail');
|
||||
$(event.target).html('Küldés sikertelen');
|
||||
}
|
||||
else if ('missing-data' == pdata) {
|
||||
$(event.target).removeClass('in-progress');
|
||||
$(event.target).addClass('fail');
|
||||
$(event.target).html('Hiányzó adatok!');
|
||||
}
|
||||
else {
|
||||
$(event.target).removeClass('in-progress');
|
||||
$(event.target).addClass('success');
|
||||
$(event.target).html('Kiküldve');
|
||||
}
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
$(document).ready(function() {
|
||||
$('.notification-text').on('click', clickFunction);
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
<div class="form_wrapper">
|
||||
<form method="post">
|
||||
<input type="hidden" name="action" value="user_camp_leader_create">
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="ucl_name">Név:</label>
|
||||
<div><input type="text" name="ucl_name" id="ucl_name" required></div>
|
||||
</div>
|
||||
|
||||
<div id="password">
|
||||
<label class="desc" id="title1" for="ucl_password">Jelszó:</label>
|
||||
<div><input type="password" name="ucl_password" id="ucl_password"></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div>
|
||||
<input class="button black" type="submit" value="Létrehozás">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
@@ -1,26 +0,0 @@
|
||||
<div class="form_wrapper">
|
||||
<form method="post">
|
||||
<div class="buttons">
|
||||
<a href="/admin/delete_camp_leader/{$user->get_ucl_id()}" class="addbutton delete-big">Táborvezető törlése</a>
|
||||
</div>
|
||||
<input type="hidden" name="action" value="user_camp_leader_update">
|
||||
<input type="hidden" name="ucl_id" value="{$user->get_ucl_id()}">
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="ucl_name">Név:</label>
|
||||
<div><input type="text" name="ucl_name" id="ucl_name" value="{$user->get_ucl_name()}" required></div>
|
||||
</div>
|
||||
|
||||
<div id="password">
|
||||
<label class="desc" id="title1" for="ucl_password">Jelszó:</label>
|
||||
<div><input type="password" name="ucl_password" id="ucl_password"></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div>
|
||||
<input class="button black" type="submit" value="Mentés">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
@@ -1,17 +0,0 @@
|
||||
<div class="buttons">
|
||||
|
||||
<a href="/admin/create/user_camp_leader" class="addbutton add-big">Új táborvezető hozzáadása</a>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="list">
|
||||
{foreach $ucl_array as $ucl}
|
||||
<a href="/admin/camp_user/{$ucl->get_ucl_id()}">
|
||||
<div class="list_item">
|
||||
<img src="/_image/person.png">
|
||||
{$ucl->get_ucl_name()}
|
||||
</div>
|
||||
</a>
|
||||
{/foreach}
|
||||
|
||||
</div>
|
||||
@@ -121,11 +121,6 @@
|
||||
<div><input type="text" name="uk_shirt_note" id="uk_shirt_note"></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" for="uk_balance_transfer">Áthozat (Ft):</label>
|
||||
<div><input type="text" name="uk_balance_transfer" id="uk_balance_transfer"></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" for="uk_school_sc_id">Iskola neve:</label>
|
||||
<div>
|
||||
@@ -253,19 +248,6 @@
|
||||
<div><input type="text" name="parent_2_facebook" id="parent_2_facebook"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<br>
|
||||
|
||||
<div>
|
||||
<label class="desc" for="uk_notify_name">Értesítési név:</label>
|
||||
<div><input type="text" name="uk_notify_name" id="uk_notify_name"></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" for="uk_notify_email">Értesítési e-mail cím:</label>
|
||||
<div><input type="text" name="uk_notify_email" id="uk_notify_email"></div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<div>
|
||||
|
||||
@@ -126,11 +126,6 @@
|
||||
<div><input type="text" name="uk_shirt_note" id="uk_shirt_note" value="{$user_data.uk_shirt_note}"></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" for="uk_balance_transfer">Áthozat (Ft):</label>
|
||||
<div><input type="text" name="uk_balance_transfer" id="uk_balance_transfer" value="{$user_data.uk_balance_transfer}"></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" for="uk_school_sc_id">Iskola neve:</label>
|
||||
<div>
|
||||
@@ -262,18 +257,6 @@
|
||||
|
||||
<br>
|
||||
|
||||
<div>
|
||||
<label class="desc" for="uk_notify_name">Értesítési név:</label>
|
||||
<div><input type="text" name="uk_notify_name" id="uk_notify_name" value="{$user_data.uk_notify_name}"></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" for="uk_notify_email">Értesítési e-mail cím:</label>
|
||||
<div><input type="text" name="uk_notify_email" id="uk_notify_email" value="{$user_data.uk_notify_email}"></div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title2" for="uk_contact">Kapcsolat tartás:</label>
|
||||
<div><textarea rows="7" name="uk_contact" id="uk_contact">{$user_data.uk_contact}</textarea></div>
|
||||
|
||||
@@ -1,13 +1,5 @@
|
||||
<div class="list">
|
||||
|
||||
{if count($actions) == 0}
|
||||
<div class="row">
|
||||
<div class="list_item line_height14 bigger_space money_deposit">
|
||||
Áthozat: <span class="bold">{$balance_transfer} Ft</span>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{foreach $actions as $action}
|
||||
|
||||
{if $action@first}
|
||||
@@ -153,11 +145,6 @@
|
||||
{/if}
|
||||
|
||||
{if $action@last}
|
||||
<div class="row">
|
||||
<div class="list_item line_height14 bigger_space money_deposit">
|
||||
Áthozat: <span class="bold">{$balance_transfer} Ft</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
<div class="form_wrapper">
|
||||
<form method="post">
|
||||
<input type="hidden" name="action" value="user_group_create">
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="ug_name">Név:</label>
|
||||
<div><input type="text" name="ug_name" id="ug_name" required></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="ug_description">Leírás:</label>
|
||||
<div><textarea rows="5" name="ug_description" id="ug_description"></textarea></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="ug_is_automatic">Automatikus csoport:</label>
|
||||
<div><input type="checkbox" name="ug_is_automatic" id="ug_is_automatic" value="1"></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div>
|
||||
<input class="button black" type="submit" value="Létrehozás">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
@@ -1,568 +0,0 @@
|
||||
<div class="form_wrapper">
|
||||
<form method="post">
|
||||
<div class="buttons">
|
||||
<a href="/admin/delete_user_group/{$user_group->get_ug_id()}" class="addbutton delete-big">Csoport törlése</a>
|
||||
</div>
|
||||
<input type="hidden" name="action" value="user_group_update">
|
||||
<input type="hidden" name="ug_id" id="ug_id" value="{$user_group->get_ug_id()}">
|
||||
<input type="hidden" name="ug_automatic" id="ug_automatic" value="{$user_group->get_ug_is_automatic()}">
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="ug_name">Név:</label>
|
||||
<div><input type="text" name="ug_name" id="ug_name" value="{$user_group->get_ug_name()}" required></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="ug_description">Leírás:</label>
|
||||
<div><textarea rows="5" name="ug_description" id="ug_description">{$user_group->get_ug_description()}</textarea></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="ug_is_automatic">Automatikus csoport:</label>
|
||||
<div><input type="checkbox" name="ug_is_automatic" id="ug_is_automatic" value="1" disabled="disabled" {if $user_group->get_ug_is_automatic()}checked{/if}></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div>
|
||||
<input class="button black" type="submit" value="Mentés">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
{if $user_group->get_ug_is_automatic()}
|
||||
<br><br><br>
|
||||
<form method="post" id="auto_filters">
|
||||
</form>
|
||||
<input type="hidden" name="ug_id" id="ug_id" value="{$user_group->get_ug_id()}">
|
||||
<div class="user_filter">
|
||||
<button type="button" class="button black" onclick="add_filter()" style="height: 40px;">Szűrő Hozzáadás</button>
|
||||
</div>
|
||||
<br>
|
||||
<div class="user_filter">
|
||||
<button type="button" class="button black" onclick="apply_filters()" style="height: 40px;">Halmaz</button>
|
||||
<button type="button" class="button black" onclick="apply_filters(1)" style="height: 40px;">Metszet</button>
|
||||
</div>
|
||||
|
||||
<div class="list wide" id="user_list" style="padding: 20px 0px 50px 0px;"></div>
|
||||
|
||||
<div id="footer_control">
|
||||
<a onclick="update_user_list()" class="addbutton add" style="cursor: pointer;">Minden tag</a>
|
||||
<div id="categories">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div id="footer_toggle" onclick="footer_toggle();">
|
||||
<img src="/_image/collapse.png">
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
var footer_category_ids = [];
|
||||
var footer_values = [];
|
||||
|
||||
$( document ).ready(function() {
|
||||
update_user_list(null, true);
|
||||
update_footer();
|
||||
get_filters();
|
||||
});
|
||||
|
||||
|
||||
function get_filters() {
|
||||
$.post("/_ajax/get_filter_value_list.php",
|
||||
{
|
||||
group_id: $("#ug_id").val()
|
||||
},
|
||||
function(data, status) {
|
||||
//filter array
|
||||
var pdata = JSON.parse(data);
|
||||
|
||||
$.each(pdata, function(key, filter_value) {
|
||||
//végigmegyünk a filter_value-kon
|
||||
var filter_id = filter_value['ugfv_filter_id'];
|
||||
var filter_value_id = filter_value['ugfv_id'];
|
||||
var filter_html = '\
|
||||
<div class="filter_row"><label for="filter_'+filter_value_id+'""><select class="filter_select" onChange="update_value_list('+filter_value_id+', this)" id="filter_'+filter_value_id+'"><option value="null">- Válassz szűrőt -</option></select></label>\
|
||||
<div>\
|
||||
<select id="filter_value_'+filter_value_id+'"><option value="null">- Szűrő értéke -</option></select>\
|
||||
</div></div>\
|
||||
';
|
||||
$("#auto_filters").append(filter_html);
|
||||
load_filters(filter_value_id, filter_id, filter_value['ugfv_value']);
|
||||
//update_value_list(filter_value_id, $("#filter_"+filter_value_id), filter_value['ugfv_value']);
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function load_filters(select_id, selected_filter_id = null, ugfv_value = null) {
|
||||
$.post("/_ajax/get_filter_list.php",
|
||||
function(data, status) {
|
||||
//filter array
|
||||
var pdata = JSON.parse(data);
|
||||
var selected;
|
||||
var option_string = '<option value="null">- Válassz szűrőt -</option>';
|
||||
$.each(pdata, function(key, value) {
|
||||
selected = '';
|
||||
if (selected_filter_id) {
|
||||
if (selected_filter_id == value["ugf_id"]) {
|
||||
selected = ' selected';
|
||||
}
|
||||
}
|
||||
option_string += "<option value='"+value["ugf_id"]+"'"+selected+">"+value["ugf_name"]+"</option>";
|
||||
});
|
||||
$("#filter_"+select_id).html(option_string);
|
||||
//$("#filter_"+select_id).trigger('change');
|
||||
if (ugfv_value) {
|
||||
update_value_list(select_id, $("#filter_"+select_id), ugfv_value);
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function update_value_list(id, select_element, selected_id = null) {
|
||||
//itt kell megvizsgálni, hogy milyen fajta mező stb
|
||||
//mármint az ajaxezés közben
|
||||
$.post("/_ajax/get_filter_values.php",
|
||||
{
|
||||
filter_id: $("#filter_"+id).val(),
|
||||
},
|
||||
function(data, status) {
|
||||
//value array
|
||||
var pdata = JSON.parse(data);
|
||||
if (pdata != null) {
|
||||
var option_string = '';
|
||||
$.each(pdata, function(key, value) {
|
||||
option_string += "<option value='"+value["ugf_id"]+"'>"+value["ugf_name"]+"</option>";
|
||||
});
|
||||
$("#filter_value_"+id).html(option_string);
|
||||
if (selected_id) {
|
||||
$("#filter_value_"+id).val(selected_id);
|
||||
}
|
||||
}
|
||||
else {
|
||||
$("#filter_value_"+id).html('<option value="null">- Szűrő értéke -</option>');
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function update_footer() {
|
||||
$("#categories").html('');
|
||||
$.each(footer_category_ids, function(key, value) {
|
||||
$("#categories").append('<a onclick="update_user_list('+value+')" class="addbutton add" style="cursor: pointer;">'+footer_values[key]+'</a>');
|
||||
});
|
||||
}
|
||||
|
||||
function apply_filters(intersect = 0) {
|
||||
//ha üres a filter list, akkor nem csinál semmit
|
||||
var to_remove = [];
|
||||
if( ($('#auto_filters').children()).length ) {
|
||||
//todo: a kiválasztott mezőket is hozzá kell rakni
|
||||
|
||||
//bele kell rakni egy tömbbe a filterek id-ját
|
||||
var filter_array = [];
|
||||
$.each($(".filter_select"), function(key, value) {
|
||||
//le kell vágni a _ után a számot
|
||||
//tömb[tömb]
|
||||
//a belső tömbben egy filter ID, filter_value ID és egy value van
|
||||
var filter_select_value = $(this).val();
|
||||
|
||||
|
||||
if (filter_select_value == 'null') {
|
||||
to_remove.push($(this).parent().parent());
|
||||
}
|
||||
|
||||
var parts = $(value).attr('id').split('_');
|
||||
var filter_id = parts[1];
|
||||
var filter_value = [];
|
||||
filter_value.push(filter_id);
|
||||
filter_value.push($("#filter_value_"+filter_id).val());
|
||||
filter_value.push($("#filter_"+filter_id).val());
|
||||
|
||||
filter_array.push(filter_value);
|
||||
|
||||
|
||||
});
|
||||
//return;
|
||||
$.post("/_ajax/apply_filters.php",
|
||||
{
|
||||
filter_array: filter_array,
|
||||
user_group_id: $("#ug_id").val(),
|
||||
intersect: intersect,
|
||||
},
|
||||
function(data, status) {
|
||||
update_user_list(null, true);
|
||||
$.each(to_remove, function(key, value) {
|
||||
value.remove();
|
||||
});
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
function update_user_list(category_id = 0, footer_update = false) {
|
||||
//lekéri a usereket a csoportból
|
||||
|
||||
|
||||
$.ajax({
|
||||
url: '/_ajax/get_auto_group_members.php',
|
||||
global: false,
|
||||
type: 'POST',
|
||||
data: {
|
||||
group_id: $("#ug_id").val(),
|
||||
category_id: category_id,
|
||||
},
|
||||
async: true, //blocks window close
|
||||
success: function(data, status) {
|
||||
var pdata = JSON.parse(data);
|
||||
console.log(pdata);
|
||||
var content = '';
|
||||
var ugc_name_parts;
|
||||
footer_category_ids = [];
|
||||
footer_values = [];
|
||||
content += '<div class="date_separator">'+pdata.length+' fő';
|
||||
if (category_id) {
|
||||
content += ' (szűkített nézet!)';
|
||||
}
|
||||
|
||||
content += '</div>';
|
||||
$.each(pdata, function(key, value) {
|
||||
ugc_name_parts = value['ugc_names'].split(",");
|
||||
//footer elements
|
||||
//darabokra szedjük + mégegy each
|
||||
if (value['ugc_ids']) {
|
||||
var ugc_ids = value['ugc_ids'].split(',');
|
||||
$.each(ugc_ids, function(k, v) {
|
||||
if (footer_category_ids.indexOf(v) == -1) {
|
||||
footer_category_ids.push(v);
|
||||
}
|
||||
});
|
||||
}
|
||||
//fe. end
|
||||
|
||||
ugc_name_parts.sort();
|
||||
content +=
|
||||
'\
|
||||
<div class="list_item" id="kid_'+value['uk_id']+'">\
|
||||
<span class="name_span">'+value['uk_name']+'</span>';
|
||||
if (value['ugc_ids']) {
|
||||
content += '<div class="categories">';
|
||||
|
||||
$.each(ugc_name_parts, function(ugc_key, ugc_value) {
|
||||
content += '<span class="category_tab">'+ugc_value+'</span>';
|
||||
if (footer_values.indexOf(ugc_value) == -1) {
|
||||
footer_values.push(ugc_value);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
content += '\
|
||||
</div>';
|
||||
}
|
||||
content += '</div>';
|
||||
});
|
||||
if (footer_update) {
|
||||
update_footer();
|
||||
}
|
||||
document.getElementById('user_list').innerHTML = content;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function add_filter() {
|
||||
//hozzáad egy új szűrő a HTML-hez
|
||||
|
||||
$.post("/_ajax/create_user_group_filter.php",
|
||||
{
|
||||
create_new: true,
|
||||
},
|
||||
function(data, status) {
|
||||
//az új szűrő id-ját kapjuk vissza
|
||||
var pdata = JSON.parse(data);
|
||||
//illesszünk be rögtön egy új szűrőt, először csak null filter_id-val, és majd az Alkalmaz gombra kattintva tölti ki
|
||||
var filter_html = '\
|
||||
<div class="filter_row"><label for="filter_'+pdata+'""><select class="filter_select" onChange="update_value_list('+pdata+', this)" id="filter_'+pdata+'"><option value="null">- Válassz szűrőt -</option></select></label>\
|
||||
<div>\
|
||||
<select id="filter_value_'+pdata+'"><option value="null">- Szűrő értéke -</option></select>\
|
||||
</div></div>\
|
||||
';
|
||||
$("#auto_filters").append(filter_html);
|
||||
//legyen egy function, ami egy adott selectbe beletölti az összes filter típust
|
||||
load_filters(pdata);
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
{else}
|
||||
|
||||
<div class="user_filter">
|
||||
<input name="uk_filter_name" id="uk_filter_name" placeholder="Keresés..." autofocus>
|
||||
<button type="button" class="button black" onclick="get_group_members({$user_group->get_ug_id()}, null)" style="height: 40px;">Összes tag</button>
|
||||
</div>
|
||||
<div class="user_filter">
|
||||
<input class="add_category" id="add_category" placeholder="Új kategória">
|
||||
<button type="button" class="button black" onclick="add_category()" style="height: 40px;">Hozzáadás</button>
|
||||
</div>
|
||||
|
||||
<div class="list wide" id="user_list" style="padding: 20px 0px 50px 0px;"></div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer_control">
|
||||
<a href="#" id="members" onclick="get_group_members({$user_group->get_ug_id()},'members')" class="addbutton add">Tagok</a>
|
||||
<a href="#" id="not_members" onclick="get_group_members({$user_group->get_ug_id()},'not_members')" class="addbutton add">Nem tagok</a>
|
||||
<a href="#" id="members_without_category" onclick="get_group_members({$user_group->get_ug_id()},'members_without_category')" class="addbutton add">Kategória nélküli tagok</a>
|
||||
</div>
|
||||
<div id="footer_toggle" onclick="footer_toggle();">
|
||||
<img src="/_image/collapse.png">
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
var Timer;
|
||||
var options = '';
|
||||
|
||||
$( document ).ready(function() {
|
||||
//$("#uk_filter_name").focus();
|
||||
|
||||
//legeneráljuk az option-öket, és ezeket csak appendeljük, hogy ne kelljen minden lépésben lekérni
|
||||
generate_options($("#ug_id").val());
|
||||
|
||||
//betöltjük a footerbe a category-kat
|
||||
generate_footer_items($("#ug_id").val());
|
||||
|
||||
//mutassuk a tagokat
|
||||
get_group_members($('#ug_id').val(), 'members');
|
||||
|
||||
});
|
||||
|
||||
$("#uk_filter_name").keyup(function() {
|
||||
var text = $("#uk_filter_name").val();
|
||||
if (text.length >= 3) {
|
||||
document.getElementById('user_list').innerHTML = 'Betöltés...';
|
||||
clearTimeout(Timer);
|
||||
Timer = window.setTimeout(get_group_members($("#ug_id").val(),text), 1000);
|
||||
}
|
||||
});
|
||||
|
||||
function generate_options(ug_id) {
|
||||
$.post("/_ajax/get_category_list.php",
|
||||
{
|
||||
group_id: ug_id,
|
||||
},
|
||||
function(data, status) {
|
||||
var pdata = JSON.parse(data);
|
||||
var option_string = '';
|
||||
$.each(pdata, function(key, value) {
|
||||
option_string += "<option value='"+value["ugc_id"]+"'>"+value["ugc_name"]+"</option>";
|
||||
});
|
||||
options = option_string;
|
||||
update_select_lists();
|
||||
});
|
||||
}
|
||||
|
||||
function generate_footer_items(ug_id) {
|
||||
$.post("/_ajax/get_category_list.php",
|
||||
{
|
||||
group_id: ug_id,
|
||||
},
|
||||
function(data, status) {
|
||||
var pdata = JSON.parse(data);
|
||||
var option_string = '';
|
||||
$.each(pdata, function(key, value) {
|
||||
option_string += '<a href="#" id="members" onclick="get_group_members({$user_group->get_ug_id()},'+value['ugc_id']+')" class="addbutton add">'+value['ugc_name']+'</a>';
|
||||
});
|
||||
$("#footer_control").append(option_string);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function modify_membership(uk_id, group_id) {
|
||||
|
||||
//css átállítása
|
||||
if ($("#kid_"+uk_id).hasClass('member')) {
|
||||
$("#kid_"+uk_id).removeClass('member');
|
||||
$("#kid_"+uk_id).addClass('not_member');
|
||||
}
|
||||
else {
|
||||
$("#kid_"+uk_id).addClass('member');
|
||||
$("#kid_"+uk_id).removeClass('not_member');
|
||||
}
|
||||
|
||||
//adatbázis módosítás
|
||||
$.post("/_ajax/update_membership.php",
|
||||
{
|
||||
uk_id: uk_id,
|
||||
group_id: group_id
|
||||
});
|
||||
}
|
||||
|
||||
function create_category(group_id, category_name) {
|
||||
$.post("/_ajax/create_category.php",
|
||||
{
|
||||
group_id: group_id,
|
||||
category_name: category_name
|
||||
},
|
||||
function(data, status) {
|
||||
var pdata = JSON.parse(data);
|
||||
|
||||
generate_options(group_id);
|
||||
//add_category_to_kid(uk_id, pdata, group_id);
|
||||
//update_select_list(uk_id, group_id, pdata);
|
||||
add_category_to_footer(pdata);
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
function update_select_list(uk_id, group_id, category_id = null) {
|
||||
//az utolsó paraméter határozza meg, hogy selecteddé kell-e tenni valamit
|
||||
|
||||
//kitöröljük az összes optiont-t
|
||||
$('#cat_list_'+uk_id).html('');
|
||||
|
||||
//lekérjük a friss category listát ehhez a grouphoz
|
||||
$.post("/_ajax/get_category_list.php",
|
||||
{
|
||||
group_id: group_id,
|
||||
},
|
||||
function(data, status){
|
||||
var pdata = JSON.parse(data);
|
||||
var selected;
|
||||
//végigmegyünk rajta
|
||||
$.each(pdata, function(key, value) {
|
||||
selected = false;
|
||||
if (category_id) {
|
||||
if (value['ugc_id'] == category_id) {
|
||||
selected = 'selected';
|
||||
$('#select_value_'+uk_id).val(category_id);
|
||||
}
|
||||
}
|
||||
//a hidden mező értékét kéne csak beállítani
|
||||
$('#cat_list_'+uk_id).append($("<option></option>")
|
||||
.attr('value', value['ugc_id'])
|
||||
.prop('selected', selected)
|
||||
.text(value['ugc_name'])
|
||||
|
||||
);
|
||||
});
|
||||
|
||||
update_select_lists();
|
||||
});
|
||||
}
|
||||
|
||||
function update_select_lists() {
|
||||
//updateli az összes selectet az oldalon
|
||||
//először elmenti h melyik id-jú a selected
|
||||
//betöltés után beállítja
|
||||
var selected;
|
||||
var select_id;
|
||||
var kid_id;
|
||||
var temp_array;
|
||||
$("select").each(function() {
|
||||
select_id = $(this).prop('id');
|
||||
temp_array = select_id.split('_');
|
||||
kid_id = temp_array[2];
|
||||
selected = $("#select_value_"+kid_id).val();
|
||||
$(this).html('<option value="null">- nincs kategória -</option>');
|
||||
$(this).append(options);
|
||||
$(this).val(selected);
|
||||
});
|
||||
}
|
||||
|
||||
function add_category_to_footer(category_id) {
|
||||
$.post("/_ajax/get_category.php",
|
||||
{
|
||||
category_id: category_id,
|
||||
},
|
||||
function(data, status){
|
||||
var pdata = JSON.parse(data);
|
||||
$("#footer_control").append('<a href="#" onclick="get_group_members('+$("#ug_id").val()+','+category_id+')" class="addbutton add">'+pdata[0]['ugc_name']+'</a>');
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
function add_category() {
|
||||
//létrehozzuk a category-t a group-hoz
|
||||
var cat_name = $("#add_category").val();
|
||||
create_category($("#ug_id").val(), cat_name);
|
||||
$("#add_category").val('');
|
||||
|
||||
//hozzáadjuk az új category-t a footerhez
|
||||
}
|
||||
|
||||
function add_category_to_kid(uk_id, category_id, group_id) {
|
||||
$.post("/_ajax/add_category_to_kid.php",
|
||||
{
|
||||
uk_id: uk_id,
|
||||
category_id: category_id,
|
||||
group_id: group_id
|
||||
});
|
||||
}
|
||||
|
||||
function update_category_to_user(uk_id, group_id, select_element) {
|
||||
$.post("/_ajax/add_category_to_kid.php",
|
||||
{
|
||||
uk_id: uk_id,
|
||||
category_id: select_element.value,
|
||||
group_id: group_id
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
//searchStr lehetséges paraméterek: members, not_members, category_id
|
||||
function get_group_members(groupId, searchStr) {
|
||||
document.getElementById('user_list').innerHTML = 'Betöltés...';
|
||||
$.post("/_ajax/get_group_members.php",
|
||||
{
|
||||
searchStr: searchStr,
|
||||
groupId: groupId,
|
||||
|
||||
},
|
||||
function(data, status){
|
||||
var pdata = JSON.parse(data);
|
||||
var member;
|
||||
var content = '';
|
||||
for (var i=0; i<pdata.length; ++i) {
|
||||
|
||||
member = 'not_member';
|
||||
if (pdata[i]['ugk_user_group_ug_id'] == groupId) {
|
||||
member = 'member';
|
||||
}
|
||||
|
||||
content +=
|
||||
'\
|
||||
<div class="list_item '+member+'" id="kid_'+pdata[i]['uk_id']+'">\
|
||||
<span class="toggle" onclick="modify_membership('+pdata[i]['uk_id']+', '+groupId+')"><img src="/_image/switch.png"></span>\
|
||||
<span class="name_span">'+pdata[i]['uk_name']+'</span>\
|
||||
<select class="category_list" onChange="update_category_to_user('+pdata[i]['uk_id']+', '+groupId+', this)" id="cat_list_'+pdata[i]['uk_id']+'" name="cat_list_'+pdata[i]['uk_id']+'"><option value="null">- nincs kategória -</option></select>\
|
||||
<input type="hidden" id="select_value_'+pdata[i]['uk_id']+'" value="'+pdata[i]['ugk_category_ugc_id']+'">\
|
||||
</div>\
|
||||
';
|
||||
}
|
||||
document.getElementById('user_list').innerHTML = content;
|
||||
update_select_lists();
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
{/if}
|
||||
|
||||
<script type="text/javascript">
|
||||
function footer_toggle() {
|
||||
$("#footer_control").fadeToggle( "fast", "linear" );
|
||||
}
|
||||
</script>
|
||||
@@ -1,15 +0,0 @@
|
||||
<div class="buttons">
|
||||
<a href="/admin/create/user_group" class="addbutton add-big">Új csoport hozzáadása</a>
|
||||
</div>
|
||||
|
||||
<div class="list">
|
||||
{foreach $user_group_array as $user_group}
|
||||
<a href="/admin/user_groups/{$user_group->get_ug_id()}">
|
||||
<div class="list_item clickable" id="coach_{$user_group->get_ug_id()}">
|
||||
<img src="/_image/coach.png">
|
||||
{$user_group->get_ug_name()}
|
||||
</div>
|
||||
</a>
|
||||
{/foreach}
|
||||
|
||||
</div>
|
||||
@@ -1,23 +1,21 @@
|
||||
<div class="buttons">
|
||||
<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/schools" class="addbutton add-big">Iskolák</a>
|
||||
<a href="/admin/regions" class="addbutton add-big">Diákolimpia körzetek</a>
|
||||
<a href="/admin/user_groups" class="addbutton add-big">Csoportok</a>
|
||||
<a href="/admin/milestones" class="addbutton add-big">Játékos profil feltöltése</a>
|
||||
<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/schools" class="addbutton add-big">Iskolák</a>
|
||||
<a href="/admin/regions" class="addbutton add-big">Diákolimpia körzetek</a>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="user_filter">
|
||||
<input name="uk_filter_name" id="uk_filter_name" placeholder="Keresés..." autofocus>
|
||||
<select name="is_active" id="is_active">
|
||||
<option value="1">Aktív tagok</option>
|
||||
<option value="0">Passzív tagok</option>
|
||||
<option value="3">Minden tag</option>
|
||||
</select>
|
||||
<input name="uk_filter_name" id="uk_filter_name" placeholder="Keresés..." autofocus>
|
||||
<select name="is_active" id="is_active">
|
||||
<option value="1">Aktív tagok</option>
|
||||
<option value="0">Passzív tagok</option>
|
||||
<option value="3">Minden tag</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -39,100 +37,100 @@ $( document ).ready(function() {
|
||||
|
||||
$("#is_active").change(search);
|
||||
$("#uk_filter_name").keyup(function() {
|
||||
document.getElementById('user_list').innerHTML = 'Betöltés...';
|
||||
clearTimeout(Timer);
|
||||
Timer = window.setTimeout(search, 1000);
|
||||
document.getElementById('user_list').innerHTML = 'Betöltés...';
|
||||
clearTimeout(Timer);
|
||||
Timer = window.setTimeout(search, 1000);
|
||||
|
||||
});
|
||||
|
||||
|
||||
function open_kid_menu(uk_id) {
|
||||
$("#kid_menu_"+uk_id).slideToggle();
|
||||
if (!$("#kid_"+uk_id).hasClass('active_kid')) {
|
||||
$("#kid_"+uk_id).addClass('active_kid');
|
||||
$("#kid_"+uk_id).removeClass('list_item');
|
||||
}
|
||||
else {
|
||||
$("#kid_"+uk_id).removeClass('active_kid');
|
||||
$("#kid_"+uk_id).addClass('list_item');
|
||||
}
|
||||
$("#kid_menu_"+uk_id).slideToggle();
|
||||
if (!$("#kid_"+uk_id).hasClass('active_kid')) {
|
||||
$("#kid_"+uk_id).addClass('active_kid');
|
||||
$("#kid_"+uk_id).removeClass('list_item');
|
||||
}
|
||||
else {
|
||||
$("#kid_"+uk_id).removeClass('active_kid');
|
||||
$("#kid_"+uk_id).addClass('list_item');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function open_deposit(user_id) {
|
||||
$("#"+user_id).submit();
|
||||
$("#"+user_id).submit();
|
||||
}
|
||||
|
||||
function open_preview(user_id) {
|
||||
window.open("/preview/diary/"+user_id, '_blank');
|
||||
window.open("/preview/diary/"+user_id, '_blank');
|
||||
}
|
||||
|
||||
function open_datasheet(user_id) {
|
||||
location.href = "/admin/members/"+user_id;
|
||||
location.href = "/admin/members/"+user_id;
|
||||
}
|
||||
|
||||
function open_previous_deposits(user_id) {
|
||||
location.href = "/admin/view_deposit/"+user_id;
|
||||
location.href = "/admin/view_deposit/"+user_id;
|
||||
}
|
||||
|
||||
function open_logins(user_id) {
|
||||
$("#login_"+user_id).submit();
|
||||
$("#login_"+user_id).submit();
|
||||
}
|
||||
|
||||
function search() {
|
||||
document.getElementById('user_list').innerHTML = 'Betöltés...';
|
||||
$("#is_active").prop("disabled",true);
|
||||
$.post("/_ajax/get_user_list.php",
|
||||
{
|
||||
uk_filter_name: $("#uk_filter_name").val(),
|
||||
is_active: $("#is_active").val()
|
||||
document.getElementById('user_list').innerHTML = 'Betöltés...';
|
||||
$("#is_active").prop("disabled",true);
|
||||
$.post("/_ajax/get_user_list.php",
|
||||
{
|
||||
uk_filter_name: $("#uk_filter_name").val(),
|
||||
is_active: $("#is_active").val()
|
||||
|
||||
},
|
||||
function(data, status){
|
||||
var pdata = JSON.parse(data);
|
||||
var content = '';
|
||||
for (var i=0; i<pdata.length; ++i) {
|
||||
//console.log(pdata[i]['uk_id']);
|
||||
//add_list_item(pdata[i]['uk_id'],pdata[i]['uk_name']);
|
||||
content +=
|
||||
'\
|
||||
<form id="'+pdata[i]['uk_id']+'" class="user_mod_form" method="post" action="/admin/create/money_deposit">\
|
||||
<input type="hidden" name="mod_user_kid_uk_id" value="'+pdata[i]['uk_id']+'">\
|
||||
</form>\
|
||||
<form id="login_'+pdata[i]['uk_id']+'" class="user_mod_form" method="post" action="/admin/log/1">\
|
||||
<input type="hidden" name="login_kid" value="'+pdata[i]['uk_id']+'">\
|
||||
</form>\
|
||||
<div class="list_item clickable" id="kid_'+pdata[i]['uk_id']+'" onclick="open_kid_menu('+pdata[i]['uk_id']+')">\
|
||||
<img src="/_image/shuttlecock.png">\
|
||||
'+pdata[i]['uk_name']+'\
|
||||
</div>\
|
||||
<div class="kid_menu" id="kid_menu_'+pdata[i]['uk_id']+'">\
|
||||
<div class="kid_submenu" onclick="open_datasheet('+pdata[i]['uk_id']+')">\
|
||||
<span>Adatlap</span>\
|
||||
<img src="/_image/contact.png">\
|
||||
</div>\
|
||||
<div class="kid_submenu" onclick="open_deposit('+pdata[i]['uk_id']+')">\
|
||||
<span>Új befizetés</span>\
|
||||
<img src="/_image/deposit.png">\
|
||||
</div>\
|
||||
<div class="kid_submenu" onclick="open_previous_deposits('+pdata[i]['uk_id']+')">\
|
||||
<span>Korábbi befizetések</span>\
|
||||
<img src="/_image/stat.png">\
|
||||
</div>\
|
||||
<div class="kid_submenu" onclick="open_logins('+pdata[i]['uk_id']+')">\
|
||||
<span>Belépések</span>\
|
||||
<img src="/_image/login.png">\
|
||||
</div>\
|
||||
<div class="kid_submenu" onclick="open_preview('+pdata[i]['uk_id']+')">\
|
||||
<span>Szülői előnézet</span>\
|
||||
<img src="/_image/preview.png">\
|
||||
</div>\
|
||||
</div>\
|
||||
'
|
||||
}
|
||||
document.getElementById('user_list').innerHTML = content;
|
||||
$("#is_active").prop("disabled",false);
|
||||
});
|
||||
},
|
||||
function(data, status){
|
||||
var pdata = JSON.parse(data);
|
||||
var content = '';
|
||||
for (var i=0; i<pdata.length; ++i) {
|
||||
//console.log(pdata[i]['uk_id']);
|
||||
//add_list_item(pdata[i]['uk_id'],pdata[i]['uk_name']);
|
||||
content +=
|
||||
'\
|
||||
<form id="'+pdata[i]['uk_id']+'" class="user_mod_form" method="post" action="/admin/create/money_deposit">\
|
||||
<input type="hidden" name="mod_user_kid_uk_id" value="'+pdata[i]['uk_id']+'">\
|
||||
</form>\
|
||||
<form id="login_'+pdata[i]['uk_id']+'" class="user_mod_form" method="post" action="/admin/log/1">\
|
||||
<input type="hidden" name="login_kid" value="'+pdata[i]['uk_id']+'">\
|
||||
</form>\
|
||||
<div class="list_item clickable" id="kid_'+pdata[i]['uk_id']+'" onclick="open_kid_menu('+pdata[i]['uk_id']+')">\
|
||||
<img src="/_image/shuttlecock.png">\
|
||||
'+pdata[i]['uk_name']+'\
|
||||
</div>\
|
||||
<div class="kid_menu" id="kid_menu_'+pdata[i]['uk_id']+'">\
|
||||
<div class="kid_submenu" onclick="open_datasheet('+pdata[i]['uk_id']+')">\
|
||||
<span>Adatlap</span>\
|
||||
<img src="/_image/contact.png">\
|
||||
</div>\
|
||||
<div class="kid_submenu" onclick="open_deposit('+pdata[i]['uk_id']+')">\
|
||||
<span>Új befizetés</span>\
|
||||
<img src="/_image/deposit.png">\
|
||||
</div>\
|
||||
<div class="kid_submenu" onclick="open_previous_deposits('+pdata[i]['uk_id']+')">\
|
||||
<span>Korábbi befizetések</span>\
|
||||
<img src="/_image/stat.png">\
|
||||
</div>\
|
||||
<div class="kid_submenu" onclick="open_logins('+pdata[i]['uk_id']+')">\
|
||||
<span>Belépések</span>\
|
||||
<img src="/_image/login.png">\
|
||||
</div>\
|
||||
<div class="kid_submenu" onclick="open_preview('+pdata[i]['uk_id']+')">\
|
||||
<span>Szülői előnézet</span>\
|
||||
<img src="/_image/preview.png">\
|
||||
</div>\
|
||||
</div>\
|
||||
'
|
||||
}
|
||||
document.getElementById('user_list').innerHTML = content;
|
||||
$("#is_active").prop("disabled",false);
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
<div class="danger">
|
||||
|
||||
Változás, téves vagy hiányzó adat esetén a helyes információt e-mail-ben kérjük megadni: <a href="mailto:szucs.zoltan@tollaslabda.info?subject={$user_login->get_uk_name()}">szucs.zoltan@tollaslabda.info</a>
|
||||
|
||||
</div>
|
||||
<div class="list">
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
|
||||
@@ -1,57 +1,57 @@
|
||||
<div class="buttons">
|
||||
<form id="create_submit" action="/admin/create/money_deposit" method="post">
|
||||
<a href="#" class="addbutton add-big" onclick="open_deposit({$mod_user_kid_id})">Új befizetés</a>
|
||||
<input type="hidden" name="mod_user_kid_uk_id" value="{$mod_user_kid_id}">
|
||||
</form>
|
||||
<form id="create_submit" action="/admin/create/money_deposit" method="post">
|
||||
<a href="#" class="addbutton add-big" onclick="open_deposit({$mod_user_kid_id})">Új befizetés</a>
|
||||
<input type="hidden" name="mod_user_kid_uk_id" value="{$mod_user_kid_id}">
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="balance">
|
||||
Egyenleg: {$balance|number_format:0:'':' '} Ft
|
||||
Egyenleg: {$balance|number_format:0:'':' '} Ft
|
||||
</div>
|
||||
|
||||
<div class="list half_width">
|
||||
{foreach $mod_array as $mod}
|
||||
{foreach $mod_array as $mod}
|
||||
|
||||
{if !$mod@first && $mod_array[$mod@index]->get_mod_date()|substr:5:2 != $mod_array[$mod@index-1]->get_mod_date()|substr:5:2}
|
||||
</div>
|
||||
{/if}
|
||||
{if !$mod@first && $mod_array[$mod@index]->get_mod_money_income()->get_mi_date()|substr:5:2 != $mod_array[$mod@index-1]->get_mod_money_income()->get_mi_date()|substr:5:2}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $mod@first || $mod_array[$mod@index]->get_mod_date()|substr:5:2 != $mod_array[$mod@index-1]->get_mod_date()|substr:5:2}
|
||||
<span onclick="block_action('block_{$mod->get_mod_date()|substr:0:4}{$mod->get_mod_date()|substr:5:2}');" class="date_separator clickable">{$mod_array[$mod@index]->get_mod_date()|substr:0:4}.
|
||||
{$months[$mod_array[$mod@index]->get_mod_date()|substr:5:2]}
|
||||
<img src="/_image/open_folder.png">
|
||||
</span>
|
||||
<div id="block_{$mod->get_mod_date()|substr:0:4}{$mod->get_mod_date()|substr:5:2}" class="month_block">
|
||||
{if $mod@first || $mod_array[$mod@index]->get_mod_money_income()->get_mi_date()|substr:5:2 != $mod_array[$mod@index-1]->get_mod_money_income()->get_mi_date()|substr:5:2}
|
||||
<span onclick="block_action('block_{$mod->get_mod_money_income()->get_mi_date()|substr:0:4}{$mod->get_mod_money_income()->get_mi_date()|substr:5:2}');" class="date_separator clickable">{$mod_array[$mod@index]->get_mod_money_income()->get_mi_date()|substr:0:4}.
|
||||
{$months[$mod_array[$mod@index]->get_mod_money_income()->get_mi_date()|substr:5:2]}
|
||||
<img src="/_image/open_folder.png">
|
||||
</span>
|
||||
<div id="block_{$mod->get_mod_money_income()->get_mi_date()|substr:0:4}{$mod->get_mod_money_income()->get_mi_date()|substr:5:2}" class="month_block">
|
||||
|
||||
{/if}
|
||||
<a href="/admin/money_deposit/{$mod->get_mod_id()}">
|
||||
<div class="list_item">
|
||||
<table class="money">
|
||||
<tr>
|
||||
<td class="icon">
|
||||
<img src="/_image/deposit.png">
|
||||
</td>
|
||||
<td>
|
||||
{$mod->get_mod_user_kid()->get_uk_name()}
|
||||
</td>
|
||||
<td class="date">
|
||||
{$mod->get_mod_date()}
|
||||
</td>
|
||||
<td class="sum">
|
||||
{$mod->get_mod_sum()|number_format:0:'':' '} Ft
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</a>
|
||||
{/if}
|
||||
<a href="/admin/money_deposit/{$mod->get_mod_id()}">
|
||||
<div class="list_item">
|
||||
<table class="money">
|
||||
<tr>
|
||||
<td class="icon">
|
||||
<img src="/_image/deposit.png">
|
||||
</td>
|
||||
<td>
|
||||
{$mod->get_mod_user_kid()->get_uk_name()}
|
||||
</td>
|
||||
<td class="date">
|
||||
{$mod->get_mod_money_income()->get_mi_date()}
|
||||
</td>
|
||||
<td class="sum">
|
||||
{$mod->get_mod_money_income()->get_mi_sum()|number_format:0:'':' '} Ft
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{if $mod@last}
|
||||
</div>
|
||||
{/if}
|
||||
</table>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
{/foreach}
|
||||
{if $mod@last}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{/foreach}
|
||||
|
||||
</div>
|
||||
|
||||
@@ -59,35 +59,35 @@
|
||||
<script>
|
||||
|
||||
function open_block(block_id) {
|
||||
$("#"+block_id).slideDown("slow");
|
||||
$("#"+block_id).slideDown("slow");
|
||||
}
|
||||
|
||||
function close_block(block_id) {
|
||||
$("#"+block_id).slideUp("slow");
|
||||
$("#"+block_id).slideUp("slow");
|
||||
}
|
||||
|
||||
function block_action(block_id) {
|
||||
if ($("#"+block_id).is(':hidden')) {
|
||||
open_block(block_id);
|
||||
}
|
||||
else {
|
||||
close_block(block_id);
|
||||
}
|
||||
if ($("#"+block_id).is(':hidden')) {
|
||||
open_block(block_id);
|
||||
}
|
||||
else {
|
||||
close_block(block_id);
|
||||
}
|
||||
}
|
||||
|
||||
function open_deposit(user_id) {
|
||||
$("#create_submit").submit();
|
||||
$("#create_submit").submit();
|
||||
}
|
||||
|
||||
|
||||
$( document ).ready(function() {
|
||||
var divs = $( "div[class=month_block]" );
|
||||
$( ".list" ).find( divs ).hide();
|
||||
var div_list = $( ".list" ).find( divs );
|
||||
$( ".list" ).find( divs ).hide();
|
||||
var div_list = $( ".list" ).find( divs );
|
||||
|
||||
open_block(div_list[0].id);
|
||||
|
||||
open_block(div_list[0].id);
|
||||
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user