/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/cms.php

  • Committer: Gustav Hatvigsson
  • Date: 2013-05-29 11:07:14 UTC
  • mfrom: (124.1.1 lenasys)
  • Revision ID: gustav.hartvigsson@gmail.com-20130529110714-4iioizgqujt45riz
Merged Wikströms changes:

Added display of statistics in the sidepane

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
                        $this->load->model('user', '', TRUE);
12
12
                        $this->load->model('admin/admin_model', '', TRUE);
13
13
                        $this->load->model('filetree');
 
14
                        $this->load->model('stats');
14
15
                }
15
16
                
16
17
                /*
88
89
                        //Creates an array with the necessary css- and jsfiles needed for the views that are about to be shown.
89
90
                        $headTagData = array(
90
91
                                'cssFiles' => array('bannermenu', 'sidemenu', 'cmsindex'),
91
 
                                'jsFiles' => array('bannermenu')
92
 
                        );
 
92
                                'jsFiles' => array('bannermenu', 'sidemenu')
 
93
                        );
 
94
                        
 
95
                        $stats = array(
 
96
                                'system' => $this->stats->getSystemStats(),
 
97
                                'course' => $this->stats->getCourseStats($data['activeCourse']['courseID']),
 
98
                                'user' => $this->stats->getUserStats()
 
99
                        );
 
100
                        $data['stats'] = $stats;
93
101
                        
94
102
                        //Puts the array above in <head></head>
95
103
                        $this->load->view('headTag', array('headTagData' => $headTagData));