Changeset 730 for trunk/app/views

Show
Ignore:
Timestamp:
08/20/08 20:54:59 (3 months ago)
Author:
aarkerio
Message:

Bugs fixed

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/vclassrooms/admin_record.ctp

    r728 r730  
    11<?php 
    22 //die(debug($data)); 
    3  
    43 echo $html->addCrumb('Control Panel', '/admin/entries/start');  
    54 echo $html->addCrumb(__('Groups', true), '/admin/vclassrooms/listing'); 
     
    101100       endforeach; 
    102101 else: 
    103     echo  $html->para(null, 'No webquests found'); 
     102    echo  $html->para(null, __('No Webquests found', true)); 
    104103 endif; 
    105104  
    106105 // Treasures. Model: Treasure   
    107106 $tpoints = (int) 0; // tresure points 
     107 echo '<h1>'. __('Scavengers hunts', true).'</h1>'; 
    108108 if ( count($data['treasures']) > 0 ): 
    109   echo '<h1>Treasures</h1>'; 
    110109  foreach ($data['treasures'] as $tr): 
    111   
    112      $tpoints += $tr['ResultTreasure']['points']; 
     110     $tpoints += (int) $tr['ResultTreasure']['points']; 
    113111     $div_id   = 'tr'.$tr['Treasure']['id']; 
    114112     e('<div style="border:1px dotted gray;padding:4px;margin:2px;height:20px;">'); 
    115113     e($html->div(null, $tr['ResultTreasure']['points'] .' points',  array('id'=>$div_id, 'style'=>'width:150px;float:left;'))); 
    116114     e('<div style="width:450px;float:right;">'); 
    117      echo $html->link($tr['Treasure']['title'], '#', array('title'=>'View reply', 'onclick'=> 
     115     echo $html->link($tr['Treasure']['title'], '#', array('title'=>__('View text', true), 'onclick'=> 
    118116        "window.open('/admin/treasures/see/".$data['User']['id']."/".$tr['Treasure']['id']."','mywin','left=20,top=20,width=700,height=700,toolbar=0,resizable=1')")) . '&nbsp;&nbsp;'; 
    119117 
    120      echo $ajax->link($html->image('static/adownmod.png', array('alt'=>'Points down', 'title'=>'Points down')), 
     118     echo $ajax->link($html->image('static/adownmod.png', array('alt'=>__('Points down', true), 'title'=>__('Points down', true))), 
    121119                           '/admin/treasures/points/'.$tr['Treasure']['id'].'/down', 
    122120                        array('update'  => $div_id, 
     
    124122                                  'after'   =>'tp('.$data['User']['id'].','.$data['Vclassroom']['id'].')', 
    125123                          'complete'=>"Element.hide('loadingre');Effect.Appear(".$div_id.")"),null,false); 
    126      echo $ajax->link($html->image('static/aupmod.png', array('alt'=>'Points up', 'title'=>'Points up')), 
     124     echo $ajax->link($html->image('static/aupmod.png', array('alt'=>__('Points up', true), 'title'=>__('Points up', true))), 
    127125                           '/admin/treasures/points/'.$tr['Treasure']['id'].'/up', 
    128126                        array('update'  => $div_id, 
     
    135133     endforeach; 
    136134 else: 
    137        echo  $html->para(null, 'No treasures found'); 
     135     echo $html->para(null, __('No Scavenger hunts found', true)); 
    138136 endif; 
    139137    
    140  // Replies on forums. Model: Topic 
    141  $rpoints = (int) 0;  // reply points 
     138 
     139 echo '<h1>'.__('Participations in forums', true).'</h1>'; 
     140 
    142141 if ( count($data['replies']) > 0 ): 
    143     echo '<h1>Replies in forums</h1>'; 
    144     foreach ($data['replies'] as $re): 
    145       
     142   // Replies on forums. Model: Topic 
     143   $rpoints = (int) 0;  // reply points 
     144   foreach ($data['replies'] as $re):   
    146145      $div_id = 're'.$re['Reply']['id']; 
    147146      e('<div style="border:1px dotted gray;padding:4px;margin:2px;height:20px;">');