Show
Ignore:
Timestamp:
07/01/08 19:06:58 (5 months ago)
Author:
aarkerio
Message:

Little fixes

Location:
trunk/app/views/ecourses
Files:
3 modified

Legend:

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

    r585 r617  
    44?> 
    55<fieldset> 
    6   <legend>New Course</legend> 
     6  <legend><?php __('New eCourse');?></legend> 
    77  <table><tr><td> 
    88<?php 
     
    2727 ?> 
    2828</td></tr> 
    29  
    3029<tr><td> 
    31   <?php 
    32       echo $form->input('Ecourse.code', array("size" => 12, "maxlenght" => 12, 'title'=>' max. 12 characters. Example: ROM2121')); 
    33   ?> 
     30<?php 
     31 e($form->input('Ecourse.code', array("size" => 12, "maxlenght" => 12, 'title'=>' max. 12 characters. Example: ROM2121'))); 
     32?> 
    3433</td><td colspan="2"> 
    3534  <?php 
    36      echo $form->label('Ecourse.status', 'Enabled:' ); 
    37      echo $form->checkbox('Ecourse.status', array("value"=>1, 'title'=>'Enabled course'));  
     35     echo $form->label('Ecourse.status', 'Enabled:'); 
     36     echo $form->checkbox('Ecourse.status', array('value'=>1, 'title'=>'Enabled course'));  
    3837  ?></fieldset> 
    3938</td></tr> 
  • trunk/app/views/ecourses/admin_edit.ctp

    r585 r617  
    1010?> 
    1111<fieldset> 
    12   <legend>Edit Course</legend> 
     12 <legend><?php __('Edit eCourse'); ?></legend> 
    1313<table><tr><td> 
    1414<?php  
     
    2929  <?php 
    3030    echo $form->label('Ecourse.description', 'Description:'); 
    31     echo $form->textarea('Ecourse.description', array("cols" => 40, "rows" =>4)); 
     31    echo $form->textarea('Ecourse.description', array('cols'=>40, 'rows'=>4)); 
    3232    echo $fck->load('EcourseDescription', 'Karamelo'); 
    3333  ?> 
    3434 </td></tr> 
    35  <tr><td> 
    36   <?php 
    37     echo $form->input('Ecourse.code', array("size" => 12, "maxlenght" => 12, 'title'=>'max. 12 characters, ie.ROM2121'));     
    38   ?> 
    39   </td> 
    40   <td colspan="2"> 
    41   <?php 
     35<tr><td> 
     36<?php 
     37  echo $form->input('Ecourse.code', array('size' => 12, 'maxlenght' => 12, 'title'=>'max. 12 characters, ie.ROM2121')); 
     38 ?> 
     39 </td> 
     40 <td colspan="2"> 
     41 <?php 
    4242    echo $form->label('Ecourse.status', 'Enabled:' ); 
    4343    echo $form->checkbox('Ecourse.status', array("value"=>1, 'title'=>'Enabled course'));  
  • trunk/app/views/ecourses/admin_vclassrooms.ctp

    r396 r617  
    11<?php 
    2 //exit(print_r($data)); 
     2//die(debug($data)); 
    33 
    4 echo $html->addCrumb('Control Tools', '/admin/entries/start'); 
     4echo $html->addCrumb('Control Panel', '/admin/entries/start'); 
    55echo $html->addCrumb('Courses', '/admin/ecourses/listing');  
    66echo $html->getCrumbs(' / ');  
     
    88$str =  'Classrooms  on ' . $data['Ecourse']['title']; 
    99 
    10 if ( isset( $historic ) ) 
    11 { 
     10if ( isset( $historic ) ): 
    1211   $str .= ' (filed)'; 
    13 } 
     12endif; 
    1413 
    1514echo $html->div('title_section', $str); 
    1615 
    17  echo  $html->para(null, $html->link($html->image('static/vgroups.gif', array("alt"=>"Add new group", "title"=>"Add new group")),  '/admin/vclassrooms/add/'.$data['Ecourse']['id'], null, null, false)); 
    1816 
    19 if ( count($data['Vclassroom']) < 1 ) 
    20 { 
    21   echo $html->div('notice', 'No classrooms yet'); 
    22 } 
     17if ( count($data['Vclassroom']) < 1 ): 
     18    e($html->div('notice', 'No classrooms yet')); 
     19    $img = 'admin/vgroups-gray.gif';  
     20else: 
     21    $img = 'static/vgroups.gif';    
     22endif; 
    2323 
    24 foreach ($data['Vclassroom'] as $val) 
    25 { 
     24echo  $html->para(null, $html->link($html->image($img, array("alt"=>"Add new group", "title"=>"Add new group")),  '/admin/vclassrooms/add/'.$data['Ecourse']['id'], null, null, false)); 
     25 
     26 
     27foreach ($data['Vclassroom'] as $val): 
    2628 $s = ($val['status'] == 1) ? 'Enabled' : 'Filed'; 
    2729 
    2830      $tmp  =  $html->div('butonright', $gags->sendEdit($val['id'], 'Vclassroom')); 
    2931      $tmp .=  $html->link($val['name'], '/admin/vclassrooms/members/'.$val['id']); 
     32      $tmp .=  $html->div(null, 'Secret:'. $val['secret']); 
    3033      $tmp .=  $html->para(null, 'Status: '.$html->link($s,'/admin/vclassrooms/change/'.$val['id'].'/'.$val['status'].'/'.$val['ecourse_id'])); 
    3134      $tmp .=  $html->div('butonright', $gags->confirmDel($val['id'], 'Vclassroom')); 
    3235 
    3336      echo $html->div('grayblock', $tmp); 
    34 } 
     37endforeach; 
    3538 
    36 if ( !isset( $historic ) ) 
    37 { 
     39if ( !isset( $historic ) ): 
    3840echo $html->link( 
    3941                $html->image('admin/historic.png', array('alt'=>'Filed classrooms', 'title'=>'Filed classrooms')),  
    4042                '/admin/ecourses/vclassrooms/'.$data['Ecourse']['id'].'/historic', null, null, false); 
    41 } 
     43endif; 
    4244?>