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
afbeb129
Commit
afbeb129
authored
Dec 04, 2001
by
Leigh B. Stoller
Browse files
Give vis link only for active and swapped experiments.
parent
25d85821
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/showexp.php3
View file @
afbeb129
...
...
@@ -68,8 +68,6 @@ echo " <tr><td align=center><b>Experiment Options</b></td></tr>\n";
echo
" <tr></tr>
\n
"
;
WRITESIDEBARSUBBUTTON
(
"View NS File and Node Assignment"
,
"shownsfile.php3?pid=
$exp_pid
&eid=
$exp_eid
"
);
WRITESIDEBARSUBBUTTON
(
"Graphic Visualization of Topology"
,
"vistopology.php3?pid=
$exp_pid
&eid=
$exp_eid
"
);
WRITESIDEBARSUBBUTTON
(
"Terminate this experiment"
,
"endexp.php3?pid=
$exp_pid
&eid=
$exp_eid
"
);
...
...
@@ -79,10 +77,14 @@ if ($expstate) {
if
(
strcmp
(
$expstate
,
$TB_EXPTSTATE_SWAPPED
)
==
0
)
{
WRITESIDEBARSUBBUTTON
(
"Swap this Experiment in"
,
"swapexp.php3?inout=in&pid=
$exp_pid
&eid=
$exp_eid
"
);
WRITESIDEBARSUBBUTTON
(
"Graphic Visualization of Topology"
,
"vistopology.php3?pid=
$exp_pid
&eid=
$exp_eid
"
);
}
elseif
(
strcmp
(
$expstate
,
$TB_EXPTSTATE_ACTIVE
)
==
0
)
{
WRITESIDEBARSUBBUTTON
(
"Swap this Experiment out"
,
"swapexp.php3?inout=out&pid=
$exp_pid
&eid=
$exp_eid
"
);
WRITESIDEBARSUBBUTTON
(
"Graphic Visualization of Topology"
,
"vistopology.php3?pid=
$exp_pid
&eid=
$exp_eid
"
);
}
}
...
...
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