created profile in parent view

This commit is contained in:
Tóth Richárd
2018-06-11 23:51:23 +02:00
parent f98f1fe6e2
commit a50eab7528
8 changed files with 202 additions and 9 deletions

View File

@@ -0,0 +1,17 @@
<?php
$ms_assoc_array = $sql->assoc_array('select * from milestone where ms_user_kid_uk_id = ' . $user->get_uk_id());
$ms_array = array();
foreach ($ms_assoc_array as $key => $ms) {
$new_ms = new milestone();
$new_ms->set_ms_data_by_id($ms['ms_id']);
$ms_array[] = $new_ms;
}
$smarty->assign('ms_array', $ms_array);
$smarty->display('user_profile.tpl');
?>