Changeset 617 for trunk/app/views/ecourses/admin_vclassrooms.ctp
- Timestamp:
- 07/01/08 19:06:58 (5 months ago)
- Files:
-
- 1 modified
-
trunk/app/views/ecourses/admin_vclassrooms.ctp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/ecourses/admin_vclassrooms.ctp
r396 r617 1 1 <?php 2 // exit(print_r($data));2 //die(debug($data)); 3 3 4 echo $html->addCrumb('Control Tools', '/admin/entries/start');4 echo $html->addCrumb('Control Panel', '/admin/entries/start'); 5 5 echo $html->addCrumb('Courses', '/admin/ecourses/listing'); 6 6 echo $html->getCrumbs(' / '); … … 8 8 $str = 'Classrooms on ' . $data['Ecourse']['title']; 9 9 10 if ( isset( $historic ) ) 11 { 10 if ( isset( $historic ) ): 12 11 $str .= ' (filed)'; 13 } 12 endif; 14 13 15 14 echo $html->div('title_section', $str); 16 15 17 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));18 16 19 if ( count($data['Vclassroom']) < 1 ) 20 { 21 echo $html->div('notice', 'No classrooms yet'); 22 } 17 if ( count($data['Vclassroom']) < 1 ): 18 e($html->div('notice', 'No classrooms yet')); 19 $img = 'admin/vgroups-gray.gif'; 20 else: 21 $img = 'static/vgroups.gif'; 22 endif; 23 23 24 foreach ($data['Vclassroom'] as $val) 25 { 24 echo $html->para(null, $html->link($html->image($img, array("alt"=>"Add new group", "title"=>"Add new group")), '/admin/vclassrooms/add/'.$data['Ecourse']['id'], null, null, false)); 25 26 27 foreach ($data['Vclassroom'] as $val): 26 28 $s = ($val['status'] == 1) ? 'Enabled' : 'Filed'; 27 29 28 30 $tmp = $html->div('butonright', $gags->sendEdit($val['id'], 'Vclassroom')); 29 31 $tmp .= $html->link($val['name'], '/admin/vclassrooms/members/'.$val['id']); 32 $tmp .= $html->div(null, 'Secret:'. $val['secret']); 30 33 $tmp .= $html->para(null, 'Status: '.$html->link($s,'/admin/vclassrooms/change/'.$val['id'].'/'.$val['status'].'/'.$val['ecourse_id'])); 31 34 $tmp .= $html->div('butonright', $gags->confirmDel($val['id'], 'Vclassroom')); 32 35 33 36 echo $html->div('grayblock', $tmp); 34 } 37 endforeach; 35 38 36 if ( !isset( $historic ) ) 37 { 39 if ( !isset( $historic ) ): 38 40 echo $html->link( 39 41 $html->image('admin/historic.png', array('alt'=>'Filed classrooms', 'title'=>'Filed classrooms')), 40 42 '/admin/ecourses/vclassrooms/'.$data['Ecourse']['id'].'/historic', null, null, false); 41 } 43 endif; 42 44 ?>
