Changeset 756 for trunk/app/views
- Timestamp:
- 09/04/08 19:34:27 (3 months ago)
- Location:
- trunk/app/views
- Files:
-
- 3 modified
-
helpers/fpdf.php (modified) (2 diffs)
-
vclassrooms/admin_export.ctp (modified) (2 diffs)
-
vclassrooms/admin_listing.ctp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/helpers/fpdf.php
r476 r756 21 21 { 22 22 $this->pdf = new myFPDF($orientation, $unit, $format); 23 $this->pdf->SetFont('Arial','B',1 4);23 $this->pdf->SetFont('Arial','B',10); 24 24 } 25 25 … … 27 27 { 28 28 $string = utf8_decode($data); // UTF-8 29 $this->pdf->Cell(0, 5,$string,1,1,'L');30 $this->pdf->Ln( 5);29 $this->pdf->Cell(0,2,$string,0,1,'L'); 30 $this->pdf->Ln(2); 31 31 } 32 32 -
trunk/app/views/vclassrooms/admin_export.ctp
r729 r756 1 1 <?php 2 2 //die(debug($data)); 3 foreach ($data as $u): 4 3 foreach ($data as $u): 5 4 $fpdf->newPage(); 6 5 7 $fpdf->setData( 'Group: ' . $group['Vclassroom']['name'] . '. Created '.$group['Vclassroom']['created']);8 $fpdf->setData( 'Student '.$u['User']['name'] . ' '.$u['User']['email']);6 $fpdf->setData(__('Group', true).': ' . $group['Vclassroom']['name'] . '. Created '.$group['Vclassroom']['created']); 7 $fpdf->setData(__('Student', true) . ': '.$u['User']['name'] . ' '.$u['User']['email']); 9 8 10 9 if ( count($u['tests']) > 0 ): 11 foreach ($u['tests'] as $te): 12 $fpdf->setData($te['Test']['title'] . ', Percentage '.$te['Result']['percentage'].'%'); 10 foreach ($u['tests'] as $te): 11 if ( $te['Test']['points'] ): 12 $fpdf->setData($te['Test']['title'] . ', '.__('Points', true).' '.$te['Test']['points']); 13 else: 14 $fpdf->setData($te['Test']['title'] . ', '.__('Not answered this test yet', true)); 15 endif; 13 16 endforeach; 14 17 else: … … 18 21 if ( count($u['treasures']) > 0 ): 19 22 foreach ($u['treasures'] as $t): 20 $fpdf->setData($t['Treasure']['title'] . ', Points'.$t['ResultTreasure']['points']);23 $fpdf->setData($t['Treasure']['title'] . ', '.__('Points', true).' '.$t['ResultTreasure']['points']); 21 24 endforeach; 22 25 else: -
trunk/app/views/vclassrooms/admin_listing.ctp
r755 r756 6 6 echo $html->div('title_section', __('vGroups', true)); 7 7 8 echo $html->link($html->image('actions/new.png', array( "alt"=>"Add classroom", "title"=>"Add classroom")), '/admin/ecourses/listing', null, null, false);8 echo $html->link($html->image('actions/new.png', array('alt'=>__('Add new', true), 'title'=>__('Add new', true))), '/admin/ecourses/listing', null, null, false); 9 9 ?> 10 10 <table class="tbadmin"> 11 11 <?php 12 13 12 $th = array(__('Edit', true), 'Virtual classroom', 'Status', __('See vGroup', true)); 14 13 echo $html->tableHeaders($th); 15 14 foreach ($data as $val): 16 15 17 $st = ( $val['Vclassroom']['status'] == 1 ) ? 'Enabled' : 'Filed';16 $st = ( $val['Vclassroom']['status'] == 1 ) ? __('Enabled', true) : __('Filed', true); 18 17 $tr = array ( 19 18 $gags->sendEdit($val['Vclassroom']['id'], 'vclassrooms'), 20 19 $html->link($val['Vclassroom']['name'], '/admin/vclassrooms/members/'.$val['Vclassroom']['id']) . ' <span class="petit">'.$val['Ecourse']['title'].'</span>', 21 20 $st, 22 $html->link($html->image('static/user-group-icon.jpg', array('width'=>22, 'alt'=>__('See vGroup', true), 'title'=>__('See vGroup', true))), '/vclassrooms/show/'.$val['Vclassroom']['user_id'].'/'.$val['Vclassroom']['id']), null, null, false); 21 $html->link( 22 $html->image('static/user-group-icon.jpg', array('width'=>22, 'alt'=>__('See vGroup', true), 'title'=>__('See vGroup', true))), 23 '/vclassrooms/show/'.$val['Vclassroom']['user_id'].'/'.$val['Vclassroom']['id'], null, null, false)); 23 24 24 25 echo $html->tableCells($tr, array("class"=>"altRow", "onmouseover"=>"this.className='highlight'", "onmouseout"=>"this.className='altRow'"),
