]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Added parameters to specify the HTML that goes at the top of every
authorterry%netscape.com <>
Tue, 1 Sep 1998 11:33:37 +0000 (11:33 +0000)
committerterry%netscape.com <>
Tue, 1 Sep 1998 11:33:37 +0000 (11:33 +0000)
page.  The banner.html and blurb.html files are now obsolete!

CGI.tcl
defparams.tcl

diff --git a/CGI.tcl b/CGI.tcl
index c368ed8a4e763d195c08696cd3148005cd845afb..8adecab368d78123827ac76f3a1a0f60fb6ca674 100755 (executable)
--- a/CGI.tcl
+++ b/CGI.tcl
@@ -289,22 +289,12 @@ name=PleaseMailAPassword>
 }
 
 
-proc CopyOut {filename} {
-    if {[file exists $filename]} {
-        set fid [open $filename "r"]
-        while {[gets $fid line] > 0} {
-            puts $line
-        }
-        close $fid
-    }
-}
-
 proc PutHeader {title h1 {h2 ""}} {
     puts "<HTML><HEAD><TITLE>$title</TITLE></HEAD>";
     puts "<BODY   BGCOLOR=\"#FFFFFF\" TEXT=\"#000000\"";
     puts "LINK=\"#0000EE\" VLINK=\"#551A8B\" ALINK=\"#FF0000\">";
 
-    CopyOut "banner.html"
+    puts [Param bannerhtml]
 
     puts "<TABLE BORDER=0 CELLPADDING=12 CELLSPACING=0 WIDTH=\"100%\">";
     puts " <TR>\n";
@@ -319,7 +309,7 @@ proc PutHeader {title h1 {h2 ""}} {
     puts "  </TD>\n";
     puts "  <TD>\n";
 
-    CopyOut "blurb.html"
+    puts [Param blurbhtml]
 
     puts "</TD></TR></TABLE>\n";
 
index 07046bc82a5c9fa7c22875287a49a7bee6839420..a008dc07fec8fe57391a004a43a71778a5854b7e 100644 (file)
@@ -90,6 +90,17 @@ proc check_urlbase {url} {
     return ""
 }
 
+DefParam bannerhtml {The html that gets emitted at the head of every Bugzilla page.} l {<TABLE BGCOLOR="#000000" WIDTH="100%" BORDER=0 CELLPADDING=0 CELLSPACING=0>
+<TR><TD><A HREF="http://www.mozilla.org/"><IMG
+ SRC="http://www.mozilla.org/images/mozilla-banner.gif" ALT=""
+ BORDER=0 WIDTH=600 HEIGHT=58></A></TD></TR></TABLE>}
+
+DefParam blurbhtml {A blurb that appears as part of the header of every Bugzilla page.  This is a place to put brief warnings, pointers to one or two related pages, etc.} l {   This is <B>Bugzilla</B>: the Mozilla bug system.  For more 
+   information about what Bugzilla is and what it can do, see 
+   <A HREF="http://www.mozilla.org/">mozilla.org</A>'s
+   <A HREF="http://www.mozilla.org/bugs/"><B>bug pages</B></A>.
+}
+
 
 DefParam whinedays {The number of days that we'll let a bug sit untouched in a NEW state before our cronjob will whine at the owner.} t 7 check_numeric