Show
Ignore:
Timestamp:
06/03/08 00:24:49 (6 months ago)
Author:
aarkerio
Message:

Update validation

Location:
trunk/app/views/ecourses
Files:
1 added
1 modified

Legend:

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

    r581 r583  
    1010echo $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)); 
    1111 
     12echo $html->div(null, $html->image('static/loading.gif', array('alt'=>'Loading')), array('id'=>'loading', 'style'=>'display:none;')); 
     13 
    1214foreach ($data as $val): 
    1315      $tmp  = $html->div('butonright', $gags->sendEdit($val['Ecourse']['id'], 'ecourses')); 
    1416      $tmp .= $html->link($val['Ecourse']['title'], '/admin/ecourses/vclassrooms/'.$val['Ecourse']['id']); 
    15  
     17      $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'], 
     18            "loading" =>"Element.show('loading');", 
     19            "complete"=>"Element.hide('loading');Effect.Appear('qn".$val['Ecourse']['id']."')"), 
     20             null, 
     21             false 
     22             ); 
     23      $tmp .= $ajax->div('qn'.$val['Ecourse']['id']).$ajax->divEnd('qn'.$val['Ecourse']['id']); 
    1624      $tmp .= $html->div('butonright', $gags->confirmDel($val['Ecourse']['id'], 'ecourses')); 
    1725      echo $html->div('grayblock', $tmp);