Changeset 664

Show
Ignore:
Timestamp:
07/21/08 22:59:54 (3 months ago)
Author:
aarkerio
Message:

Update general

Location:
trunk/app
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/models/vclassroom.php

    r640 r664  
    129129 **/ 
    130130 public function studentRecord($user_id, $vclassroom_id) 
    131  {    
     131 { 
     132  try {    
    132133     $record                  = array(); 
    133134    
     
    193194     //die(debug($record)); 
    194195     return $record; 
     196  } 
     197 
     198  catch(Exception $e) 
     199  { 
     200    echo $e->getMessage(); 
     201    exit(); 
     202  } 
    195203 } 
    196204 
     
    202210*/ 
    203211 public function getList($user_id) 
    204  {    
     212 { 
     213 try{    
    205214  $record     = array(); 
    206215  $conditions = array('UsersVclassroom.user_id'=>$user_id); 
     
    222231   
    223232  return $record; 
     233  } 
     234 
     235  catch(Exception $e) 
     236  { 
     237    echo $e->getMessage(); 
     238    exit(); 
     239  } 
    224240 } 
    225241 
     
    233249 **/ 
    234250 public function recordClass($vclassroom_id) 
    235  {    
     251 { 
     252  try{    
    236253  $users      = array(); 
    237254  $records    = array(); 
     
    277294  //die(debug($records)); 
    278295  return $records; 
     296  } 
     297 
     298  catch(Exception $e) 
     299  { 
     300    echo $e->getMessage(); 
     301    exit(); 
     302  } 
    279303 } 
    280304 
     
    315339 } 
    316340 public function studentPoints($user_id, $vclassroom_id) 
    317  {    
     341 { 
     342  try{    
    318343     $points  = (int) 0; 
    319344    
     
    359384     //die(debug($record)); 
    360385     return $points; 
     386  } 
     387 
     388  catch(Exception $e) 
     389  { 
     390    echo $e->getMessage(); 
     391    exit(); 
     392  } 
    361393 } 
    362394 
  • trunk/app/views/subjects/view.ctp

    r661 r664  
    1313 
    1414foreach($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 />'; 
    1616endforeach; 
    1717 
     
    2525 
    2626foreach($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 />'; 
    2828endforeach; 
    2929 
     
    3737 
    3838foreach($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 />'; 
    4040endforeach; 
    4141