added camp leader view, camp list with kids

This commit is contained in:
Ricsi
2017-06-25 12:10:49 +02:00
parent b85da38e8a
commit 63bdbf9888
23 changed files with 643 additions and 9 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');
}
?>