- Timestamp:
- 09/24/08 15:20:15 (8 weeks ago)
- Location:
- trunk/app
- Files:
-
- 2 added
- 7 modified
-
config/sql/postgresql/vclassrooms.sql (modified) (1 diff)
-
models/vclassroom.php (modified) (3 diffs)
-
views/elements/google_calendar.ctp (added)
-
views/layouts/basic.ctp (modified) (1 diff)
-
views/vclassrooms/admin_add.ctp (modified) (1 diff)
-
views/vclassrooms/admin_edit.ctp (modified) (1 diff)
-
views/vclassrooms/chat.ctp (modified) (1 diff)
-
views/vclassrooms/show.ctp (modified) (4 diffs)
-
webroot/js/jsapi.js (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/config/sql/postgresql/vclassrooms.sql
r739 r779 11 11 "fdate" date NOT NULL DEFAULT now(), -- finish date 12 12 "access" smallint NOT NULL DEFAULT 0, -- public / only with code 13 "chat" smallint NOT NULL DEFAULT 0 -- active / desactive chat 13 "chat" smallint NOT NULL DEFAULT 0, -- active / desactive chat 14 "gcalendar_id" varchar(70) 14 15 ); 15 16 -
trunk/app/models/vclassroom.php
r756 r779 310 310 /** 311 311 * classElements 312 * Get class ( group) active elements (Webquest, Test, Trasures, Forums, etc)312 * Get class (vGroup) active elements (Webquest, Test, Scavenger, Forums, etc) 313 313 * this method is used in show() method, vclassrooms_controller.php 314 314 * @param integer $vclassroom_id description … … 321 321 try{ 322 322 323 $this->unbindModel(array('hasAndBelongsToMany'=>array('Test', 'Webquest', 'Treasure'))); 324 323 $this->unbindModel(array('hasAndBelongsToMany'=>array('Test', 'Webquest', 'Treasure'), 324 'hasMany' =>array('Participation', 'Report', 'Chat') 325 )); 326 325 327 $this->bindModel(array( 326 328 'belongsTo' =>array('Ecourse'=>array('fields'=>'id, title')), … … 359 361 360 362 $data = $this->find($conditions); 361 363 //die(debug($data)); 362 364 return $data; 363 365 } -
trunk/app/views/layouts/basic.ctp
r765 r779 10 10 echo $javascript->link('prototype'); 11 11 echo $javascript->link('myfunctions'); 12 // echo $javascript->link('jsapi'); // Google apihttp://www.google.com/jsapi 12 13 echo $javascript->link('scriptaculous.js?load=effects'); 13 14 endif; 15 //google.load("gdata", "1"); // load Google Data client library 16 // google.setOnLoadCallback(getMyFeed); // wait until the page finishes loading and then call your code 14 17 ?> 15 18 <meta http-equiv="content-type" content="text/html; charset=utf-8" /> -
trunk/app/views/vclassrooms/admin_add.ctp
r724 r779 19 19 20 20 echo $html->para(null, '<br />'); 21 22 echo $form->input('Vclassroom.gcalendar_id', array('size' => 50, 'maxlength' => 70)); 21 23 22 24 echo $form->input('Vclassroom.fdate',array('type'=>'date','label'=>__('Finishing date', true), 'dateFormat'=>'DMY')); -
trunk/app/views/vclassrooms/admin_edit.ctp
r725 r779 17 17 18 18 echo $form->input('Vclassroom.fdate',array('type'=>'date','label'=>__('Finishing date', true), 'dateFormat'=>'DMY')); 19 20 echo $form->input('Vclassroom.gcalendar_id', array('size' => 50, 'maxlength' => 70)); 19 21 20 22 echo $form->label('Vclassroom.status', __('Published', true)); -
trunk/app/views/vclassrooms/chat.ctp
r773 r779 11 11 endforeach; 12 12 echo $ajax->divEnd('updater'); 13 echo $ajax->div('chatters').$ajax->divEnd('chatters'); 14 13 15 echo $html->div(null, $session->read('Auth.User.username') .' '. __('writes', true)); 14 16 echo $ajax->div('charging',array('style'=>'display:none')).$html->image('static/loading.gif', array('alt'=>'Loading')).$ajax->divEnd('charging'); -
trunk/app/views/vclassrooms/show.ctp
r773 r779 7 7 if ( $belongs === true ): 8 8 echo $html->para(null, __('Welcome', true) . '!<b> '. $session->read('Auth.User.username') .'</b>'); 9 echo $html->para(null, '<b>'.__('Created', true). '</b>:' . $data['Vclassroom']['created']); 9 echo $html->para(null, '<b>'.__('Start date', true). '</b>:' . $data['Vclassroom']['sdate']); 10 echo $html->para(null, '<b>'.__('Finish date', true). '</b>:' . $data['Vclassroom']['fdate']); 10 11 echo $html->para(null, '<b>'.__('Subject', true).'</b>: ' . $data['Ecourse']['title']); 12 13 if ( strlen($data['Vclassroom']['gcalendar_id']) > 8): 14 echo $this->element('google_calendar', array('gcalendar_id'=>$data['Vclassroom']['gcalendar_id'])); 15 endif; 16 11 17 echo $html->para(null, '<b>'.__('Course description', true).'</b>'. $ajax->link($html->image('static/arrow_down.png',array('alt'=>__('Course description',true), 'title'=>__('Course description',true))),'/vclassrooms/description/'.$data['Vclassroom']['ecourse_id'], array('update' => 'qn','loading'=>"Element.show('loading3');",'complete'=>"Element.hide('loading3');Effect.Appear('qn')"), null,false)); 12 18 … … 100 106 101 107 // empty ajax div 102 103 108 echo $ajax->div('updater') . $ajax->divEnd('updater'); 104 109 endif; … … 111 116 echo $html->image('static/loading.gif', array('alt'=>'Loading')); 112 117 echo $ajax->divEnd('charging'); 118 119 // get Google calendar for this vgroup 120 //$feedUrl = (string) 'http://www.google.com/calendar/feeds/'.$blog['User']['email'].'/public/full'; 121 113 122 ?> 114 123 … … 116 125 //<