diff --git a/.gitignore b/.gitignore index bf4c1bb..c5f9be7 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ /.project /.settings /RFID_Checkin_Project_mods.zip +/Citizen J diff --git a/API/.gitignore b/API/.gitignore index 29b7d44..8ccd5cd 100755 --- a/API/.gitignore +++ b/API/.gitignore @@ -1 +1,2 @@ /view_list_distinctusercheckins_all_play.php +/view_citizenj_list_equipmentcheckouts.php diff --git a/database/.gitignore b/database/.gitignore new file mode 100644 index 0000000..da0f1c8 --- /dev/null +++ b/database/.gitignore @@ -0,0 +1,27 @@ +/hack_rfid_checkin_system.sql +/.directory +/hack_rfid_checkin_empty.sql +/checkin_db_8_views_statements.txt +/checkin_db_8_views_statements.txt~ +/checkin_db_v8_data.sql +/create_view_checkins.sql +/create_view_checkins.sql~ +/create_views.sql.firstcut +/create_views.sql~ +/hack_rfid_checkin_system_11092012_1106.sql +/hack_rfid_checkin_system_11092012_1212_V10_prepare.sql +/hack_rfid_checkin_system_11092012_1219_V10_prep.sql +/identification_media.sql +/locations_table.sql +/meetmee_checkin_10082012.sql +/meetmee_checkin_17102012_2158.sql +/meetmee_checkin_17102012_2200.sql +/meetmee_checkin_18092012_1346.sql +/meetmee_checkin_v8_20082012_1234.sql +/meetmee_checkin_v8_with_data_20082012_1233.sql +/meetmee_checkin_v9_11092012_1305.sql +/meetmee_checkin_v9_20082012_1417.sql +/meetmee_checkin_v9_20082012_1454.sql +/meetmee_checkin_v9_20082012_1529.sql +/sql_statements.txt~ +/view_checkins.sql~ diff --git a/userprofile/codeigniter_application/.gitignore b/userprofile/codeigniter_application/.gitignore new file mode 100644 index 0000000..64c2517 --- /dev/null +++ b/userprofile/codeigniter_application/.gitignore @@ -0,0 +1,2 @@ +/config.geekboy +/config.theedge diff --git a/userprofile/codeigniter_application/config/routes.php b/userprofile/codeigniter_application/config/routes.php index 86429a4..f84d7cd 100644 --- a/userprofile/codeigniter_application/config/routes.php +++ b/userprofile/codeigniter_application/config/routes.php @@ -37,10 +37,9 @@ | in the URL cannot be matched to a valid route. | */ - -$route['json_access/rfid_list'] = 'json_access/rfid_list'; -$route['json_access'] = 'json_access'; -$route['admin/rfid'] = 'edge_administration/rfid'; +$route['admin/create_user'] = 'edge_user/create'; +$route['admin/list_users'] = 'edge_user/list_users'; +$route['admin/list_rfids'] = 'edge_administration/list_rfids'; $route['admin'] = 'edge_administration'; $route['admin/(:any)'] = 'edge_administration/index'; $route['edge_user/feedback'] = 'edge_user/feedback'; @@ -48,7 +47,6 @@ $route['edge_user/change_password'] = 'edge_user/change_password'; $route['edge_user/forgot_password'] = 'edge_user/forgot_password'; $route['edge_user/reset_password'] = 'edge_user/reset_password'; -//$route['edge_user/signup'] = 'edge_user/signup'; $route['edge_user/logout'] = 'edge_user/logout'; $route['edge_user/update/(:num)'] = 'edge_user/update/$1'; $route['edge_user/update'] = 'edge_user/update'; @@ -56,7 +54,8 @@ $route['edge_user/create'] = 'edge_user/create'; $route['edge_user/profile/(:num)'] = 'edge_user/profile/$1'; $route['edge_user/profile'] = 'edge_user/profile'; -$route['edge_user'] = 'edge_user/index'; +$route['edge_user/logout'] = 'edge_user/logout'; +$route['edge_user'] = 'edge_user'; $route['project/create'] = 'project/create'; $route['project/profile/(:num)'] = 'project/profile/$1'; $route['project/profile'] = 'project'; diff --git a/userprofile/codeigniter_application/controllers/edge_administration.php b/userprofile/codeigniter_application/controllers/edge_administration.php index 48babf1..0e1a5f8 100755 --- a/userprofile/codeigniter_application/controllers/edge_administration.php +++ b/userprofile/codeigniter_application/controllers/edge_administration.php @@ -6,11 +6,8 @@ class Edge_Administration extends CI_Controller { public function __construct() { parent::__construct(); - $this->load->model('edge_base_model'); - $this->load->model('edge_administration_model'); - $this->load->library('ion_auth'); - $this->load->library('session'); - $this->load->helper('url'); + $this->load->model('edge_administration_model'); + $this->load->driver('edge_common'); } /* @@ -18,21 +15,23 @@ public function __construct() */ public function index() { - if($this->ion_auth->logged_in()) { + if($this->edge_common->ion_auth->logged_in()) { $action=null; if(preg_match('/admin\/(.+)/', uri_string(),$matches)) { $action=$matches[1]; } switch ($action) { - case 'create_user': - redirect('edge_user/create', 'refresh'); + /*case 'create_user': + $this->edge_common->render_page('edge_administration/index', $data); + //redirect('edge_user/create', 'refresh'); return; case 'list_users': redirect('edge_user/list', 'refresh'); return; - + */ + case 'create_project': redirect('project/create', 'refresh'); return; @@ -47,7 +46,7 @@ public function index() default: $data['title'] = "Administration"; - $this->edge_base_model->render_page('edge_administration/index', $data); + $this->edge_common->render_page('edge_administration/index', $data); } } else { redirect('edge_user', 'refresh'); @@ -82,7 +81,7 @@ function list_rfids() { $this->data['rfids'][$k]->groups = $this->ion_auth->get_users_groups($user->id)->result(); } */ - $this->edge_base_model->render_page('edge_administration/rfid', $data); + $this->edge_common->render_page('edge_administration/rfid', $data); } } diff --git a/userprofile/codeigniter_application/controllers/edge_user.php b/userprofile/codeigniter_application/controllers/edge_user.php index 4f711eb..e1837b5 100644 --- a/userprofile/codeigniter_application/controllers/edge_user.php +++ b/userprofile/codeigniter_application/controllers/edge_user.php @@ -6,47 +6,48 @@ function __construct() { parent::__construct(); $this->load->model('edge_user_model'); + $this->load->driver('edge_common'); $this->load->helper('url'); // Load MongoDB library instead of native db driver if required - $this->config->item('use_mongodb', 'ion_auth') ? $this->load->library('mongo_db') : $this->load->library('edge_controller'); + $this->config->item('use_mongodb', 'ion_auth') ? $this->load->library('mongo_db') : $this->load->database(); } //log the user in function index() { //validate form input - $this->edge_controller->form_validation->set_rules('identity', 'Identity', 'required'); - $this->edge_controller->form_validation->set_rules('password', 'Password', 'required'); + $this->edge_common->form_validation->set_rules('identity', 'Identity', 'required'); + $this->edge_common->form_validation->set_rules('password', 'Password', 'required'); - if ($this->edge_controller->form_validation->run() == true) + if ($this->edge_common->form_validation->run() == true) { //check to see if the user is logging in //check for "remember me" $remember = (bool) $this->input->post('remember'); - if ($this->edge_controller->ion_auth->login($this->input->post('identity'), $this->input->post('password'), $remember)) + if ($this->edge_common->ion_auth->login($this->input->post('identity'), $this->input->post('password'), $remember)) { //if the login is successful //redirect them back to the home page - $this->edge_controller->session->set_flashdata('message', $this->edge_controller->ion_auth->messages()); + $this->edge_common->session->set_flashdata('message', $this->edge_common->ion_auth->messages()); redirect('edge_user/profile', 'refresh'); } else { //if the login was un-successful //redirect them back to the login page - $this->edge_controller->session->set_flashdata('message', $this->edge_controller->ion_auth->errors()); + $this->edge_common->session->set_flashdata('message', $this->edge_common->ion_auth->errors()); redirect('edge_user/index', 'refresh'); //use redirects instead of loading views for compatibility with MY_Controller libraries } } else { // If logged in then go to profile page - if($this->edge_controller->ion_auth->logged_in()) { + if($this->edge_common->ion_auth->logged_in()) { redirect('edge_user/profile', 'refresh'); } else { //the user is not logging in so display the login page //set the flash data error message if there is one - $page_data['message'] = (validation_errors()) ? validation_errors() : $this->edge_controller->session->flashdata('message'); + $page_data['message'] = (validation_errors()) ? validation_errors() : $this->edge_common->session->flashdata('message'); $page_data['identity'] = array('name' => 'identity', 'id' => 'identity', 'type' => 'text', - 'value' => $this->edge_controller->form_validation->set_value('identity'), + 'value' => $this->edge_common->form_validation->set_value('identity'), ); $page_data['password'] = array('name' => 'password', 'id' => 'password', @@ -54,28 +55,30 @@ function index() ); $page_data['title'] = "Login"; - $this->edge_controller->render_page('edge_user/index', $page_data); + $this->edge_common->render_page('edge_user/index', $page_data); } } } function profile($user_id=null) { $page_data['form_action'] = site_url('edge_user/update'); + //log_message('debug', "Profile USER DETAILS[" . var_export($page_data['form_action'], true). "]"); if (empty($user_id) ) { - $user_id=$this->edge_controller->session->userdata('user_id'); + $user_id=$this->edge_common->session->userdata('user_id'); } else { $page_data['form_action'] .= '/' . $user_id; } - $page_data['allow_access'] = ($user_id != $this->edge_controller->session->userdata('user_id') && $this->edge_controller->ion_auth->is_admin()) || $user_id == $this->edge_controller->session->userdata('user_id'); + $page_data['allow_access'] = ($user_id != $this->edge_common->session->userdata('user_id') && $this->edge_common->ion_auth->is_admin()) || $user_id == $this->edge_common->session->userdata('user_id'); if($page_data['allow_access']) { $page_data['title'] = "Your Profile Details"; - $page_data['message']=$this->edge_controller->session->flashdata('message'); + $page_data['message']=$this->edge_common->session->flashdata('message'); $page_data['user_id'] = $user_id; - $page_data['is_admin'] = $this->edge_controller->ion_auth->is_admin(); + $page_data['is_admin'] = $this->edge_common->ion_auth->is_admin(); $page_data['user_details'] = $this->edge_user_model->get_user_details($user_id); - //$page_data['user_details']['is_admin'] = $this->edge_controller->ion_auth->in_group($this->config->item('admin_group', 'ion_auth'), $user_id); - $page_data['user_details']['interests'] = $this->_get_interests($user_id); + //$page_data['user_details']['is_admin'] = $this->edge_common->ion_auth->in_group($this->config->item('admin_group', 'ion_auth'), $user_id); + //$page_data['user_details']['interests'] = $this->_get_interests($user_id); + $page_data['profile']['interests'] = $this->_render_interests($this->_get_interests($user_id)); $page_data['user_details']['expertises'] = $this->_get_expertise($user_id); $page_data['user_details']['questions'] = $this->_get_questions($user_id); $page_data['groups'] = $this->_get_groups(); @@ -86,20 +89,21 @@ function profile($user_id=null) { } //log_message('debug', "USER DETAILS[" . var_export($page_data, true). "]"); - - $this->edge_controller->render_page('edge_user/profile', $page_data); + //log_message('debug', "Profile USER DETAILS[" . var_export($page_data['interests'], true). "]"); + + $this->edge_common->render_page('edge_user/profile', $page_data); } else { redirect('edge_user','refresh'); } } function feedback() { - if($this->edge_controller->ion_auth->logged_in()) { - if($user_id=$this->edge_controller->session->userdata('user_id')) { - $this->edge_controller->form_validation->set_rules('feedback_comment', 'Feedback', 'required'); - $this->edge_controller->form_validation->set_message('feedback_comment', 'Your Feedback in the Field Below is Required!'); + if($this->edge_common->ion_auth->logged_in()) { + if($user_id=$this->edge_common->session->userdata('user_id')) { + $this->edge_common->form_validation->set_rules('feedback_comment', 'Feedback', 'required'); + $this->edge_common->form_validation->set_message('feedback_comment', 'Your Feedback in the Field Below is Required!'); - if ($this->edge_controller->form_validation->run() === FALSE) { + if ($this->edge_common->form_validation->run() === FALSE) { $page_data['title'] = "Send Feedback"; $page_data['message']=''; $page_data['form_action'] = site_url('edge_user/feedback'); @@ -140,10 +144,10 @@ function feedback() { $page_data['title'] = "Thank You For Your Feedback"; $page_data['message']='Thank you very much for your feedback. It is much appreciated!!'; } - $this->edge_controller->render_page('edge_user/feedback', $page_data); + $this->edge_common->render_page('edge_user/feedback', $page_data); } } else { - $this->edge_controller->render_page('edge_user/login', 'refresh'); + $this->edge_common->render_page('edge_user/login', 'refresh'); } } @@ -153,7 +157,7 @@ function logout() $page_data['title'] = "Logout"; //log the user out - $logout = $this->edge_controller->ion_auth->logout(); + $logout = $this->edge_common->ion_auth->logout(); //redirect them back to the page they came from redirect('edge_user', 'refresh'); @@ -162,21 +166,21 @@ function logout() //change password function change_password() { - $this->edge_controller->form_validation->set_rules('old', 'Old password', 'required'); - $this->edge_controller->form_validation->set_rules('new', 'New Password', 'required|min_length[' . $this->config->item('min_password_length', 'ion_auth') . ']|max_length[' . $this->config->item('max_password_length', 'ion_auth') . ']|matches[new_confirm]'); - $this->edge_controller->form_validation->set_rules('new_confirm', 'Confirm New Password', 'required'); + $this->edge_common->form_validation->set_rules('old', 'Old password', 'required'); + $this->edge_common->form_validation->set_rules('new', 'New Password', 'required|min_length[' . $this->config->item('min_password_length', 'ion_auth') . ']|max_length[' . $this->config->item('max_password_length', 'ion_auth') . ']|matches[new_confirm]'); + $this->edge_common->form_validation->set_rules('new_confirm', 'Confirm New Password', 'required'); - if (!$this->edge_controller->ion_auth->logged_in()) + if (!$this->edge_common->ion_auth->logged_in()) { redirect('edge_user/login', 'refresh'); } - $user = $this->edge_controller->ion_auth->user()->row(); + $user = $this->edge_common->ion_auth->user()->row(); - if ($this->edge_controller->form_validation->run() == false) + if ($this->edge_common->form_validation->run() == false) { //display the form //set the flash data error message if there is one - $page_data['message'] = (validation_errors()) ? validation_errors() : $this->edge_controller->session->flashdata('message'); + $page_data['message'] = (validation_errors()) ? validation_errors() : $this->edge_common->session->flashdata('message'); $page_data['min_password_length'] = $this->config->item('min_password_length', 'ion_auth'); $page_data['old_password'] = array( @@ -205,25 +209,25 @@ function change_password() //render page $page_data['title'] = "Change Password"; - $this->edge_controller->render_page('edge_user/change_password', $page_data); + $this->edge_common->render_page('edge_user/change_password', $page_data); } else { - $identity = $this->edge_controller->session->userdata($this->config->item('identity', 'ion_auth')); + $identity = $this->edge_common->session->userdata($this->config->item('identity', 'ion_auth')); - $change = $this->edge_controller->ion_auth->change_password($identity, $this->input->post('old'), $this->input->post('new')); + $change = $this->edge_common->ion_auth->change_password($identity, $this->input->post('old'), $this->input->post('new')); if ($change) { //if the password was successfully changed - //$this->edge_controller->session->set_flashdata('message', $this->edge_controller->ion_auth->messages()); - $this->edge_controller->session->set_flashdata('message', "Password Changed !"); + //$this->edge_common->session->set_flashdata('message', $this->edge_common->ion_auth->messages()); + $this->edge_common->session->set_flashdata('message', "Password Changed !"); //$this->logout(); redirect('edge_user/profile', 'refresh'); } else { - //$this->edge_controller->session->set_flashdata('message', $this->edge_controller->ion_auth->errors()); - $this->edge_controller->session->set_flashdata('message', "Error in changing Password !"); + //$this->edge_common->session->set_flashdata('message', $this->edge_common->ion_auth->errors()); + $this->edge_common->session->set_flashdata('message', "Error in changing Password !"); redirect('edge_user/change_password', 'refresh'); } } @@ -232,30 +236,30 @@ function change_password() //forgot password function forgot_password() { - $this->edge_controller->form_validation->set_rules('email', 'Email Address', 'required'); - if ($this->edge_controller->form_validation->run() == false) + $this->edge_common->form_validation->set_rules('email', 'Email Address', 'required'); + if ($this->edge_common->form_validation->run() == false) { //setup the input $page_data['email'] = array('name' => 'email', 'id' => 'email', ); //set any errors and display the form - $page_data['message'] = (validation_errors()) ? validation_errors() : $this->edge_controller->session->flashdata('message'); - $this->edge_controller->render_page('edge_user/forgot_password', $page_data); + $page_data['message'] = (validation_errors()) ? validation_errors() : $this->edge_common->session->flashdata('message'); + $this->edge_common->render_page('edge_user/forgot_password', $page_data); } else { //run the forgotten password method to email an activation code to the user - $forgotten = $this->edge_controller->ion_auth->forgotten_password($this->input->post('email')); + $forgotten = $this->edge_common->ion_auth->forgotten_password($this->input->post('email')); if ($forgotten) { //if there were no errors - $this->edge_controller->session->set_flashdata('message', $this->edge_controller->ion_auth->messages()); + $this->edge_common->session->set_flashdata('message', $this->edge_common->ion_auth->messages()); redirect("edge_user/login", 'refresh'); //we should display a confirmation page here instead of the login page } else { - $this->edge_controller->session->set_flashdata('message', $this->edge_controller->ion_auth->errors()); + $this->edge_common->session->set_flashdata('message', $this->edge_common->ion_auth->errors()); redirect("edge_user/forgot_password", 'refresh'); } } @@ -269,18 +273,18 @@ public function reset_password($code = NULL) show_404(); } - $user = $this->edge_controller->ion_auth->forgotten_password_check($code); + $user = $this->edge_common->ion_auth->forgotten_password_check($code); if ($user) { //if the code is valid then display the password reset form - $this->edge_controller->form_validation->set_rules('new', 'New Password', 'required|min_length[' . $this->config->item('min_password_length', 'ion_auth') . ']|max_length[' . $this->config->item('max_password_length', 'ion_auth') . ']|matches[new_confirm]'); - $this->edge_controller->form_validation->set_rules('new_confirm', 'Confirm New Password', 'required'); + $this->edge_common->form_validation->set_rules('new', 'New Password', 'required|min_length[' . $this->config->item('min_password_length', 'ion_auth') . ']|max_length[' . $this->config->item('max_password_length', 'ion_auth') . ']|matches[new_confirm]'); + $this->edge_common->form_validation->set_rules('new_confirm', 'Confirm New Password', 'required'); - if ($this->edge_controller->form_validation->run() == false) + if ($this->edge_common->form_validation->run() == false) {//display the form //set the flash data error message if there is one - $page_data['message'] = (validation_errors()) ? validation_errors() : $this->edge_controller->session->flashdata('message'); + $page_data['message'] = (validation_errors()) ? validation_errors() : $this->edge_common->session->flashdata('message'); $page_data['min_password_length'] = $this->config->item('min_password_length', 'ion_auth'); $page_data['new_password'] = array( @@ -305,7 +309,7 @@ public function reset_password($code = NULL) $page_data['code'] = $code; //render - $this->edge_controller->render_page('edge_user/reset_password', $page_data); + $this->edge_common->render_page('edge_user/reset_password', $page_data); } else { @@ -313,7 +317,7 @@ public function reset_password($code = NULL) if ($this->_valid_csrf_nonce() === FALSE || $user->id != $this->input->post('user_id')) { //something fishy might be up - $this->edge_controller->ion_auth->clear_forgotten_password_code($code); + $this->edge_common->ion_auth->clear_forgotten_password_code($code); show_404(); @@ -321,16 +325,16 @@ public function reset_password($code = NULL) // finally change the password $identity = $user->{$this->config->item('identity', 'ion_auth')}; - $change = $this->edge_controller->ion_auth->reset_password($identity, $this->input->post('new')); + $change = $this->edge_common->ion_auth->reset_password($identity, $this->input->post('new')); if ($change) { //if the password was successfully changed - $this->edge_controller->session->set_flashdata('message', $this->edge_controller->ion_auth->messages()); + $this->edge_common->session->set_flashdata('message', $this->edge_common->ion_auth->messages()); $this->logout(); } else { - $this->edge_controller->session->set_flashdata('message', $this->edge_controller->ion_auth->errors()); + $this->edge_common->session->set_flashdata('message', $this->edge_common->ion_auth->errors()); redirect('edge_user/reset_password/' . $code, 'refresh'); } } @@ -338,7 +342,7 @@ public function reset_password($code = NULL) } else { //if the code is invalid then send them back to the forgot password page - $this->edge_controller->session->set_flashdata('message', $this->edge_controller->ion_auth->errors()); + $this->edge_common->session->set_flashdata('message', $this->edge_common->ion_auth->errors()); redirect("edge_user/forgot_password", 'refresh'); } } @@ -348,20 +352,20 @@ public function reset_password($code = NULL) function activate($id, $code=false) { if ($code !== false) - $activation = $this->edge_controller->ion_auth->activate($id, $code); - else if ($this->edge_controller->ion_auth->is_admin()) - $activation = $this->edge_controller->ion_auth->activate($id); + $activation = $this->edge_common->ion_auth->activate($id, $code); + else if ($this->edge_common->ion_auth->is_admin()) + $activation = $this->edge_common->ion_auth->activate($id); if ($activation) { //redirect them to the auth page - $this->edge_controller->session->set_flashdata('message', $this->edge_controller->ion_auth->messages()); + $this->edge_common->session->set_flashdata('message', $this->edge_common->ion_auth->messages()); redirect("auth", 'refresh'); } else { //redirect them to the forgot password page - $this->edge_controller->session->set_flashdata('message', $this->edge_controller->ion_auth->errors()); + $this->edge_common->session->set_flashdata('message', $this->edge_common->ion_auth->errors()); redirect("edge_user/forgot_password", 'refresh'); } } @@ -372,16 +376,16 @@ function deactivate($id = NULL) $id = $this->config->item('use_mongodb', 'ion_auth') ? (string) $id : (int) $id; $this->load->library('form_validation'); - $this->edge_controller->form_validation->set_rules('confirm', 'confirmation', 'required'); - $this->edge_controller->form_validation->set_rules('id', 'user ID', 'required|alpha_numeric'); + $this->edge_common->form_validation->set_rules('confirm', 'confirmation', 'required'); + $this->edge_common->form_validation->set_rules('id', 'user ID', 'required|alpha_numeric'); - if ($this->edge_controller->form_validation->run() == FALSE) + if ($this->edge_common->form_validation->run() == FALSE) { // insert csrf check $page_data['csrf'] = $this->_get_csrf_nonce(); - $page_data['user'] = $this->edge_controller->ion_auth->user($id)->row(); + $page_data['user'] = $this->edge_common->ion_auth->user($id)->row(); - $this->edge_controller->render_page('edge_user/deactivate_user', $page_data); + $this->edge_common->render_page('edge_user/deactivate_user', $page_data); } else { @@ -395,9 +399,9 @@ function deactivate($id = NULL) } // do we have the right userlevel? - if ($this->edge_controller->ion_auth->logged_in() && $this->edge_controller->ion_auth->is_admin()) + if ($this->edge_common->ion_auth->logged_in() && $this->edge_common->ion_auth->is_admin()) { - $this->edge_controller->ion_auth->deactivate($id); + $this->edge_common->ion_auth->deactivate($id); } } @@ -417,13 +421,13 @@ public function signup() $page_data['title'] = 'Select Your Details'; $page_data['form_action'] = site_url('edge_user/update'); - $this->edge_controller->form_validation->set_rules('username', 'User Name', 'required|min_length[5]|max_length[15]|is_unique[edge_users.username]'); - $this->edge_controller->form_validation->set_rules('password', 'Password', 'required|matches[password_confirm]|min_length[8]'); - $this->edge_controller->form_validation->set_rules('password_confirm', 'Password Confirmation', 'required|min_length[8]'); + $this->edge_common->form_validation->set_rules('username', 'User Name', 'required|min_length[5]|max_length[15]|is_unique[edge_users.username]'); + $this->edge_common->form_validation->set_rules('password', 'Password', 'required|matches[password_confirm]|min_length[8]'); + $this->edge_common->form_validation->set_rules('password_confirm', 'Password Confirmation', 'required|min_length[8]'); - if ($this->edge_controller->form_validation->run() === FALSE) + if ($this->edge_common->form_validation->run() === FALSE) { - $this->edge_controller->render_page('edge_user/signup', $page_data); + $this->edge_common->render_page('edge_user/signup', $page_data); } else { @@ -439,16 +443,18 @@ public function signup() show_404(); } - $this->edge_controller->render_page('edge_user/profile', $page_data); + $this->edge_common->render_page('edge_user/profile', $page_data); return; } - $this->edge_controller->render_page('edge_user/index', $page_data); + $this->edge_common->render_page('edge_user/index', $page_data); } } public function update($user_id=null){ - if (!$this->edge_controller->ion_auth->logged_in()) { + log_message('debug', "update POST[" . var_export($this->input->post(), true). "]"); + + if (!$this->edge_common->ion_auth->logged_in()) { $this->index(); return; } @@ -458,7 +464,7 @@ public function update($user_id=null){ return; } $page_data['message']=null; - $page_data['is_admin'] = $this->edge_controller->ion_auth->is_admin(); + $page_data['is_admin'] = $this->edge_common->ion_auth->is_admin(); $this->load->helper('form'); $this->load->library('form_validation'); @@ -469,20 +475,20 @@ public function update($user_id=null){ $page_data['message']=''; // set validation properties - $this->edge_controller->form_validation->set_rules('user_profile_rfid_ID', 'Swipe Card ID', 'callback_validate_rfid'); - $this->edge_controller->form_validation->set_rules('user_profile_rfid', 'Swipe Card ID', 'callback_validate_rfid'); - $this->edge_controller->form_validation->set_rules('username', 'User Name', 'required|min_length[5]'); - $this->edge_controller->form_validation->set_rules('firstname', 'First Name', 'required'); - $this->edge_controller->form_validation->set_rules('lastname', 'Last Name', 'required'); - $this->edge_controller->form_validation->set_rules('email', 'Email Address', 'required|valid_email|min_length[9]'); - // $this->edge_controller->form_validation->set_rules('occupation', 'Occupation', 'required|max_length[25]'); + $this->edge_common->form_validation->set_rules('user_profile_rfid_ID', 'Swipe Card ID', 'callback_validate_rfid'); + $this->edge_common->form_validation->set_rules('user_profile_rfid', 'Swipe Card ID', 'callback_validate_rfid'); + $this->edge_common->form_validation->set_rules('username', 'User Name', 'required|min_length[5]'); + $this->edge_common->form_validation->set_rules('firstname', 'First Name', 'required'); + $this->edge_common->form_validation->set_rules('lastname', 'Last Name', 'required'); + $this->edge_common->form_validation->set_rules('email', 'Email Address', 'required|valid_email|min_length[9]'); + // $this->edge_common->form_validation->set_rules('occupation', 'Occupation', 'required|max_length[25]'); if ( strlen($this->input->post('new_interest'))) { - $this->edge_controller->form_validation->set_rules('new_interest', 'Interest Term', 'min_length[3]'); - $this->edge_controller->form_validation->set_rules('new_interest_level', 'Interest Level', 'greater_than[0]|less_than[6]'); + $this->edge_common->form_validation->set_rules('new_interest', 'Interest Term', 'min_length[3]'); + $this->edge_common->form_validation->set_rules('new_interest_level', 'Interest Level', 'greater_than[0]|less_than[6]'); } if ( strlen($this->input->post('new_expertise'))) { - $this->edge_controller->form_validation->set_rules('new_expertise', 'Expertise Term', 'min_length[3]'); - $this->edge_controller->form_validation->set_rules('new_expertise_level', 'Expertise Level', 'greater_than[0]|less_than[6]'); + $this->edge_common->form_validation->set_rules('new_expertise', 'Expertise Term', 'min_length[3]'); + $this->edge_common->form_validation->set_rules('new_expertise_level', 'Expertise Level', 'greater_than[0]|less_than[6]'); } $all_post = $this->input->post(); @@ -500,7 +506,7 @@ public function update($user_id=null){ 'email' => $this->input->post('email'), 'active' => $active, 'is_admin' => $user_is_admin, - //$this->edge_controller->ion_auth->in_group($this->config->item('admin_group', 'ion_auth'), $user_id), + //$this->edge_common->ion_auth->in_group($this->config->item('admin_group', 'ion_auth'), $user_id), 'dontdisturb' => $dontdisturb, ); @@ -510,7 +516,7 @@ public function update($user_id=null){ 'interest' => $this->input->post('new_interest'), 'level' => $this->input->post('new_interest_level'), ); - $page_data['interests']=$this->edge_user_model->get_user_interests($user_id)->result_array(); + $page_data['profile']['interests']=$this->edge_user_model->get_user_interests($user_id)->result_array(); $page_data['new_expertise']=array( 'expertise' => $this->input->post('new_expertise'), @@ -524,12 +530,12 @@ public function update($user_id=null){ $page_data['questions']=$this->edge_user_model->get_user_questions($user_id)->result_array(); // run validation - if ($this->edge_controller->form_validation->run() === FALSE){ + if ($this->edge_common->form_validation->run() === FALSE){ $page_data['message'] = 'Please Correct Values'; }else{ $all_post = $this->input->post(); - //log_message('debug', 'ALL_POST[' .var_export($all_post,true) .']'); + //log_message('debug', 'update ALL_POST[' .var_export($all_post,true) .']'); /* * Handle the groups that have been submitted */ @@ -540,22 +546,21 @@ public function update($user_id=null){ $posted_groups_checkboxes[$match[1]]=$match[1]; } } - log_message('debug', 'POSTED GROUPS[' .var_export($posted_groups_checkboxes,true) .']'); - + //log_message('debug', 'POSTED GROUPS[' .var_export($posted_groups_checkboxes,true) .']'); $group_list=$this->_get_groups(); // Delete all the ids that don't match $diff_arr=array_diff($group_list,$posted_groups_checkboxes); foreach($diff_arr as $group_id=>$value) { - log_message('debug', 'REMOVE GROUPS[' .$group_id .'], USERID [' . $user_id .']'); - $this->edge_controller->ion_auth->remove_from_group($group_id, $user_id); + //log_message('debug', 'REMOVE GROUPS[' .$group_id .'], USERID [' . $user_id .']'); + $this->edge_common->ion_auth->remove_from_group($group_id, $user_id); } - log_message('debug', 'DIFF GROUPS[' .var_export($diff_arr,true) .']'); + //log_message('debug', 'DIFF GROUPS[' .var_export($diff_arr,true) .']'); // Make sure all groups are added to user foreach($posted_groups_checkboxes as $group_id =>$value) { - log_message('debug', 'ADD GROUPS[' .$group_id .'], USERID [' . $user_id .']'); - $this->edge_controller->ion_auth->add_to_group($group_id, $user_id); + //log_message('debug', 'ADD GROUPS[' .$group_id .'], USERID [' . $user_id .']'); + $this->edge_common->ion_auth->add_to_group($group_id, $user_id); } /* @@ -579,15 +584,19 @@ public function update($user_id=null){ $posted_interest_levels[$match[1]] = $proposed_value; } } - + //log_message('debug', 'update posted_interest_checkboxes[' .var_export($posted_interest_checkboxes,true) .']'); + //log_message('debug', 'update posted_interest_selects[' .var_export($posted_interest_selects,true) .']'); + // Delete all the ids that don't match foreach(array_diff($posted_interest_selects,$posted_interest_checkboxes) as $key=>$user_interest_id) { $this->edge_user_model->delete_user_interest($user_interest_id); } - $page_data['interests']=$this->edge_user_model->get_user_interests($user_id)->result_array(); + $interests=$this->edge_user_model->get_user_interests($user_id)->result_array(); + //log_message('debug', 'update INTERESTS AFTER DIFF[' .var_export($interests,true) .']'); + // Update any levels that may have changed - foreach($page_data['interests'] as $record=>$interest_array) { + foreach($interests as $record=>$interest_array) { if(array_key_exists($interest_array['ID'], $posted_interest_levels)){ if($posted_interest_levels[$interest_array['ID']] != $interest_array['level']) { if($this->edge_user_model->update_user_interest_level($interest_array['ID'], @@ -652,7 +661,7 @@ public function update($user_id=null){ // Update any levels that may have changed foreach($page_data['questions'] as $record=>$question_array) { if(!array_key_exists($question_array['ID'], $posted_question_checkboxes)){ - // Deletethe question if it is not there + // Delete the question if it is not there $this->edge_user_model->delete_user_question($question_array['ID']); } } @@ -661,19 +670,29 @@ public function update($user_id=null){ $page_data['user_details']['user_profile_rfid']=null; } - //log_message('debug', "USER DETAILS[" . var_export($page_data['user_details'], true). "]"); - // save data $page_data['user_details']=$this->edge_user_model->update($user_id,$page_data['user_details']); - + //log_message('debug', "update USER DETAILS[" . var_export($page_data['user_details'], true). "]"); + + // Set interest data - if (strlen($this->input->post('new_interest'))) { - $page_data['interests']=$this->edge_user_model->add_user_interest($user_id,$page_data['new_interest']['interest'],$page_data['new_interest']['level'])->result_array(); - $page_data['interests']=$this->_sort_interests($page_data['interests']); + //$interests=null; + + log_message('debug', "update NEW INTERESTS[" . var_export($page_data['new_interest'], true). "]"); + + if (!empty($page_data['new_interest']['interest'])) { + log_message('debug', "update NEW INTERESTS !EMPTY[" . empty($page_data['new_interest']['interest']) . "]"); + $interests=$this->edge_user_model->add_user_interest($user_id,$page_data['new_interest']['interest'],$page_data['new_interest']['level'])->result_array(); + $interests=$this->_sort_interests($interests); } else { - $page_data['interests']=$this->_get_interests($user_id); + log_message('debug', "update NEW INTERESTS EMPTY[" . empty($page_data['new_interest']['interest']) . "]"); + $interests=$this->_get_interests($user_id); } - + log_message('debug', "INTERESTS[" . var_export($interests, true). "]"); + $page_data['profile']['interests'] = $interests; + //log_message('debug', "INTERESTS[" . var_export($page_data['interests'], true). "]"); + $this->load->view('edge_user/interest_list', $page_data); + // Set expertise data if (strlen($this->input->post('new_expertise'))) { $page_data['expertises']=$this->edge_user_model->add_user_expertise($user_id,$page_data['new_expertise']['expertise'],$page_data['new_expertise']['level'])->result_array(); @@ -703,15 +722,18 @@ public function update($user_id=null){ } } - if ($page_data['interests'] === FALSE) { + if ($page_data['profile']['interests'] === FALSE) { // set user message $page_data['message'] .= '
Error in updating Interests!
'; } else { $page_data['message'] = '
Profile Updated!
'; } } + + //return $page_data; + //return "blah"; // load view - $this->edge_controller->render_page('edge_user/profile', $page_data); + //$this->edge_common->render_page('edge_user/profile', $page_data); } //create a new user @@ -719,19 +741,19 @@ function create() { $page_data['title'] = "Create User"; - if (!$this->edge_controller->ion_auth->logged_in() && !$this->edge_controller->ion_auth->is_admin()) + if (!$this->edge_common->ion_auth->logged_in() && !$this->edge_common->ion_auth->is_admin()) { redirect('edge_user', 'refresh'); } //validate form input - $this->edge_controller->form_validation->set_rules('first_name', 'First Name', 'required|xss_clean'); - $this->edge_controller->form_validation->set_rules('last_name', 'Last Name', 'required|xss_clean'); - $this->edge_controller->form_validation->set_rules('email', 'Email Address', 'required|valid_email'); - $this->edge_controller->form_validation->set_rules('password', 'Password', 'required|min_length[' . $this->config->item('min_password_length', 'ion_auth') . ']|max_length[' . $this->config->item('max_password_length', 'ion_auth') . ']|matches[password_confirm]'); - $this->edge_controller->form_validation->set_rules('password_confirm', 'Password Confirmation', 'required'); + $this->edge_common->form_validation->set_rules('first_name', 'First Name', 'required|xss_clean'); + $this->edge_common->form_validation->set_rules('last_name', 'Last Name', 'required|xss_clean'); + $this->edge_common->form_validation->set_rules('email', 'Email Address', 'required|valid_email'); + $this->edge_common->form_validation->set_rules('password', 'Password', 'required|min_length[' . $this->config->item('min_password_length', 'ion_auth') . ']|max_length[' . $this->config->item('max_password_length', 'ion_auth') . ']|matches[password_confirm]'); + $this->edge_common->form_validation->set_rules('password_confirm', 'Password Confirmation', 'required'); - if ($this->edge_controller->form_validation->run() == true) + if ($this->edge_common->form_validation->run() == true) { //$username = strtolower($this->input->post('first_name')) . ' ' . strtolower($this->input->post('last_name')); $username = $this->input->post('email'); @@ -742,10 +764,10 @@ function create() 'lastname' => $this->input->post('last_name'), ); - $new_userid=$this->edge_controller->ion_auth->register($username, $password, $email, $additional_data, array()); + $new_userid=$this->edge_common->ion_auth->register($username, $password, $email, $additional_data, array()); if($new_userid) { //redirect them back to the admin page - $this->edge_controller->session->set_flashdata('message', 'New User Added!'); + $this->edge_common->session->set_flashdata('message', 'New User Added!'); redirect('edge_user/profile/'.$new_userid, 'location'); } @@ -753,34 +775,35 @@ function create() else { //display the create user form //set the flash data error message if there is one - $page_data['message'] = (validation_errors() ? validation_errors() : ($this->edge_controller->ion_auth->errors() ? $this->edge_controller->ion_auth->errors() : $this->edge_controller->session->flashdata('message'))); + $page_data['message'] = (validation_errors() ? validation_errors() : ($this->edge_common->ion_auth->errors() ? $this->edge_common->ion_auth->errors() : $this->edge_common->session->flashdata('message'))); $page_data['first_name'] = array('name' => 'first_name', 'id' => 'first_name', 'type' => 'text', - 'value' => $this->edge_controller->form_validation->set_value('first_name'), + 'value' => $this->edge_common->form_validation->set_value('first_name'), ); $page_data['last_name'] = array('name' => 'last_name', 'id' => 'last_name', 'type' => 'text', - 'value' => $this->edge_controller->form_validation->set_value('last_name'), + 'value' => $this->edge_common->form_validation->set_value('last_name'), ); $page_data['email'] = array('name' => 'email', 'id' => 'email', 'type' => 'text', - 'value' => $this->edge_controller->form_validation->set_value('email'), + 'value' => $this->edge_common->form_validation->set_value('email'), ); $page_data['password'] = array('name' => 'password', 'id' => 'password', 'type' => 'password', - 'value' => $this->edge_controller->form_validation->set_value('password'), + 'value' => $this->edge_common->form_validation->set_value('password'), ); $page_data['password_confirm'] = array('name' => 'password_confirm', 'id' => 'password_confirm', 'type' => 'password', - 'value' => $this->edge_controller->form_validation->set_value('password_confirm'), + 'value' => $this->edge_common->form_validation->set_value('password_confirm'), ); - $this->edge_controller->render_page('edge_user/create_user', $page_data); + + $this->edge_common->render_page('edge_user/create_user', $page_data); } } @@ -788,13 +811,13 @@ function list_users() { $page_data['title'] = "User Listings"; //list the users - $page_data['users'] = $this->edge_controller->ion_auth->users()->result(); + $page_data['users'] = $this->edge_common->ion_auth->users()->result(); foreach ($page_data['users'] as $k => $user) { - $page_data['users'][$k]->groups = $this->edge_controller->ion_auth->get_users_groups($user->id)->result(); + $page_data['users'][$k]->groups = $this->edge_common->ion_auth->get_users_groups($user->id)->result(); } - $this->edge_controller->render_page('edge_user/list', $page_data); + $this->edge_common->render_page('edge_user/list', $page_data); } function _get_csrf_nonce() @@ -802,16 +825,16 @@ function _get_csrf_nonce() $this->load->helper('string'); $key = random_string('alnum', 8); $value = random_string('alnum', 20); - $this->edge_controller->session->set_flashdata('csrfkey', $key); - $this->edge_controller->session->set_flashdata('csrfvalue', $value); + $this->edge_common->session->set_flashdata('csrfkey', $key); + $this->edge_common->session->set_flashdata('csrfvalue', $value); return array($key => $value); } function _valid_csrf_nonce() { - if ($this->input->post($this->edge_controller->session->flashdata('csrfkey')) !== FALSE && - $this->input->post($this->edge_controller->session->flashdata('csrfkey')) == $this->edge_controller->session->flashdata('csrfvalue')) + if ($this->input->post($this->edge_common->session->flashdata('csrfkey')) !== FALSE && + $this->input->post($this->edge_common->session->flashdata('csrfkey')) == $this->edge_common->session->flashdata('csrfvalue')) { return TRUE; } @@ -830,7 +853,7 @@ private function _save_session_cookie($user_id) { 'logged_in' => TRUE ); - $this->edge_controller->session->set_userdata($sessiondata); + $this->edge_common->session->set_userdata($sessiondata); } @@ -845,18 +868,9 @@ private function _sort_interests($interests_array) { } private function _get_interests($user_id) { - $interests_array=array(); $db_interests_array = $this->edge_user_model->get_user_interests($user_id)->result_array(); - //log_message('debug', "_get_interests[" . var_export($db_interests_array, true). "]"); - if ($db_interests_array) { - foreach($db_interests_array as $key=>$row) { - $interests_array[$row['ID']]=$row['interest']; - } - //array_multisort($interest, SORT_STRING, $interests_array); - } - //log_message('debug', "_get_interests interests_array[" . var_export($interests_array, true). "]"); - return $interests_array; + return $db_interests_array; } private function _sort_expertise($expertises_array) { @@ -903,7 +917,7 @@ private function _get_questions($user_id) { } private function _get_groups() { - $groups_result=$this->edge_controller->ion_auth->groups(); + $groups_result=$this->edge_common->ion_auth->groups(); $groups = array(); foreach ($groups_result->result() as $row) { @@ -913,4 +927,30 @@ private function _get_groups() { return $groups; } + + private function _render_interests($interests) { + $responseHtml=null; + if (isset($interests)) { + $responseHtml = ''; + + foreach($interests as $key=>$interest) { + $responseHtml .= ''; + + $responseHtml .=''; + $responseHtml .= ''; + $responseHtml .= ''; + $responseHtml .= ''; + $responseHtml .= ''; // interest-item + } + $responseHtml .= '
' . $interest['interest'] . ''; + $responseHtml .= '
'; // interest-list + } + return $responseHtml; + } } diff --git a/userprofile/codeigniter_application/libraries/edge_controller.php b/userprofile/codeigniter_application/libraries/Edge_common/Edge_common.php old mode 100755 new mode 100644 similarity index 76% rename from userprofile/codeigniter_application/libraries/edge_controller.php rename to userprofile/codeigniter_application/libraries/Edge_common/Edge_common.php index 0e9d1e5..8ce14c1 --- a/userprofile/codeigniter_application/libraries/edge_controller.php +++ b/userprofile/codeigniter_application/libraries/Edge_common/Edge_common.php @@ -1,6 +1,6 @@ -'logg-button','title'=>'List Users')); print ''; print '
'; - print '
'; - print anchor('admin/manage_user_rfids','Allocate RFID Card To User', array('class'=>'logg-button','title'=>'Allocate RFID To User')); - print '
'; - print '
'; - print '
'; +// print '
'; +// print anchor('admin/manage_user_rfids','Allocate RFID Card To User', array('class'=>'logg-button','title'=>'Allocate RFID To User')); +// print '
'; +// print '
'; +// print '
'; print anchor('admin/list_rfids','Manage RFID Cards', array('class'=>'logg-button','title'=>'Manage RFID Cards')); print '
'; print '
'; diff --git a/userprofile/codeigniter_application/views/edge_user/interest_list.php b/userprofile/codeigniter_application/views/edge_user/interest_list.php new file mode 100644 index 0000000..6a1e11a --- /dev/null +++ b/userprofile/codeigniter_application/views/edge_user/interest_list.php @@ -0,0 +1,26 @@ +'; + + foreach($profile['interests'] as $key=>$interest) { + print ''; + + print''; + print '' . $interest['interest'] . ''; + print ''; + print ''; + print ''; + print ''; + print ''; // interest-item + } + print ''; // interest-list +} + +?> \ No newline at end of file diff --git a/userprofile/codeigniter_application/views/edge_user/profile.php b/userprofile/codeigniter_application/views/edge_user/profile.php index 65f31a1..51de3e3 100644 --- a/userprofile/codeigniter_application/views/edge_user/profile.php +++ b/userprofile/codeigniter_application/views/edge_user/profile.php @@ -1,90 +1,90 @@ ', '
'); - if ($message) { - print '
'; - print $message; - print '
'; - } - - print '
'; - print form_open($form_action, array('id'=>'profile-form', 'class' => 'logg-form content-inner center')); +print validation_errors('
', '
'); +if ($message) { + print '
'; + print $message; + print '
'; +} +?> +
+ 'profile-form', 'class' => 'logg-form content-inner center')); print ''; print anchor('edge_user/change_password','Change Password', array('class'=>'logg-button','title'=>'Change Your Password')); - //print anchor('project','View Projects', array('class'=>'logg-button','title'=>'View List Of Projects')); + //print anchor('project','View Projects', array('class'=>'logg-button','title'=>'View List Of Projects')); if ($is_admin) { print anchor('a', 'A', array('style'=>'visibility:hidden;')); print anchor('admin', 'Admin', array('class'=>'logg-button','title'=>'Admin')); } - print anchor('edge_user/logout', 'Logout', array('class'=>'logg-button right','title'=>'Logout')); + print anchor('edge_user/logout', 'Logout', array('class'=>'logg-button right','title'=>'Logout')); ?> - -


