Show
Ignore:
Timestamp:
07/01/08 19:06:58 (5 months ago)
Author:
aarkerio
Message:

Little fixes

Files:
1 modified

Legend:

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

    r422 r617  
    1010<?php 
    1111 
    12 $th = array ('Edit', 'Virtual classroom', 'Status'); 
     12$th = array ('Edit', 'Virtual classroom', 'Status', 'See'); 
    1313echo $html->tableHeaders($th);   
    14 foreach ($data as $val) 
    15 {        
    16   $st = ( $val['Vclassroom']['status'] == 1 ) ? 'Enabled' : 'Filed';      
    17        $tr = array ( 
     14foreach ($data as $val): 
     15        
     16  $st = ( $val['Vclassroom']['status'] == 1 ) ? 'Enabled' : 'Filed';     
     17  $tr = array ( 
    1818        $gags->sendEdit($val['Vclassroom']['id'], 'vclassrooms'), 
    1919        $html->link($val['Vclassroom']['name'], '/admin/vclassrooms/members/'.$val['Vclassroom']['id']) . ' <span class="petit">'.$val['Ecourse']['title'].'</span>', 
    20         $html->link($st,'/admin/vclassrooms/change/'.$val['Vclassroom']['id'].'/'.$val['Vclassroom']['status']) 
     20        $st, 
     21        $html->link(__('See Group', true), '/vclassrooms/show/'.$val['Vclassroom']['user_id'].'/'.$val['Vclassroom']['id']) 
    2122        //$gags->confirmDel($val['Vclassroom']['id'], 'vclassrooms') 
    2223        ); 
    2324        
    2425    echo $html->tableCells($tr, array("class"=>"altRow", "onmouseover"=>"this.className='highlight'", "onmouseout"=>"this.className='altRow'"),  
    25                                 array('class'=>'evenRow',"onmouseover"=>"this.className='highlight'", "onmouseout"=>"this.className='evenRow'")); 
     26                    array('class'=>'evenRow',"onmouseover"=>"this.className='highlight'", "onmouseout"=>"this.className='evenRow'")); 
    2627     
    27     } 
     28endforeach; 
    2829?> 
    2930</table> 
    30 <?php echo $html->para(null, $html->link($html->image('admin/historic.png', array('alt'=>'See historic','title'=>'See classrooms historic')), '/admin/vclassrooms/listing/historic', null, null, false)); ?> 
     31<?php  
     32echo $html->para(null,$html->link($html->image('admin/historic.png', array('alt'=>'See historic','title'=>'See classrooms historic')), '/admin/vclassrooms/listing/historic', null, null, false));  
     33?>