created coach site
This commit is contained in:
@@ -8,9 +8,13 @@ if ($this->is_id()) {
|
||||
$user_data_query = "SELECT * FROM user_coach WHERE ua_id = " . $this->get_id();
|
||||
$user_data_assoc_array = $sql->assoc_array($user_data_query);
|
||||
|
||||
$new_coach = new user();
|
||||
$new_coach->set_user_data_by_id($user_data_assoc_array[0]['ua_id']);
|
||||
|
||||
//smarty thingz
|
||||
|
||||
$smarty->assign('user_data', $user_data_assoc_array[0]);
|
||||
$smarty->assign('coach', $new_coach);
|
||||
$smarty->display('coach_data_edit.tpl');
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user