-

Profile Info

+


-
-

Profile Info

-
-
-
-
+

Profile Info

+ +
+

Profile Info

+
+
+
+
'; - print ' Is Active ?'; - - print '  '; - $admin_checked=empty($user_details['is_admin']) ? null:'checked'; - print ''; - print ' Allow Administration Access ?'; - - print '

Swipe Card ID:

'; - print ''; - - $identification_id=empty($user_details['identification_id']) ? null:$user_details['identification_id']; - print ''; + if ($is_admin) { + $active_checked=empty($user_details['active']) ? null:'checked'; + print ''; + print ' Is Active ?'; + + print '  '; + $admin_checked=empty($user_details['is_admin']) ? null:'checked'; + print ''; + print ' Allow Administration Access ?'; + + print '

Swipe Card ID:

'; + print ' - -

Username:

- - -

First name:

- - -

Last name:

- - -

Email:

- - - -
+ print ' />'; - '; - print '
'; - print '
'; - //print ''; - print '

User Groups

'; - print '
'; - print '
'; - print '

Groups that Edge User Belongs To

'; - //if (isset($user_details['groups']) && isset($groups)) { + $identification_id=empty($user_details['identification_id']) ? null:$user_details['identification_id']; + print ''; + } + ?> + +

Username:

+ + +

