Skip to content
Snippets Groups Projects
Commit 52d174df authored by Mike Hibler's avatar Mike Hibler
Browse files

For nodecontrol_list, if showtype=<DB-node-type> then show only nodes of

that type (e.g., pc3000).

Link this capability from shownodetype with a "show details" link down
where all the dots are shown.
parent 4150ff4e
No related branches found
No related tags found
No related merge requests found
...@@ -130,6 +130,11 @@ elseif (! strcmp($showtype, "wireless")) { ...@@ -130,6 +130,11 @@ elseif (! strcmp($showtype, "wireless")) {
$view = "Wireless"; $view = "Wireless";
} }
elseif (preg_match("/^[-\w]+$/", $showtype)) {
$role = "(role='testnode')";
$clause = "and (nt.type='$showtype')";
$view = "only <a href=shownodetype.php3?node_type=$showtype>$showtype</a>";
}
else { else {
$role = "(role='testnode')"; $role = "(role='testnode')";
$clause = "and (nt.class='pc')"; $clause = "and (nt.class='pc')";
......
...@@ -116,6 +116,8 @@ $query_result = ...@@ -116,6 +116,8 @@ $query_result =
if (mysql_num_rows($query_result)) { if (mysql_num_rows($query_result)) {
echo "<br> echo "<br>
<center> <center>
Nodes (<a href=nodecontrol_list.php3?showtype=$node_type>Show details</a>)
<br>
<table class=nogrid cellspacing=0 border=0 cellpadding=5>\n"; <table class=nogrid cellspacing=0 border=0 cellpadding=5>\n";
$maxcolumns = 4; $maxcolumns = 4;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment