summaryrefslogtreecommitdiff
path: root/FS/FS/UI/Web
diff options
context:
space:
mode:
authorivan <ivan>2008-06-02 18:31:07 +0000
committerivan <ivan>2008-06-02 18:31:07 +0000
commitaf689cba3b153e212c3c67f518309a03b06186a9 (patch)
tree1c7bbcd2fa09510cb1639c9f54dd8130a1fa76ed /FS/FS/UI/Web
parentf00a18b9f7d4d7a4cd2e352555640d8d8422d3c1 (diff)
fix ntable calls
Diffstat (limited to 'FS/FS/UI/Web')
-rw-r--r--FS/FS/UI/Web/small_custview.pm13
1 files changed, 13 insertions, 0 deletions
diff --git a/FS/FS/UI/Web/small_custview.pm b/FS/FS/UI/Web/small_custview.pm
index 4c705c1..079ae93 100644
--- a/FS/FS/UI/Web/small_custview.pm
+++ b/FS/FS/UI/Web/small_custview.pm
@@ -112,5 +112,18 @@ sub small_custview {
$html;
}
+#bah. don't want to pull in all of FS::CGI, that's the whole problem in the
+#first place
+sub ntable {
+ my $col = shift;
+ my $cellspacing = shift || 0;
+ if ( $col ) {
+ qq!<TABLE BGCOLOR="$col" BORDER=0 CELLSPACING=$cellspacing>!;
+ } else {
+ '<TABLE BORDER CELLSPACING=0 CELLPADDING=2 BORDERCOLOR="#999999">';
+ }
+
+}
+
1;