Changeset 728 for trunk/app/views

Show
Ignore:
Timestamp:
08/19/08 19:50:28 (3 months ago)
Author:
aarkerio
Message:

Little changes

Location:
trunk/app/views
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/treasures/admin_vclassrooms.ctp

    r696 r728  
    11<?php 
    2  echo $html->addCrumb('Control Panel', '/admin/entries/start'); 
    3  echo $html->addCrumb(__('Scavangers hunts', true), '/admin/treasures/listing'); 
    4  echo $html->getCrumbs(' / '); 
    5  //die( debug( $data ) ); 
    6  
     2echo $html->addCrumb('Control Panel', '/admin/entries/start'); 
     3echo $html->addCrumb(__('Scavengers hunts', true), '/admin/treasures/listing'); 
     4echo $html->getCrumbs(' / '); 
     5//die( debug( $data ) ); 
     6  
    77$vclasses = array();   // contains vclassroom already linked to this treasure 
    88 
     
    2121    $tmp .= $form->end(__('Assign this Treasure', true)); 
    2222   else: 
    23     $tmp = $html->para(null, $html->image('admin/unlink.gif').'This test is already assigned to  <b>'.$val['Vclassroom']['name'].'</b>'); 
     23    $tmp = $html->para(null, $html->image('admin/unlink.gif').' '.__('This scavenger is already assigned to', true).'  <b>'.$val['Vclassroom']['name'].'</b>'); 
    2424        
    2525    foreach ( $treasures as $wq): 
  • trunk/app/views/vclassrooms/admin_members.ctp

    r665 r728  
    5757 
    5858if ( count($data['User']) < 1 ): 
    59     e($html->div('divblock', 'There are no students in this classrroom yet')); 
     59    e($html->div('divblock', __('There are no students in this classrroom yet', true))); 
    6060endif; 
    6161 
     
    6464//die(print_r($data)); 
    6565  
    66 $th = array ('Name', 'Username', 'Email', 'Send Message', 'Unlink', 'Record'); 
     66$th = array (__('Name', true), 'Username', 'Email',__('Send message', true), __('Unlink', true), 'Record'); 
    6767 
    6868echo $html->tableHeaders($th);  
  • trunk/app/views/vclassrooms/admin_record.ctp

    r722 r728  
    11<?php 
    2 //die(debug($data)); 
    3  
    4  echo $html->addCrumb('Control Panel', '/admin/entries/start');   
    5  echo $html->addCrumb(__('vGroups', true), '/admin/vclassrooms/listing');  
     2 //die(debug($data)); 
     3 
     4 echo $html->addCrumb('Control Panel', '/admin/entries/start');  
     5 echo $html->addCrumb(__('Groups', true), '/admin/vclassrooms/listing'); 
     6 echo $html->addCrumb($data['Vclassroom']['name'], '/admin/vclassrooms/members/'.$data['Vclassroom']['id']);   
    67 echo $html->getCrumbs(' / '); 
    78 
     
    3940 
    4041      if ($t['TestsVclassroom']['points'] === null):  // not answered yet 
    41         e($html->div(null, __('Not answered this test yet', true),  array('id'=>$div_id, 'style'=>'width:180px;float:left;font-size:8pt;'))); 
    42         e($html->div(null, $t['TestsVclassroom']['title'], array('style'=>'width:380px;float:right;'))); 
     42        e($html->div(null, __('Not answered this test yet', true), array('id'=>$div_id,'style'=>'width:220px;float:left;font-size:7pt;'))); 
     43        e($html->div(null, $t['TestsVclassroom']['title'], array('style'=>'width:350px;float:right;'))); 
    4344      else: 
    44          
    45       e($html->div(null, $t['TestsVclassroom']['points'] .' points',  array('id'=>$div_id, 'style'=>'width:180px;float:left;'))); 
    46  
    47       e('<div style="width:450px;float:right;">'); 
     45        e($html->div(null, $t['TestsVclassroom']['points'] .' points',  array('id'=>$div_id, 'style'=>'width:180px;float:left;'))); 
     46        e('<div style="width:450px;float:right;">'); 
    4847      echo $html->link($t['TestsVclassroom']['title'], '#', array('title'=>'View test', 'onclick'=> 
    4948        "window.open('/admin/tests/see/".$data['User']['id']."/".$t['TestsVclassroom']['test_id']."/".$data['Vclassroom']['id']."','mywin','left=20,top=10,width=700,height=700,scrollbars=1,toolbar=0,resizable=1')")) . '&nbsp;&nbsp;'; 
  • trunk/app/views/vclassrooms/show.ctp

    r675 r728  
    11<?php 
    22//exit(debug($data)); 
    3  echo $javascript->link('fckeditor/fckeditor');  
     3echo $javascript->link('fckeditor/fckeditor');  
    44 
    5  echo  '<h1>' . $data['Vclassroom']['name'] . '</h1>'; 
     5echo  '<h1>' . $data['Vclassroom']['name'] . '</h1>'; 
    66    
    7  if ( $belongs === true ): 
    8      echo  $html->para(null, __('Welcome', true) . '!<b> '. $session->read('Auth.User.username') .'</b>'); 
    9      echo  $html->para(null, '<b>'.__('Created', true). '</b>:' . $data['Vclassroom']['created']); 
    10      echo  $html->para(null, '<b>'.__('Subject', true).'</b>: ' . $data['Ecourse']['title']); 
    11      echo  $html->para(null, '<b>'.__('Course description', true).'</b>'. $ajax->link($html->image('static/arrow_down.png',array('alt'=>__('Course description',true), 'title'=>__('Course description',true))),'/vclassrooms/description/'.$data['Vclassroom']['ecourse_id'], array('update' => 'qn','loading'=>"Element.show('loading3');",'complete'=>"Element.hide('loading3');Effect.Appear('qn')"), null,false)); 
     7if ( $belongs === true ): 
     8  echo  $html->para(null, __('Welcome', true) . '!<b> '. $session->read('Auth.User.username') .'</b>'); 
     9  echo  $html->para(null, '<b>'.__('Created', true). '</b>:' . $data['Vclassroom']['created']); 
     10  echo  $html->para(null, '<b>'.__('Subject', true).'</b>: ' . $data['Ecourse']['title']); 
     11  echo  $html->para(null, '<b>'.__('Course description', true).'</b>'. $ajax->link($html->image('static/arrow_down.png',array('alt'=>__('Course description',true), 'title'=>__('Course description',true))),'/vclassrooms/description/'.$data['Vclassroom']['ecourse_id'], array('update' => 'qn','loading'=>"Element.show('loading3');",'complete'=>"Element.hide('loading3');Effect.Appear('qn')"), null,false)); 
    1212 
    13    echo $html->div(null,$html->image('static/loading.gif',array('alt'=>'Loading...')),array('id'=>'loading3','style'=>'display: none')); 
     13  echo $html->div(null,$html->image('static/loading.gif',array('alt'=>'Loading...')),array('id'=>'loading3','style'=>'display: none')); 
    1414     
    15    echo $ajax->div('qn', array("style"=>"padding:3px")).$ajax->divEnd('qn'); 
     15  echo $ajax->div('qn', array("style"=>"padding:3px")).$ajax->divEnd('qn'); 
    1616 
    17      //  Forums 
    18      if ( isset($data['Forum']) && count($data['Forum']) > 0): 
     17  //  Forums 
     18  if ( isset($data['Forum']) && count($data['Forum']) > 0): 
    1919        echo $html->div('titentry', 'Forums'); 
    2020 
     
    2222             echo $html->para(null, $html->link($f['title'], '/forums/display/'.$f['id'].'/'.$data['Vclassroom']['id'])); 
    2323        endforeach; 
    24     endif; 
     24  endif; 
    2525     
    26     // Tests  
    27     if ( isset($data['Test']) && count($data['Test']) > 0): 
     26  // Tests  
     27  if ( isset($data['Test']) && count($data['Test']) > 0): 
    2828       echo $html->div('titentry', __('Quizz Tests', true)); 
    2929 
     
    3131                echo $html->para(null, $html->link($t['title'], '/tests/view/'.$t['id'].'/'.$data['Vclassroom']['id'])); 
    3232       endforeach; 
    33     endif; 
     33  endif; 
    3434 
    3535    // Webquests 
  • trunk/app/views/webquests/admin_vclassrooms.ctp

    r418 r728  
    11<?php 
    2  echo $html->addCrumb('Control Tools', '/admin/entries/start'); 
     2 echo $html->addCrumb('Control Panel', '/admin/entries/start'); 
    33 echo $html->addCrumb('Webquests', '/admin/webquests/listing'); 
    44 echo $html->getCrumbs(' / '); 
    5 //die( debug( $data ) ); 
    65 
    76$vclasses = array();   // contains vclassroom already linked to this webquest 
     
    1918       $tmp .= $form->hidden('VclassroomsWebquest.webquest_id', array('value'=>$webquest_id)); 
    2019       $tmp .= $form->hidden('VclassroomsWebquest.vclassroom_id', array('value'=>$val['Vclassroom']['id'])); 
    21        $tmp .= $form->end('Assign this Webquest'); 
     20       $tmp .= $form->end(__('Assign this Webquest', true)); 
    2221   
    2322   else: 
    2423 
    25        $tmp = $html->para(null, $html->image('admin/unlink.gif').'This test is already assigned to  <b>'.$val['Vclassroom']['name'].'</b>'); 
     24       $tmp = $html->para(null, $html->image('admin/unlink.gif').'This webquest is already assigned to  <b>'.$val['Vclassroom']['name'].'</b>'); 
    2625        
    2726       foreach ( $webquests as $wq): 
     
    3534       $tmp .= $form->hidden('VclassroomsWebquest.id', array('value'=>$id)); 
    3635       $tmp .= $form->hidden('VclassroomsWebquest.webquest_id', array('value'=>$webquest_id)); //used for return here 
    37        $tmp .= $form->end('Unlink this test'); 
    38    endif; 
     36       $tmp .= $form->end(__('Unlink this Webquest', true)); 
     37   endif;  
    3938 
    4039   echo $html->div('grayblock', $tmp); // print