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
866180c3
Commit
866180c3
authored
Apr 14, 2003
by
Mac Newbold
Browse files
Add sort-by-reserve-time for emulab-ops expts, for Mike.
parent
67a08472
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/showstuff.php3
View file @
866180c3
...
...
@@ -715,8 +715,10 @@ function SHOWNODES($pid, $eid) {
"Node Name</a>"
;
$vnamefield
=
"vname"
;
if
(
!
strcmp
(
$pid
,
$TBOPSPID
))
{
$nodename
=
"Reserve Time"
;
$nodename
=
"<a href=
\"
$SCRIPT_NAME
?pid=
$pid
&eid=
$eid
&altnodesort=2
\"
>"
.
"Reserve Time</a>"
;
$vnamefield
=
"rsrvtime"
;
if
(
!
isset
(
$altnodesort
))
{
$altnodesort
=
2
;
}
}
if
(
mysql_num_rows
(
$reserved_result
))
{
...
...
@@ -742,6 +744,8 @@ function SHOWNODES($pid, $eid) {
$sort
=
"type,priority"
;
if
(
$altnodesort
==
1
)
{
$sort
=
"vname"
;
}
elseif
(
$altnodesort
==
2
)
{
$sort
=
"rsrvtime"
;
}
# Can add other alt sorts here too
...
...
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