Changeset 696 for trunk/app/views
- Timestamp:
- 08/05/08 22:18:45 (4 months ago)
- Location:
- trunk/app/views
- Files:
-
- 2 modified
-
ecourses/admin_listing.ctp (modified) (1 diff)
-
treasures/admin_vclassrooms.ctp (modified) (2 diffs)
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 2 echo $html->addCrumb('Control ', '/admin/entries/start'); 3 echo $html->addCrumb(__('Courses', true), '/admin/ecourses/listing'); 8 4 echo $html->getCrumbs(' / '); 9 5 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));6 echo $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)); 11 7 12 8 echo $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 1 1 <?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'); 4 4 echo $html->getCrumbs(' / '); 5 5 //die( debug( $data ) ); … … 15 15 foreach ( $data as $val): 16 16 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)); 23 22 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>'); 26 24 27 foreach ( $treasures as $wq):25 foreach ( $treasures as $wq): 28 26 if ($wq['TreasuresVclassroom']['vclassroom_id'] == $val['Vclassroom']['id']): 29 27 $id = $wq['TreasuresVclassroom']['id']; 30 28 endif; 31 endforeach;29 endforeach; 32 30 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; 33 36 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 41 38 42 39 endforeach;
