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
0d8dc235
Commit
0d8dc235
authored
Sep 19, 2003
by
Robert Ricci
Browse files
Add another section of the table to show aux_types, if any
parent
78710371
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/showstuff.php3
View file @
0d8dc235
...
...
@@ -1852,7 +1852,36 @@ function SHOWNODE($node_id) {
SHOWWIDEAREANODE
(
$node_id
,
1
);
}
}
#
# Show any auxtypes the node has
#
$query_result
=
DBQueryFatal
(
"select type, count from node_auxtypes "
.
"where node_id='
$node_id
'"
);
if
(
mysql_num_rows
(
$query_result
)
!=
0
)
{
echo
"<tr>
<td align=center colspan=2>
Auxiliary Types
</td>
</tr>
\n
"
;
echo
"<tr><th>Type</th><th>Count</th>
\n
"
;
while
(
$row
=
mysql_fetch_array
(
$query_result
))
{
$type
=
$row
[
type
];
$count
=
$row
[
count
];
echo
"<tr>
<td>
$type
</td>
<td class=left>
$count
</td>
</td>
\n
"
;
}
}
echo
"</table>
\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