Changeset 2486
- Timestamp:
- 08/27/10 17:14:12 (18 months ago)
- Location:
- trunk/app/views
- Files:
-
- 83 edited
-
acquaintances/admin_listing.ctp (modified) (1 diff)
-
catfaqs/admin_edit.ctp (modified) (1 diff)
-
catforums/admin_listing.ctp (modified) (1 diff)
-
catglossaries/admin_edit.ctp (modified) (1 diff)
-
chats/admin_record.ctp (modified) (1 diff)
-
collections/admin_add.ctp (modified) (1 diff)
-
collections/admin_edit.ctp (modified) (1 diff)
-
collections/search.ctp (modified) (1 diff)
-
colleges/admin_edit.ctp (modified) (1 diff)
-
colleges/calendar.ctp (modified) (1 diff)
-
comments/admin_edit.ctp (modified) (1 diff)
-
comments/admin_listing.ctp (modified) (1 diff)
-
ecourses/admin_assign.ctp (modified) (1 diff)
-
ecourses/admin_edactivity.ctp (modified) (2 diffs)
-
ecourses/admin_edit.ctp (modified) (2 diffs)
-
ecourses/admin_wzdone.ctp (modified) (1 diff)
-
ecourses/admin_wzdthree.ctp (modified) (1 diff)
-
ecourses/admin_wzdtwo.ctp (modified) (1 diff)
-
elements/chat_messages.ctp (modified) (1 diff)
-
elements/chkmsg.ctp (modified) (1 diff)
-
elements/navmenu.ctp (modified) (1 diff)
-
elements/new.ctp (modified) (2 diffs)
-
elements/one_entry.ctp (modified) (2 diffs)
-
elements/permissions.ctp (modified) (1 diff)
-
elements/poll.ctp (modified) (1 diff)
-
elements/toplink.ctp (modified) (1 diff)
-
elements/userform.ctp (modified) (3 diffs)
-
entries/admin_comments.ctp (modified) (1 diff)
-
entries/admin_edit.ctp (modified) (1 diff)
-
entries/admin_general.ctp (modified) (1 diff)
-
entries/admin_listing.ctp (modified) (1 diff)
-
entries/admin_start.ctp (modified) (14 diffs)
-
faqs/admin_edit.ctp (modified) (1 diff)
-
forums/display.ctp (modified) (2 diffs)
-
galleries/admin_listing.ctp (modified) (1 diff)
-
galleries/display.ctp (modified) (1 diff)
-
gaps/admin_edit.ctp (modified) (1 diff)
-
groups/admin_edit.ctp (modified) (1 diff)
-
images/admin_listing.ctp (modified) (1 diff)
-
layouts/admin.ctp (modified) (1 diff)
-
layouts/gray.ctp (modified) (2 diffs)
-
layouts/school.ctp (modified) (1 diff)
-
lessons/admin_comments.ctp (modified) (1 diff)
-
lessons/admin_edit.ctp (modified) (2 diffs)
-
lessons/admin_listing.ctp (modified) (1 diff)
-
lessons/view.ctp (modified) (3 diffs)
-
messages/admin_add.ctp (modified) (1 diff)
-
messages/admin_compose.ctp (modified) (1 diff)
-
messages/admin_listing.ctp (modified) (1 diff)
-
messages/display.ctp (modified) (2 diffs)
-
messages/message.ctp (modified) (2 diffs)
-
newsletters/admin_edit.ctp (modified) (2 diffs)
-
newsletters/display.ctp (modified) (1 diff)
-
participations/admin_add.ctp (modified) (1 diff)
-
podcasts/admin_edit.ctp (modified) (1 diff)
-
podcasts/admin_listing.ctp (modified) (1 diff)
-
polls/admin_add.ctp (modified) (1 diff)
-
questions/admin_edit.ctp (modified) (1 diff)
-
quotes/admin_listing.ctp (modified) (1 diff)
-
shares/admin_listing.ctp (modified) (1 diff)
-
tests/admin_edit.ctp (modified) (1 diff)
-
tests/admin_questions.ctp (modified) (1 diff)
-
tests/chk.ctp (modified) (1 diff)
-
tests/read.ctp (modified) (1 diff)
-
tests/result.ctp (modified) (2 diffs)
-
tests/view.ctp (modified) (1 diff)
-
topics/admin_edit.ctp (modified) (1 diff)
-
topics/display.ctp (modified) (1 diff)
-
topics/reply.ctp (modified) (2 diffs)
-
treasures/admin_edit.ctp (modified) (2 diffs)
-
treasures/view.ctp (modified) (2 diffs)
-
users/admin_listing.ctp (modified) (1 diff)
-
users/admin_search.ctp (modified) (2 diffs)
-
users/directory.ctp (modified) (1 diff)
-
users/register.ctp (modified) (1 diff)
-
vclassrooms/admin_edit.ctp (modified) (1 diff)
-
vclassrooms/admin_share.ctp (modified) (1 diff)
-
vclassrooms/chat.ctp (modified) (2 diffs)
-
vclassrooms/show.ctp (modified) (5 diffs)
-
webquests/admin_get.ctp (modified) (1 diff)
-
webquests/view.ctp (modified) (2 diffs)
-
wikis/admin_listing.ctp (modified) (1 diff)
-
wikis/edit.ctp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/acquaintances/admin_listing.ctp
r2419 r2486 21 21 echo $this->Html->div('title_section', 22 22 $this->Html->image('ylinks.png',array('style'=>'width:35px;margin-right:6px;','alt'=>__('Usefull links',True),'title'=>__('Usefull links',True))) 23 .' '.$ session->read('Auth.User.username') . '\'s '.__('Usefull links', True));23 .' '.$this->Session->read('Auth.User.username') . '\'s '.__('Usefull links', True)); 24 24 25 25 # Here beggins the cool stuff -
trunk/app/views/catfaqs/admin_edit.ctp
r2450 r2486 1 1 <?php 2 2 #die(debug($this->data)); 3 $helps = $ session->read('Auth.User.helps'); # helps enabled ?3 $helps = $this->Session->read('Auth.User.helps'); # helps enabled ? 4 4 5 5 if ( !isset($add) ): # load only if not is an ajax call -
trunk/app/views/catforums/admin_listing.ctp
r2259 r2486 64 64 'alt'=>__('Edit', True), 'title'=>__('Edit', True))), 65 65 '/admin/forums/edit/'.$v['catforum_id'].'/'.$v['id'], array('escape'=>False)) .'</td>'; 66 echo '<td>'.$this->Html->link($v['title'], '/forums/display/'.$ session->read('Auth.User.username').'/'.$v['id'].'/'.$v['vclassroom_id']) .'</td>';66 echo '<td>'.$this->Html->link($v['title'], '/forums/display/'.$this->Session->read('Auth.User.username').'/'.$v['id'].'/'.$v['vclassroom_id']) .'</td>'; 67 67 echo '<td colspan="2"> '. $v['description'] .' </td>'; 68 68 echo '<td>'. $this->Html->link($this->Html->image($img, array('width'=>'14px', 'alt'=>$st, 'title'=>$st)), -
trunk/app/views/catglossaries/admin_edit.ctp
r2420 r2486 1 1 <?php 2 $helps = $ session->read('Auth.User.helps'); # helps enabled ?2 $helps = $this->Session->read('Auth.User.helps'); # helps enabled ? 3 3 $this->Html->addCrumb('Control Tools', '/admin/entries/start'); 4 4 $this->Html->addCrumb(__('Glossaries', True), '/admin/catglossaries/listing'); -
trunk/app/views/chats/admin_record.ctp
r2473 r2486 2 2 echo $this->set('title_for_layout', __('Chat Record', True)); 3 3 #die(debug($msgs)); 4 $helps = $ session->read('Auth.User.helps'); # helps enabled4 $helps = $this->Session->read('Auth.User.helps'); # helps enabled 5 5 echo $this->Html->image('static/chat_logo.jpg', array('alt'=>'Chat')); 6 6 echo '<h2>'.__('All chats in vClassroom', True).': '.$data['Vclassroom']['name'].'</h2>'; -
trunk/app/views/collections/admin_add.ctp
r2450 r2486 4 4 5 5 #die(debug($data)); 6 $helps = $ session->read('Auth.User.helps'); # helps enabled6 $helps = $this->Session->read('Auth.User.helps'); # helps enabled 7 7 $this->Html->addCrumb('Control Panel', '/admin/entries/start'); 8 8 $this->Html->addCrumb(__('Collections', True), '/admin/collections/listing'); -
trunk/app/views/collections/admin_edit.ctp
r2248 r2486 1 1 <?php 2 $helps = $ session->read('Auth.User.helps'); # helps enabled2 $helps = $this->Session->read('Auth.User.helps'); # helps enabled 3 3 $this->Html->addCrumb('Control Panel', '/admin/entries/start'); 4 4 $this->Html->addCrumb(__('Collections', True), '/admin/collections/listing'); -
trunk/app/views/collections/search.ctp
r2450 r2486 12 12 $th = array ( __('Title', True), __('Author', True), __('Copies', True), __('Category', True), __('Clasification', True)); 13 13 14 if ( $ session->read('Auth.User') ):14 if ( $this->Session->read('Auth.User') ): 15 15 #array_push($th, __('Request', True)); 16 16 $logged = True; -
trunk/app/views/colleges/admin_edit.ctp
r2417 r2486 16 16 echo $this->Form->input('College.name', array('size' => 60, 'class'=>'required')); 17 17 echo $this->Form->input('College.description', array('type'=>'textarea', 'cols' => 60, 'rows' => 3, 'class'=>'required')); 18 echo $ck->load('CollegeDescription', 'Karamelo', $ session->read('Auth.User.lang'));18 echo $ck->load('CollegeDescription', 'Karamelo', $this->Session->read('Auth.User.lang')); 19 19 echo $this->Form->input('College.email', array('size' => 40, 'maxlength'=>60)); 20 20 echo $this->Form->input('College.twitter', array('size' => 9, 'maxlength'=>60)); -
trunk/app/views/colleges/calendar.ctp
r2450 r2486 8 8 echo $this->Html->div(null, null, array('style'=>'margin:10px auto;text-align:center;')); 9 9 $title = 'Calendario '.$data['College']['name']; 10 $lang = $ session->check('Auth') ? $session->read('Auth.User.lang') : 'es';10 $lang = $this->Session->check('Auth') ? $this->Session->read('Auth.User.lang') : 'es'; 11 11 ?> 12 12 <iframe src="http://www.google.com/calendar/embed?title=<?php echo $title;?>%20&height=600&wkst=1&bgcolor=%23FFFFFF&hl=<?php echo $lang; ?>&src=<?php echo $data['College']['gcalendar_id'];?>&color=%232952A3&ctz=America%2FMexico_City" style=" border-width:0 " width="600" height="600" frameborder="0" scrolling="no"></iframe> -
trunk/app/views/comments/admin_edit.ctp
r2248 r2486 14 14 <?php 15 15 echo $this->Form->input('Comment.comment', array('cols'=>80, 'rows'=>65 'label' => __('Comment', True), 'type'=>'textarea')); 16 echo $ck->load('CommentComment', 'Karamelo', $ session->read('Auth.User.lang'), 700, 300);16 echo $ck->load('CommentComment', 'Karamelo', $this->Session->read('Auth.User.lang'), 700, 300); 17 17 echo $this->Form->end(__('Save', True)); 18 18 ?> -
trunk/app/views/comments/admin_listing.ctp
r2369 r2486 85 85 86 86 #Start the block 87 echo __('Entry', True) . ': '.$this->Html->link($v['Entry']['title'], '/entries/view/'.$ session->read('Auth.User.username').'/'.$v['Entry']['id'], array('target'=>'_blank')) . '<br /><br />';87 echo __('Entry', True) . ': '.$this->Html->link($v['Entry']['title'], '/entries/view/'.$this->Session->read('Auth.User.username').'/'.$v['Entry']['id'], array('target'=>'_blank')) . '<br /><br />'; 88 88 echo $user . ' ' . __('wrote', true) . ':<br />'; 89 89 echo $this->Html->para(null, nl2br(h($v['Comment']['comment']))); -
trunk/app/views/ecourses/admin_assign.ctp
r2248 r2486 1 1 <?php 2 $helps = $ session->read('Auth.User.helps'); # helps enabled ?2 $helps = $this->Session->read('Auth.User.helps'); # helps enabled ? 3 3 4 4 $this->Html->addCrumb('Control Panel', '/admin/entries/start'); -
trunk/app/views/ecourses/admin_edactivity.ctp
r2248 r2486 4 4 5 5 $edit = isset($this->data['Activity']) ? True : False ; # edit or add form 6 $helps = $ session->read('Auth.User.helps'); # helps enabled ?6 $helps = $this->Session->read('Auth.User.helps'); # helps enabled ? 7 7 8 8 if ( $edit ): … … 60 60 61 61 # Ck stuff 62 echo $ck->load('ActivityActivity', 'Basic', $ session->read('Auth.User.lang'), 800, 150);63 echo $ck->load('ActivityNotes', 'Basic', $ session->read('Auth.User.lang'), 800, 150);62 echo $ck->load('ActivityActivity', 'Basic', $this->Session->read('Auth.User.lang'), 800, 150); 63 echo $ck->load('ActivityNotes', 'Basic', $this->Session->read('Auth.User.lang'), 800, 150); 64 64 ?> 65 65 </div> -
trunk/app/views/ecourses/admin_edit.ctp
r2248 r2486 1 1 <?php 2 $helps = $ session->read('Auth.User.helps'); # helps enabled ?2 $helps = $this->Session->read('Auth.User.helps'); # helps enabled ? 3 3 echo $this->Html->script('ckeditor/ckeditor'); 4 4 … … 46 46 echo $gags->helps('Describa el curso, las horas de duración, asi como los objetivos, la audiencia a la que va dirigida, y el temario', $helps, True); 47 47 echo $this->Form->input('Ecourse.description', array('type'=>'textarea','cols'=>40, 'rows'=>4,'label'=>__('Description', True))); 48 echo $ck->load('EcourseDescription', 'Karamelo', $ session->read('Auth.User.lang'));48 echo $ck->load('EcourseDescription', 'Karamelo', $this->Session->read('Auth.User.lang')); 49 49 ?> 50 50 </td></tr> -
trunk/app/views/ecourses/admin_wzdone.ctp
r2248 r2486 1 1 <?php 2 $helps = $ session->read('Auth.User.helps'); # helps enabled ?2 $helps = $this->Session->read('Auth.User.helps'); # helps enabled ? 3 3 echo $this->Form->create('Ecourse', array('url'=>$this->here)); 4 4 ?> -
trunk/app/views/ecourses/admin_wzdthree.ctp
r2248 r2486 1 1 <?php 2 $helps = $ session->read('Auth.User.helps'); # helps enabled ?2 $helps = $this->Session->read('Auth.User.helps'); # helps enabled ? 3 3 echo $this->Form->create('Ecourse', array('url'=>$this->here)); 4 4 ?> -
trunk/app/views/ecourses/admin_wzdtwo.ctp
r2248 r2486 3 3 <legend><?php __('Step Two'); ?></legend> 4 4 <?php 5 $helps = $ session->read('Auth.User.helps'); # helps enabled ?5 $helps = $this->Session->read('Auth.User.helps'); # helps enabled ? 6 6 #debug($this->data); 7 7 echo $this->Html->div('wizard'); -
trunk/app/views/elements/chat_messages.ctp
r2473 r2486 1 1 <?php 2 2 #debug($msgs); 3 $user_id = $ session->read('Auth.User.id'); # easier to read and faster3 $user_id = $this->Session->read('Auth.User.id'); # easier to read and faster 4 4 $msgs = array_reverse($msgs); 5 5 foreach ($msgs as $m): -
trunk/app/views/elements/chkmsg.ctp
r2248 r2486 2 2 $new_message = $this->requestAction('messages/chkMsg'); 3 3 $img = ($new_message != False) ? 'static/mail.png' : 'static/mailgray.png'; 4 $url = ( $ session->read('Auth.User.group_id') > 2 ) ? '/messages/listing': '/admin/messages/listing';4 $url = ( $this->Session->read('Auth.User.group_id') > 2 ) ? '/messages/listing': '/admin/messages/listing'; 5 5 echo $this->Html->link($this->Html->image($img, array('alt'=>__('Messages', True), 'title'=>__('Messages', True))), $url,array('escape'=>False)) . ' | '; 6 6 ?> -
trunk/app/views/elements/navmenu.ctp
r2248 r2486 9 9 $this->Html->link(__('Contact', True), '/messages/message/'.$blogger['User']['username']) 10 10 ); 11 if ( $ session->check('Auth.User') and ( $session->read('Auth.User.group_id') < 3 ) ):11 if ( $this->Session->check('Auth.User') and ( $this->Session->read('Auth.User.group_id') < 3 ) ): 12 12 array_push($buttons, $this->Html->link(__('Admin Panel', True), '/admin/entries/start')); 13 13 endif; 14 14 15 if ( $ session->check('Auth.User') ):15 if ( $this->Session->check('Auth.User') ): 16 16 array_push($buttons, $this->Html->link(__('Logout', True), '/users/logout')); 17 17 endif; -
trunk/app/views/elements/new.ctp
r2248 r2486 47 47 endforeach; 48 48 echo '</div>'; 49 if ( $ session->check('Auth.User') ):49 if ( $this->Session->check('Auth.User') ): 50 50 echo $this->Form->create('Discussion', array('action'=>'add')); 51 51 echo $this->Form->hidden('Discussion.new_id', array('value'=>$data['News']['id'])); … … 56 56 <?php 57 57 echo $this->Form->input('Discussion.comment', array('type'=>'textarea', 'between'=>'<br />', 'cols'=>60, 'rows'=>10, 58 'label'=>'<b>'.$ session->read('Auth.User.username') .'</b> '. __('write', True) ));58 'label'=>'<b>'.$this->Session->read('Auth.User.username') .'</b> '. __('write', True) )); 59 59 echo $this->Form->end(__('Send comment', True)); 60 60 else: -
trunk/app/views/elements/one_entry.ctp
r2327 r2486 59 59 e($this->Html->para(null, nl2br(h($v['comment'])))); #we don't wanna XSS so escape comments 60 60 e('<span class="small" style="font-size:7pt;font-weight:bold;">' . $v['created'] . '</span>'); 61 if ( $ session->check('Auth.User') and $session->check('Auth.User.id') == $blogger['User']['id']): # teacher see his/her own blog61 if ( $this->Session->check('Auth.User') and $this->Session->check('Auth.User.id') == $blogger['User']['id']): # teacher see his/her own blog 62 62 $msg = __('Are you sure to want to delete this?', True); 63 63 echo $this->Html->div(Null); … … 77 77 e($this->Form->hidden('Comment.entry_id', array('value'=>$entry_id))); 78 78 e($this->Form->hidden('Comment.blogger_id', array('value'=> $val['Entry']['user_id']))); 79 if ( $ session->check('Auth.User') ): # user is logged in ?>79 if ( $this->Session->check('Auth.User') ): # user is logged in ?> 80 80 <fieldset> 81 81 <legend id="new_comment"><?php __('New Comment'); ?></legend> 82 82 <?php 83 echo $ session->read('Auth.User.username') . ' '. __('writes', True) .' ';83 echo $this->Session->read('Auth.User.username') . ' '. __('writes', True) .' '; 84 84 else: 85 85 # show captcha if anonymous user and discution is enabled 86 #debug($ session->read());86 #debug($this->Session->read()); 87 87 echo $this->Html->image($this->webroot.'comments/captcha/', array('id'=>'captcha', 'alt'=>'CAPTCHA Image')); 88 88 echo $this->Form->input('Comment.captcha', array('size'=>10,'maxlenbgth'=>10, 'between'=>':<br />','label'=>__('Enter characters showing up',True))); -
trunk/app/views/elements/permissions.ctp
r2248 r2486 9 9 __('Current time', True).': <b>'.date("F d, Y H:i:s", time()).'</b>'; 10 10 e($this->Html->para(null, '<h1>'.__('Out of date', True).'</h1> '.$d)); 11 if ( $kandie_user_id == $ session->read('Auth.User.id')):11 if ( $kandie_user_id == $this->Session->read('Auth.User.id')): 12 12 $img = $this->Html->image('admin/icon_jigsaw.png', array('alt'=>__('Kandies Manager', True), 'title'=>__('Kandies Manager', True), 'style'=>'margin:0')); 13 13 echo $this->Html->para(null, -
trunk/app/views/elements/poll.ctp
r2428 r2486 5 5 echo $gags->ajaxDiv('add_pollrow'); 6 6 $poll = $this->requestAction('polls/poll'); 7 $poll_id = $ session->read('poll_id');7 $poll_id = $this->Session->read('poll_id'); 8 8 #die(debug($poll)); 9 9 $question = $this->Html->para('negrita', $poll['Poll']['question'], array('style'=>'text-align:left;')); -
trunk/app/views/elements/toplink.ctp
r2248 r2486 2 2 <?php 3 3 echo $this->Html->link(__('Home', True), '/') . ' | '; 4 if ( $ session->check('Auth.User') ):4 if ( $this->Session->check('Auth.User') ): 5 5 echo '<span style="font-size:7pt;color:#ffe400;padding-right:3px">'.__('logged_in', True).' <b> '; 6 echo $ session->read('Auth.User.username') .'</b></span>| '.$this->Html->link(__('Logout', True), '/users/logout') . ' | ';6 echo $this->Session->read('Auth.User.username') .'</b></span>| '.$this->Html->link(__('Logout', True), '/users/logout') . ' | '; 7 7 8 if ( $ session->read('Auth.User.group_id') < 3 ): # the logged user is teacher or admin?8 if ( $this->Session->read('Auth.User.group_id') < 3 ): # the logged user is teacher or admin? 9 9 echo $this->Html->link(__('cPanel', True), '/admin/entries/start') . ' | '; 10 10 endif; 11 11 12 if ( $ session->read('Auth.User.group_id') == 3 ): # logged user is student12 if ( $this->Session->read('Auth.User.group_id') == 3 ): # logged user is student 13 13 echo $this->Html->link(__('My profile', True), '/users/edit'). ' | '; 14 14 endif; -
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))); -
trunk/app/views/entries/admin_comments.ctp
r2258 r2486 23 23 $img = 'static/status_0_icon.png'; 24 24 endif; 25 echo __('Entry', True) . ': '.$this->Html->link($v['Entry']['title'], '/entries/view/'.$ session->read('Auth.User.username').'/'.$v['Entry']['id'], array('target'=>'_blank')) . '<br /><br />';25 echo __('Entry', True) . ': '.$this->Html->link($v['Entry']['title'], '/entries/view/'.$this->Session->read('Auth.User.username').'/'.$v['Entry']['id'], array('target'=>'_blank')) . '<br /><br />'; 26 26 echo $this->Html->link( 27 27 $this->Html->image('avatars/'.$c['User']['avatar'], array('alt'=>$c['User']['username'], 'title'=>$c['User']['username'])), -
trunk/app/views/entries/admin_edit.ctp
r2482 r2486 26 26 echo $this->Form->input('Entry.body', array('type'=>'textarea', 'cols'=>80, 'rows'=>22, 'label'=>False)); 27 27 echo $this->Html->scriptBlock("$('textarea#EntryBody').ckeditor({ toolbar:'Karamelo', width:800, height:500 });"); 28 #echo $ck->ckAjaxPlugin('EntryBody','Karamelo', $ session->read('Auth.User.lang'), 800, 500);28 #echo $ck->ckAjaxPlugin('EntryBody','Karamelo', $this->Session->read('Auth.User.lang'), 800, 500); 29 29 ?> 30 30 </td></tr> -
trunk/app/views/entries/admin_general.ctp
r2338 r2486 1 1 <?php 2 2 # This is the Welcome message 3 $this->pageTitle = 'Welcome! '. $ session->read('Auth.User.username');3 $this->pageTitle = 'Welcome! '. $this->Session->read('Auth.User.username'); 4 4 echo $this->Html->div('divblock'); 5 5 -
trunk/app/views/entries/admin_listing.ctp
r2481 r2486 40 40 echo $gags->ajaxDiv('list'); 41 41 42 $username = $ session->read('Auth.User.username');42 $username = $this->Session->read('Auth.User.username'); 43 43 if ( count($data) < 1 ): 44 44 echo '<h1>'.__('No entries yet', True) .'</h1>'; -
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)); -
trunk/app/views/faqs/admin_edit.ctp
r2248 r2486 17 17 echo $this->Form->input('Faq.question', array('size' => 40, 'maxlength' => 50, 'label'=>__('Question', True), 'class'=>'required')); 18 18 echo $this->Form->input('Faq.answer', array('cols'=>70, 'rows'=>40, 'type'=>'textarea', 'label' => __('Answer',True))); 19 echo $ck->load('FaqAnswer', 'Karamelo', $ session->read('Auth.User.lang'));19 echo $ck->load('FaqAnswer', 'Karamelo', $this->Session->read('Auth.User.lang')); 20 20 echo $this->Form->input('Faq.status', array('type'=>'checkbox', 'label' => __('Published', True))); 21 21 echo $this->Form->input('Faq.end', array('type'=>'checkbox', 'label' => __('End edition', True))); -
trunk/app/views/forums/display.ctp
r2417 r2486 32 32 else: 33 33 $th = array(__('Read', True), __('Topics', True), __('Replies', True), __('Author', True), __('Views', True), __('Last Post', True)); 34 if ( $blogger['User']['id'] == $ session->read('Auth.User.id')):34 if ( $blogger['User']['id'] == $this->Session->read('Auth.User.id')): 35 35 array_push($th, __('Delete', True)); 36 36 endif; … … 48 48 '<span style="font-size:6pt">'.$time->timeAgoInWords($val['created']) .'</span>' 49 49 ); 50 if ( $blogger['User']['id'] == $ session->read('Auth.User.id')): # delete button50 if ( $blogger['User']['id'] == $this->Session->read('Auth.User.id')): # delete button 51 51 $msg = __('Are you sure to want to delete this?', True); 52 52 $img = $this->Html->link($this->Html->image('static/delete_icon.png', array('width'=>'16px', 'alt'=>__('Delete', True), -
trunk/app/views/galleries/admin_listing.ctp
r2419 r2486 13 13 $gags->sendEdit($val['Gallery']['id'], 'galleries'), 14 14 $this->Html->link($this->Html->image('admin/eye_icon.gif', array("alt"=>"See ". $val['Gallery']['title'], "title"=>"See ". $val['Gallery']['title'])), '#', 15 array("onclick"=>"window.open('/galleries/display/". $ session->read('Auth.User.username') .", null, 'status=1,toolbar=1,scrollbars=1,height=600,width=800';)"), null, null, false),15 array("onclick"=>"window.open('/galleries/display/". $this->Session->read('Auth.User.username') .", null, 'status=1,toolbar=1,scrollbars=1,height=600,width=800';)"), null, null, false), 16 16 $this->Html->link($val['Gallery']['title'], '/admin/photos/listing/'.$val['Gallery']['id']), 17 17 $gags->setStatus($val['Gallery']['status']), -
trunk/app/views/galleries/display.ctp
r2248 r2486 63 63 <p> 64 64 <?php 65 if ( $ session->check('Auth.User') )65 if ( $this->Session->check('Auth.User') ) 66 66 { 67 echo $ session->read('Auth.User.username') . " write:";67 echo $this->Session->read('Auth.User.username') . " write:"; 68 68 69 69 } -
trunk/app/views/gaps/admin_edit.ctp
r2397 r2486 1 1 <?php 2 $helps = $ session->read('Auth.User.helps'); # helps enabled2 $helps = $this->Session->read('Auth.User.helps'); # helps enabled 3 3 $this->Html->addCrumb('Control Panel', '/admin/entries/start'); 4 4 $this->Html->addCrumb(__('Gap filling', True).'s', '/admin/gaps/listing'); -
trunk/app/views/groups/admin_edit.ctp
r2248 r2486 1 1 <?php 2 2 //die( debug( $this->data ) ); 3 if ( $ session->read('Auth.User.group_id') != 1 ):3 if ( $this->Session->read('Auth.User.group_id') != 1 ): 4 4 $this->flash('Error, you are not allowed to be here'); 5 5 endif; -
trunk/app/views/images/admin_listing.ctp
r2358 r2486 69 69 endif; 70 70 echo '<br />'; 71 if ( $ session->read('Auth.User.id') == $val['Image']['user_id'] ): # user is owner image71 if ( $this->Session->read('Auth.User.id') == $val['Image']['user_id'] ): # user is owner image 72 72 echo $this->Form->create('Image', array('action'=>'delete', 'onsubmit'=>"return confirm('$msg')")); 73 73 echo $this->Form->hidden('Image.return', array('value'=>'/admin/images/listing/'.$return)); -
trunk/app/views/layouts/admin.ctp
r2481 r2486 23 23 </div> 24 24 <div style="width:700px;float:left;"> 25 <?php __('logged_in'); ?> <strong><?php echo $ session->read('Auth.User.username'); ?></strong> |25 <?php __('logged_in'); ?> <strong><?php echo $this->Session->read('Auth.User.username'); ?></strong> | 26 26 <?php 27 echo $this->Html->link($ session->read('Auth.User.username') . '\'s blog', '/blog/'. $session->read('Auth.User.username')) . ' | ';27 echo $this->Html->link($this->Session->read('Auth.User.username') . '\'s blog', '/blog/'. $this->Session->read('Auth.User.username')) . ' | '; 28 28 echo $this->Html->link($_SERVER['HTTP_HOST'], '/').' | '; 29 29 echo $this->Html->link(__('My profile', True), '/admin/users/edit') .' | '. $this->Html->link(__('Logout', True), '/users/logout'); -
trunk/app/views/layouts/gray.ctp
r2294 r2486 26 26 window.onload = timedMsg; 27 27 </script> 28 <?php $ session->flash(); ?>28 <?php $this->Session->flash(); ?> 29 29 <!-- Begin Header --> 30 30 <div id="header"> … … 91 91 92 92 93 if ( !$ session->check('Auth.User') ):93 if ( !$this->Session->check('Auth.User') ): 94 94 e($this->Html->para(null, $this->Html->link( 95 95 $this->Html->image('static/login.png', array('alt'=>'Login', 'title'=>'Login')), -
trunk/app/views/layouts/school.ctp
r2352 r2486 82 82 echo $this->element('acquaintances', $blogger); 83 83 84 if ( !$ session->check('Auth.User') ):84 if ( !$this->Session->check('Auth.User') ): 85 85 e($this->Html->para(null, $this->Html->link( 86 86 $this->Html->image('static/login.png', array('alt'=>'Login', 'title'=>'Login')), -
trunk/app/views/lessons/admin_comments.ctp
r2258 r2486 23 23 $img = 'static/status_0_icon.png'; 24 24 endif; 25 echo __('On', True) . ' '.$this->Html->link($v['Lesson']['title'], '/lessons/view/'.$ session->read('Auth.User.username').'/'.$v['Lesson']['id'], array('target'=>'_blank')) . '<br /><br />';25 echo __('On', True) . ' '.$this->Html->link($v['Lesson']['title'], '/lessons/view/'.$this->Session->read('Auth.User.username').'/'.$v['Lesson']['id'], array('target'=>'_blank')) . '<br /><br />'; 26 26 if ( $c['User']['id'] == 2): #comment made by a not logged user 27 27 echo $this->Html->link( -
trunk/app/views/lessons/admin_edit.ctp
r2373 r2486 1 1 <?php 2 $helps = $ session->read('Auth.User.helps'); # helps enabled ?2 $helps = $this->Session->read('Auth.User.helps'); # helps enabled ? 3 3 if (isset($js)): 4 4 echo $this->Html->script( … … 34 34 <?php 35 35 echo $this->Form->input('Lesson.body', array('type'=>'textarea','cols'=>80, 'rows'=>20, 'class'=>'required', 'label'=>False)); 36 echo $ck->load('LessonBody', 'Karamelo',$ session->read('Auth.User.lang') , 800, 600);36 echo $ck->load('LessonBody', 'Karamelo',$this->Session->read('Auth.User.lang') , 800, 600); 37 37 ?> 38 38 </td></tr> -
trunk/app/views/lessons/admin_listing.ctp
r2419 r2486 34 34 $tr = array ( 35 35 $gags->sendEdit($val['Lesson']['id'], 'lessons'), 36 $this->Html->link($val['Lesson']['title'],'/lessons/view/'.$ session->read('Auth.User.username').'/'.$val['Lesson']['id']),36 $this->Html->link($val['Lesson']['title'],'/lessons/view/'.$this->Session->read('Auth.User.username').'/'.$val['Lesson']['id']), 37 37 $this->Html->link($this->Html->image($img, array('width'=>'14px', 'alt'=>$st, 'title'=>$st)), 38 38 '/admin/lessons/change/'.$val['Lesson']['id'] .'/'. $val['Lesson']['status'], array('escape'=>False)), -
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); -
trunk/app/views/messages/admin_add.ctp
r2341 r2486 20 20 echo $gags->ajaxDiv('updater') ; 21 21 22 echo $ session->read('Auth.User.username') . ' '.__('write', True).': <br />';22 echo $this->Session->read('Auth.User.username') . ' '.__('write', True).': <br />'; 23 23 echo $this->Form->input('Message.title', array('size' => 35, 'maxlength' => 50, 'label'=>'Asunto')) . '<br />'; 24 24 if ( isset($data) ): -
trunk/app/views/messages/admin_compose.ctp
r2412 r2486 6 6 <legend><?php __('Compose message'); ?></legend> 7 7 <?php 8 echo $ session->read('Auth.User.username'). ' '. __('write', True).':';8 echo $this->Session->read('Auth.User.username'). ' '. __('write', True).':'; 9 9 echo $this->Form->input('Message.title', array('size' => 27, 'maxlength' => 50, 'label'=>__('Title', True))); 10 10 echo $this->Form->input('Message.body', array('cols'=>30, 'rows'=>10, 'type'=>'textarea', 'label'=>False)); -
trunk/app/views/messages/admin_listing.ctp
r2419 r2486 8 8 echo $this->Html->para(null,$this->Html->link($this->Html->image('admin/compose_on.gif', array('alt'=>__('Compose new message', true), 'title'=>__('Compose new message', true))), '/admin/messages/add', array('escape'=>False))); 9 9 10 if ( $ session->read('Auth.User.group_id') == 1): # if user belongs to admin group10 if ( $this->Session->read('Auth.User.group_id') == 1): # if user belongs to admin group 11 11 echo '<div style="position:absolute;right:300px;top:75px;">'; 12 12 echo $this->Html->link($this->Html->image('admin/message_board.gif', array('alt'=>__('General Message', true), 'title'=>__('General Message', true))), '/admin/messages/general', array('escape'=>False)); -
trunk/app/views/messages/display.ctp
r2334 r2486 31 31 <?php 32 32 echo $this->Form->create(); 33 echo $this->Form->hidden('Message.username', array('value'=> $ session->read('Auth.User.username')));33 echo $this->Form->hidden('Message.username', array('value'=> $this->Session->read('Auth.User.username'))); 34 34 echo $this->Form->hidden('Message.message_id', array('value'=> $data['Message']['id'])); 35 35 echo $this->Form->hidden('Message.user_id', array('value'=> $data['Message']['sender_id'])); … … 38 38 <legend><?php __('Reply'); ?></legend> 39 39 <?php 40 echo $ session->read('Auth.User.username') .' '. __('writes', True).': <br />';40 echo $this->Session->read('Auth.User.username') .' '. __('writes', True).': <br />'; 41 41 42 42 echo $this->Form->input('Message.title', array('size'=>35,'maxlength'=>50,'value'=> 'Re: ' . $data['Message']['title'])) . '<br />'; -
trunk/app/views/messages/message.ctp
r2348 r2486 4 4 echo $this->Html->script(array('ckeditor/ckeditor','jquery.form', 'jquery.CKEditor', 'ckeditor/adapters/jquery')); 5 5 6 if ( $ session->check('Auth.User') ):7 $username = $ session->read('Auth.User.username');6 if ( $this->Session->check('Auth.User') ): 7 $username = $this->Session->read('Auth.User.username'); 8 8 $anonym = 0; 9 9 $url = '/messages/deliver/'; … … 14 14 endif; 15 15 16 if ($blogger['User']['id'] == $ session->read('Auth.User.id')):16 if ($blogger['User']['id'] == $this->Session->read('Auth.User.id')): 17 17 echo $this->Html->para(null, '('.__('Will you send a message to yourself', True).'?)');; 18 18 endif; -
trunk/app/views/newsletters/admin_edit.ctp
r2333 r2486 1 1 <?php 2 $helps = $ session->read('Auth.User.helps'); # helps enabled ?2 $helps = $this->Session->read('Auth.User.helps'); # helps enabled ? 3 3 echo $this->Html->script('ckeditor/ckeditor'); 4 4 … … 27 27 <?php 28 28 echo $this->Form->input('Newsletter.body', array('type'=>'textarea', 'cols'=>60, 'rows'=>17)); 29 echo $ck->load('NewsletterBody', 'Karamelo', $ session->read('Auth.User.lang'), 900, 500);29 echo $ck->load('NewsletterBody', 'Karamelo', $this->Session->read('Auth.User.lang'), 900, 500); 30 30 ?> 31 31 </td> -
trunk/app/views/newsletters/display.ctp
r2436 r2486 15 15 endforeach; 16 16 17 if ( $ session->check('Auth.User') ):17 if ( $this->Session->check('Auth.User') ): 18 18 echo $this->Html->para(null, __('Tip: you can suscribe/usubscribe to newsletter editing your profile.', True), 19 19 array('style'=>'font-weight:bold;padding:7px;border:1px dotted orange')); -
trunk/app/views/participations/admin_add.ctp
r2248 r2486 1 1 <?php 2 $helps = $ session->read('Auth.User.helps'); # helps enabled ?2 $helps = $this->Session->read('Auth.User.helps'); # helps enabled ? 3 3 echo $this->Html->div(Null, Null, array('style'=>'margin:20px 5px 38px 5px;padding:5px;border:1px dotted gray;')); 4 4 echo $this->Html->div(Null, __('Add participation', True), array('style'=>'margin:4px;font-size:12pt;font-weight:bold;')); -
trunk/app/views/podcasts/admin_edit.ctp
r2248 r2486 1 1 <?php 2 $helps = $ session->read('Auth.User.helps'); # helps enabled ?2 $helps = $this->Session->read('Auth.User.helps'); # helps enabled ? 3 3 $this->Html->addCrumb('Control Panel', '/admin/entries/start'); 4 4 $this->Html->addCrumb('Podcasts', '/admin/podcasts/listing'); -
trunk/app/views/podcasts/admin_listing.ctp
r2419 r2486 4 4 echo $this->Html->getCrumbs(' > '); 5 5 6 echo $this->Html->div('title_section', $this->Html->image('ipod.png', array('style'=>'width:35px;margin-right:6px;', 'alt'=>__('Podcasts', true), 'title'=>__('Podcasts', true))).' '.$ session->read('Auth.User.username')."'s Podcasts");6 echo $this->Html->div('title_section', $this->Html->image('ipod.png', array('style'=>'width:35px;margin-right:6px;', 'alt'=>__('Podcasts', true), 'title'=>__('Podcasts', true))).' '.$this->Session->read('Auth.User.username')."'s Podcasts"); 7 7 8 8 echo $this->Html->para(null, $this->Html->link($this->Html->image('actions/new.png', -
trunk/app/views/polls/admin_add.ctp
r2417 r2486 1 1 <?php 2 $helps = $ session->read('Auth.User.helps'); # helps enabled2 $helps = $this->Session->read('Auth.User.helps'); # helps enabled 3 3 if (isset($this->Js)): 4 4 echo $this->Html->script('jquery-validate/jquery.validate'); -
trunk/app/views/questions/admin_edit.ctp
r2248 r2486 1 1 <?php 2 $helps = $ session->read('Auth.User.helps'); # helps enabled2 $helps = $this->Session->read('Auth.User.helps'); # helps enabled 3 3 $this->Html->addCrumb('Control Panel', '/admin/entries/start'); 4 4 $this->Html->addCrumb(__('Tests', True), '/admin/tests/listing'); -
trunk/app/views/quotes/admin_listing.ctp
r2419 r2486 1 1 <?php 2 2 $this->set('title_for_layout', __('Quotes', True)); 3 $helps = $ session->read('Auth.User.helps'); # helps enabled3 $helps = $this->Session->read('Auth.User.helps'); # helps enabled 4 4 #Paginator options for ajax 5 5 $this->Paginator->options(array( -
trunk/app/views/shares/admin_listing.ctp
r2419 r2486 14 14 echo $this->Html->div('title_section', $this->Html->image('mmultimedia.png', array('style'=>'width:35px;margin-right:6px;', 15 15 'alt'=>__('shared files', True), 'title'=>__('shared files', True))).' '. 16 $ session->read('Auth.User.username').'\'s '. __('shared files', True));16 $this->Session->read('Auth.User.username').'\'s '. __('shared files', True)); 17 17 echo $this->Html->para(Null, 18 18 $this->Html->link( -
trunk/app/views/tests/admin_edit.ctp
r2248 r2486 1 1 <?php 2 2 // die(debug($this->data)); 3 $helps = $ session->read('Auth.User.helps'); # helps enabled3 $helps = $this->Session->read('Auth.User.helps'); # helps enabled 4 4 5 5 $this->Html->addCrumb('Control Panel', '/admin/entries/start'); -
trunk/app/views/tests/admin_questions.ctp
r2325 r2486 1 1 <?php 2 $helps = $ session->read('Auth.User.helps'); # helps enabled ?2 $helps = $this->Session->read('Auth.User.helps'); # helps enabled ? 3 3 4 4 $this->Html->addCrumb('Control Panel', '/admin/entries/start'); -
trunk/app/views/tests/chk.ctp
r2248 r2486 3 3 <?php 4 4 //die(print_r($data)); 5 if ( $ session->check('Auth.User') )5 if ( $this->Session->check('Auth.User') ) 6 6 { 7 7 echo '<h1>'. $data['Test']['title'] . '</h1>'; -
trunk/app/views/tests/read.ctp
r2248 r2486 8 8 # student belongs to vclassroom, kandie is in correct date and test has not been answered by student 9 9 if ( $permissions['belongs'] == True and $permissions['chkdate'] == True and $permissions['already'] == False): 10 echo $this->Html->para(Null, 'hi! '.$ session->read('Auth.User.username'), array('style'=>'font-weight:bold;font-size:12pt;'));10 echo $this->Html->para(Null, 'hi! '.$this->Session->read('Auth.User.username'), array('style'=>'font-weight:bold;font-size:12pt;')); 11 11 echo $this->Html->div('title', $blogger['User']['username'] .'s '.__('Quizz Test', True)); 12 12 echo $this->Html->div('mes',__('Start date', True).': '.$linked['sdate']); -
trunk/app/views/tests/result.ctp
r2248 r2486 10 10 11 11 if ( $already === True ): 12 e($this->Html->para('message',$ session->read('Auth.User.username') .' '. __('You have already answered this test', True)));12 e($this->Html->para('message',$this->Session->read('Auth.User.username') .' '. __('You have already answered this test', True))); 13 13 endif; 14 14 … … 19 19 if ( $belongs === True && $already === False): 20 20 echo $this->element('vccrumb', array('blogger'=> $blogger['User']['username'], 'vclassroom_id'=>$vclassroom_id)); 21 echo '<h2>' .$ session->read('Auth.User.username') .'\'s ' . __('results', True).'</h2>';21 echo '<h2>' .$this->Session->read('Auth.User.username') .'\'s ' . __('results', True).'</h2>'; 22 22 echo $this->Html->div('result', __('Percentage success', True).': '.$data['percentage'].'%'); 23 23 echo $this->Html->para(null, __('Your result was', True).' : <b>'.$data['results'].'</b> '.__('from', True).' '.$data['maxpoints'] .' '.__('possible score. Result has been saved, Thanks', True).'!'); -
trunk/app/views/tests/view.ctp
r2380 r2486 11 11 # student belongs to vclassroom, kandie is in correct date and test has not been answered by student 12 12 if ( $permissions['belongs'] == True and $permissions['chkdate'] == True and $permissions['already'] == False): 13 echo $this->Html->para(Null, 'hi! '.$ session->read('Auth.User.username'), array('style'=>'font-weight:bold;font-size:12pt;'));13 echo $this->Html->para(Null, 'hi! '.$this->Session->read('Auth.User.username'), array('style'=>'font-weight:bold;font-size:12pt;')); 14 14 echo $this->Html->para(Null, '<b>Tip</b>:'.__('Avoid data loss, first write and save your answers in a text editor and then copy and paste here', True).'.'); 15 15 echo $this->Html->div('title', $blogger['User']['username'] .'s '.__('Quizz Test', True)); -
trunk/app/views/topics/admin_edit.ctp
r2248 r2486 3 3 echo $this->Form->input('Topic.subject', array('size'=>50, 'maxlength'=>150, 'class'=>'required')); 4 4 echo $this->Form->input('Topic.message', array('rows'=>50, 'columns'=>50, 'type'=>'textarea')); 5 echo $ck->load('TopicMessage', 'Karamelo', $ session->read('Auth.User.lang'));5 echo $ck->load('TopicMessage', 'Karamelo', $this->Session->read('Auth.User.lang')); 6 6 echo $this->Form->input('Topic.status', array('type'=>'checkbox', 'value'=>'1')); 7 7 echo $this->Form->end(__('Save', True)); -
trunk/app/views/topics/display.ctp
r2382 r2486 32 32 echo $this->Html->div('reply'); 33 33 echo $this->Html->div('replytxt', nl2br(h($val['reply']))); 34 if ( $blogger['User']['id'] == $ session->read('Auth.User.id')): # you are teacher so delete button34 if ( $blogger['User']['id'] == $this->Session->read('Auth.User.id')): # you are teacher so delete button 35 35 $msg = __('Are you sure to want to delete this?', True); 36 36 echo $this->Html->link($this->Html->image('static/delete_icon.png',array('width'=>'16px','alt'=>__('Delete', True),'title'=>__('Delete', True))), -
trunk/app/views/topics/reply.ctp
r2370 r2486 1 1 <?php 2 if ( $ session->check('Auth.User') ):2 if ( $this->Session->check('Auth.User') ): 3 3 echo $this->Form->create('Reply', array('action'=>'add')); 4 4 echo $this->Form->hidden('Reply.topic_id', array('value'=>$topic_id)); … … 10 10 <?php 11 11 echo $this->Form->input('Reply.reply', array('type'=>'textarea','between'=>': <br />','label'=>__('Your participation',True),'rows'=>10,'cols'=>50)); 12 echo $ck->load('ReplyReply', 'Basic', $ session->read('Auth.User.lang'), 600, 300);12 echo $ck->load('ReplyReply', 'Basic', $this->Session->read('Auth.User.lang'), 600, 300); 13 13 echo $this->Form->end(__('Send', True)); 14 14 echo '</fieldset>'; -
trunk/app/views/treasures/admin_edit.ctp
r2322 r2486 1 1 <?php 2 $helps = $ session->read('Auth.User.helps'); # helps enabled2 $helps = $this->Session->read('Auth.User.helps'); # helps enabled 3 3 echo $this->Html->script('ckeditor/ckeditor'); 4 4 … … 28 28 <?php 29 29 echo $this->Form->input('Treasure.instructions', array('type'=>'textarea', 'cols'=>80, 'rows'=>25, 'label'=> __('Instructions', True))); 30 echo $ck->load('TreasureInstructions', 'Karamelo', $ session->read('Auth.User.lang'), 800, 600);30 echo $ck->load('TreasureInstructions', 'Karamelo', $this->Session->read('Auth.User.lang'), 800, 600); 31 31 ?> 32 32 </td></tr> -
trunk/app/views/treasures/view.ctp
r2397 r2486 7 7 8 8 if ( $permissions['belongs'] == True and $permissions['chkdate'] == True and $permissions['already'] == False): 9 echo $this->Html->para(null, 'hi! '.$ session->read('Auth.User.username'), array('style'=>'font-weight:bold;font-size:12pt;'));9 echo $this->Html->para(null, 'hi! '.$this->Session->read('Auth.User.username'), array('style'=>'font-weight:bold;font-size:12pt;')); 10 10 echo $this->Html->div('title', $blogger['User']['username'] .'s Treasure Hunt'); 11 11 … … 21 21 echo $this->Form->hidden('ResultTreasure.points', array('value'=>$data['Treasure']['points'])); 22 22 echo $this->Form->input('ResultTreasure.secret', array('size' => 15, 'maxlength'=>15, 'title'=>__('Secret code', True), 'between'=>': ')); 23 echo $this->Js->submit(__('Send final code', True).' '. $ session->read('Auth.User.username'),23 echo $this->Js->submit(__('Send final code', True).' '. $this->Session->read('Auth.User.username'), 24 24 array( 25 25 'url' => array('controller'=>'treasures', 'action'=>'chksw'), -
trunk/app/views/users/admin_listing.ctp
r2419 r2486 43 43 $st = __('Disabled', True); 44 44 endif; 45 $del = $ session->read('Auth.User.group_id') == 1 ? $this->Html->link($this->Html->image('static/delete_icon.png',45 $del = $this->Session->read('Auth.User.group_id') == 1 ? $this->Html->link($this->Html->image('static/delete_icon.png', 46 46 array('alt'=>__('Delete', True),'width'=>'16px', 'title'=>__('Delete', True))), '/admin/users/delete/'.$val['User']['id'],array('escape'=>False), $msg) : ''; # only admins can delete 47 47 if ( $val['User']['id'] == 1 || $val['User']['id'] == 2): 48 48 $del = ''; # user 1 and 2 can't be deleted 49 49 endif; 50 $edit= $ session->read('Auth.User.group_id') == 1 ? $this->Html->link($this->Html->image('static/edit_icon.gif', array('alt'=>__('Edit', True), 'title'=>__('Edit', True))), '/admin/users/add/'.$val['User']['id'], array('escape'=>False)) : '';50 $edit= $this->Session->read('Auth.User.group_id') == 1 ? $this->Html->link($this->Html->image('static/edit_icon.gif', array('alt'=>__('Edit', True), 'title'=>__('Edit', True))), '/admin/users/add/'.$val['User']['id'], array('escape'=>False)) : ''; 51 51 $status = ($val['User']['active'] == 1) ? __('Actived', True) : __('Desactived', True); 52 52 -
trunk/app/views/users/admin_search.ctp
r2484 r2486 26 26 27 27 foreach ($data as $val): 28 $del = ($ session->read('Auth.User.group_id') == 1) ? $gags->confirmDel($val['User']['id'], 'users') : ''; # only admins can delete29 $edit = ($ session->read('Auth.User.group_id') == 1) ? $gags->sendEdit($val['User']['id'], 'users', 'add') : '';28 $del = ($this->Session->read('Auth.User.group_id') == 1) ? $gags->confirmDel($val['User']['id'], 'users') : ''; # only admins can delete 29 $edit = ($this->Session->read('Auth.User.group_id') == 1) ? $gags->sendEdit($val['User']['id'], 'users', 'add') : ''; 30 30 if ($val['User']['active'] == 1): 31 31 $alt = __('Actived', True); … … 35 35 $alt = __('Desactived', True); 36 36 endif; 37 if ( $ session->read('Auth.User.id') != $val['User']['id'] ):37 if ( $this->Session->read('Auth.User.id') != $val['User']['id'] ): 38 38 $stealth = $this->Html->link($this->Html->image('static/icon_key.gif', array('title'=>__('Stealth account', True),'alt'=>__('Stealth account', True))), 39 39 '/admin/users/activities/'.$val['User']['id'], array('onclick'=>"return confirm('".$msg."')", 'escape'=>False)); -
trunk/app/views/users/directory.ctp
r2248 r2486 12 12 foreach ($users as $val): 13 13 echo '<tr><td>'. $val['User']['username'] .'</td> <td>'; 14 if ( $ session->check('Auth')):14 if ( $this->Session->check('Auth')): 15 15 echo $this->Html->link($this->Html->image('phorum.png', array('width'=>'20px', 'title'=>__('Write message',True), 'alt'=>__('Write message',True))), '/messages/message/'. $val['User']['username'], array('escape'=>False)); 16 16 else: -
trunk/app/views/users/register.ctp
r2389 r2486 1 1 <?php 2 if ( $ session->check('Auth.User') ):2 if ( $this->Session->check('Auth.User') ): 3 3 e($this->Html->para(null, __('You are already a member', True))); 4 4 else: -
trunk/app/views/vclassrooms/admin_edit.ctp
r2416 r2486 4 4 $this->set('title_for_layout', 'Virtual Classrooms'); 5 5 6 $helps = $ session->read('Auth.User.helps'); # helps enabled ?6 $helps = $this->Session->read('Auth.User.helps'); # helps enabled ? 7 7 8 8 if (isset($this->Js)): -
trunk/app/views/vclassrooms/admin_share.ctp
r2419 r2486 2 2 #debug($data); 3 3 $this->pageTitle = __('Share', True); 4 $helps = $ session->read('Auth.User.helps'); # helps enabled ?4 $helps = $this->Session->read('Auth.User.helps'); # helps enabled ? 5 5 $this->Html->addCrumb('Control Panel', '/admin/entries/start'); 6 6 $this->Html->addCrumb('vClassrooms', '/admin/vclassrooms/listing'); -
trunk/app/views/vclassrooms/chat.ctp
r2472 r2486 15 15 echo $this->Html->div(null, $this->Html->image('static/chat_logo.jpg', array('alt'=>'Chat Room', 'title'=>'Chat Room')) . 16 16 ' <br />Chat Room '. $data['Vclassroom']['name'], array('style'=>'font-size:12pt;margin:8px;')); 17 $user_id = $ session->read('Auth.User.id'); # easier to read and faster17 $user_id = $this->Session->read('Auth.User.id'); # easier to read and faster 18 18 echo $gags->ajaxDiv('updater'); 19 19 echo $this->element('chat_messages', array('msgs'=>$msgs)); … … 21 21 echo $gags->ajaxDiv('chatters').$gags->divEnd('chatters'); 22 22 23 echo $this->Html->div(Null, $ session->read('Auth.User.username') .' '. __('writes', True));23 echo $this->Html->div(Null, $this->Session->read('Auth.User.username') .' '. __('writes', True)); 24 24 echo $gags->imgLoad('loading'); 25 25 echo $this->Form->create(); -
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; -
trunk/app/views/webquests/admin_get.ctp
r2338 r2486 88 88 echo $this->Html->scriptEnd(); 89 89 if ( $textarea ): 90 #echo $ck->load($WebTextArea, 'Karamelo', $ session->read('Auth.User.lang'), 800, 300);90 #echo $ck->load($WebTextArea, 'Karamelo', $this->Session->read('Auth.User.lang'), 800, 300); 91 91 echo $this->Html->scriptBlock("$('textarea#".$WebTextArea."').ckeditor({ toolbar:'Karamelo', width:800, height:500 });"); 92 92 endif; -
trunk/app/views/webquests/view.ctp
r2248 r2486 5 5 echo $this->element('vccrumb', array('blogger'=> $blogger['User']['username'], 'vclassroom_id'=>$linked['vclassroom_id'])); 6 6 if ( $permissions['belongs'] == True and $permissions['chkdate'] == True and $permissions['already'] == False): 7 echo $this->Html->para(null, 'hi! '.$ session->read('Auth.User.username'), array('style'=>'font-weight:bold;font-size:12pt;'));7 echo $this->Html->para(null, 'hi! '.$this->Session->read('Auth.User.username'), array('style'=>'font-weight:bold;font-size:12pt;')); 8 8 echo $this->Html->div('title_section', $data['Webquest']['title']); 9 9 … … 45 45 echo $this->element('permissions', array('permissions'=>$permissions, 'dates'=>$linked, 'kandie_user_id'=>$blogger['User']['id'])); 46 46 endif; 47 ?> 47 48 # ? > EOF -
trunk/app/views/wikis/admin_listing.ctp
r2419 r2486 32 32 $val['Wiki']['title'], 33 33 $this->Html->link($this->Html->image($img, array('width'=>'14px','alt'=>$st, 'title'=>$st)),'/admin/wikis/change/'.$val['Wiki']['id'].'/'.$val['Wiki']['status'], array('escape'=>False)), 34 $this->Html->link($this->Html->image('static/view-icon.png', array('alt'=>__('See WikiPage', True), 'title'=>__('See WikiPage', True))), '/wikis/view/'.$ session->read('Auth.User.username').'/'.$val['Wiki']['slug'], array('escape'=>False)),34 $this->Html->link($this->Html->image('static/view-icon.png', array('alt'=>__('See WikiPage', True), 'title'=>__('See WikiPage', True))), '/wikis/view/'.$this->Session->read('Auth.User.username').'/'.$val['Wiki']['slug'], array('escape'=>False)), 35 35 $this->Html->link($this->Html->image($img2, array('width'=>'17px','alt'=>$st2, 'title'=>$st2)),'/admin/wikis/public/'.$val['Wiki']['id'].'/'.$val['Wiki']['public'], array('escape'=>False)), 36 36 $gags->confirmDel($val['Wiki']['id'], 'Wiki') -
trunk/app/views/wikis/edit.ctp
r2422 r2486 22 22 23 23 echo '<div style="width:100%;clear:both;">'; 24 if ($blogger['User']['username'] == $ session->read('Auth.User.username')): # blogger = owner24 if ($blogger['User']['username'] == $this->Session->read('Auth.User.username')): # blogger = owner 25 25 echo $this->Html->div('flotter',$this->Form->input('Wiki.status', array('type'=>'checkbox','value'=>'1','label'=> __('Published', True)))); 26 26 echo $this->Html->div('flotter',$this->Form->input('Wiki.public', array('type'=>'checkbox', 'label'=> __('Public', True), 'value'=>'1')));
Note: See TracChangeset
for help on using the changeset viewer.
