Show
Ignore:
Timestamp:
03/26/08 16:42:32 (10 months ago)
Author:
aarkerio
Message:

Improvements on vclassrooms

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/ecourses/admin_vclassrooms.ctp

    r301 r350  
    66echo $html->getCrumbs(' / ');  
    77 
    8 echo '<div class="title_section">Groups on ' . $data['Ecourse']['title'] . '</div>'; 
    9 ?> 
     8echo $html->div('title_section', 'Virtual clasrooms  on ' . $data['Ecourse']['title'] . ' e-Course'); 
    109 
    11 <p> 
    12 <?php 
    13  echo  $html->link($html->image('static/vgroups.gif', array("alt"=>"Add new group", "title"=>"Add new group")),  '/admin/vclassrooms/add/'.$data['Ecourse']['id'], null, null, false); 
    14 ?> 
    15 </p> 
    1610 
    17 <?php 
     11 echo  $html->para(null, $html->link($html->image('static/vgroups.gif', array("alt"=>"Add new group", "title"=>"Add new group")),  '/admin/vclassrooms/add/'.$data['Ecourse']['id'], null, null, false)); 
     12 
     13if ( count($data['Vclassroom']) < 1 ) 
     14{ 
     15  echo $html->div('notice', 'No classrooms yet'); 
     16} 
     17 
    1818foreach ($data['Vclassroom'] as $val) 
    1919{ 
    2020 $s = ($val['status'] == 1) ? 'Actived' : ' No actived'; 
    2121 
    22  echo '<div style="padding:6px 3px 28px 4px;margin:10px 0 5px 0;border:1px dotted gray;">'; 
    23       echo '<div class="butonright">' .$gags->sendEdit($val['id'], 'vclassrooms') . '</div>'; 
    24       echo $html->link($val['name'], '/admin/vclassrooms/members/'.$val['id']); 
    25       echo '<p style="margin-left:15px;">Status: '. $s  . '</p>'; 
    26       echo '<div class="butonright">'. $gags->confirmDel($val['id'], 'vclassrooms') .'</div>'; 
    27  echo '</div>'; 
     22      $tmp  =  $html->div('butonright', $gags->sendEdit($val['id'], 'Vclassroom')); 
     23      $tmp .=  $html->link($val['name'], '/admin/vclassrooms/members/'.$val['id']); 
     24      $tmp .=  $html->para(null, 'Status: '. $html->link($s, '/admin/vclassroom/change/'.$val['id'].'/'.$val['status'])); 
     25      $tmp .=  $html->div('butonright', $gags->confirmDel($val['id'], 'Vclassroom')); 
     26 
     27      echo $html->div('spaced', $tmp); 
    2828} 
    2929?>