Changeset 664
- Timestamp:
- 07/21/08 22:59:54 (3 months ago)
- Location:
- trunk/app
- Files:
-
- 2 modified
-
models/vclassroom.php (modified) (8 diffs)
-
views/subjects/view.ctp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/models/vclassroom.php
r640 r664 129 129 **/ 130 130 public function studentRecord($user_id, $vclassroom_id) 131 { 131 { 132 try { 132 133 $record = array(); 133 134 … … 193 194 //die(debug($record)); 194 195 return $record; 196 } 197 198 catch(Exception $e) 199 { 200 echo $e->getMessage(); 201 exit(); 202 } 195 203 } 196 204 … … 202 210 */ 203 211 public function getList($user_id) 204 { 212 { 213 try{ 205 214 $record = array(); 206 215 $conditions = array('UsersVclassroom.user_id'=>$user_id); … … 222 231 223 232 return $record; 233 } 234 235 catch(Exception $e) 236 { 237 echo $e->getMessage(); 238 exit(); 239 } 224 240 } 225 241 … … 233 249 **/ 234 250 public function recordClass($vclassroom_id) 235 { 251 { 252 try{ 236 253 $users = array(); 237 254 $records = array(); … … 277 294 //die(debug($records)); 278 295 return $records; 296 } 297 298 catch(Exception $e) 299 { 300 echo $e->getMessage(); 301 exit(); 302 } 279 303 } 280 304 … … 315 339 } 316 340 public function studentPoints($user_id, $vclassroom_id) 317 { 341 { 342 try{ 318 343 $points = (int) 0; 319 344 … … 359 384 //die(debug($record)); 360 385 return $points; 386 } 387 388 catch(Exception $e) 389 { 390 echo $e->getMessage(); 391 exit(); 392 } 361 393 } 362 394 -
trunk/app/views/subjects/view.ctp
r661 r664 13 13 14 14 foreach($data['Lesson'] as $l): 15 echo $html->link('⺠'.$l['Lesson']['title'], '/lessons/view/'.$l[' Lesson']['id']). '<br />';15 echo $html->link('⺠'.$l['Lesson']['title'], '/lessons/view/'.$l['User']['username'].'/'.$l['Lesson']['id']). '<br />'; 16 16 endforeach; 17 17 … … 25 25 26 26 foreach($data['Entry'] as $e): 27 echo $html->link('⺠'.$e['Entry']['title'], '/ lessons/view/'.$e['Entry']['id']). '<br />';27 echo $html->link('⺠'.$e['Entry']['title'], '/entry/view/'.$e['User']['username'].'/'.$e['Entry']['id']). '<br />'; 28 28 endforeach; 29 29 … … 37 37 38 38 foreach($data['Share'] as $s): 39 echo $html->link('⺠'.$s['Share']['description'], '/shares/ view/'.$s['Share']['secret']). '<br />';39 echo $html->link('⺠'.$s['Share']['description'], '/shares/download/'.$s['Share']['secret']). '<br />'; 40 40 endforeach; 41 41
