This commit is contained in:
2021-04-10 18:52:38 +02:00
parent f7929a0090
commit d82abe1dd3
49 changed files with 4009 additions and 5 deletions

View File

@@ -217,6 +217,56 @@ switch ($this->get_id()) {
$smarty->display('lease_create.tpl');
break;
case 'camp_type':
# ÚJ TÁBOR TÍPUS
$smarty->display('camp_type_create.tpl');
break;
case 'camp':
# ÚJ TÁBOR
//tábor típusok
$ct_assoc_array = $sql->assoc_array("SELECT * FROM camp_type WHERE ct_deleted = 0 ORDER BY ct_name ASC");
$camp_type_array = array();
foreach ($ct_assoc_array as $ct) {
$new_ct = new camp_type();
$new_ct->set_ct_data_by_id($ct['ct_id']);
$camp_type_array[] = $new_ct;
}
$smarty->assign('camp_type_array', $camp_type_array);
//labda típusok hozzáadása
$shuttle_assoc_array = $sql->assoc_array("SELECT * FROM camp_shuttle_type WHERE cst_deleted = 0 ORDER BY cst_id ASC");
$shuttle_array = array();
foreach ($shuttle_assoc_array as $shuttle_type) {
$new_cst = new camp_shuttle_type();
$new_cst->set_cst_data_by_id($shuttle_type['cst_id']);
$shuttle_array[] = $new_cst;
}
$smarty->assign('shuttle_array', $shuttle_array);
//ottalvós opciók hozzáadása
$accomodation_assoc = $sql->assoc_array("SELECT * FROM camp_accomodation_type WHERE cat_deleted = 0 ORDER BY cat_id ASC");
$accomodation_array = array();
foreach ($accomodation_assoc as $accomodation_type) {
$new_cat = new camp_accomodation_type();
$new_cat->set_cat_data_by_id($accomodation_type['cat_id']);
$accomodation_array[] = $new_cat;
}
$smarty->assign('accomodation_array', $accomodation_array);
$smarty->display('camp_create.tpl');
break;
case 'camp_shirt':
# CAMP SHIRT létrehozása
$smarty->display('camp_shirt_create.tpl');
break;
case 'user_camp_leader':
# táborvezető létrehozása
$smarty->display('user_camp_leader_create.tpl');
break;
default:
# code...
break;