Changeset 617 for trunk/app/views/vclassrooms/show.ctp
- Timestamp:
- 07/01/08 19:06:58 (5 months ago)
- Files:
-
- 1 modified
-
trunk/app/views/vclassrooms/show.ctp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/vclassrooms/show.ctp
r607 r617 1 1 <?php 2 //exit(debug($data));2 //exit(debug($data)); 3 3 echo $javascript->link('fckeditor/fckeditor'); 4 4 5 5 echo '<h1>' . $data['Vclassroom']['name'] . '</h1>'; 6 6 7 7 if ( $belongs === true ): 8 8 echo $html->para(null, __('Welcome', true) . '!<b> '. $session->read('Auth.User.username') .'</b>'); … … 16 16 17 17 // Forums 18 if ( count($data['Forum']) > 0):18 if ( isset($data['Forum']) && count($data['Forum']) > 0): 19 19 echo $html->div('titentry', 'Forums'); 20 20 … … 25 25 26 26 // Tests 27 if ( count($data['Test']) > 0):27 if ( isset($data['Test']) && count($data['Test']) > 0): 28 28 echo $html->div('titentry', __('Quizz Tests', true)); 29 29 … … 34 34 35 35 // Webquests 36 if ( count($data['Webquest']) > 0):36 if ( isset($data['Webquest']) && count($data['Webquest']) > 0): 37 37 echo $html->div('titentry', 'Webquests'); 38 38 … … 42 42 endif; 43 43 44 if ( count($data['Treasure']) > 0):44 if ( isset($data['Treasure']) && count($data['Treasure']) > 0): 45 45 echo $html->div('titentry', __('Treasure Hunts', true)); 46 46 … … 83 83 echo $form->hidden('UsersVclassroom.vclassroom_id', array('value'=>$data['Vclassroom']['id'])); 84 84 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/", 86 86 "update"=>"updater", 87 87 "loading" => "Element.show('charging');Element.hide('updater')",
