Changeset 442
- Timestamp:
- 04/29/08 21:44:41 (7 months ago)
- Location:
- trunk/app
- Files:
-
- 1 added
- 4 modified
-
models/result_treasure.php (modified) (1 diff)
-
models/vclassroom.php (modified) (1 diff)
-
views/layouts/portal.ctp (modified) (1 diff)
-
views/vclassrooms/admin_members.ctp (modified) (2 diffs)
-
views/vclassrooms/admin_record.ctp (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/models/result_treasure.php
r441 r442 8 8 class ResultTreasure extends AppModel 9 9 { 10 public $name = 'ResultTreasure';10 public $name = 'ResultTreasure'; 11 11 12 12 public $belongsTo = array( -
trunk/app/models/vclassroom.php
r441 r442 78 78 ) 79 79 ); 80 81 // get student record 82 public function getRecord($vclassroom_id, $user_id) 83 { 84 $record = (string) ''; 85 86 $conditions = array('"'=>$vclassroom_id, '"UsersVclassroom"."user_id"'=>$user_id); 87 88 $tests = $this->Vclassroom->Test->findAll($conditions, $fields); 89 90 foreach ($tests as $t) 91 { 92 93 } 94 95 $webquests = $this->Vclassroom->Webquest->findAll($conditions, $fields); 96 97 $treasures = $this->Vclassroom->Treasures->findAll($conditions, $fields); 98 99 return $record; 100 } 101 80 102 //Check if the user already exist in the classroom 81 103 public function chkMember($vclassroom_id, $user_id) -
trunk/app/views/layouts/portal.ctp
r411 r442 74 74 75 75 echo $this->renderElement('lastentries', $Element["Lentry"]); 76 echo '<br />'; 76 echo '<br />'; 77 78 echo $html->div(null, $html->link($html->image('teacher_podcast.jpg', array('alt'=>'Podcast', 'style'=>'border:1px solid black')), '/podcasts/recent', null, null, false)); 79 77 80 echo $this->renderElement('poll', $Element["Poll"]); 78 81 -
trunk/app/views/vclassrooms/admin_members.ctp
r422 r442 44 44 //die(print_r($data)); 45 45 46 $th = array ('Name', 'Username', 'Send Message', 'Email', 'Un dettach');46 $th = array ('Name', 'Username', 'Send Message', 'Email', 'Unlink', 'Record'); 47 47 echo $html->tableHeaders($th); 48 48 foreach ($data['User'] as $val): … … 52 52 $html->link($val['email'], 'mailto:'.$val['email']), 53 53 $html->link('Compose', '/admin/messages/write/'.$val['id']), 54 $html->link('Undetach', '/admin/vclassroom/unlink/'.$val['id'].'/'.$data['Vclassroom']['id']) 54 $html->link('Unlink', '/admin/vclassroom/unlink/'.$val['id'].'/'.$data['Vclassroom']['id']), 55 $html->link('Record', '/admin/vclassroom/record/'.$val['id'].'/'.$data['Vclassroom']['id']) 55 56 ); 56 57
