Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
8cea1eb9
Commit
8cea1eb9
authored
Sep 01, 2005
by
Leigh B. Stoller
Browse files
As per Jay's request, add a "similar topics" list below the KB entry;
basically, other titles from the same section.
parent
5c1efebb
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/kb-show.php3
View file @
8cea1eb9
...
...
@@ -74,9 +74,33 @@ echo "<font size=+1>" . $row['title'] . "</font>\n";
echo
"<br><br>
\n
"
;
echo
$row
[
'body'
];
echo
"<br><br>
<br><br>
\n
"
;
echo
"<br><br>
\n
"
;
echo
"<font size=-2>Posted by "
.
$row
[
'creator_uid'
]
.
" on "
.
$row
[
'date_created'
]
.
"</font><br><br>
\n
"
;
$row
[
'date_created'
]
.
"</font><br>
\n
"
;
#
# Get other similar topics and list the titles.
#
$query_result
=
DBQueryFatal
(
"select * from knowledge_base_entries "
.
"where section='"
.
$row
[
'section'
]
.
"'"
);
if
(
mysql_num_rows
(
$query_result
))
{
echo
"<hr>"
;
echo
"<b>Other similar topics</b>:<br>
\n
"
;
echo
"<blockquote>
\n
"
;
echo
"<ul>
\n
"
;
while
(
$row
=
mysql_fetch_array
(
$query_result
))
{
$title
=
$row
[
'title'
];
$idx
=
$row
[
'idx'
];
echo
"<li>"
;
echo
"<a href=kb-show.php3?idx=
$idx
>
$title
</a>
\n
"
;
}
echo
"</ul>
\n
"
;
echo
"</blockquote>
\n
"
;
}
if
(
$isadmin
)
{
echo
"</blockquote>
\n
"
;
...
...
Write
Preview
Supports
Markdown
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