th { text-align: right; vertical-align: baseline; white-space: nowrap; }
td { text-align: left; vertical-align: baseline; padding-bottom: 5px; }
"
- body_attributes = "onload=\"setContentTypeDisabledState();\""
+ onload="setContentTypeDisabledState();"
%]
<form name="entryform" method="post" action="attachment.cgi" enctype="multipart/form-data">
[% DEFAULT
h1 = title
h2 = ""
+ bgcolor = "#FFFFFF"
+ onload = ""
%]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
</head>
-[%# Migration note: contents of the old Param 'bodyhtml' go in the body tag %]
+[%# Migration note: contents of the old Param 'bodyhtml' go in the body tag,
+ # but set the bgcolor and onload attributes in the DEFAULT directive above.
+ #%]
- <body [% "bgcolor=\"#FFFFFF\"" UNLESS body_attributes.search('(?:^|\s)bgcolor=') %] [%+ body_attributes %]>
+ <body bgcolor="[% bgcolor %]" onload="[% onload %]">
[%# Migration note: the following file corresponds to the old Param
# 'bannerhtml'
[% PROCESS global/header.html.tmpl
title = "Search for bugs"
- body_attributes = "onload=\"selectProduct(document.forms['queryform']);\""
+ onload = "selectProduct(document.forms['queryform']);"
%]
[% button_name = "Search" %]