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

@@ -0,0 +1,22 @@
<?php
if ($this->is_id()) {
# empty
}
else {
# TURNUS LISTA, LEGÖRDÜLŐ GYEREKEKKEL
$camps_assoc_array = $sql->assoc_array("SELECT * FROM camp WHERE camp_deleted = 0 ORDER BY camp_from ASC;");
$camps = array();
foreach ($camps_assoc_array as $camp_array) {
$new_camp = new camp();
$new_camp->set_camp_data_by_id($camp_array['camp_id']);
$camps[] = $new_camp;
}
$smarty->assign('camps', $camps);
$smarty->display('camp_details.tpl');
}
?>