- Timestamp:
- 08/21/08 16:28:02 (3 months ago)
- Location:
- trunk/app
- Files:
-
- 4 modified
-
config/core.php (modified) (1 diff)
-
locale/spa/LC_MESSAGES/default.po (modified) (1 diff)
-
models/vclassroom.php (modified) (2 diffs)
-
views/vclassrooms/admin_record.ctp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/config/core.php
r730 r731 14 14 * In development mode, you need to click the flash message to continue. 15 15 */ 16 Configure::write('debug', 1);16 Configure::write('debug', 1); 17 17 /** 18 18 * Application wide charset encoding 19 19 */ 20 Configure::write('App.encoding', 'UTF-8');20 Configure::write('App.encoding', 'UTF-8'); 21 21 /** 22 22 * To configure CakePHP *not* to use mod_rewrite and to -
trunk/app/locale/spa/LC_MESSAGES/default.po
r730 r731 4 4 msgid "Yes" 5 5 msgstr "Si" 6 7 msgid "See participation" 8 msgstr "Ver participación" 6 9 7 10 msgid "Points up" -
trunk/app/models/vclassroom.php
r730 r731 6 6 * GPLv3 manuel<arroba>mononeurona<punto>org 7 7 */ 8 8 9 class Vclassroom extends AppModel 9 10 { … … 130 131 public function studentRecord($user_id, $vclassroom_id) 131 132 { 132 try { 133 try 134 { 133 135 $record = array(); 134 136 -
trunk/app/views/vclassrooms/admin_record.ctp
r730 r731 147 147 e($html->div(null, $re['Reply']['points'].' points', array('id'=>$div_id, 'style'=>'width:150px;float:left;'))); 148 148 e('<div style="width:450px;float:right;">'); 149 echo $html->link( 'See reply', '#', array('title'=>'View reply', 'onclick'=>149 echo $html->link(__('See participation', true), '#', array('title'=>__('See participation', true), 'onclick'=> 150 150 "window.open('/admin/topics/reply/".$re['Reply']['id']."','mywin','left=20,top=20,width=700,height=700,toolbar=0,resizable=1')")) . ' '; 151 151 152 echo $ajax->link($html->image('static/adownmod.png', array('alt'=> 'Points down', 'title'=>'Points down')),152 echo $ajax->link($html->image('static/adownmod.png', array('alt'=>__('Points down', true), 'title'=>__('Points down', true))), 153 153 '/admin/replies/points/'.$re['Reply']['id'].'/down', 154 154 array('update' => $div_id, … … 156 156 'after' =>'tp('.$data['User']['id'].','.$data['Vclassroom']['id'].')', 157 157 'complete'=>"Element.hide('loadingre');Effect.Appear(".$div_id.")"),null,false); 158 echo $ajax->link($html->image('static/aupmod.png', array('alt'=> 'Points up', 'title'=>'Points up')),158 echo $ajax->link($html->image('static/aupmod.png', array('alt'=>__('Points up', true), 'title'=>__('Points up', true))), 159 159 '/admin/replies/points/'.$re['Reply']['id'].'/up', 160 160 array('update' => $div_id, … … 175 175 $ppoints = (int) 0; // participation points 176 176 if ( count($data['participations']) > 0 ): 177 echo '<h1> Participations</h1>';177 echo '<h1>'.__('Participations', true).'</h1>'; 178 178 foreach ($data['participations'] as $p): 179 179 e('<div style="border:1px dotted gray;padding:4px;margin:2px;height:20px;">'); … … 186 186 187 187 echo '<div style="width:450px;float:right;">'; 188 echo 'Participation: '. $html->link($p['Participation']['title'], '#', array('title'=>'View reply', 'onclick'=>"window.open('/admin/participations/show/".$p['Participation']['id']."','mywin','left=20,top=20,width=700,height=700,toolbar=0,resizable=1')")).' ';189 190 echo $ajax->link($html->image('static/adownmod.png', array('alt'=> 'Points down', 'title'=>'Points down')) ,188 echo __('Participation', true).': '. $html->link($p['Participation']['title'], '#', array('title'=>'View reply', 'onclick'=>"window.open('/admin/participations/show/".$p['Participation']['id']."','mywin','left=20,top=20,width=700,height=700,toolbar=0,resizable=1')")).' '; 189 190 echo $ajax->link($html->image('static/adownmod.png', array('alt'=>__('Points down', true), 'title'=>__('Points down', true))) , 191 191 '/admin/participations/points/'.$p['Participation']['id'].'/down', 192 192 array('update' => $div_id, … … 194 194 'interactive'=>'tp('.$data['User']['id'].','.$data['Vclassroom']['id'].')', 195 195 'complete' =>"Element.hide('loadingpa');Effect.Appear(".$div_id.");"),null,false); 196 echo $ajax->link($html->image('static/aupmod.png', array('alt'=> 'Points up', 'title'=>'Points up')),196 echo $ajax->link($html->image('static/aupmod.png', array('alt'=>__('Points up', true), 'title'=>__('Points up', true))), 197 197 '/admin/participations/points/'.$p['Participation']['id'].'/up', 198 198 array('update' => $div_id, … … 204 204 e('</div>'); 205 205 endforeach; 206 e('<div id="loadingpa" style="display:none">'); 207 echo $html->image('static/loading.gif', array('alt'=>'Loading')); 208 e('</div>'); 206 e($html->div(null, $html->image('static/loading.gif', array('alt'=>'Loading'), array('id'=>'loadingpa', 'style'=>'display:none')))); 209 207 210 208 else: 211 echo $html->para(null, 'No participation found');212 endif; 213 214 echo $html->div(null, 'Treasure points: '. $tpoints);215 echo $html->div(null, 'Webquests points: '. $wpoints);216 echo $html->div(null, 'Participation points: '. $ppoints, array('id'=>'parpoints'));209 echo $html->para(null, __('No participation found', true)); 210 endif; 211 212 echo $html->div(null, __('Scavengers hunts', true) .' ' .__('points', true) .': '. $tpoints); 213 echo $html->div(null, 'Webquests ' .__('points', true) .': '. $wpoints); 214 echo $html->div(null, __('Participations', true) .' '. __('points', true) .': '. $ppoints, array('id'=>'parpoints')); 217 215 218 216 $points = ($tpoints + $wpoints + $rpoints + $ppoints); 219 217 220 echo $ajax->div('totalpoints') . '<b>Total points: ' . $points .'</b>'. $ajax->divEnd('totalpoints'); 221 218 echo $ajax->div('totalpoints') . '<b>'.__('Total points', true).': ' . $points .'</b>'. $ajax->divEnd('totalpoints'); 222 219 ?> 223 220 </div>
