Changeset 758 for trunk/app/views
- Timestamp:
- 09/07/08 13:00:56 (2 months ago)
- Location:
- trunk/app/views
- Files:
-
- 4 modified
-
elements/admin_menu.ctp (modified) (1 diff)
-
helpers/fpdf.php (modified) (2 diffs)
-
messages/admin_listing.ctp (modified) (2 diffs)
-
vclassrooms/admin_export.ctp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/elements/admin_menu.ctp
r633 r758 11 11 $html->link(__('Add eCourse', true), '/admin/ecourses/add'), 12 12 $html->link(__('eClassrooms', true), '/admin/vclassrooms/listing'), 13 $html->link(__('Forums', true), '/admin/catforums/listing') 13 $html->link(__('Forums', true), '/admin/catforums/listing'), 14 $html->link(__('Messages', true), '/admin/messages/listing') 14 15 ), 15 16 $html->link('Webquests', '/admin/webquests/listing'), -
trunk/app/views/helpers/fpdf.php
r756 r758 20 20 public function __construct($orientation='P',$unit='mm',$format='Letter') 21 21 { 22 $this->pdf = new myFPDF( $orientation, $unit, $format);22 $this->pdf = new myFPDF(null, null, $format); 23 23 $this->pdf->SetFont('Arial','B',10); 24 24 } … … 27 27 { 28 28 $string = utf8_decode($data); // UTF-8 29 $this->pdf->Cell(0,2,$string,0,1,'L'); 29 // Cell(float w [, float h [, string txt [, mixed border [, int ln [, string align [, boolean fill [, mixed link]]]]]]]) 30 $this->pdf->Cell(0,3,$string,0,1,'L'); 30 31 $this->pdf->Ln(2); 31 32 } -
trunk/app/views/messages/admin_listing.ctp
r684 r758 7 7 8 8 if ( $session->read('Auth.User.group_id') == 1): // if user belongs to admin group 9 echo '<div style="position:absolute;right:300px;top: 35px;">';10 echo $html->link($html->image('admin/message_board.gif', array( "alt"=>"General Message", "title"=>"General Message")), '/admin/messages/general', null, false, false);9 echo '<div style="position:absolute;right:300px;top:75px;">'; 10 echo $html->link($html->image('admin/message_board.gif', array('alt'=>'General Message', 'title'=>'General Message')), '/admin/messages/general', null, false, false); 11 11 echo '</div>'; 12 12 endif; … … 84 84 var j = 0; 85 85 for (i = 0; i < document.privmsg_list.length; i++) 86 {87 if (document.privmsg_list.elements[i].checked == true)86 { 87 if (document.privmsg_list.elements[i].checked == true) 88 88 { 89 89 j++; 90 90 } 91 }91 } 92 92 //alert('Inside '+ j); 93 93 94 94 if (j == 0 ) 95 95 { 96 alert(' You must select at least one message');96 alert('<?php __('You must select at least one message');?>'); 97 97 return false; 98 98 } -
trunk/app/views/vclassrooms/admin_export.ctp
r756 r758 45 45 endif; 46 46 endforeach; 47 48 echo $fpdf->fpdfOutput('class_report.pdf'); 47 48 $vname = str_replace(' ','_', 'Karamelo_'.$group['Vclassroom']['name'].'_'.date('l jS \of F Y')); 49 echo $fpdf->fpdfOutput($vname.'.pdf'); 49 50 ?>
