Show
Ignore:
Timestamp:
05/02/08 13:22:37 (8 months ago)
Author:
aarkerio
Message:

New hobbit edublog style

Files:
1 modified

Legend:

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

    r441 r445  
    11<?php 
    22//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>'; 
     3echo $javascript->link('fckeditor/fckeditor');  
     4 
     5 
     6 echo  '<h1>' . $data['Vclassroom']['name']      . '</h1>'; 
    87   
    9   $auth = false; 
     8 $auth = false; 
    109 
    11   if ( $session->check('vclassrooms') ) 
    12   { 
     10 if ( $session->check('vclassrooms') ) 
     11 { 
    1312     $auth = ( in_array($data['Vclassroom']['id'], $session->read('vclassrooms'))) ? true : false;  // students belongs this vclass ? 
    14   } 
     13 } 
    1514 
    1615  if ( $auth === true ) 
     
    6059       } 
    6160     } 
     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');  
    6272  } 
    6373 
     
    8393   } 
    8494?> 
     95<div id="charging" style="display:none;"><?php echo $html->image('static/loading.gif', array("alt"=>"Loading")); ?></div>