20161215
This commit is contained in:
31
_include/include_overview.php
Normal file
31
_include/include_overview.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
|
||||
if ($this->is_id()) {
|
||||
# EMPTY
|
||||
}
|
||||
else {
|
||||
# ADATOK + EDZÉS LISTA
|
||||
//user_loginból veszi az adatokat
|
||||
|
||||
//szülők átadása
|
||||
if ($user->get_uk_parent_1()) {
|
||||
$parent_1_query = "SELECT * FROM user_parent WHERE up_id = " . $user->get_uk_parent_1();
|
||||
$parent_1_assoc_array = $sql->assoc_array($parent_1_query);
|
||||
$smarty->assign('parent_1', $parent_1_assoc_array[0]);
|
||||
}
|
||||
|
||||
if ($user->get_uk_parent_2()) {
|
||||
$parent_2_query = "SELECT * FROM user_parent WHERE up_id = " . $user->get_uk_parent_2();
|
||||
$parent_2_assoc_array = $sql->assoc_array($parent_2_query);
|
||||
$smarty->assign('parent_2', $parent_2_assoc_array[0]);
|
||||
}
|
||||
|
||||
|
||||
//todo: object
|
||||
|
||||
$smarty->display('user_overview.tpl');
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user