From c648715fd00a39453a63e06ee89580d38d4f3805 Mon Sep 17 00:00:00 2001 From: Karsten Heiken Date: Sun, 31 Jul 2011 19:10:43 +0200 Subject: [PATCH] Add prototype for a settings page --- application/controllers/settings.php | 33 ++++++++++++++++++++++ application/views/user/settings.php | 41 ++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 application/controllers/settings.php create mode 100644 application/views/user/settings.php diff --git a/application/controllers/settings.php b/application/controllers/settings.php new file mode 100644 index 0000000..0ddf57c --- /dev/null +++ b/application/controllers/settings.php @@ -0,0 +1,33 @@ +load->model('program'); + + // load language file + $this->lang->load(strtolower($this->router->class)); + } + + /** + * Show a list of all available programs. + */ + public function index() { + $profile = $this->user->profile(); + $profile_fields = array( + array('firstname', 'Vorname', 'text'), + array('lastname', 'Nachname', 'text'), + array('intitution', 'Institution', 'text'), + ); + $tpl['profile'] = $profile; + $tpl['profile_fields'] = $profile_fields; + $this->load->view('user/settings', $tpl); + } +} diff --git a/application/views/user/settings.php b/application/views/user/settings.php new file mode 100644 index 0000000..4d00241 --- /dev/null +++ b/application/views/user/settings.php @@ -0,0 +1,41 @@ +load->view('header'); ?> + +
+
+
+

Einstellungen

+
+ + +
+
+ + + + + + +
+
+
+
+
    +
  • + +
    + +
  • +
+
+
+
+
+ +load->view('footer'); ?>