- Timestamp:
- 10/09/08 22:07:55 (8 weeks ago)
- Location:
- trunk/app
- Files:
-
- 4 added
- 4 modified
-
config/sql/postgresql/wikis.sql (modified) (1 diff)
-
controllers/ecourses_controller.php (modified) (1 diff)
-
views/ecourses/admin_listing.ctp (modified) (2 diffs)
-
views/helps/admin_edit.ctp (modified) (2 diffs)
-
webroot/js/fckeditor/editor/plugins/youtube/readme.txt (added)
-
webroot/js/fckeditor/editor/plugins/youtube/release-notes.txt (added)
-
webroot/js/fckeditor/editor/plugins/youtube/youtube.html (added)
-
webroot/js/fckeditor/editor/plugins/youtube/youtube.js (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/config/sql/postgresql/wikis.sql
r770 r803 6 6 status smallint NOT NULL DEFAULT 0, 7 7 modified timestamp NOT NULL default now(), 8 user_id int NOT NULL REFERENCES users(id) ,8 user_id int NOT NULL REFERENCES users(id) ON DELETE CASCADE, 9 9 subject_id smallint NOT NULL REFERENCES subjects(id), 10 vclassroom_id int NOT NULL REFERENCES vclassrooms(id) ,10 vclassroom_id int NOT NULL REFERENCES vclassrooms(id) ON DELETE CASCADE, 11 11 ip varchar(15) NOT NULL, 12 12 revision smallint NOT NULL, -
trunk/app/controllers/ecourses_controller.php
r785 r803 26 26 public function admin_listing($page=1) 27 27 { 28 $this->layout = 'admin';28 $this->layout = 'admin'; 29 29 30 $conditions = array("user_id"=>$this->Auth->user('id'));31 $fields = array('id', 'title', 'status', 'description');32 $order = "Ecourse.id DESC";33 $limit = 10;30 $conditions = array('user_id'=>$this->Auth->user('id')); 31 $fields = array('id', 'title', 'status', 'description'); 32 $order = 'Ecourse.title'; 33 $limit = 20; 34 34 35 $this->set('data', $this->Ecourse->findAll($conditions, $fields));35 $this->set('data', $this->Ecourse->findAll($conditions, $fields, $order, $limit)); 36 36 } 37 37 38 38 public function admin_vclassrooms($ecourse_id, $historic = null) 39 39 { 40 $this->layout = 'admin';40 $this->layout = 'admin'; 41 41 42 $lmt = 25; // limit news42 $lmt = 25; // limit news 43 43 44 $conditions = array("Ecourse.user_id"=>$this->Auth->user('id'), "Ecourse.id"=>$ecourse_id);44 $conditions = array("Ecourse.user_id"=>$this->Auth->user('id'), "Ecourse.id"=>$ecourse_id); 45 45 46 if ( $historic === 'historic' ): 47 $this->Ecourse->filed(); //show filed classrooms 48 49 $this->set('historic', true); 50 endif; 46 if ( $historic === 'historic' ): 47 $this->Ecourse->filed(); //show filed classrooms 48 $this->set('historic', true); 49 endif; 51 50 52 $order = "Ecourse.id DESC";51 $order = 'Ecourse.title DESC'; 53 52 54 $this->set('data', $this->Ecourse->find($conditions));53 $this->set('data', $this->Ecourse->find($conditions)); 55 54 } 56 55 -
trunk/app/views/ecourses/admin_listing.ctp
r724 r803 10 10 11 11 foreach ($data as $val): 12 $tmp = $html->div('butonright', $gags->sendEdit($val['Ecourse']['id'], 'ecourses')); 13 $tmp .= $html->link($val['Ecourse']['title'], '/admin/ecourses/vclassrooms/'.$val['Ecourse']['id']); 14 $tmp .= $ajax->link($html->image("static/arrow_down.png", array('alt'=>__('View details', true), 'title'=>__('View details', true))), '/admin/ecourses/details/'.$val['Ecourse']['id'], array('update' => 'qn'.$val['Ecourse']['id'], 12 $tmp = $html->div(null,$gags->sendEdit($val['Ecourse']['id'], 'ecourses'), array('style'=>'width:100px;float:right;')); 13 $tmp .= $html->div(null, $gags->confirmDel($val['Ecourse']['id'], 'ecourses'), array('style'=>'width:100px;float:right;')); 14 $tmp .= $html->link($val['Ecourse']['title'], '/admin/ecourses/vclassrooms/'.$val['Ecourse']['id'], array('style'=>'font-size:14pt;text-decoration:none;font-weight:bold;')); 15 $tmp .= $ajax->link($html->image('static/arrow_down.png', array('alt'=>__('View eCourse details', true), 'title'=>__('View eCourse details', true))), '/admin/ecourses/details/'.$val['Ecourse']['id'], array('update' => 'qn'.$val['Ecourse']['id'], 15 16 "loading" =>"Element.show('loading');", 16 17 "complete"=>"Element.hide('loading');Effect.Appear('qn".$val['Ecourse']['id']."')"), … … 18 19 false 19 20 ); 20 $tmp .= $ajax->div('qn'.$val['Ecourse']['id']).$ajax->divEnd('qn'.$val['Ecourse']['id']); 21 $tmp .= $html->div('butonright', $gags->confirmDel($val['Ecourse']['id'], 'ecourses')); 21 $tmp .= $ajax->div('qn'.$val['Ecourse']['id'], array('style'=>'margin-top:15px')).$ajax->divEnd('qn'.$val['Ecourse']['id']); 22 22 echo $html->div('grayblock', $tmp, aa('style', 'vertical-align:top;')); 23 23 endforeach; -
trunk/app/views/helps/admin_edit.ctp
r794 r803 1 1 <?php 2 //echo $javascript->link('fckeditor/fckeditor');2 echo $javascript->link('fckeditor/fckeditor'); 3 3 4 4 echo $html->addCrumb('Control Panel', '/admin/entries/start'); … … 36 36 echo $form->label('Help.help', 'Help:'); 37 37 echo $form->textarea('Help.help', array('cols'=>100, 'rows'=>25)); 38 //echo $fck->load('HelpHelp', 'Karamelo', 700, 600);38 echo $fck->load('HelpHelp', 'Karamelo'); 39 39 ?> 40 40 </td></tr>
