Changeset 758
- Timestamp:
- 09/07/08 13:00:56 (2 months ago)
- Location:
- trunk/app
- Files:
-
- 6 modified
-
controllers/messages_controller.php (modified) (1 diff)
-
locale/spa/LC_MESSAGES/default.po (modified) (2 diffs)
-
views/elements/admin_menu.ctp (modified) (1 diff)
-
views/helpers/fpdf.php (modified) (2 diffs)
-
views/messages/admin_listing.ctp (modified) (2 diffs)
-
views/vclassrooms/admin_export.ctp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/controllers/messages_controller.php
r722 r758 557 557 * 558 558 */ 559 public function admin_delete($id=null) 560 { 561 //die(debug($this->data['Message'])); 562 563 foreach ($this->data['Message'] as $v): 559 public function admin_delete($message_id=null) 560 { 561 if ($this->data['Message']): 562 foreach ($this->data['Message'] as $v): 564 563 if ( $v != 0 ): 565 564 $this->Message->del($v); 566 565 endif; 567 endforeach; 568 566 endforeach; 567 else: 568 $this->Message->del($message_id); 569 endif; 569 570 $this->msgFlash(__('Data removed', true),'/admin/messages/listing'); 570 571 } -
trunk/app/locale/spa/LC_MESSAGES/default.po
r755 r758 11 11 msgstr "Ya has encontrado este tesoro" 12 12 13 msgid "You must select at least one message" 14 msgstr "Debes seleccionar al menos un mensaje" 15 13 16 msgid "Reports" 14 17 msgstr "Reportes" … … 439 442 msgid "Data saved" 440 443 msgstr "Datos guardados" 444 445 msgid "Data removed" 446 msgstr "Datos eliminados" 441 447 442 448 msgid "Categories Forums" -
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 ?>
