Changeset 729 for trunk/app/views
- Timestamp:
- 08/20/08 16:07:12 (3 months ago)
- Location:
- trunk/app/views/vclassrooms
- Files:
-
- 3 modified
-
admin_export.ctp (modified) (2 diffs)
-
admin_members.ctp (modified) (3 diffs)
-
show.ctp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/vclassrooms/admin_export.ctp
r474 r729 1 1 <?php 2 // die(debug($data)); 3 2 //die(debug($data)); 4 3 foreach ($data as $u): 5 4 6 $fpdf->newPage();5 $fpdf->newPage(); 7 6 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): 12 12 $fpdf->setData($te['Test']['title'] . ', Percentage '.$te['Result']['percentage'].'%'); 13 13 endforeach; 14 14 else: 15 $fpdf->setData(__('Not test answered yet', true)); 16 endif; 17 18 if ( count($u['treasures']) > 0 ): 15 19 foreach ($u['treasures'] as $t): 16 20 $fpdf->setData($t['Treasure']['title'] . ', Points '.$t['ResultTreasure']['points']); 17 21 endforeach; 18 22 else: 23 $fpdf->setData(__('Not scavenger answerd yet', true)); 24 endif; 25 26 if ( count($u['participations']) > 0 ): 19 27 foreach ($u['participations'] as $Par): 20 28 foreach ($Par as $p): … … 22 30 endforeach; 23 31 endforeach; 32 else: 33 $fpdf->setData(__('Not participations yet', true)); 34 endif; 24 35 36 if ( count($u['webquests']) > 0 ): 25 37 foreach ($u['webquests'] as $w): 26 38 $fpdf->setData($w['Webquest']['title'] . ', Points ' . $w['ResultWebquest']['points']); 27 39 endforeach; 28 40 else: 41 $fpdf->setData(__('Not webquest answered yet', true)); 42 endif; 29 43 endforeach; 30 44 -
trunk/app/views/vclassrooms/admin_members.ctp
r728 r729 36 36 37 37 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') 39 39 ), '/admin/vclassrooms/export/'.$data['Vclassroom']['id'], null, null, false); 40 40 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))), 42 42 '/admin/messages/allclass/'.$data['Vclassroom']['id'], 43 43 array("update" => "qn", … … 54 54 echo $ajax->div('qn', array("style"=>"padding:0")) . $ajax->divEnd('qn'); 55 55 56 echo $html->div('title_section', 'Students belonging to' . $data['Vclassroom']['name']);56 echo $html->div('title_section', __('Students belonging to', true). ': ' . $data['Vclassroom']['name']); 57 57 58 58 if ( count($data['User']) < 1 ): … … 73 73 $val['username'], 74 74 $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'])), 76 76 '/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))), 79 80 '/admin/vclassrooms/record/'.$val['id'].'/'.$data['Vclassroom']['id'], null, null, false) 80 81 ); -
trunk/app/views/vclassrooms/show.ctp
r728 r729 96 96 97 97 if ( !$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')); 99 99 endif; 100 100
