Changeset 728 for trunk/app/views
- Timestamp:
- 08/19/08 19:50:28 (3 months ago)
- Location:
- trunk/app/views
- Files:
-
- 5 modified
-
treasures/admin_vclassrooms.ctp (modified) (2 diffs)
-
vclassrooms/admin_members.ctp (modified) (2 diffs)
-
vclassrooms/admin_record.ctp (modified) (2 diffs)
-
vclassrooms/show.ctp (modified) (3 diffs)
-
webquests/admin_vclassrooms.ctp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/treasures/admin_vclassrooms.ctp
r696 r728 1 1 <?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 2 echo $html->addCrumb('Control Panel', '/admin/entries/start'); 3 echo $html->addCrumb(__('Scavengers hunts', true), '/admin/treasures/listing'); 4 echo $html->getCrumbs(' / '); 5 //die( debug( $data ) ); 6 7 7 $vclasses = array(); // contains vclassroom already linked to this treasure 8 8 … … 21 21 $tmp .= $form->end(__('Assign this Treasure', true)); 22 22 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>'); 24 24 25 25 foreach ( $treasures as $wq): -
trunk/app/views/vclassrooms/admin_members.ctp
r665 r728 57 57 58 58 if ( 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))); 60 60 endif; 61 61 … … 64 64 //die(print_r($data)); 65 65 66 $th = array ( 'Name', 'Username', 'Email', 'Send Message', 'Unlink', 'Record');66 $th = array (__('Name', true), 'Username', 'Email',__('Send message', true), __('Unlink', true), 'Record'); 67 67 68 68 echo $html->tableHeaders($th); -
trunk/app/views/vclassrooms/admin_record.ctp
r722 r728 1 1 <?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']); 6 7 echo $html->getCrumbs(' / '); 7 8 … … 39 40 40 41 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:3 80px;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;'))); 43 44 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;">'); 48 47 echo $html->link($t['TestsVclassroom']['title'], '#', array('title'=>'View test', 'onclick'=> 49 48 "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')")) . ' '; -
trunk/app/views/vclassrooms/show.ctp
r675 r728 1 1 <?php 2 2 //exit(debug($data)); 3 echo $javascript->link('fckeditor/fckeditor');3 echo $javascript->link('fckeditor/fckeditor'); 4 4 5 echo '<h1>' . $data['Vclassroom']['name'] . '</h1>';5 echo '<h1>' . $data['Vclassroom']['name'] . '</h1>'; 6 6 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));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)); 12 12 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')); 14 14 15 echo $ajax->div('qn', array("style"=>"padding:3px")).$ajax->divEnd('qn');15 echo $ajax->div('qn', array("style"=>"padding:3px")).$ajax->divEnd('qn'); 16 16 17 // Forums18 if ( isset($data['Forum']) && count($data['Forum']) > 0):17 // Forums 18 if ( isset($data['Forum']) && count($data['Forum']) > 0): 19 19 echo $html->div('titentry', 'Forums'); 20 20 … … 22 22 echo $html->para(null, $html->link($f['title'], '/forums/display/'.$f['id'].'/'.$data['Vclassroom']['id'])); 23 23 endforeach; 24 endif;24 endif; 25 25 26 // Tests27 if ( isset($data['Test']) && count($data['Test']) > 0):26 // Tests 27 if ( isset($data['Test']) && count($data['Test']) > 0): 28 28 echo $html->div('titentry', __('Quizz Tests', true)); 29 29 … … 31 31 echo $html->para(null, $html->link($t['title'], '/tests/view/'.$t['id'].'/'.$data['Vclassroom']['id'])); 32 32 endforeach; 33 endif;33 endif; 34 34 35 35 // Webquests -
trunk/app/views/webquests/admin_vclassrooms.ctp
r418 r728 1 1 <?php 2 echo $html->addCrumb('Control Tools', '/admin/entries/start');2 echo $html->addCrumb('Control Panel', '/admin/entries/start'); 3 3 echo $html->addCrumb('Webquests', '/admin/webquests/listing'); 4 4 echo $html->getCrumbs(' / '); 5 //die( debug( $data ) );6 5 7 6 $vclasses = array(); // contains vclassroom already linked to this webquest … … 19 18 $tmp .= $form->hidden('VclassroomsWebquest.webquest_id', array('value'=>$webquest_id)); 20 19 $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)); 22 21 23 22 else: 24 23 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>'); 26 25 27 26 foreach ( $webquests as $wq): … … 35 34 $tmp .= $form->hidden('VclassroomsWebquest.id', array('value'=>$id)); 36 35 $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; 39 38 40 39 echo $html->div('grayblock', $tmp); // print
