/lenasys/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/trunk

« back to all changes in this revision

Viewing changes to codeigniter/application/controllers/ajax.php

  • Committer: elof.bigestans at gmail
  • Date: 2013-05-24 12:07:02 UTC
  • mto: This revision was merged to the branch mainline in revision 99.
  • Revision ID: elof.bigestans@gmail.com-20130524120702-kkoky4t7vzw4tu6x
Started work on normalizing popups. Lots to go.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
                 *      This function loads a popupview to be displayed, the argument is the name of the popupview
16
16
                 */
17
17
                public function popup($popupName) {
 
18
                        // Arrays
 
19
                        $headTagData = array(
 
20
                                'cssFiles' => array('bannermenu', 'popup')
 
21
                        );
 
22
 
 
23
                        $userInfo = array(
 
24
                                'userType' => $this->user->getUserType(), // Loads different header for teacher/student
 
25
                                'userName' => $this->user->getUserName()
 
26
                        );
 
27
 
 
28
                        // Loads head views, supplying CSS and JS data
 
29
                        $this->load->view('headTag', array('headTagData' => $headTagData));
 
30
                        $this->load->view('bannermenu', $userInfo);
 
31
 
18
32
                        $this->load->view('popup/'.$popupName);
19
33
                }
20
34