X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FCGI.pm;h=6c7ab78c9cb36b0aa781435d16960cc3bfe5e198;hb=23c97b258b9b60d558af333166940f11c229f71c;hp=d69aad2fc4bd47e9f3a163c931c6ca312cd419e6;hpb=536d684c3e17375d45a5d62bc5d748fec0224860;p=freeside.git diff --git a/FS/FS/CGI.pm b/FS/FS/CGI.pm index d69aad2fc..6c7ab78c9 100644 --- a/FS/FS/CGI.pm +++ b/FS/FS/CGI.pm @@ -44,8 +44,10 @@ Returns an HTML header. =cut sub header { + use Carp; + carp 'FS::CGI::header deprecated; include /elements/header.html instead'; + my($title,$menubar,$etc)=@_; #$etc is for things like onLoad= etc. - #use Carp; $etc = '' unless defined $etc; my $x = <isa('Apache') ? $cgi->uri : $cgi->url ); + $url->query(undef); my(@path)=$url->path_components; splice @path, 0-$up; $url->path_components(@path); @@ -225,6 +231,9 @@ Returns HTML tag for beginning a table. =cut sub table { + use Carp; + carp 'FS::CGI::table deprecated; include /elements/table.html instead'; + my $col = shift; if ( $col ) { qq!!; @@ -322,6 +331,10 @@ sub small_custview { $html .= '
'; + $html .= '
Balance: $'. $cust_main->balance. '
'; + + # last payment might be good here too? + $html; }