Show
Ignore:
Timestamp:
03/28/08 10:03:54 (8 months ago)
Author:
aarkerio
Message:

Improvs on Lessons and Images

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

Legend:

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

    r340 r352  
    77echo $html->addCrumb('Courses', '/admin/ecourses/listing');  
    88echo $html->getCrumbs(' / ');  
    9 ?> 
    109 
    11 <p> 
    12 <?php 
    13  echo  $html->link($html->image('actions/new.png', array("alt"=>"Add new course", "title"=>"Add new course")),  '/admin/ecourses/add', null, null, false); 
    14 ?> 
    15 </p> 
     10echo $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)); 
    1611 
    17 <?php 
    18 //exit(print_r($data)); 
    1912foreach ($data as $val) 
    2013{ 
    21  echo '<div style="padding:6px 3px 28px 4px;margin:10px 0 5px 0;border:1px dotted gray;">'; 
    22       echo '<div class="butonright">' .$gags->sendEdit($val['Ecourse']['id'], 'ecourses') . '</div>'; 
    23       echo $html->link($val['Ecourse']['title'], '/admin/ecourses/vclassrooms/'.$val['Ecourse']['id']); 
    24       echo '<p>' . $val['Ecourse']['description']  . '</p>'; 
    25       echo '<div class="butonright">'. $gags->confirmDel($val['Ecourse']['id'], 'ecourses') .'</div>'; 
    26  echo '</div>'; 
     14 
     15      $tmp  = $html->div('butonright', $gags->sendEdit($val['Ecourse']['id'], 'ecourses')); 
     16      $tmp .= $html->link($val['Ecourse']['title'], '/admin/ecourses/vclassrooms/'.$val['Ecourse']['id']); 
     17      $tmp .= $html->para(null, $val['Ecourse']['description']); 
     18      $tmp .= $html->div('butonright', $gags->confirmDel($val['Ecourse']['id'], 'ecourses')); 
     19      echo $html->div('grayblock', $tmp); 
    2720} 
    2821?> 
  • trunk/app/views/ecourses/admin_vclassrooms.ctp

    r350 r352  
    66echo $html->getCrumbs(' / ');  
    77 
    8 echo $html->div('title_section', 'Virtual clasrooms  on ' . $data['Ecourse']['title'] . ' e-Course'); 
     8$str =  'Virtual clasrooms  on ' . $data['Ecourse']['title'] . ' e-Course'; 
    99 
     10if ( isset( $historic ) ) 
     11{ 
     12   $str .= ' (filed)'; 
     13} 
     14 
     15echo $html->div('title_section', $str); 
    1016 
    1117 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)); 
     
    2531      $tmp .=  $html->div('butonright', $gags->confirmDel($val['id'], 'Vclassroom')); 
    2632 
    27       echo $html->div('spaced', $tmp); 
     33      echo $html->div('grayblock', $tmp); 
     34} 
     35 
     36if ( !isset( $historic ) ) 
     37{ 
     38echo $html->link( 
     39                $html->image('admin/historic.png', array('alt'=>'Filed classrooms', 'title'=>'Filed classrooms')),  
     40                '/admin/ecourses/vclassrooms/'.$data['Ecourse']['id'].'/historic', null, null, false); 
    2841} 
    2942?>