Changeset 665

Show
Ignore:
Timestamp:
07/22/08 12:58:53 (3 months ago)
Author:
aarkerio
Message:

Update general

Location:
trunk/app
Files:
1 added
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/config/sql/postgresql/entries.sql

    r436 r665  
    44title varchar(50) NOT NULL, 
    55body text NOT NULL, 
    6 subject_id int REFERENCES subjects (id) ON DELETE CASCADE, 
     6subject_id int REFERENCES subjects(id) NOT NULL, 
    77created timestamp(0) with time zone DEFAULT now() NOT NULL, 
    88status int NOT NULL DEFAULT 0, 
  • trunk/app/config/sql/postgresql/news.sql

    r653 r665  
    66  created timestamp(0) with time zone DEFAULT now() NOT NULL, 
    77  reference varchar(350), 
    8   theme_id int NOT NULL REFERENCES themes(id) ON DELETE CASCADE, 
     8  theme_id int NOT NULL REFERENCES themes(id), 
    99  status smallint NOT NULL,   -- 0 = draft, 1 = published 
    1010  user_id int NOT NULL REFERENCES users(id) ON DELETE CASCADE, 
     
    1414 
    1515INSERT 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>',  
    1717'http://www.chipotle-software.com/', 
    18183, 1, 1); 
  • trunk/app/controllers/news_controller.php

    r654 r665  
    3232   $this->layout = 'portal'; 
    3333         
    34    $this->pageTitle = 'News'; 
     34   $this->pageTitle = __('News', true); 
    3535     
    3636   $data = $this->paginate('News', array('News.status = 1')); 
     
    4949  $this->layout = 'portal'; 
    5050 
    51   $this->pageTitle = '::'.__('News', true); 
     51  $this->pageTitle = __('News', true); 
    5252 
    5353  $this->News->User->unbindAll(); 
  • trunk/app/views/vclassrooms/admin_members.ctp

    r561 r665  
    1515$r="javascript:window.open('/admin/vclassrooms/forum/".$data['Vclassroom']['id']."', 'blank', 'toolbar=no, scrollbars=yes,width=700,height=400')";  
    1616 
    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") 
    1919         ), '#', array("onclick"=>$t), null, null, false); 
    2020 
    2121 echo $html->link( 
    22          $html->image('static/icon_webquest.jpg', array("alt"=>"Add webquest", "title"=>"Add webquest", "style"=>"margin-right:12px") 
     22         $html->image('static/icon_webquest.jpg', array("alt"=>"Link webquest", "title"=>"Link webquest", "style"=>"margin-right:12px") 
    2323     ), '#', array("onclick"=>$w), null, null, false); 
    2424 
    2525 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") 
    2727        ), '#', array("onclick"=>$r), null, null, false); 
    28  
    2928 
    3029 echo $html->link( 
    3130        $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);  
    3332 
    3433 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') 
    3639        ), '/admin/vclassrooms/export/'.$data['Vclassroom']['id'], null, null, false); 
    3740