$$. # $exp_eid = strstr($exp_pideid, "$$"); $exp_eid = substr($exp_eid, 2); $exp_pid = substr($exp_pideid, 0, strpos($exp_pideid, "$$", 0)); # # Check to make sure thats this is a valid PID/EID tuple. # $query_result = mysql_db_query($TBDBNAME, "SELECT * FROM experiments WHERE ". "eid=\"$exp_eid\" and pid=\"$exp_pid\""); if (mysql_num_rows($query_result) == 0) { USERERROR("The experiment $exp_eid is not a valid experiment ". "in project $exp_pid.", 1); } $exprow = mysql_fetch_array($query_result); # # Verify that this uid is a member of the project for the experiment # being displayed. # if (!$isadmin) { $query_result = mysql_db_query($TBDBNAME, "SELECT pid FROM proj_memb WHERE uid=\"$uid\" and pid=\"$exp_pid\""); if (mysql_num_rows($query_result) == 0) { USERERROR("You are not a member of Project $exp_pid for ". "Experiment: $exp_eid.", 1); } } ?>

Experiment Information

\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; ?>
Name: $exp_eid
Long Name: $exp_name
Project: $exp_pid
Experiment Head: $exp_head
Created: $exp_created
Starts: $exp_start
Ends: $exp_end
Expires: $exp_expires
Reserved Nodes \n"; # # I'm so proud! # $query_result = mysql_db_query($TBDBNAME, "SELECT nodes.* ". "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]; $def_boot_image_id = $row[def_boot_image_id]; $def_boot_path = $row[def_boot_path]; $def_boot_cmd_line = $row[def_boot_cmd_line]; $next_boot_path = $row[next_boot_path]; $next_boot_cmd_line = $row[next_boot_cmd_line]; if (!$def_boot_cmd_line) $def_boot_cmd_line = "NULL"; if (!$def_boot_path) $def_boot_path = "NULL"; if (!$next_boot_path) $next_boot_path = "NULL"; if (!$next_boot_cmd_line) $next_boot_cmd_line = "NULL"; echo "\n"; } echo "
Change Node ID Type Default
Image
Default
Path
Default
Cmdline
\"o\" $node_id $type $def_boot_image_id $def_boot_path $def_boot_cmd_line
\n"; } # # Lets dump the project information too. # echo "

Project Information

\n"; SHOWPROJECT($exp_pid, $uid); # # Standard Testbed Footer # PAGEFOOTER(); ?>