camp fixes; cookie box
This commit is contained in:
@@ -202,6 +202,11 @@ class camp
|
||||
return $sql->num_of_rows("select * from camp join camp_apply on capp_camp_id = camp_id where capp_status = 2 AND camp_id = " . $this->get_camp_id());
|
||||
}
|
||||
|
||||
public function has_deleted_apply() {
|
||||
global $sql;
|
||||
return $sql->num_of_rows("select * from camp join camp_apply on capp_camp_id = camp_id where capp_status = 5 AND camp_id = " . $this->get_camp_id());
|
||||
}
|
||||
|
||||
|
||||
public function set_camp_data_by_id($_camp_id) {
|
||||
global $sql;
|
||||
|
||||
@@ -216,6 +216,11 @@ class camp_apply {
|
||||
$sql->update_table('camp_apply', array('capp_status' => $_status_id, 'capp_accept_date' => date("Y-m-d H:i:s")), array('capp_id' => $_apply_id));
|
||||
}
|
||||
|
||||
public static function has_contact($_capp_id) {
|
||||
global $sql;
|
||||
return $sql->num_of_rows('SELECT * FROM camp_apply_contact WHERE cac_camp_apply_capp_id = ' . $_capp_id . ';');
|
||||
}
|
||||
|
||||
public function set_capp_data_by_id($_id) {
|
||||
global $sql;
|
||||
$capp_data_assoc_array = $sql->assoc_array("select * from camp_apply where capp_id = " . $_id);
|
||||
@@ -246,6 +251,14 @@ class camp_apply {
|
||||
}
|
||||
}
|
||||
|
||||
public function get_responsible_contact() {
|
||||
global $sql;
|
||||
$cc_id = $sql->single_variable("SELECT cac_camp_contact_cc_id FROM camp_apply_contact WHERE cac_camp_apply_capp_id = " . $this->get_capp_id() . " AND cac_is_responsible = 1;");
|
||||
$cc = new camp_contact();
|
||||
$cc->set_cc_data_by_id($cc_id);
|
||||
return $cc;
|
||||
}
|
||||
|
||||
//egy létező jelentkezésnél felelős kapcsolattartóra állít valakit
|
||||
public static function make_contact_responsible($_apply_id, $_cc_id, $_is_responsible = false) {
|
||||
global $sql;
|
||||
|
||||
@@ -198,6 +198,10 @@ class page {
|
||||
# TÁBOR JELENTKEZÉS ELUTASÍTÁSA
|
||||
include('include_deny_apply.php');
|
||||
break;
|
||||
case 'remove_apply':
|
||||
# TÁBOR JELENTKEZÉS ELTÁVOLÍTÁSA A LISTÁBÓL
|
||||
include('include_remove_apply.php');
|
||||
break;
|
||||
case 'apply':
|
||||
# TÁBORI JELENTKEZŐ ADATAINAK MEGTEKINTÉSE
|
||||
include('include_apply.php');
|
||||
@@ -355,14 +359,22 @@ class page {
|
||||
include('include_camp_apply.php');
|
||||
break;
|
||||
case 'jelentkezesek':
|
||||
# jelentkezés
|
||||
# jelentkezések
|
||||
include('include_camp_applies.php');
|
||||
break;
|
||||
case 'move_next':
|
||||
# továbblépés mentés nélkül
|
||||
include('include_move_next.php');
|
||||
break;
|
||||
case 'logout':
|
||||
# kijelentkezés
|
||||
$from = "tabor";
|
||||
include('include_logout.php');
|
||||
break;
|
||||
case 'delete_apply':
|
||||
# jelentkezés törlése
|
||||
include('include_delete_apply.php');
|
||||
break;
|
||||
default:
|
||||
include('include_camp_information.php');
|
||||
break;
|
||||
@@ -379,11 +391,15 @@ class page {
|
||||
if ('tabor' == $this->get_page() && $this->is_subpage() && 'regisztracio' == $this->get_subpage()) {
|
||||
if (isset($_COOKIE['bc_reg_error'])) {
|
||||
$smarty->assign('error_code', $_COOKIE['bc_reg_error']);
|
||||
setcookie('bc_reg_error', null, time()-60*60);
|
||||
setcookie('bc_reg_error', null, time()-60*60*3, '/');
|
||||
}
|
||||
$smarty->display("register.tpl");
|
||||
}
|
||||
else {
|
||||
if (isset($_COOKIE['bc_reg_error'])) {
|
||||
$smarty->assign('error_code', $_COOKIE['bc_reg_error']);
|
||||
setcookie('bc_reg_error', null, time()-60*60*2, '/');
|
||||
}
|
||||
$smarty->display("login.tpl");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,9 @@
|
||||
padding: 2px 0 0;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
width: 100%; }
|
||||
width: 100%;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
.button:active::before { padding: 1px 0 0; }
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ main #main_content, main #loading {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#add_more_cct {
|
||||
#add_more_cct, #move_next {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
@@ -29,13 +29,16 @@ h1, p {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.info p, .info h1{
|
||||
text-align: unset;
|
||||
}
|
||||
|
||||
form table {
|
||||
margin: 0px auto;
|
||||
border-collapse: collapse;
|
||||
border: 2px solid black;
|
||||
background: #e7d6d6;
|
||||
min-width: 400px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
form table td {
|
||||
@@ -65,29 +68,49 @@ h2 {
|
||||
margin-top: 50px;
|
||||
}
|
||||
|
||||
.apply_table {
|
||||
width: 80%;
|
||||
text-align: center;
|
||||
min-width: 800px;
|
||||
border-collapse: collapse;
|
||||
margin: 30px auto 50px auto;
|
||||
.apply_table img:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.smaller {
|
||||
min-width: 588px;
|
||||
width: 50%;
|
||||
.reset img {
|
||||
width: 15px;
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
top: 2px;
|
||||
left: 5px;
|
||||
}
|
||||
|
||||
.apply_table th {
|
||||
background-color: #000;
|
||||
color: #fff;
|
||||
padding: 5px;
|
||||
.reset a {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.apply_table td {
|
||||
padding: 5px;
|
||||
.reset a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.apply_table tr:hover td{
|
||||
background: #eeeeee;
|
||||
.apply_table a, .apply_table a:link, .apply_table a:visited, .apply_table a:active {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.apply_table a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.accept_terms_box {
|
||||
width: 80%;
|
||||
border: 0;
|
||||
border-left: 2px solid black;
|
||||
margin: 30px auto 20px auto;
|
||||
}
|
||||
|
||||
#submit_apply {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.accept_terms_box a, .accept_terms_box a:link, .accept_terms_box a:visited, .accept_terms_box a:active {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.accept_terms_box a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
@@ -57,6 +57,10 @@ main #loading {
|
||||
background-position: center;
|
||||
}
|
||||
|
||||
.center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.italic {
|
||||
font-style: italic;
|
||||
}
|
||||
@@ -108,6 +112,11 @@ main #loading {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.success_msg {
|
||||
color: #00ff00;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
|
||||
ul.topnav span {
|
||||
color: #f2f2f2;
|
||||
@@ -242,6 +251,7 @@ td.create a {
|
||||
font-size: 18px;
|
||||
font-family: Arial;
|
||||
border-left: 2px solid #aaa;
|
||||
min-height: 40px;
|
||||
}
|
||||
|
||||
.list .list_item:hover {
|
||||
@@ -513,11 +523,11 @@ table.log tr.delete:hover {
|
||||
}
|
||||
|
||||
.apply_table {
|
||||
width: 80%;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
min-width: 800px;
|
||||
border-collapse: collapse;
|
||||
margin: 30px 0px 50px 20px;
|
||||
margin: 0px 0px 20px 0px;
|
||||
}
|
||||
|
||||
.smaller {
|
||||
@@ -548,7 +558,14 @@ table.log tr.delete:hover {
|
||||
}
|
||||
|
||||
h1.apply {
|
||||
margin-left: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.outer {
|
||||
overflow-x: scroll;
|
||||
width: 80%;
|
||||
display: block;
|
||||
margin: 30px auto 50px auto;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,11 +1,31 @@
|
||||
<?php
|
||||
|
||||
|
||||
# HA NINCS ID, AKKOR ÁTIRÁNYÍTÉS /1-re
|
||||
|
||||
if ($this->is_id()) {
|
||||
|
||||
//jelentkező
|
||||
$apply = new camp_apply();
|
||||
$apply->set_capp_data_by_id($this->get_id());
|
||||
|
||||
//felelős kapcsolattartó
|
||||
$res_cc_id = $sql->single_variable("SELECT cac_camp_contact_cc_id FROM camp_apply_contact WHERE cac_is_responsible = 1 AND cac_camp_apply_capp_id = " . $this->get_id() );
|
||||
$res_cc = new camp_contact();
|
||||
$res_cc->set_cc_data_by_id($res_cc_id);
|
||||
|
||||
//további kapcst-ók
|
||||
|
||||
$cc_ids = $sql->assoc_array("SELECT cac_camp_contact_cc_id FROM camp_apply_contact WHERE cac_is_responsible = 0 AND cac_camp_apply_capp_id = " . $this->get_id() );
|
||||
|
||||
$contacts = array();
|
||||
foreach ($cc_ids as $cc) {
|
||||
$contact = new camp_contact();
|
||||
$contact->set_cc_data_by_id($cc['cac_camp_contact_cc_id']);
|
||||
$contacts[] = $contact;
|
||||
}
|
||||
|
||||
$smarty->assign('apply',$apply);
|
||||
$smarty->assign('res_cc',$res_cc);
|
||||
$smarty->assign('contacts',$contacts);
|
||||
$smarty->display('apply.tpl');
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -72,14 +72,17 @@ if ($this->is_id()) {
|
||||
|
||||
$smarty->assign('cct_array', $cct_array);
|
||||
|
||||
|
||||
//van-e már jelentkező
|
||||
$has_contact = camp_apply::has_contact($_COOKIE['badminton_camp_session_id']);
|
||||
|
||||
//lekérjük a session_id alapján a camp_kid it-t, objektumot csinálunk belőle és úgy adjuk át
|
||||
$ck_id = $sql->single_variable("SELECT capp_camp_kid_ck_id FROM camp_apply WHERE capp_id = " . $_COOKIE['badminton_camp_session_id']);
|
||||
$new_camp_kid = new camp_kid();
|
||||
$new_camp_kid->set_ck_data_by_id($ck_id);
|
||||
|
||||
//van-e
|
||||
$smarty->assign('camp_kid', $new_camp_kid);
|
||||
$smarty->assign('has_contact', $has_contact);
|
||||
$smarty->assign('contacts', $contacts);
|
||||
$smarty->assign('step',2);
|
||||
$smarty->assign('has_responsible',($has_responsible?true:false));
|
||||
|
||||
@@ -92,9 +92,22 @@ if ($this->is_id()) {
|
||||
$apply_array_2[] = $new_apply;
|
||||
}
|
||||
|
||||
//lekérjük a töröltó jelentkezéseket
|
||||
$pending_applies = $sql->assoc_array("SELECT * FROM camp_apply JOIN camp_kid on ck_id = capp_camp_kid_ck_id WHERE capp_camp_id = " . $this->get_id() . " AND capp_status = 5 ORDER BY capp_accept_date DESC;;");
|
||||
|
||||
$apply_array_3 = array();
|
||||
foreach ($pending_applies as $apply) {
|
||||
$new_apply = new camp_apply();
|
||||
$new_apply->set_capp_data_by_id($apply['capp_id']);
|
||||
$apply_array_3[] = $new_apply;
|
||||
}
|
||||
|
||||
//var_dump($apply_array_3);
|
||||
|
||||
$smarty->assign('color', $color);
|
||||
$smarty->assign('apply_array', $apply_array);
|
||||
$smarty->assign('pending_apply_array', $apply_array_2);
|
||||
$smarty->assign('deleted_apply_array', $apply_array_3);
|
||||
|
||||
$smarty->assign('camp', $camp);
|
||||
$smarty->assign('shuttles', $shuttles);
|
||||
|
||||
23
_include/include_delete_apply.php
Normal file
23
_include/include_delete_apply.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
|
||||
if ($this->is_id()) {
|
||||
|
||||
# JELENTKEZÉS ÁTÁLLÍTÁSA TÖRÖLT STÁTUSZRA
|
||||
$sql->update_table('camp_apply', array('capp_status' => 5, 'capp_accept_date' => date("Y-m-d H:i:s")), array('capp_id' => $this->get_id()));
|
||||
header("Location: /tabor/jelentkezesek");
|
||||
|
||||
}
|
||||
|
||||
else {
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
34
_include/include_move_next.php
Normal file
34
_include/include_move_next.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
# HA NINCS ID, AKKOR VÁROSLISTA
|
||||
|
||||
if ($this->is_id()) {
|
||||
|
||||
# VÁROS SZERKESZTÉSE
|
||||
|
||||
|
||||
}
|
||||
|
||||
else {
|
||||
|
||||
# VÁROS LISTA
|
||||
|
||||
//megnézzük, hogy adott-e meg felelős kapcsolattartót
|
||||
//ha nem, akkor a 3-as oldalon kilistázzuk a megadott kapcsolattartókat, és kattintással lehet választani
|
||||
//ha igen, akkor a negyedik oldalra megyünk
|
||||
if (camp_apply::has_responsible_contact($_COOKIE['badminton_camp_session_id'])) {
|
||||
header('Location: /tabor/jelentkezes/4');
|
||||
}
|
||||
else {
|
||||
header('Location: /tabor/jelentkezes/3');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
21
_include/include_remove_apply.php
Normal file
21
_include/include_remove_apply.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
if ($this->is_id()) {
|
||||
|
||||
# JELENTEKEZÉS ELFOGADÁSA
|
||||
camp_apply::apply_response($this->get_id(), 6);
|
||||
$new_apply = new camp_apply();
|
||||
$new_apply->set_capp_data_by_id($this->get_id());
|
||||
header('Location: /admin/camps/' . $new_apply->get_capp_camp_id()->get_camp_id());
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
@@ -74,6 +74,7 @@ $days = array(
|
||||
|
||||
$error_msg = array(
|
||||
1 => 'Ezzel az e-mail címmel már regisztráltak!',
|
||||
2 => 'Sikeres regisztráció! Kérjük, jelentkezzen be a megadott adatokkal!',
|
||||
);
|
||||
|
||||
//SMARTY BEÁLLÍTÁSA
|
||||
|
||||
@@ -10,13 +10,14 @@ if (isset($_POST['action'])) {
|
||||
$check_user_exists = $sql->num_of_rows("SELECT * FROM camp_user WHERE cu_email = '" . $_POST['user_email'] . "';");
|
||||
if ($check_user_exists) {
|
||||
//van már reg ezzel az email címmel
|
||||
setcookie('bc_reg_error', 1);
|
||||
setcookie('bc_reg_error', 1, 0, '/');
|
||||
header("Location: /tabor/regisztracio");
|
||||
}
|
||||
else {
|
||||
//sikeres reg. visszairányítjuk a bejelentkező felületre
|
||||
$new_camp_user = camp_user::create_camp_user($_POST['user_email'], $_POST['user_password'], date("Y-m-d H:i:s"));
|
||||
log::register('new_camp_user', $new_camp_user, date("Y-m-d H:i:s"), $new_camp_user);
|
||||
setcookie('bc_reg_error', 2, 0, '/');
|
||||
header("Location: /tabor");
|
||||
}
|
||||
break;
|
||||
@@ -57,7 +58,6 @@ if (isset($_POST['action'])) {
|
||||
}
|
||||
elseif ($user_camp_id) {
|
||||
//sikeres bejelentkezés szülőként
|
||||
var_dump('itt');
|
||||
$login->login_user($user_camp_id, 'badminton_camp_user', 4);
|
||||
log::register('camp_user_login', $user_camp_id, null, $user_camp_id);
|
||||
header("Location: " . $actual_link);
|
||||
|
||||
14
index.php
14
index.php
@@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<?php
|
||||
|
||||
setlocale(LC_ALL, 'hu_HU');
|
||||
@@ -52,7 +52,16 @@ setlocale(LC_ALL, 'hu_HU');
|
||||
?>
|
||||
|
||||
|
||||
<title>Badminton Coach</title>
|
||||
<title>
|
||||
<?php
|
||||
if ($page->is_page() && ($page->get_page() == 'tabor')) {
|
||||
echo "Tollaslabda táborok 2017. nyár";
|
||||
}
|
||||
else {
|
||||
echo "Badminton Coach";
|
||||
}
|
||||
?>
|
||||
</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
@@ -94,6 +103,7 @@ setlocale(LC_ALL, 'hu_HU');
|
||||
});
|
||||
|
||||
</script>
|
||||
<!--Start Cookie Script--> <script type="text/javascript" charset="UTF-8" src="http://chs03.cookie-script.com/s/bf70195c19da2a2b2ca37a0384845a73.js"></script> <!--End Cookie Script-->
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
0
phpinfo.php
Normal file → Executable file
0
phpinfo.php
Normal file → Executable file
@@ -1,82 +1,109 @@
|
||||
<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>
|
||||
<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}
|
||||
<p class="center italic">A jelentkezés részleteinek megtekintéséhez kattintson az adatokra!</p>
|
||||
<div class="outer">
|
||||
<table class="apply_table">
|
||||
<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>
|
||||
<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>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</table>
|
||||
|
||||
{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>
|
||||
<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}
|
||||
<p class="center italic">A jelentkezés részleteinek megtekintéséhez kattintson az adatokra!</p>
|
||||
<div class="outer">
|
||||
<table class="apply_table">
|
||||
<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>
|
||||
<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>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</table>
|
||||
{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,5 +1,5 @@
|
||||
<div class="list">
|
||||
<h1>Jelentkező adatai</h1>
|
||||
<h1>Táborozó adatai</h1>
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/person.png">
|
||||
@@ -94,6 +94,27 @@
|
||||
|
||||
<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>
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/person.png">
|
||||
@@ -101,6 +122,7 @@
|
||||
</label>
|
||||
<div>{$apply->get_capp_accomodation_type()->get_cat_name()}</div>
|
||||
</div>
|
||||
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/person.png">
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<div class="form_wrapper">
|
||||
<form method="post" id="apply_1">
|
||||
<div><div><h1>1/3. Jelentkező adatainak megadása</h1></div></div>
|
||||
<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()}">
|
||||
@@ -21,7 +21,7 @@
|
||||
</div>
|
||||
<br>
|
||||
<div>
|
||||
<label class="desc" for="ck_name">Jelentkező neve:</label>
|
||||
<label class="desc" for="ck_name">Táborozó neve:</label>
|
||||
<div><input type="text" name="ck_name" id="ck_name" required></div>
|
||||
</div>
|
||||
<div>
|
||||
@@ -90,9 +90,10 @@
|
||||
|
||||
{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">
|
||||
<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">
|
||||
@@ -118,7 +119,7 @@
|
||||
</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>
|
||||
<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}
|
||||
@@ -135,7 +136,7 @@
|
||||
<div><input type="text" name="cc_facebook" id="cc_facebook"></div>
|
||||
</div>
|
||||
<div>
|
||||
<label class="desc" for="ck_list">Kapcsolat a jelentkezővel:</label>
|
||||
<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}
|
||||
@@ -152,8 +153,13 @@
|
||||
<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="Tovább a tábor adatok megadásához">
|
||||
<input class="button black" type="submit" value="Mentés és tovább a tábor adatok megadásához">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@@ -183,6 +189,7 @@
|
||||
{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}">
|
||||
@@ -193,15 +200,26 @@
|
||||
{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>
|
||||
{$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 class="button black middle" type="submit" value="Jelentkezés leadása">
|
||||
<input id="submit_apply" class="button black middle" type="submit" value="Jelentkezés leadása">
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -235,17 +253,20 @@ $("#add_more_cct" ).click(function() {
|
||||
$("#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 jelentkező által előnyben részesített labda típust!</h2><table>';
|
||||
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 +=
|
||||
'\
|
||||
@@ -303,7 +324,7 @@ $("#ck_list").change(function() {
|
||||
},
|
||||
function(data, status){
|
||||
var pdata = JSON.parse(data);
|
||||
console.log(pdata);
|
||||
//console.log(pdata);
|
||||
|
||||
$.each(pdata[0], function(index, ck_data){
|
||||
if (
|
||||
@@ -333,7 +354,7 @@ $("#cc_list").change(function() {
|
||||
},
|
||||
function(data, status){
|
||||
var pdata = JSON.parse(data);
|
||||
console.log(pdata);
|
||||
//console.log(pdata);
|
||||
$.each(pdata[0], function(index, ck_data){
|
||||
if (
|
||||
index != 'cc_id' &&
|
||||
@@ -349,8 +370,17 @@ $("#cc_list").change(function() {
|
||||
}
|
||||
});
|
||||
|
||||
$('tr').click(function() {
|
||||
$(this).find("input").attr('checked',true);
|
||||
|
||||
$("#accept_terms").change(function() {
|
||||
if ($("#accept_terms").is(':checked')) {
|
||||
$("#submit_apply").show();
|
||||
$("#submit_apply").css('display', 'block');
|
||||
}
|
||||
else {
|
||||
$("#submit_apply").hide();
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
@@ -65,85 +65,123 @@
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
<br><br>
|
||||
|
||||
<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}
|
||||
<div class="outer">
|
||||
<table class="apply_table">
|
||||
<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>
|
||||
<th>#</th>
|
||||
<th>Jelentkező</th>
|
||||
<th>Jelentkezés ideje</th>
|
||||
<th>Elfogadás</th>
|
||||
<th>Elutasítás</th>
|
||||
<th>E-mail</th>
|
||||
</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}
|
||||
{if !count($pending_apply_array)}
|
||||
<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'}
|
||||
<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>
|
||||
{else}
|
||||
</td>
|
||||
<td>
|
||||
<a href="/admin/deny_apply/{$apply->get_capp_id()}"><img src="/_image/delete.png"></a>
|
||||
{/if}
|
||||
</td>
|
||||
</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}
|
||||
{/if}
|
||||
</table>
|
||||
{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($apply_array)} 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: {$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>
|
||||
</div>
|
||||
|
||||
@@ -26,15 +26,14 @@
|
||||
<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}>
|
||||
<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_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()}.
|
||||
{$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()})
|
||||
@@ -42,6 +41,9 @@
|
||||
{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}
|
||||
|
||||
@@ -1,7 +1,13 @@
|
||||
{if $page == 'tabor'}<div class="danger">Probléma, kérdés, hibás adat esetén kérjük, küldjön üzenetet a <a href="mailto:szucs.zoltan@tollaslabda.info">szucs.zoltan@tollaslabda.info</a> címre!</div>{/if}
|
||||
<div class="login-page">
|
||||
<div class="form">
|
||||
<form class="login-form" id="login-form" method="post">
|
||||
<h1>Bejelentkezés</h1>
|
||||
{if isset($error_code)}
|
||||
<p class="success_msg">
|
||||
{$error_msg[$error_code]}
|
||||
</p>
|
||||
{/if}
|
||||
<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/>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
{else}
|
||||
|
||||
<li class="login"><a href="/{$page}">Badminton Coach{if $page == 'tabor'} - tábori jelentkezés{/if}</a></li>
|
||||
<li class="login"><a href="/{$page}">{if $page == 'tabor'}Tollaslabda táborok 2017. nyár{else}Badminton Coach{/if}</a></li>
|
||||
{/if}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user