Changeset 445 for trunk/app/views/vclassrooms/show.ctp
- Timestamp:
- 05/02/08 13:22:37 (8 months ago)
- Files:
-
- 1 modified
-
trunk/app/views/vclassrooms/show.ctp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/vclassrooms/show.ctp
r441 r445 1 1 <?php 2 2 //exit(debug($data)); 3 ?> 4 <h2>Classrooms</h2> 5 <div id="charging" style="display:none;"><?php echo $html->image('static/loading.gif', array("alt"=>"Loading")); ?></div> 6 <?php 7 echo '<h1>' . $data['Vclassroom']['name'] . '</h1>'; 3 echo $javascript->link('fckeditor/fckeditor'); 4 5 6 echo '<h1>' . $data['Vclassroom']['name'] . '</h1>'; 8 7 9 $auth = false;8 $auth = false; 10 9 11 if ( $session->check('vclassrooms') )12 {10 if ( $session->check('vclassrooms') ) 11 { 13 12 $auth = ( in_array($data['Vclassroom']['id'], $session->read('vclassrooms'))) ? true : false; // students belongs this vclass ? 14 }13 } 15 14 16 15 if ( $auth === true ) … … 60 59 } 61 60 } 61 echo $ajax->form(); 62 63 echo $form->hidden('Participation.vclassroom_id', array('value'=>$data['Vclassroom']['id'])); 64 echo $ajax->submit('Compose participation ', array("url" => "/vclassrooms/participation/", 65 "update"=>"setform", 66 "loading" => "Element.show('charging');Element.hide('setform')", 67 "complete" => "Element.hide('charging');Effect.Appear('setform')" 68 )); 69 echo '</form>'; 70 // empty ajax div 71 echo $ajax->div('setform') . $ajax->divEnd('setform'); 62 72 } 63 73 … … 83 93 } 84 94 ?> 95 <div id="charging" style="display:none;"><?php echo $html->image('static/loading.gif', array("alt"=>"Loading")); ?></div>
