Changeset 722 for trunk/app/views
- Timestamp:
- 08/13/08 11:08:12 (4 months ago)
- Location:
- trunk/app/views
- Files:
-
- 5 modified
-
ecourses/admin_details.ctp (modified) (1 diff)
-
ecourses/admin_listing.ctp (modified) (2 diffs)
-
messages/admin_allclass.ctp (modified) (1 diff)
-
messages/admin_compose.ctp (modified) (1 diff)
-
vclassrooms/admin_record.ctp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/ecourses/admin_details.ctp
r583 r722 1 1 <?php 2 2 echo $html->div(null, $data['Ecourse']['description']); 3 echo $html->div(null, $data['Ecourse']['created']);4 echo $html->div(null, $data['Ecourse']['code']);3 echo $html->div(null, __('Created', true).': '.$data['Ecourse']['created']); 4 echo $html->div(null, __('Code', true).': '.$data['Ecourse']['code']); 5 5 ?> -
trunk/app/views/ecourses/admin_listing.ctp
r697 r722 1 1 <?php 2 2 echo $html->addCrumb('Control Panel', '/admin/entries/start'); 3 echo $html->addCrumb(__('Courses', true), '/admin/ecourses/listing');4 3 echo $html->getCrumbs(' / '); 5 4 … … 11 10 $tmp = $html->div('butonright', $gags->sendEdit($val['Ecourse']['id'], 'ecourses')); 12 11 $tmp .= $html->link($val['Ecourse']['title'], '/admin/ecourses/vclassrooms/'.$val['Ecourse']['id']); 13 $tmp .= $ajax->link($html->image("static/arrow_down.png", array( "alt"=>"Display details", "title"=>"Display details")), '/admin/ecourses/details/'.$val['Ecourse']['id'], array('update' => 'qn'.$val['Ecourse']['id'],12 $tmp .= $ajax->link($html->image("static/arrow_down.png", array('alt'=>__('View details', true), 'title'=>__('View details', true))), '/admin/ecourses/details/'.$val['Ecourse']['id'], array('update' => 'qn'.$val['Ecourse']['id'], 14 13 "loading" =>"Element.show('loading');", 15 14 "complete"=>"Element.hide('loading');Effect.Appear('qn".$val['Ecourse']['id']."')"), -
trunk/app/views/messages/admin_allclass.ctp
r576 r722 1 1 <fieldset> 2 <legend> New Message</legend>2 <legend><?php __('New message'); ?></legend> 3 3 <?php 4 4 echo $form->create('Message', array('action'=>'send2class')); 5 5 echo $form->hidden('Message.vclassroom_id', array('value'=>$vclassroom_id)); 6 echo $form->input('Message.title', array('size'=>40, 'maxlength'=>80, 'label'=> 'Message title'));6 echo $form->input('Message.title', array('size'=>40, 'maxlength'=>80, 'label'=>__('Title', true))); 7 7 echo $form->textarea('Message.body', array('rows'=>5, 'cols'=>80)); 8 echo $form->end( 'Send');8 echo $form->end(__('Send', true)); 9 9 ?> 10 10 </fieldset> -
trunk/app/views/messages/admin_compose.ctp
r566 r722 4 4 ?> 5 5 <fieldset> 6 <legend> Write Message:</legend>7 <?php6 <legend><?php __('Compose message'); ?></legend> 7 <?php 8 8 9 echo $session->read('Auth.User.username'). " write: <br />";10 echo $form->input('Message.title', array( "size" => 35, "maxlength" => 50)) . "<br />";11 echo $form->error('Message.title' , 'Asunto is required.');9 echo $session->read('Auth.User.username'). ' '. __('write', true) .': <br />'; 10 echo $form->input('Message.title', array('size' => 35, 'maxlength' => 50, 'label'=>__('Title', true))) . "<br />"; 11 echo $form->error('Message.title'); 12 12 13 echo $form->label('Message.body', 'Message:').'<br />';14 echo $form->textarea('Message.body', array( "cols"=>30, "rows"=>10));15 echo $form->error('Message.body' , 'Message is required.');13 echo $form->label('Message.body', __('Message', true)).'<br />'; 14 echo $form->textarea('Message.body', array('cols'=>30, 'rows'=>10)); 15 echo $form->error('Message.body'); 16 16 17 echo $ajax->submit( 'Send message', array("url" => "/admin/messages/compose",17 echo $ajax->submit(__('Send', true), array("url" => "/admin/messages/compose", 18 18 "update"=>"compose", 19 19 "loading" => "Element.show('loading');Element.hide('compose')", 20 20 "complete" => "Element.hide('loading');Effect.Appear('compose')" 21 )); ?> 21 )); 22 ?> 22 23 </fieldset> 23 24 </form> -
trunk/app/views/vclassrooms/admin_record.ctp
r580 r722 2 2 //die(debug($data)); 3 3 4 echo $html->addCrumb('Control Tools', '/admin/entries/start');5 echo $html->addCrumb( 'Classes', '/admin/vclassrooms/listing');4 echo $html->addCrumb('Control Panel', '/admin/entries/start'); 5 echo $html->addCrumb(__('vGroups', true), '/admin/vclassrooms/listing'); 6 6 echo $html->getCrumbs(' / '); 7 7 … … 21 21 array('update' => 'compose', 22 22 'loading' =>"Element.show('loading');", 23 'before' =>'return confirm(\' Are you sure you wanna send this information to student?\')',23 'before' =>'return confirm(\''.__('Are you sure you wanna send this information to student', true).'?\')', 24 24 'complete' =>"Element.hide('loading');Effect.Appear('compose');"),null,false) 25 25 ); … … 32 32 // Tests 33 33 if ( count($data['tests']) > 0 ): 34 echo '<h1> Tests</h1>';34 echo '<h1>'. __('Tests', true).'</h1>'; 35 35 foreach ($data['tests'] as $t): 36 36 … … 39 39 40 40 if ($t['TestsVclassroom']['points'] === null): // not answered yet 41 e($html->div(null, 'Not answered this test yet', array('id'=>$div_id, 'style'=>'width:180px;float:left;font-size:8pt;')));41 e($html->div(null, __('Not answered this test yet', true), array('id'=>$div_id, 'style'=>'width:180px;float:left;font-size:8pt;'))); 42 42 e($html->div(null, $t['TestsVclassroom']['title'], array('style'=>'width:380px;float:right;'))); 43 43 else:
