From a70abe749606662f42381dc3969dfbfb1134f71d Mon Sep 17 00:00:00 2001 From: Andy Smith Date: Tue, 22 Nov 2011 22:10:02 +0000 Subject: [PATCH] Fixed profile page, and added profile link on right-hand user menu. --- application/controllers/user.php | 10 ++++++++- application/views/layout/header.php | 1 + application/views/user/profile.php | 35 ++++++++++++++++++++++++----- css/global.css | 3 ++- 4 files changed, 42 insertions(+), 7 deletions(-) diff --git a/application/controllers/user.php b/application/controllers/user.php index 6f829bef..e5317d42 100644 --- a/application/controllers/user.php +++ b/application/controllers/user.php @@ -238,7 +238,15 @@ class User extends CI_Controller { function profile() { $this->load->model('user_model'); $query = $this->user_model->get_by_id($this->session->userdata('user_id')); - $data = $query->row(); + $q = $query->row(); + $data['page_title'] = "Profile"; + $data['user_name'] = $q->user_name; + $data['user_type'] = $q->user_type; + $data['user_email'] = $q->user_email; + $data['user_firstname'] = $q->user_firstname; + $data['user_lastname'] = $q->user_lastname; + $data['user_callsign'] = $q->user_callsign; + $data['user_locator'] = $q->user_locator; $this->load->view('layout/header', $data); $this->load->view('user/profile'); diff --git a/application/views/layout/header.php b/application/views/layout/header.php index 8361b3ce..c6ae0436 100644 --- a/application/views/layout/header.php +++ b/application/views/layout/header.php @@ -70,6 +70,7 @@