Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
91f9bc0f
Commit
91f9bc0f
authored
Jan 23, 2000
by
terry%mozilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch by Klaas Freitag <freitag@suse.de>, with modifications by me --
don't generate HTML tables with more than 50 lines, as browsers generally can't cope with huge tables.
parent
3bf8bf09
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
+21
-2
describekeywords.cgi
describekeywords.cgi
+10
-1
editkeywords.cgi
editkeywords.cgi
+11
-1
No files found.
describekeywords.cgi
View file @
91f9bc0f
...
...
@@ -31,7 +31,7 @@ print "Content-type: text/html\n\n";
PutHeader
(
"Bugzilla keyword description"
);
print
qq{
my
$tableheader
=
qq{
<TABLE BORDER=1 CELLPADDING=4 CELLSPACING=0>
<TR BGCOLOR="#6666FF">
<TH ALIGN="left">Name</TH>
...
...
@@ -40,6 +40,10 @@ print qq{
</TR>
}
;
print
$tableheader
;
my
$line_count
=
0
;
my
$max_table_size
=
50
;
SendSQL
(
"SELECT keyworddefs.name, keyworddefs.description,
COUNT(keywords.bug_id), keywords.bug_id
FROM keyworddefs LEFT JOIN keywords ON keyworddefs.id=keywords.keywordid
...
...
@@ -59,6 +63,11 @@ while (MoreSQLData()) {
}
else
{
$bugs
=
"none"
;
}
if
(
$line_count
==
$max_table_size
)
{
print
"</table>\n$tableheader"
;
$line_count
=
0
;
}
$line_count
++
;
print
qq{
<TR>
<TH>$name</TH>
...
...
editkeywords.cgi
View file @
91f9bc0f
...
...
@@ -125,7 +125,7 @@ my $action = trim($::FORM{action} || '');
if
(
$action
eq
""
)
{
PutHeader
(
"Select keyword"
);
print
qq{
my
$tableheader
=
qq{
<TABLE BORDER=1 CELLPADDING=4 CELLSPACING=0>
<TR BGCOLOR="#6666FF">
<TH ALIGN="left">Edit keyword ...</TH>
...
...
@@ -134,6 +134,10 @@ if ($action eq "") {
<TH ALIGN="left">Action</TH>
</TR>
}
;
print
$tableheader
;
my
$line_count
=
0
;
my
$max_table_size
=
50
;
SendSQL
(
"SELECT keyworddefs.id, keyworddefs.name, keyworddefs.description,
COUNT(keywords.bug_id), keywords.bug_id
FROM keyworddefs LEFT JOIN keywords ON keyworddefs.id = keywords.keywordid
...
...
@@ -151,6 +155,12 @@ if ($action eq "") {
# what it had responded.
$bugs
=
'none'
;
}
if
(
$line_count
==
$max_table_size
)
{
print
"</table>\n$tableheader"
;
$line_count
=
0
;
}
$line_count
++
;
print
qq{
<TR>
<TH VALIGN="top"><A HREF="editkeywords.cgi?action=edit&id=$id">$name</TH>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment