Changeset 665
- Timestamp:
- 07/22/08 12:58:53 (3 months ago)
- Location:
- trunk/app
- Files:
-
- 1 added
- 4 modified
-
config/sql/postgresql/entries.sql (modified) (1 diff)
-
config/sql/postgresql/news.sql (modified) (2 diffs)
-
controllers/news_controller.php (modified) (2 diffs)
-
views/vclassrooms/admin_members.ctp (modified) (1 diff)
-
webroot/img/static/feedback_icon.png (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/config/sql/postgresql/entries.sql
r436 r665 4 4 title varchar(50) NOT NULL, 5 5 body text NOT NULL, 6 subject_id int REFERENCES subjects (id) ON DELETE CASCADE,6 subject_id int REFERENCES subjects(id) NOT NULL, 7 7 created timestamp(0) with time zone DEFAULT now() NOT NULL, 8 8 status int NOT NULL DEFAULT 0, -
trunk/app/config/sql/postgresql/news.sql
r653 r665 6 6 created timestamp(0) with time zone DEFAULT now() NOT NULL, 7 7 reference varchar(350), 8 theme_id int NOT NULL REFERENCES themes(id) ON DELETE CASCADE,8 theme_id int NOT NULL REFERENCES themes(id), 9 9 status smallint NOT NULL, -- 0 = draft, 1 = published 10 10 user_id int NOT NULL REFERENCES users(id) ON DELETE CASCADE, … … 14 14 15 15 INSERT INTO news ("title", "body", "reference", "theme_id", "status", "user_id") VALUES ('Welcome to Karamelo!', 16 '<p> The Maya site may have bee.</p><p>The city was first mentioned by Juan DiezThe site is of moderate size, with construction of modest sized buildings.</p>',16 '<p>Karamelo is a cool eLearning platform.</p><p>Please follow the <a href="http://www.chipotle-software.com/">Admin</a> manual to publish news and events.</p>', 17 17 'http://www.chipotle-software.com/', 18 18 3, 1, 1); -
trunk/app/controllers/news_controller.php
r654 r665 32 32 $this->layout = 'portal'; 33 33 34 $this->pageTitle = 'News';34 $this->pageTitle = __('News', true); 35 35 36 36 $data = $this->paginate('News', array('News.status = 1')); … … 49 49 $this->layout = 'portal'; 50 50 51 $this->pageTitle = '::'.__('News', true);51 $this->pageTitle = __('News', true); 52 52 53 53 $this->News->User->unbindAll(); -
trunk/app/views/vclassrooms/admin_members.ctp
r561 r665 15 15 $r="javascript:window.open('/admin/vclassrooms/forum/".$data['Vclassroom']['id']."', 'blank', 'toolbar=no, scrollbars=yes,width=700,height=400')"; 16 16 17 echo $html->link(18 $html->image('static/icon_test.jpg', array( "alt"=>"Add test", "title"=>"Add test", "style"=>"margin-right:12px")17 /* echo $html->link( 18 $html->image('static/icon_test.jpg', array('alt'=>'Link test', 'title'=>'Link test', "style"=>"margin-right:12px") 19 19 ), '#', array("onclick"=>$t), null, null, false); 20 20 21 21 echo $html->link( 22 $html->image('static/icon_webquest.jpg', array("alt"=>" Add webquest", "title"=>"Addwebquest", "style"=>"margin-right:12px")22 $html->image('static/icon_webquest.jpg', array("alt"=>"Link webquest", "title"=>"Link webquest", "style"=>"margin-right:12px") 23 23 ), '#', array("onclick"=>$w), null, null, false); 24 24 25 25 echo $html->link( 26 $html->image('static/icon_treasure.jpg', array("alt"=>" Add treasure", "title"=>"Add hunt", "style"=>"margin-right:12px")26 $html->image('static/icon_treasure.jpg', array("alt"=>"Link Treasure", "title"=>"Link Treasure", "style"=>"margin-right:12px") 27 27 ), '#', array("onclick"=>$r), null, null, false); 28 29 28 30 29 echo $html->link( 31 30 $html->image('admin/forums_icon.png', array("alt"=>"Add forum", "title"=>"Add forum", "style"=>"margin-right:12px") 32 ), '#', array("onclick"=>$r), null, null, false); 31 ), '#', array("onclick"=>$r), null, null, false); 33 32 34 33 echo $html->link( 35 $html->image('static/gnome-pdf.gif', array("alt"=>"Export report", "title"=>"Export report", "style"=>"margin-right:12px") 34 $html->image('static/feedback_icon.png', array('alt'=>__('Ask for feedback', true), 'title'=>__('Ask for feedback', true), "style"=>"margin-right:12px") 35 ), '/admin/vclassrooms/export/'.$data['Vclassroom']['id'], null, null, false); */ 36 37 echo $html->link( 38 $html->image('static/gnome-pdf.gif', array('alt'=>'Export report', 'title'=>'Export report', 'style'=>'margin-right:12px') 36 39 ), '/admin/vclassrooms/export/'.$data['Vclassroom']['id'], null, null, false); 37 40
