CAMP part 1, registration, apply, new login screen, wide layout
This commit is contained in:
82
template/templates/applies.tpl
Normal file
82
template/templates/applies.tpl
Normal file
@@ -0,0 +1,82 @@
|
||||
<h1 class="apply">Visszaigazolt jelentkezések</h1>
|
||||
<table class="apply_table">
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>Jelentkező</th>
|
||||
<th>Tábor helye, ideje</th>
|
||||
<th>Jelentkezés ideje</th>
|
||||
<th>Státusz</th>
|
||||
<th>Visszaigazolás dátuma</th>
|
||||
</tr>
|
||||
{if !count($apply_array)}
|
||||
<tr>
|
||||
<td colspan="6" class="no_data">Nincs még visszaigazolt jelentkezése</td>
|
||||
</tr>
|
||||
{else}
|
||||
{foreach $apply_array as $apply}
|
||||
<tr>
|
||||
<td>
|
||||
{$apply->get_capp_id()}
|
||||
</td>
|
||||
<td>
|
||||
{$apply->get_capp_camp_kid_ck_id()->get_ck_name()}
|
||||
</td>
|
||||
<td>
|
||||
{$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"}.)
|
||||
</td>
|
||||
<td>
|
||||
{$apply->get_capp_date()|substr:0:16}
|
||||
</td>
|
||||
<td style="color: {$color}; font-weight: bold;">
|
||||
{$apply->get_capp_status()}
|
||||
</td>
|
||||
<td>
|
||||
{$apply->get_capp_accept_date()|substr:0:16}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</table>
|
||||
|
||||
|
||||
<h1 class="apply">Függőben lévő jelentkezések</h1>
|
||||
<table class="apply_table smaller">
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>Jelentkező</th>
|
||||
<th>Tábor helye, ideje</th>
|
||||
<th>Jelentkezés ideje</th>
|
||||
</tr>
|
||||
{if !count($pending_apply_array)}
|
||||
<tr>
|
||||
<td colspan="4" class="no_data">Nincs függőben lévő jelentkezése</td>
|
||||
</tr>
|
||||
{else}
|
||||
{foreach $pending_apply_array as $apply}
|
||||
<tr>
|
||||
<td>
|
||||
{$apply->get_capp_id()}
|
||||
</td>
|
||||
<td>
|
||||
{$apply->get_capp_camp_kid_ck_id()->get_ck_name()}
|
||||
</td>
|
||||
<td>
|
||||
{$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"}.)
|
||||
</td>
|
||||
<td>
|
||||
{$apply->get_capp_date()|substr:0:16}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</table>
|
||||
188
template/templates/apply.tpl
Normal file
188
template/templates/apply.tpl
Normal file
@@ -0,0 +1,188 @@
|
||||
<div class="list">
|
||||
<h1>Jelentkező 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 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>
|
||||
356
template/templates/camp_apply.tpl
Normal file
356
template/templates/camp_apply.tpl
Normal file
@@ -0,0 +1,356 @@
|
||||
{if $step == 1}
|
||||
|
||||
<div class="form_wrapper">
|
||||
<form method="post" id="apply_1">
|
||||
<div><div><h1>1/3. Jelentkező 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">Jelentkező 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}
|
||||
|
||||
<div class="form_wrapper">
|
||||
<form method="post" id="apply_2">
|
||||
<div><div><h1>2/3. Kapcsolattartó adatainak megadása</h1></div></div>
|
||||
<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ó (jelentkező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 jelentkezővel:</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>
|
||||
<div>
|
||||
<input class="button black" type="submit" value="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>
|
||||
<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"}., {$camp->get_camp_type()->get_ct_name()})</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>
|
||||
<div>
|
||||
<input class="button black middle" type="submit" value="Jelentkezés leadása">
|
||||
</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();
|
||||
});
|
||||
|
||||
$(".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 jelentkező á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);
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$('tr').click(function() {
|
||||
$(this).find("input").attr('checked',true);
|
||||
});
|
||||
|
||||
</script>
|
||||
63
template/templates/camp_create.tpl
Normal file
63
template/templates/camp_create.tpl
Normal file
@@ -0,0 +1,63 @@
|
||||
<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_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>
|
||||
149
template/templates/camp_data_update.tpl
Normal file
149
template/templates/camp_data_update.tpl
Normal file
@@ -0,0 +1,149 @@
|
||||
<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_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>
|
||||
|
||||
|
||||
|
||||
<h1 class="apply" id="applies">Függőben lévő jelentkezések</h1>
|
||||
<table class="apply_table smaller">
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>Jelentkező</th>
|
||||
<th>Jelentkezés ideje</th>
|
||||
<th>Elfogadás</th>
|
||||
<th>Elutasítás</th>
|
||||
</tr>
|
||||
{if !count($pending_apply_array)}
|
||||
<tr>
|
||||
<td colspan="4" 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>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</table>
|
||||
|
||||
<h1 class="apply">Visszaigazolt jelentkezések</h1>
|
||||
<table class="apply_table smaller">
|
||||
<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="5" class="no_data">Nincs még visszaigazolt jelentkezés</td>
|
||||
</tr>
|
||||
{else}
|
||||
{foreach $apply_array as $apply}
|
||||
<tr>
|
||||
<td class="bold">
|
||||
<a href="">{$apply->get_capp_id()}
|
||||
</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: {$color}; 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>
|
||||
84
template/templates/camp_list.tpl
Normal file
84
template/templates/camp_list.tpl
Normal file
@@ -0,0 +1,84 @@
|
||||
<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>
|
||||
</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()}style="background-color: #ff9205;"{/if}>
|
||||
<img src="/_image/camp.png">
|
||||
{$camp->get_camp_from()|substr:0:4}.
|
||||
{$months[$camp_array[$camp@index]->get_camp_from()|substr:5:2]}
|
||||
{$camp->get_camp_from_day()}.
|
||||
|
||||
- {$camp->get_camp_to()|substr:0:4}.
|
||||
{$months[$camp_array[$camp@index]->get_camp_to()|substr:5:2]}
|
||||
{$camp->get_camp_to_day()}.
|
||||
|
||||
|
||||
({$camp->get_camp_city()})
|
||||
|
||||
{if $camp->has_pending_apply()}
|
||||
<span class="pending">[{$camp->has_pending_apply()} új 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);
|
||||
|
||||
});
|
||||
|
||||
|
||||
</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,3 +1,5 @@
|
||||
<div class="info">
|
||||
<p class="info">
|
||||
{$setting->get_setv_text()}
|
||||
</p>
|
||||
</p>
|
||||
</div>
|
||||
@@ -48,6 +48,8 @@
|
||||
{$log->get_log_user()->get_ua_name()}
|
||||
{elseif $log->get_log_category()->get_logc_type() == 2}
|
||||
{$log->get_log_user()->get_uk_name()}
|
||||
{elseif $log->get_log_category()->get_logc_type() == 3}
|
||||
{$log->get_log_user()->get_cu_email()}
|
||||
{/if}
|
||||
</td>
|
||||
<td>{$log->get_log_category()->get_logc_title()}</td>
|
||||
|
||||
@@ -1,23 +1,12 @@
|
||||
<div class="form_wrapper">
|
||||
<form method="post">
|
||||
<input type="hidden" name="action" id="action" value="login">
|
||||
<input type="hidden" name="user_type" id="user_type" value="1">
|
||||
<input type="hidden" name="page" id="page" value="{$page}">
|
||||
<div>
|
||||
<label class="desc" id="title1" for="user_name">Név:</label>
|
||||
<div><input type="text" name="user_name" id="user_name" required></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="user_password">Jelszó:</label>
|
||||
<div><input type="password" name="user_password" id="user_password" required></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div>
|
||||
<input class="button black" type="submit" value="Belépés">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<div class="login-page">
|
||||
<div class="form">
|
||||
<form class="login-form" id="login-form" method="post">
|
||||
<h1>Bejelentkezés</h1>
|
||||
<input type="hidden" name="action" value="login">
|
||||
<input type="text" name="user_name" placeholder="{if $page == 'tabor'}email cím{else}név{/if}" required/>
|
||||
<input type="password" name="user_password" placeholder="jelszó" required/>
|
||||
<input type="submit" value="Belépés">
|
||||
{if $page == 'tabor'}<p class="message">Regisztrációhoz kattintsion ide: <a href="/tabor/regisztracio">Regisztráció</a></p>{/if}
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -7,8 +7,10 @@
|
||||
<span class="mobile_logout">
|
||||
{if $page == 'admin' || $page == 'coach' || $page == 'coach_preview'}
|
||||
{$user_login->get_ua_name()}
|
||||
{else}
|
||||
{elseif $page == 'view' || $page == 'preview'}
|
||||
{$user_login->get_uk_name()}
|
||||
{elseif $page == 'tabor'}
|
||||
{$user_login->get_cu_email()}
|
||||
{/if}
|
||||
</span>
|
||||
</li>
|
||||
@@ -23,7 +25,7 @@
|
||||
|
||||
{else}
|
||||
|
||||
<li class="login"><a href="#">Bejelentkezés</a></li>
|
||||
<li class="login"><a href="/{$page}">Badminton Coach{if $page == 'tabor'} - tábori jelentkezés{/if}</a></li>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -33,8 +35,10 @@
|
||||
<span class="name">
|
||||
{if $page == 'admin' || $page == 'coach' || $page == 'coach_preview'}
|
||||
{$user_login->get_ua_name()}
|
||||
{else}
|
||||
{elseif $page == 'view' || $page == 'preview'}
|
||||
{$user_login->get_uk_name()}
|
||||
{elseif $page == 'tabor'}
|
||||
{$user_login->get_cu_email()}
|
||||
{/if}
|
||||
</span>
|
||||
<img src="/_image/logout{if $page == 'view' || $page == 'preview'}_blue{/if}.png">
|
||||
|
||||
38
template/templates/register.tpl
Normal file
38
template/templates/register.tpl
Normal file
@@ -0,0 +1,38 @@
|
||||
<style type="text/css">
|
||||
.form .register-form {
|
||||
display: block;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="login-page">
|
||||
<div class="form">
|
||||
<form class="register-form" onsubmit="return check_form();" method="post">
|
||||
<input type="hidden" name="action" value="user_register">
|
||||
<h1>Regisztráció</h1>
|
||||
{if isset($error_code)}
|
||||
<p class="error_msg">
|
||||
{$error_msg[$error_code]}
|
||||
</p>
|
||||
{/if}
|
||||
<input type="text" name="user_email" placeholder="e-mail cím" required />
|
||||
<input type="password" name="user_password" id="user_password" placeholder="jelszó" required />
|
||||
<input type="password" name="user_password_again" id="user_password_again" placeholder="jelszó újra" required />
|
||||
<input type="submit" value="regisztráció">
|
||||
<p class="message">Ha már korábban regisztrált, és szeretne bejelentkezni, akkor kattintson <a href="/tabor">ide</a>!</p>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
function check_form() {
|
||||
$pswd = $("#user_password").val();
|
||||
$pswd_again = $("#user_password_again").val();
|
||||
|
||||
if ($pswd != $pswd_again) {
|
||||
alert('A két jelszónak egyeznie kell!');
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user