First name:

+ + +

Last name:

+ + +

Email:

+ + + +
+ '; + print '
'; + print '
'; + print '

User Groups

'; + print '
'; + print '
'; + print '

Groups that Edge User Belongs To

'; $users_groups=empty($user_details['groups'])?array():$user_details['groups']; - + print ''; foreach($groups as $group_id=>$group_name) { @@ -100,306 +100,202 @@ print ''; // group-item } print '
'; // group-list - //} + print '
'; + } + ?> - print '
'; - } - ?> +

-

- - -
- -
+
+
-

-

-
- -

What are you up to at The Edge today?

+
+




+

What are you up to at The Edge today?

-
- + - value="" /> -

I'm busy, don't disturb me

-
-

- - -
-
-
- -

Just hanging out today, come talk to me!

-
-
-

My background / interests / hobbies

+ value="" /> +

I'm busy, don't disturb me

+
+

+ +
+
+
+ +

Just hanging out today, come talk to me!

+
+
+

My background / interests / hobbies

+
$interest) { - print ''; - - print ''; - print '' . $interest . ''; - print ''; - print ''; - print ''; // interest-item - } - print ''; // interest-list - } - + print $profile['interests']; ?> - - - - - - - - -
- - - -
- -
- -
- -

- -
-
-
- -

I am happy to share my skills!

-
-
-

Skills I can share with other Edge users

+ + + + + + + +
+ +
+ +
+ +
+
+

+ +
+
+
+ +

I am happy to share my skills!

+
+
+
+

Skills I can share with other Edge users

+ +
'; - - print ''; - print '' . $expertise['expertise'] . ''; - print ''; - print ''; - print ''; // interest-item + if (isset($user_details['expertises'])) { + print ''; + + foreach($user_details['expertises'] as $expertise) { + print ''; + + print ''; + print ''; + print '
' . $expertise['expertise'] . '
'; // interest-list + print ''; + print ''; + print ''; // interest-item } - + print ''; // interest-list + } ?> - - - - - - - -
- - - -
- -
- -
- -

- - - -
-
-
- -

I need your help ...

+ + + + + + + +
+ +
+ +
+
-
-

I need someone's help with ...

- (My project ideas / questions) +
+ +

+ +
+
+
+ +

I need your help ...

+
+
+

I need someone's help with ...

+ (My project ideas / questions) +
'; - foreach($user_details['questions'] as $question) { - print ''; + foreach($user_details['questions'] as $question) { + print ''; - print ''; - print '' . $question['question'] . ''; - print ''; - print ''; // interest-item - } - print ''; // interest-list + print ''; + print '' . $question['question'] . ''; + print ''; + print ''; // interest-item } - + print ''; // interest-list + } ?> - - - - - - - -
- -
- -
- -
-

- - -
- -

I'm new here, and don't really know what The Edge is about yet ...

-
-

- - -
- -

Other status message:

- - + + + + + + +
+
+ +
+
-

- - - - 'logg-button','title'=>'View List Of Projects')); - ?> -
- -
-
-
\ No newline at end of file + 'logg-button','title'=>'View List Of Projects')); + ?> +
+ +
+
+
diff --git a/userprofile/codeigniter_application/views/templates/header.php b/userprofile/codeigniter_application/views/templates/header.php index a00b4c8..69b15ca 100644 --- a/userprofile/codeigniter_application/views/templates/header.php +++ b/userprofile/codeigniter_application/views/templates/header.php @@ -2,23 +2,23 @@ - + - - + + - - + + - + @@ -29,9 +29,9 @@ The Edge RFID Checkin - - - + + +