user_parent_list

This commit is contained in:
Ricsi
2016-11-17 10:20:11 +00:00
parent 0232e5bb86
commit e4806322fd
5 changed files with 123 additions and 17 deletions

View File

@@ -0,0 +1,27 @@
<?php
# HA NINCS ID, AKKOR SZÜLŐLISTA
# HA VAN ID, AKKOR SZÜLŐ ADATAINAK MEGJELENÍTÉSE/SZERKESZTÉSE
if ($this->is_id()) {
# ADOTT TAG ADATAINAK MEGJELENÍTÉSE
}
else {
# SZÜLŐ LISTA
$parent_query = "SELECT * FROM user_parent ORDER BY up_name ASC;";
$parent_assoc_array = $sql->assoc_array($parent_query);
$parent_array = array();
foreach ($parent_assoc_array as $parent) {
$new_parent = new user_parent();
$new_parent->set_user_data_by_id($parent['up_id']);
$parent_array[] = $new_parent;
}
$smarty->assign('parent_array', $parent_array);
$smarty->display('parent_list.tpl');
}
?>