Show
Ignore:
Timestamp:
07/04/08 14:25:17 (5 months ago)
Author:
aarkerio
Message:

Internatiantilzation

Files:
1 modified

Legend:

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

    r617 r624  
    2525 
    2626 
     27$msg   = __('Are you sure to want to delete this?', true);    
     28 
    2729foreach ($data['Vclassroom'] as $val): 
    2830 $s = ($val['status'] == 1) ? 'Enabled' : 'Filed'; 
    2931 
    30       $tmp  =  $html->div('butonright', $gags->sendEdit($val['id'], 'Vclassroom')); 
    31       $tmp .=  $html->link($val['name'], '/admin/vclassrooms/members/'.$val['id']); 
    32       $tmp .=  $html->div(null, 'Secret:'. $val['secret']); 
    33       $tmp .=  $html->para(null, 'Status: '.$html->link($s,'/admin/vclassrooms/change/'.$val['id'].'/'.$val['status'].'/'.$val['ecourse_id'])); 
    34       $tmp .=  $html->div('butonright', $gags->confirmDel($val['id'], 'Vclassroom')); 
    35  
    36       echo $html->div('grayblock', $tmp); 
     32   $tmp  =  $html->div('butonright', $gags->sendEdit($val['id'], 'Vclassroom')); 
     33   $tmp .=  $html->link($val['name'], '/admin/vclassrooms/members/'.$val['id']); 
     34   $tmp .=  $html->div(null, 'Secret:'. $val['secret']); 
     35   $tmp .=  $html->para(null, 'Status: '.$html->link($s,'/admin/vclassrooms/change/'.$val['id'].'/'.$val['status'].'/'.$val['ecourse_id'])); 
     36   $tmp .=  $html->div('butonright',  
     37   $form->create('Vclassroom', array('action'=>'/admin_delete/'.$val['id'].'/'.$val['ecourse_id'], "onsubmit"=>"return confirm('".$msg."')")). 
     38   $form->end(__('Delete', true))); 
     39   echo $html->div('grayblock', $tmp); 
    3740endforeach; 
    3841 
    3942if ( !isset( $historic ) ): 
    4043echo $html->link( 
    41                 $html->image('admin/historic.png', array('alt'=>'Filed classrooms', 'title'=>'Filed classrooms')),  
     44                $html->image('admin/historic.png', array('alt'=>__('Filed classrooms', true), 'title'=>__('Filed classrooms', true))),  
    4245                '/admin/ecourses/vclassrooms/'.$data['Ecourse']['id'].'/historic', null, null, false); 
    4346endif;