Changeset 2486 for trunk/app/views/vclassrooms/show.ctp
- Timestamp:
- 08/27/10 17:14:12 (21 months ago)
- File:
-
- 1 edited
-
trunk/app/views/vclassrooms/show.ctp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/vclassrooms/show.ctp
r2460 r2486 14 14 15 15 # Superuser sudo hack 16 if ( !$belongs and $ session->read('Auth.User.sudo')):16 if ( !$belongs and $this->Session->read('Auth.User.sudo')): 17 17 $belongs = True; 18 18 endif; … … 20 20 #check if student is logged in and belongs to this vClassroom 21 21 if ( $belongs === True ): 22 echo $this->Html->div(Null, __('Welcome', True) . '!<b> '. $ session->read('Auth.User.username') .'</b>');22 echo $this->Html->div(Null, __('Welcome', True) . '!<b> '. $this->Session->read('Auth.User.username') .'</b>'); 23 23 # Prepare ecourse activities 24 24 #die(debug($data['activities'])); … … 69 69 70 70 # hello teacher! 71 if ( $blogger['User']['id'] == $ session->read('Auth.User.id') && $data['Vclassroom']['message']):71 if ( $blogger['User']['id'] == $this->Session->read('Auth.User.id') && $data['Vclassroom']['message']): 72 72 echo $this->element('helloteacher', array('vclassroom_id'=>$data['Vclassroom']['id'], 'code'=>$data['Vclassroom']['secret'], 73 73 'username'=> $blogger['User']['username'])); … … 217 217 endif; # user is logged in and member 218 218 219 if ( $ session->check('Auth.User') && $session->read('Auth.User.group_id') < 4 && $belongs === False): # student is login in portal but does not belongs to VC, so, show "Join" button219 if ( $this->Session->check('Auth.User') && $this->Session->read('Auth.User.group_id') < 4 && $belongs === False): # student is login in portal but does not belongs to VC, so, show "Join" button 220 220 echo $this->Html->para(Null, __('In order to join this classroom you must know the access code, if you do not know it, please put in contact with classroom teacher', True)); 221 221 echo $this->Form->create(); 222 222 echo $this->Form->hidden('UsersVclassroom.vclassroom_id', array('value'=>$data['Vclassroom']['id'])); 223 223 echo $this->Form->input('UsersVclassroom.code', array('size' => 9, 'maxlength'=>9, 'title'=>__('Access code', True), 'between'=>': ')); 224 echo $this->Js->submit(__('Join to this class', True).' '.$ session->read('Auth.User.username'),224 echo $this->Js->submit(__('Join to this class', True).' '.$this->Session->read('Auth.User.username'), 225 225 array('url' => '/vclassrooms/jointoclass/', 226 226 'update' => '#updater', … … 235 235 echo $gags->imgLoad('loading'); 236 236 237 if ( !$ session->check('Auth.User') ): # the user is anonymus237 if ( !$this->Session->check('Auth.User') ): # the user is anonymus 238 238 e($this->Html->link(__('Login to join this group', True), '/users/login')); 239 239 endif;
Note: See TracChangeset
for help on using the changeset viewer.
