Changeset 2486 for trunk/app/views/lessons/view.ctp
- Timestamp:
- 08/27/10 17:14:12 (21 months ago)
- File:
-
- 1 edited
-
trunk/app/views/lessons/view.ctp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/lessons/view.ctp
r2470 r2486 9 9 10 10 if ( $data['Lesson']['disc'] == 1 ): # is the comments in this lesson actived by blogger? 11 if ( $ session->check('Auth.User') ): # if user logged, anchor to textarea11 if ( $this->Session->check('Auth.User') ): # if user logged, anchor to textarea 12 12 echo $this->Html->div(null, $this->Html->image('static/comment.gif', array('alt'=>'Annotations')) . 13 13 ' '. __('Comments', True).':', array('id'=>'comments')); … … 42 42 43 43 # Teacher buttons 44 if ( $ session->read('Auth.User.id') && $blogger['User']['id'] == $session->read('Auth.User.id')): # you are teacher so delete button44 if ( $this->Session->read('Auth.User.id') && $blogger['User']['id'] == $this->Session->read('Auth.User.id')): # you are teacher so delete button 45 45 echo $this->Html->div(Null); 46 46 $msg = __('Are you sure to want to delete this?', True); … … 67 67 echo $this->Form->hidden('Annotation.lesson_id', array('value'=> $data['Lesson']['id'])); 68 68 echo $this->Form->hidden('Annotation.blogger_id', array('value'=> $data['Lesson']['user_id'])); 69 if ( $ session->check('Auth.User') ):69 if ( $this->Session->check('Auth.User') ): 70 70 ?> <fieldset> 71 71 <legend id="new_comment"><?php __('New Comment', True);?></legend> 72 72 <?php 73 echo $this->Form->hidden('Annotation.user_id', array('value' => $ session->read('Auth.User.id')));74 echo $this->Form->hidden('Annotation.username', array('value' => $ session->read('Auth.User.username')));75 echo $ session->read('Auth.User.username') . ' '. __('writes', True) .' ';73 echo $this->Form->hidden('Annotation.user_id', array('value' => $this->Session->read('Auth.User.id'))); 74 echo $this->Form->hidden('Annotation.username', array('value' => $this->Session->read('Auth.User.username'))); 75 echo $this->Session->read('Auth.User.username') . ' '. __('writes', True) .' '; 76 76 else: 77 77 # show captcha if anonymous user and discution is enabled 78 #debug($ session->read());78 #debug($this->Session->read()); 79 79 echo $this->Html->image($this->webroot.'annotations/captcha/', array('id'=>'captcha', 'alt'=>'CAPTCHA Image')); 80 80 $lbl = __('All letters are vowels', True);
Note: See TracChangeset
for help on using the changeset viewer.
