Ignore:
Timestamp:
01/29/09 13:35:57 (3 years ago)
Author:
CrawfordCurrie
Message:

Item455: port to foswiki Item5974: correct CSS for search results table Item5938: load CSS for ACTIONSEARCH Item5606: Item5915: respect global settings for time format

Location:
trunk/ActionTrackerPlugin/lib/Foswiki
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/ActionTrackerPlugin/lib/Foswiki/Plugins/ActionTrackerPlugin/Format.pm

    r1340 r2226  
    11# 
    22# Copyright (C) Motorola 2002 - All rights reserved 
     3# Copyright (C) 2004-2009 Crawford Currie http://c-dot.co.uk 
    34# 
    45# TWiki extension that adds tags for action tracking 
     
    1516# http://www.gnu.org/copyleft/gpl.html 
    1617# 
    17 use strict; 
    18 use integer; 
    19  
    20 require TWiki::Func; 
    21  
    2218# Object that represents a header and fields format 
    2319# This is where all formatting should be done; there should 
     
    3329#    methods. The function must return a tuple of ( text, colour ). 
    3430#    The colour may be undefined. 
    35 package TWiki::Plugins::ActionTrackerPlugin::Format; 
     31package Foswiki::Plugins::ActionTrackerPlugin::Format; 
     32 
     33use strict; 
     34use integer; 
     35 
     36require Foswiki::Func; 
    3637 
    3738# PUBLIC Constructor 
     
    271272    my $a = {}; 
    272273    $a->{class} = $class if $class; 
    273     my $text = CGI::start_table( {class => 'twikiFormTable' }, $a ); 
     274    my $text = CGI::start_table( {class => 'atpSearch' }, $a ); 
    274275    my $i; 
    275276 
     
    445446        if ( $type->{type} eq 'date') { 
    446447            # make sure JSCalendar is there 
    447             eval 'use TWiki::Contrib::JSCalendarContrib'; 
     448            eval 'use Foswiki::Contrib::JSCalendarContrib'; 
    448449            unless ( $@ ) { 
    449450                @extras = ( id => "date_$attrname" ); 
     
    453454                      -onclick => 
    454455                          "return showCalendar('date_$attrname','%e %B %Y')", 
    455                       -src=> TWiki::Func::getPubUrlPath() . '/' . 
    456                         TWiki::Func::getTwikiWebname() . 
     456                      -src=> Foswiki::Func::getPubUrlPath() . '/' . 
     457                        $Foswiki::cfg{SystemWebName} . 
    457458                            '/JSCalendarContrib/img.gif', 
    458459                      -alt => 'Calendar', 
Note: See TracChangeset for help on using the changeset viewer.