Commit 866180c3 authored by Mac Newbold's avatar Mac Newbold

Add sort-by-reserve-time for emulab-ops expts, for Mike.

parent 67a08472
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment