- Timestamp:
- 08/21/08 20:27:42 (3 months ago)
- Location:
- trunk/app
- Files:
-
- 6 modified
-
controllers/reports_controller.php (modified) (1 diff)
-
controllers/shares_controller.php (modified) (1 diff)
-
locale/spa/LC_MESSAGES/default.po (modified) (2 diffs)
-
models/participation.php (modified) (1 diff)
-
views/shares/download.ctp (modified) (1 diff)
-
views/vclassrooms/admin_record.ctp (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/controllers/reports_controller.php
r606 r733 129 129 } 130 130 131 public function admin_download($report_id) 132 { 133 $this->layout = 'ajax'; 134 $conditions = array('Report.id'=>$report_id); 135 $filename = $this->Report->field('filename', $conditions); 136 137 $this->set('filename', 'files/studentsfiles/'.trim($filename)); 138 } 139 131 140 public function admin_show($participation_id) 132 141 { -
trunk/app/controllers/shares_controller.php
r724 r733 22 22 public function download($secret) 23 23 { 24 $this->pageTitle = 'Share';24 $this->pageTitle = __('Share file', true); 25 25 $this->layout = 'ajax'; 26 26 $conditions = array("Share.secret"=>$secret, "Share.public"=>1); -
trunk/app/locale/spa/LC_MESSAGES/default.po
r732 r733 5 5 msgstr "Si" 6 6 7 msgid "Reports" 8 msgstr "Reportes" 9 7 10 msgid "No reports found" 8 11 msgstr "No hay reportes" … … 116 119 msgstr "Ver detalles" 117 120 121 msgid "View file" 122 msgstr "Ver archivos" 123 124 msgid "Compose message" 125 msgstr "Escribir mensaje" 126 118 127 msgid "About me" 119 128 msgstr "Sobre mi" 129 130 msgid "Participation" 131 msgstr "Participación" 132 133 msgid "Report" 134 msgstr "Reporte" 120 135 121 136 msgid "You already have answered this Webquest" -
trunk/app/models/participation.php
r535 r733 11 11 12 12 public $belongsTo = array( 13 "User"=> array(14 "className" => "User",15 "foreignKey" => "user_id"13 'User' => array( 14 'className' => 'User', 15 'foreignKey' => 'user_id' 16 16 ) 17 17 ); 18 18 19 public $validate = array( 20 'points' => VALID_NOT_EMPTY, 21 'user_id' => VALID_NOT_EMPTY, 22 'forum_id' => VALID_NOT_EMPTY, 23 'vlcassroom_id' => VALID_NOT_EMPTY 24 ); 25 /* 26 public $validate = array( 27 'login' => array('alphanumeric' => array( 28 'rule' => 'alphaNumeric', 29 'required' => true, 30 'message' => 'Alphabets and numbers only' 31 ), 32 'between' => array( 33 'rule' => array('between', 5, 15), 34 'message' => 'Between 5 to 15 characters' 35 ) 36 ), 37 'password' => array( 38 'rule' => array('minLength', '8'), 39 'message' => 'Mimimum 8 characters long' 40 ), 41 'email' => 'email', 42 'born' => array( 43 'rule' => 'date', 44 'message' => 'Enter a valid date', 45 'allowEmpty' => true 46 ) 47 ); */ 19 public $validate = array( 20 'title' => array( 21 'rule' => array('minLength', 4), 22 'message' => 'Title must be at least four characters long', 23 'allowEmpty' => false, 24 'required' => true 25 ), 26 27 'participation' => array( 28 'rule' => array('minLength', 8), 29 'message' => 'Text must be at least 8 characters long', 30 'allowEmpty' => false, 31 'required' => true 32 ) 33 ); 48 34 } 49 35 ?> -
trunk/app/views/shares/download.ctp
r557 r733 16 16 exit; 17 17 } 18 19 18 ?> -
trunk/app/views/vclassrooms/admin_record.ctp
r732 r733 9 9 echo $html->div('title_section', $data['User']['name']); 10 10 echo $html->div(null, $html->link($data['User']['email'], $data['User']['email'])); 11 // send message andsend record to student11 // send message || send record to student 12 12 echo $html->para(null, 13 13 $ajax->link($html->image('admin/compose_on.gif', array('alt'=>'Compose', 'title'=>'Compose Message')) , … … 27 27 echo $ajax->div('compose').$ajax->divEnd('compose'); 28 28 29 $points = (int) 0; // total points 29 $points = (int) 0; // total points used in the end of script 30 30 31 31 // Tests … … 41 41 e($html->div(null, $t['TestsVclassroom']['title'], array('style'=>'width:350px;float:right;'))); 42 42 else: 43 e($html->div(null, $t['TestsVclassroom']['points'] .' points', array('id'=>$div_id, 'style'=>'width:180px;float:left;')));43 e($html->div(null, $t['TestsVclassroom']['points'] .' '.__('points', true), array('id'=>$div_id, 'style'=>'width:180px;float:left;'))); 44 44 e('<div style="width:450px;float:right;">'); 45 echo $html->link($t['TestsVclassroom']['title'], '#' , array('title'=>'View test', 'onclick'=>45 echo $html->link($t['TestsVclassroom']['title'], '#'.$div_id, array('title'=>'View test', 'onclick'=> 46 46 "window.open('/admin/tests/see/".$data['User']['id']."/".$t['TestsVclassroom']['test_id']."/".$data['Vclassroom']['id']."','mywin','left=20,top=10,width=700,height=700,scrollbars=1,toolbar=0,resizable=1')")) . ' '; 47 47 /* … … 65 65 endforeach; 66 66 else: 67 echo $html->para(null, 'No tests found');67 echo $html->para(null, __('No tests found', true)); 68 68 endif; 69 69 … … 77 77 $div_id = 'w'.$w['Webquest']['id']; 78 78 e('<div style="border:1px dotted gray;padding:4px;margin:2px;height:20px;">'); 79 e($html->div(null, $w['ResultWebquest']['points'] .' points', array('id'=>$div_id, 'style'=>'width:150px;float:left;')));79 e($html->div(null, $w['ResultWebquest']['points'] .' '.__('points', true), array('id'=>$div_id, 'style'=>'width:150px;float:left;'))); 80 80 e('<div style="width:450px;float:right;">'); 81 echo $html->link($w['Webquest']['title'], '#' , array('title'=>'View reply', 'onclick'=>81 echo $html->link($w['Webquest']['title'], '#'.$div_id, array('title'=>__('View reply', true), 'onclick'=> 82 82 "window.open('/admin/webquests/see/".$data['User']['id']."/".$w['Webquest']['id']."','mywin','left=20,top=20,width=700,height=700,toolbar=0,resizable=1')")) . ' '; 83 83 84 echo $ajax->link($html->image('static/adownmod.png', array('alt'=> 'Points down', 'title'=>'Points down')),84 echo $ajax->link($html->image('static/adownmod.png', array('alt'=>__('Points down', true), 'title'=>__('Points down', true))), 85 85 '/admin/webquests/points/'.$w['Webquest']['id'].'/down', 86 86 array('update' => $div_id, … … 88 88 'after' =>'tp('.$data['User']['id'].','.$data['Vclassroom']['id'].')', 89 89 'complete'=>"Element.hide('loadingre');Effect.Appear(".$div_id.")"),null,false); 90 echo $ajax->link($html->image('static/aupmod.png', array('alt'=> 'Points up', 'title'=>'Points up')),90 echo $ajax->link($html->image('static/aupmod.png', array('alt'=>__('Points up', true), 'title'=>__('Points up', true))), 91 91 '/admin/webquests/points/'.$w['Webquest']['id'].'/up', 92 92 array('update' => $div_id, … … 112 112 e($html->div(null, $tr['ResultTreasure']['points'] .' points', array('id'=>$div_id, 'style'=>'width:150px;float:left;'))); 113 113 e('<div style="width:450px;float:right;">'); 114 echo $html->link($tr['Treasure']['title'], '#' , array('title'=>__('View text', true), 'onclick'=>114 echo $html->link($tr['Treasure']['title'], '#'.$div_id, array('title'=>__('View text', true), 'onclick'=> 115 115 "window.open('/admin/treasures/see/".$data['User']['id']."/".$tr['Treasure']['id']."','mywin','left=20,top=20,width=700,height=700,toolbar=0,resizable=1')")) . ' '; 116 116 … … 142 142 $div_id = 're'.$re['Reply']['id']; 143 143 e('<div style="border:1px dotted gray;padding:4px;margin:2px;height:20px;">'); 144 e($html->div(null, $re['Reply']['points'].' points', array('id'=>$div_id, 'style'=>'width:150px;float:left;')));144 e($html->div(null, $re['Reply']['points'].' '.__('points', true), array('id'=>$div_id, 'style'=>'width:150px;float:left;'))); 145 145 e('<div style="width:450px;float:right;">'); 146 echo $html->link(__('See participation', true), '#' , array('title'=>__('See participation', true), 'onclick'=>146 echo $html->link(__('See participation', true), '#'.$div_id, array('title'=>__('See participation', true), 'onclick'=> 147 147 "window.open('/admin/topics/reply/".$re['Reply']['id']."','mywin','left=20,top=20,width=700,height=700,toolbar=0,resizable=1')")) . ' '; 148 148 … … 180 180 $ppoints += $p['Participation']['points']; 181 181 182 echo $html->div(null, $p['Participation']['points'].' points',array('id'=>$div_id,'style'=>'width:150px;float:left;'));182 echo $html->div(null, $p['Participation']['points'].' '.__('points', true), array('id'=>$div_id,'style'=>'width:150px;float:left;')); 183 183 184 184 echo '<div style="width:450px;float:right;">'; 185 echo __('Participation', true).': '. $html->link($p['Participation']['title'], '#', array('title'=> 'View reply', 'onclick'=>"window.open('/admin/participations/show/".$p['Participation']['id']."','mywin','left=20,top=20,width=700,height=700,toolbar=0,resizable=1')")).' ';185 echo __('Participation', true).': '. $html->link($p['Participation']['title'], '#', array('title'=>__('View text', true), 'onclick'=>"window.open('/admin/participations/show/".$p['Participation']['id']."','mywin','left=20,top=20,width=700,height=700,toolbar=0,resizable=1')")).' '; 186 186 187 187 echo $ajax->link($html->image('static/adownmod.png', array('alt'=>__('Points down', true), 'title'=>__('Points down', true))) , … … 222 222 223 223 echo '<div style="width:450px;float:right;">'; 224 echo __('Report', true).': '. $html->link($r['Report']['description'], '#' , array('title'=>__('View reply', true), 'onclick'=>"window.open('/admin/participations/show/".$r['Report']['id']."','mywin','left=20,top=20,width=700,height=700,toolbar=0,resizable=1')")).' ';224 echo __('Report', true).': '. $html->link($r['Report']['description'], '#'.$div_id, array('title'=>__('View file', true), 'onclick'=>"window.open('/admin/reports/download/".$r['Report']['id']."','mywin','left=20,top=20,width=700,height=700,toolbar=0,resizable=1')")).' '; 225 225 226 226 echo $ajax->link($html->image('static/adownmod.png', array('alt'=>__('Points down', true), 'title'=>__('Points down', true))) ,
