Changeset 2486 for trunk/app/views/elements/userform.ctp
- Timestamp:
- 08/27/10 17:14:12 (18 months ago)
- File:
-
- 1 edited
-
trunk/app/views/elements/userform.ctp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/elements/userform.ctp
r2326 r2486 1 1 <?php 2 2 #debug( $this->data ); 3 if ($this->data['User']['id'] != $ session->read('Auth.User.id')): #security check3 if ($this->data['User']['id'] != $this->Session->read('Auth.User.id')): #security check 4 4 echo $this->__getSupport(); 5 5 endif; … … 13 13 echo $this->Form->hidden('Profile.modified', array('value'=>'now()')); 14 14 echo '<fieldset>'; 15 echo '<legend>'.$ session->read('Auth.User.username') .'\'s '.__('profile', True).'</legend>';15 echo '<legend>'.$this->Session->read('Auth.User.username') .'\'s '.__('profile', True).'</legend>'; 16 16 echo $this->Html->div(Null, '<b>'.$this->data['User']['email'].'</b>'); 17 17 echo $this->Form->input('User.name', array('size' => 35, 'maxlength'=>50)); … … 25 25 echo $this->Form->input('Profile.matricula', array('size'=>20,'maxlength'=>20,'title'=>__('If you are student, write your matricula number', True))); 26 26 27 if ( $ session->read('Auth.User.group_id') < 3): # admin and teachers27 if ( $this->Session->read('Auth.User.group_id') < 3): # admin and teachers 28 28 echo $this->Form->input('Profile.quote', array('size' => 70, 'maxlength' => 150, 'label'=>__('Quote', True))); 29 29 echo $this->Form->input('Profile.name_blog', array('size' => 45, 'maxlength' => 150, 'label'=>__('eduBlog name', True)));
Note: See TracChangeset
for help on using the changeset viewer.
