Changeset 680 for trunk/app/controllers

Show
Ignore:
Timestamp:
07/30/08 00:32:57 (4 months ago)
Author:
aarkerio
Message:

Uodate webquests

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/controllers/webquests_controller.php

    r574 r680  
    171171 } 
    172172 
    173  // see treasure 
    174  public function admin_see($user_id, $webquest_id) 
     173 // see webquest with student results 
     174 public function admin_see($student_id, $webquest_id) 
    175175 {  
    176176   $this->layout = 'popup'; 
    177177    
    178    $this->set('data', $this->Webquest->getQuest($user_id, $webquest_id)); 
     178   $this->set('data', $this->Webquest->getQuest($student_id, $webquest_id)); 
     179 } 
     180 
     181 public function admin_view($webquest_id) 
     182 {  
     183   $this->layout = 'popup'; 
     184   $conditions = array('Webquest.id'=>$webquest_id, 'Webquest.user_id'=>$this->Auth->user('id')); 
     185   $this->set('data', $this->Webquest->find($conditions, $fields)); 
    179186 } 
    180187