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
33984137
Commit
33984137
authored
Nov 03, 2000
by
Leigh B. Stoller
Browse files
Add more info to display.
parent
3d23a097
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/showexp.php3
View file @
33984137
...
...
@@ -92,7 +92,7 @@ echo "<tr>
</tr>
\n
"
;
echo
"<tr>
<td>
Projec
t Head: </td>
<td>
Experimen
t Head: </td>
<td class=
\"
left
\"
>
$exp_head
</td>
</tr>
\n
"
;
...
...
@@ -133,27 +133,87 @@ if (mysql_num_rows($reserved_result)) {
<tr>
<td>Node ID</td>
<td>Node Type</td>
<td>Default Image</td>
</tr>
\n
"
;
#
# I'm so proud!
#
$query_result
=
mysql_db_query
(
$TBDBNAME
,
"SELECT nodes.node_id, nodes.type FROM nodes LEFT JOIN reserved "
.
"SELECT nodes.node_id, nodes.type, nodes.def_boot_image_id "
.
"FROM nodes LEFT JOIN reserved "
.
"ON nodes.node_id=reserved.node_id "
.
"WHERE reserved.eid=
\"
$exp_eid
\"
and reserved.pid=
\"
$exp_pid
\"
"
);
while
(
$row
=
mysql_fetch_array
(
$query_result
))
{
$node_id
=
$row
[
node_id
];
$type
=
$row
[
type
];
$defid
=
$row
[
def_boot_image_id
];
echo
"<tr>
<td>
$node_id
</td>
<td>
$type
</td>
<td>
$defid
</td>
</tr>
\n
"
;
}
echo
"</table>
\n
"
;
}
#
# Lets dump the project information too.
#
$query_result
=
mysql_db_query
(
$TBDBNAME
,
"SELECT * FROM groups WHERE gid=
\"
$exp_pid
\"
"
);
if
(
!
$query_result
)
{
$err
=
mysql_error
();
TBERROR
(
"Database Error getting info for project
$exp_pid
:
$err
\n
"
,
1
);
}
$row
=
mysql_fetch_array
(
$query_result
);
echo
"<center>
<h3>Project Information</h3>
</center>
<table align=center border=1>
\n
"
;
$gid
=
$row
[
gid
];
$grp_created
=
$row
[
grp_created
];
$grp_expires
=
$row
[
grp_expires
];
$grp_name
=
$row
[
grp_name
];
$grp_URL
=
$row
[
grp_URL
];
$grp_affil
=
$row
[
grp_affil
];
$grp_addr
=
$row
[
grp_addr
];
$grp_head_uid
=
$row
[
grp_head_uid
];
$cntrl_node
=
$row
[
cntrl_node
];
#
# Generate the table.
#
echo
"<tr>
<td>Name: </td>
<td class=
\"
left
\"
>
$gid
</td>
</tr>
\n
"
;
echo
"<tr>
<td>Long Name: </td>
<td class=
\"
left
\"
>
$grp_name
</td>
</tr>
\n
"
;
echo
"<tr>
<td>Project Head: </td>
<td class=
\"
left
\"
>
$grp_head_uid
</td>
</tr>
\n
"
;
echo
"<tr>
<td>Created: </td>
<td class=
\"
left
\"
>
$grp_created
</td>
</tr>
\n
"
;
echo
"<tr>
<td>Expires: </td>
<td class=
\"
left
\"
>
$grp_expires
</td>
</tr>
\n
"
;
echo
"</table>
\n
"
;
?>
</center>
</body>
...
...
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