Changeset 730 for trunk/app/views
- Timestamp:
- 08/20/08 20:54:59 (3 months ago)
- Files:
-
- 1 modified
-
trunk/app/views/vclassrooms/admin_record.ctp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/vclassrooms/admin_record.ctp
r728 r730 1 1 <?php 2 2 //die(debug($data)); 3 4 3 echo $html->addCrumb('Control Panel', '/admin/entries/start'); 5 4 echo $html->addCrumb(__('Groups', true), '/admin/vclassrooms/listing'); … … 101 100 endforeach; 102 101 else: 103 echo $html->para(null, 'No webquests found');102 echo $html->para(null, __('No Webquests found', true)); 104 103 endif; 105 104 106 105 // Treasures. Model: Treasure 107 106 $tpoints = (int) 0; // tresure points 107 echo '<h1>'. __('Scavengers hunts', true).'</h1>'; 108 108 if ( count($data['treasures']) > 0 ): 109 echo '<h1>Treasures</h1>';110 109 foreach ($data['treasures'] as $tr): 111 112 $tpoints += $tr['ResultTreasure']['points']; 110 $tpoints += (int) $tr['ResultTreasure']['points']; 113 111 $div_id = 'tr'.$tr['Treasure']['id']; 114 112 e('<div style="border:1px dotted gray;padding:4px;margin:2px;height:20px;">'); 115 113 e($html->div(null, $tr['ResultTreasure']['points'] .' points', array('id'=>$div_id, 'style'=>'width:150px;float:left;'))); 116 114 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'=> 118 116 "window.open('/admin/treasures/see/".$data['User']['id']."/".$tr['Treasure']['id']."','mywin','left=20,top=20,width=700,height=700,toolbar=0,resizable=1')")) . ' '; 119 117 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))), 121 119 '/admin/treasures/points/'.$tr['Treasure']['id'].'/down', 122 120 array('update' => $div_id, … … 124 122 'after' =>'tp('.$data['User']['id'].','.$data['Vclassroom']['id'].')', 125 123 '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))), 127 125 '/admin/treasures/points/'.$tr['Treasure']['id'].'/up', 128 126 array('update' => $div_id, … … 135 133 endforeach; 136 134 else: 137 echo $html->para(null, 'No treasures found');135 echo $html->para(null, __('No Scavenger hunts found', true)); 138 136 endif; 139 137 140 // Replies on forums. Model: Topic 141 $rpoints = (int) 0; // reply points 138 139 echo '<h1>'.__('Participations in forums', true).'</h1>'; 140 142 141 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): 146 145 $div_id = 're'.$re['Reply']['id']; 147 146 e('<div style="border:1px dotted gray;padding:4px;margin:2px;height:20px;">');
