user_parent_list
This commit is contained in:
27
_include/include_parents.php
Normal file
27
_include/include_parents.php
Normal 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');
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user