Changeset 2486 for trunk/app/views/entries/admin_start.ctp
- Timestamp:
- 08/27/10 17:14:12 (21 months ago)
- File:
-
- 1 edited
-
trunk/app/views/entries/admin_start.ctp (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/entries/admin_start.ctp
r2426 r2486 9 9 # no teacher entries, so show welcome message 10 10 if ( !$data ): 11 $link = '<i>'.$ session->read('Auth.User.username') ."'s blog </i>";11 $link = '<i>'.$this->Session->read('Auth.User.username') ."'s blog </i>"; 12 12 $str = $this->Html->image('static/help-renky.jpg', array('title'=>'renky', 'alt'=>'renky', 'style'=>'float:left;')) .' '; 13 13 $str .= __("Hi! I'm Renky, the annoying Karamelo's pet", True) .'.<br /><br /> '; … … 18 18 <h2><?php __('Teacher tools');?></h2> 19 19 <?php 20 #debug($ session->read('Auth.User'));20 #debug($this->Session->read('Auth.User')); 21 21 $tmp = $this->Html->link($this->Html->image('blog.png', array('title'=>'EduBlog','alt'=>'EduBlog')), '/admin/entries/listing', array('escape'=>False)); 22 22 $tmp .= $this->Html->link('eduBlog', '/admin/entries/listing', array('title'=>'Blog', 'class'=>'main-item-caption')); … … 125 125 <div style="clear:both;"></div> 126 126 <br /> 127 <?php if ( $ session->read('Auth.User.group_id') == 1 ): ?>127 <?php if ( $this->Session->read('Auth.User.group_id') == 1 ): ?> 128 128 <h2><?php __('Admin sections');?></h2> 129 129 <?php 130 130 endif; 131 131 132 if ( $ session->read('Auth.User.group_id') == 1 ):132 if ( $this->Session->read('Auth.User.group_id') == 1 ): 133 133 $tmp = $this->Html->link($this->Html->image('news-icon.png',array('title'=>__('News', True),'alt'=>__('News', True))), 134 134 '/admin/news/listing',array('escape'=>False)); … … 137 137 endif; 138 138 139 if ( $ session->read('Auth.User.group_id') == 1 ):139 if ( $this->Session->read('Auth.User.group_id') == 1 ): 140 140 $tmp = $this->Html->link($this->Html->image('areas.png', array('title'=>__('Subjects', True),'alt'=>__('Subjects', True))), 141 141 '/admin/subjects/listing', array('escape'=>False)); … … 144 144 endif; 145 145 146 if ( $ session->read('Auth.User.group_id') == 1 ):146 if ( $this->Session->read('Auth.User.group_id') == 1 ): 147 147 $tmp = $this->Html->link($this->Html->image('articles.png',array('title'=>__('News Themes', True),'alt'=>__('News Themes', True))), 148 148 '/admin/themes/listing', array('escape'=>False)); … … 151 151 endif; 152 152 153 if ( $ session->read('Auth.User.group_id') == 1 ):153 if ( $this->Session->read('Auth.User.group_id') == 1 ): 154 154 $tmp = $this->Html->link($this->Html->image('Poll.png', array('title'=>__('Polls', True),'alt'=>__('Polls', True))), 155 155 '/admin/polls/listing', array('escape'=>False)); … … 158 158 endif; 159 159 160 if ( $ session->read('Auth.User.group_id') == 1 ):160 if ( $this->Session->read('Auth.User.group_id') == 1 ): 161 161 $tmp = $this->Html->link($this->Html->image('karamelo_users.png', array('title'=>__('Users', True), 'alt'=>__('Users', True))), 162 162 '/admin/users/listing', array('escape'=>False)); … … 165 165 endif; 166 166 167 if ( $ session->read('Auth.User.group_id') == 1 ):167 if ( $this->Session->read('Auth.User.group_id') == 1 ): 168 168 $tmp = $this->Html->link($this->Html->image('backup.png', array('title'=>__('Backup', True),'alt'=>__('Backups', True))), 169 169 '/admin/users/backup', array('escape'=>False)); … … 173 173 174 174 # Newsletter 175 if ( $ session->read('Auth.User.group_id') == 1 ):175 if ( $this->Session->read('Auth.User.group_id') == 1 ): 176 176 $tmp = $this->Html->link($this->Html->image('static/newsletter-icon.png', array('title'=>__('Newsletters', True), 'alt'=>__('Newsletters', True))), 177 177 '/admin/newsletters/listing', array('escape'=>False)); … … 181 181 182 182 # Helps 183 if ( $ session->read('Auth.User.group_id') == 1 ):183 if ( $this->Session->read('Auth.User.group_id') == 1 ): 184 184 $tmp = $this->Html->link($this->Html->image('admin/help-icon.png',array('title'=>__('Helps', True),'alt'=>__('Helps', True))), 185 185 '/admin/helps/listing', array('escape'=>False)); … … 189 189 190 190 # College 191 if ( $ session->read('Auth.User.group_id') == 1 ):191 if ( $this->Session->read('Auth.User.group_id') == 1 ): 192 192 $tmp = $this->Html->link($this->Html->image('admin.png', array('title'=>__('College', True), 'alt'=>__('College', True))), '/admin/colleges/listing', array('escape'=>False)); 193 193 $tmp .= $this->Html->link(__('College',True), '/admin/colleges/listing', array('title'=>__('College', True), 'class'=>'main-item-caption')); … … 196 196 197 197 # School library 198 if ( $ session->read('Auth.User.group_id') == 1 ):198 if ( $this->Session->read('Auth.User.group_id') == 1 ): 199 199 $tmp = $this->Html->link($this->Html->image('static/medias_icon.jpg',array('title'=>__('School library', True),'alt'=>__('School library', True))), 200 200 '/admin/collections/listing', array('escape'=>False)); … … 204 204 /* 205 205 # General Reports 206 if ( $ session->read('Auth.User.group_id') == 1 ):206 if ( $this->Session->read('Auth.User.group_id') == 1 ): 207 207 $tmp = $this->Html->link($this->Html->image('admin/report_icon.png', array('title'=>__('Reports', True), 'alt'=>__('Reports', True))), 208 208 '/admin/colleges/reports', array('escape'=>False)); … … 212 212 213 213 # External plugins 214 if ( $ session->read('Auth.User.group_id') == 1 ):214 if ( $this->Session->read('Auth.User.group_id') == 1 ): 215 215 $tmp = $this->Html->link($this->Html->image('admin/plugins_icon.png', array('title'=>__('Plugins', True), 'alt'=>__('Plugins', True))), 216 216 '/admin/plugins/listing', array('escape'=>False));
Note: See TracChangeset
for help on using the changeset viewer.
