Changeset 696 for trunk/app/views

Show
Ignore:
Timestamp:
08/05/08 22:18:45 (4 months ago)
Author:
aarkerio
Message:

Validation disable

Location:
trunk/app/views
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/ecourses/admin_listing.ctp

    r583 r696  
    1 <script type="text/javascript"> 
    2    window.onload = timedMsg; 
    3 </script> 
    4 <?php  
    5 $session->flash(); 
    6 echo $html->addCrumb('Control Tools', '/admin/entries/start'); 
    7 echo $html->addCrumb('Courses', '/admin/ecourses/listing');  
     1<?php 
     2echo $html->addCrumb('Control ', '/admin/entries/start'); 
     3echo $html->addCrumb(__('Courses', true), '/admin/ecourses/listing');  
    84echo $html->getCrumbs(' / ');  
    95 
    10 echo $html->para(null, $html->link($html->image('actions/new.png', array("alt"=>"Add new course", "title"=>"Add new course")),  '/admin/ecourses/add', null, null, false)); 
     6echo $html->para(null, $html->link($html->image('actions/new.png', array('alt'=>__('Add new', true), 'title'=>__('Add new',true))),  '/admin/ecourses/add', null, null, false)); 
    117 
    128echo $html->div(null, $html->image('static/loading.gif', array('alt'=>'Loading')), array('id'=>'loading', 'style'=>'display:none;')); 
  • trunk/app/views/treasures/admin_vclassrooms.ctp

    r439 r696  
    11<?php 
    2  echo $html->addCrumb('Control Tools', '/admin/entries/start'); 
    3  echo $html->addCrumb('Treasures', '/admin/treasures/listing'); 
     2 echo $html->addCrumb('Control Panel', '/admin/entries/start'); 
     3 echo $html->addCrumb(__('Scavangers hunts', true), '/admin/treasures/listing'); 
    44 echo $html->getCrumbs(' / '); 
    55 //die( debug( $data ) ); 
     
    1515foreach ( $data as $val): 
    1616  if ( !in_array($val['Vclassroom']['id'], $vclasses) ): 
    17        $tmp  = $html->para(null, $html->image('admin/link.gif').$val['Vclassroom']['name']);  
    18        $tmp .= $form->create('Treasure', array('action'=>'link2class')); 
    19        $tmp .= $form->hidden('TreasuresVclassroom.treasure_id', array('value'=>$treasure_id)); 
    20        $tmp .= $form->hidden('TreasuresVclassroom.vclassroom_id', array('value'=>$val['Vclassroom']['id'])); 
    21        $tmp .= $form->end('Assign this Treasure'); 
    22    
     17    $tmp  = $html->para(null, $html->image('admin/link.gif').$val['Vclassroom']['name']);  
     18    $tmp .= $form->create('Treasure', array('action'=>'link2class')); 
     19    $tmp .= $form->hidden('TreasuresVclassroom.treasure_id', array('value'=>$treasure_id)); 
     20    $tmp .= $form->hidden('TreasuresVclassroom.vclassroom_id', array('value'=>$val['Vclassroom']['id'])); 
     21    $tmp .= $form->end(__('Assign this Treasure', true)); 
    2322   else: 
    24  
    25        $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 test is already assigned to  <b>'.$val['Vclassroom']['name'].'</b>'); 
    2624        
    27        foreach ( $treasures as $wq): 
     25    foreach ( $treasures as $wq): 
    2826             if ($wq['TreasuresVclassroom']['vclassroom_id'] == $val['Vclassroom']['id']): 
    2927                 $id =  $wq['TreasuresVclassroom']['id']; 
    3028         endif;    
    31        endforeach; 
     29    endforeach; 
    3230 
     31    $tmp .= $form->create('Treasure', array('action'=>'unlink2class')); 
     32    $tmp .= $form->hidden('TreasuresVclassroom.id', array('value'=>$id)); 
     33    $tmp .= $form->hidden('TreasuresVclassroom.treasure_id', array('value'=>$treasure_id)); //used for return here 
     34    $tmp .= $form->end(__('Unlink this treasure', true)); 
     35  endif; 
    3336 
    34        $tmp .= $form->create('Treasure', array('action'=>'unlink2class')); 
    35        $tmp .= $form->hidden('TreasuresVclassroom.id', array('value'=>$id)); 
    36        $tmp .= $form->hidden('TreasuresVclassroom.treasure_id', array('value'=>$treasure_id)); //used for return here 
    37        $tmp .= $form->end('Unlink this test'); 
    38    endif; 
    39  
    40    echo $html->div('grayblock', $tmp); // print 
     37  echo $html->div('grayblock', $tmp); // print 
    4138 
    4239endforeach;