Changeset 729 for trunk/app/views

Show
Ignore:
Timestamp:
08/20/08 16:07:12 (3 months ago)
Author:
aarkerio
Message:

Little changes

Location:
trunk/app/views/vclassrooms
Files:
3 modified

Legend:

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

    r474 r729  
    11<?php 
    2 // die(debug($data)); 
    3  
     2//die(debug($data)); 
    43 foreach ($data as $u): 
    54     
    6     $fpdf->newPage(); 
     5  $fpdf->newPage(); 
    76 
    8     $fpdf->setData('Group: ' . $group['Vclassroom']['name'] . '. Created '.$group['Vclassroom']['created']); 
    9     $fpdf->setData('Student '. $u['User']['name'] . ' '.$u['User']['email']); 
    10  
    11     foreach ($u['tests'] as $te):   
     7  $fpdf->setData('Group: ' . $group['Vclassroom']['name'] . '. Created '.$group['Vclassroom']['created']); 
     8  $fpdf->setData('Student '. $u['User']['name'] . ' '.$u['User']['email']); 
     9   
     10  if ( count($u['tests']) > 0 ):   
     11    foreach ($u['tests'] as $te):  
    1212         $fpdf->setData($te['Test']['title'] . ', Percentage '.$te['Result']['percentage'].'%'); 
    1313    endforeach; 
    14   
     14  else: 
     15    $fpdf->setData(__('Not test answered yet', true)); 
     16  endif; 
     17 
     18  if ( count($u['treasures']) > 0 ): 
    1519    foreach ($u['treasures'] as $t): 
    1620      $fpdf->setData($t['Treasure']['title'] . ', Points '.$t['ResultTreasure']['points']); 
    1721    endforeach; 
    18     
     22  else: 
     23    $fpdf->setData(__('Not scavenger answerd yet', true)); 
     24  endif; 
     25 
     26  if ( count($u['participations']) > 0 ):  
    1927    foreach ($u['participations'] as $Par): 
    2028            foreach ($Par as $p): 
     
    2230            endforeach; 
    2331    endforeach; 
     32  else: 
     33    $fpdf->setData(__('Not participations yet', true)); 
     34  endif; 
    2435 
     36  if ( count($u['webquests']) > 0 ): 
    2537    foreach ($u['webquests'] as $w): 
    2638                       $fpdf->setData($w['Webquest']['title'] . ', Points ' . $w['ResultWebquest']['points']); 
    2739    endforeach; 
    28   
     40  else: 
     41    $fpdf->setData(__('Not webquest answered yet', true)); 
     42  endif; 
    2943 endforeach;     
    3044 
  • trunk/app/views/vclassrooms/admin_members.ctp

    r728 r729  
    3636 
    3737 echo $html->link( 
    38         $html->image('static/gnome-pdf.gif', array('alt'=>'Export report', 'title'=>'Export report', 'style'=>'margin-right:12px') 
     38        $html->image('static/gnome-pdf.gif', array('alt'=>__('Export report', true), 'title'=>__('Export report', true), 'style'=>'margin-right:12px') 
    3939        ), '/admin/vclassrooms/export/'.$data['Vclassroom']['id'], null, null, false); 
    4040 
    41  echo $ajax->link($html->image('admin/message_board.gif', array('alt'=>'Compose message to group', 'title'=>'Compose message to group')), 
     41 echo $ajax->link($html->image('admin/message_board.gif', array('alt'=>__('Compose message to group', true), 'title'=>__('Compose message to group', true))), 
    4242     '/admin/messages/allclass/'.$data['Vclassroom']['id'], 
    4343                                            array("update" => "qn", 
     
    5454 echo $ajax->div('qn', array("style"=>"padding:0")) . $ajax->divEnd('qn'); 
    5555 
    56 echo $html->div('title_section', 'Students belonging to ' . $data['Vclassroom']['name']); 
     56echo $html->div('title_section', __('Students belonging to', true). ': ' . $data['Vclassroom']['name']); 
    5757 
    5858if ( count($data['User']) < 1 ): 
     
    7373             $val['username'], 
    7474             $html->link($val['email'], 'mailto:'.$val['email']), 
    75                  $html->link($html->image('admin/compose_on.gif', array('alt'=>'Compose', 'title'=>'Compose to '. $val['username'])),  
     75                 $html->link($html->image('admin/compose_on.gif', array('alt'=>__('Compose to', true) .' '.$val['username'], 'title'=>__('Compose to', true) .' '.$val['username'])),  
    7676                             '/admin/messages/write/'.$val['id'], null, null, false), 
    77          $html->link('Unlink', '/admin/vclassrooms/unlink/'.$val['id'].'/'.$data['Vclassroom']['id']), 
    78                  $html->link($html->image('static/historial-icon.png', array('alt'=>'Student Record', 'title'=>'Student Record')),  
     77         $html->link($html->image('static/unlink.png', array('alt'=>__('Unlink', true), 'title'=>__('Unlink', true))), 
     78'/admin/vclassrooms/unlink/'.$val['id'].'/'.$data['Vclassroom']['id'], null, null, false), 
     79                 $html->link($html->image('static/historial-icon.png', array('alt'=>__('Student record', true), 'title'=>__('Student record', true))),  
    7980                             '/admin/vclassrooms/record/'.$val['id'].'/'.$data['Vclassroom']['id'], null, null, false) 
    8081             ); 
  • trunk/app/views/vclassrooms/show.ctp

    r728 r729  
    9696 
    9797if ( !$session->check('Auth.User') ): 
    98      e($html->link('Login to join this group', '/users/login')); 
     98     e($html->link(__('Login to join this group', true), '/users/login')); 
    9999endif; 
    100100