Show
Ignore:
Timestamp:
07/01/08 19:06:58 (5 months ago)
Author:
aarkerio
Message:

Little fixes

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/vclassrooms/show.ctp

    r607 r617  
    11<?php 
    2  //exit(debug($data)); 
     2//exit(debug($data)); 
    33 echo $javascript->link('fckeditor/fckeditor');  
    44 
    55 echo  '<h1>' . $data['Vclassroom']['name'] . '</h1>'; 
    6    
     6    
    77 if ( $belongs === true ): 
    88     echo  $html->para(null, __('Welcome', true) . '!<b> '. $session->read('Auth.User.username') .'</b>'); 
     
    1616 
    1717     //  Forums 
    18      if ( count($data['Forum']) > 0): 
     18     if ( isset($data['Forum']) && count($data['Forum']) > 0): 
    1919        echo $html->div('titentry', 'Forums'); 
    2020 
     
    2525     
    2626    // Tests  
    27     if ( count($data['Test']) > 0): 
     27    if ( isset($data['Test']) && count($data['Test']) > 0): 
    2828       echo $html->div('titentry', __('Quizz Tests', true)); 
    2929 
     
    3434 
    3535    // Webquests 
    36     if ( count($data['Webquest']) > 0): 
     36    if ( isset($data['Webquest']) && count($data['Webquest']) > 0): 
    3737       echo $html->div('titentry', 'Webquests'); 
    3838 
     
    4242    endif; 
    4343 
    44     if ( count($data['Treasure']) > 0): 
     44    if ( isset($data['Treasure']) && count($data['Treasure']) > 0): 
    4545       echo $html->div('titentry', __('Treasure Hunts', true)); 
    4646 
     
    8383     echo $form->hidden('UsersVclassroom.vclassroom_id', array('value'=>$data['Vclassroom']['id'])); 
    8484     echo $form->input('UsersVclassroom.code', array('size' => 6, 'maxlength'=>6, 'title'=>'Secret code', 'between'=>': ')); 
    85      echo $ajax->submit(__('Join to this class', true).$session->read('Auth.User.username'), array("url" => "/vclassrooms/jointoclass/",  
     85     echo $ajax->submit(__('Join to this class', true).' '.$session->read('Auth.User.username'), array("url" => "/vclassrooms/jointoclass/",  
    8686                                         "update"=>"updater", 
    8787                                         "loading" => "Element.show('charging');Element.hide('updater')",