Skip to content
GitLab
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
a260ee4e
Commit
a260ee4e
authored
Mar 28, 2007
by
Russ Fish
Browse files
Show xref_tag in a couple more places.
parent
86f8ccee
Changes
2
Hide whitespace changes
Inline
Side-by-side
www/kb-browse.php3
View file @
a260ee4e
...
...
@@ -65,6 +65,7 @@ while ($row = mysql_fetch_array($search_result)) {
$section
=
$row
[
'section'
];
$title
=
$row
[
'title'
];
$idx
=
$row
[
'idx'
];
$xref_tag
=
$row
[
'xref_tag'
];
if
(
$lastsection
!=
$section
)
{
if
(
$lastsection
!=
""
)
{
...
...
@@ -76,7 +77,12 @@ while ($row = mysql_fetch_array($search_result)) {
echo
"<ul>
\n
"
;
}
echo
"<li>"
;
echo
"<a href=#${idx}>
$title
</a>
\n
"
;
if
(
isset
(
$xref_tag
)
&&
$xref_tag
!=
""
)
{
echo
"<a href=#${xref_tag}>
$title
</a>
\n
"
;
}
else
{
echo
"<a href=#${idx}>
$title
</a>
\n
"
;
}
}
mysql_data_seek
(
$search_result
,
0
);
...
...
@@ -105,9 +111,12 @@ while ($row = mysql_fetch_array($search_result)) {
echo
"<li>"
;
if
(
isset
(
$xref_tag
)
&&
$xref_tag
!=
""
)
{
echo
"<a NAME='
$xref_tag
'></a>"
;
echo
"<a href=kb-show.php3?xref_tag=
$xref_tag
>
$title
</a>
\n
"
;
}
else
{
echo
"<a NAME='
$idx
'></a>"
;
echo
"<a href=kb-show.php3?idx=
$idx
>
$title
</a>
\n
"
;
}
echo
"<a NAME='
$idx
'></a>"
;
echo
"<a href=kb-show.php3?idx=
$idx
>
$title
</a>
\n
"
;
echo
"<blockquote>
\n
"
;
echo
$body
;
...
...
www/kb-faq.php3
View file @
a260ee4e
...
...
@@ -48,8 +48,11 @@ while ($row = mysql_fetch_array($search_result)) {
echo
"<li>"
;
if
(
isset
(
$xref_tag
)
&&
$xref_tag
!=
""
)
{
echo
"<a NAME='
$xref_tag
'></a>"
;
echo
"<a href=kb-show.php3?xref_tag=
$xref_tag
>
$title
</a>
\n
"
;
}
else
{
echo
"<a href=kb-show.php3?idx=
$idx
>
$title
</a>
\n
"
;
}
echo
"<a href=kb-show.php3?idx=
$idx
>
$title
</a>
\n
"
;
}
echo
"</ul>
\n
"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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