Commit b04c214b authored by Chad Barb's avatar Chad Barb

Better headers on shownode page,

also added "Project" prefix to header on showproject and
"Experiment" prefix to header on showexp.
parent 80b4beec
......@@ -52,7 +52,7 @@ if (! TBExptAccessCheck($uid, $exp_pid, $exp_eid, $TB_EXPT_READINFO)) {
$expstate = TBExptState($exp_pid, $exp_eid);
echo "<font size=+2><b>".
echo "<font size=+2>Experiment <b>".
"<a href='showproject.php3?pid=$pid'>$pid</a>/".
"$eid</b></font>\n";
echo "<br /><br />\n";
......
......@@ -44,6 +44,38 @@ if (! $isadmin) {
}
}
echo "<font size=+2>".
"Node <b>$node_id</b>";
$query_result = DBQueryFatal("select r.vname,r.pid,r.eid from nodes as n ".
"left join reserved as r on n.node_id=r.node_id ".
"where n.node_id='$node_id'");
if (mysql_num_rows($query_result) != 0) {
$row = mysql_fetch_array($query_result);
$vname = $row[vname];
$pid = $row[pid];
$eid = $row[eid];
if ($vname != "") {
# echo " (<b>".
# "<a href='showproject.php3?pid=$pid'>$pid</a>/".
# "<a href='showexp.php3?pid=$pid&eid=$eid'>$eid</a>/".
# "$vname</b>)";
echo " (<b>".
"$vname.".
"<a href='showexp.php3?pid=$pid&eid=$eid'>$eid</a>.".
"<a href='showproject.php3?pid=$pid'>$pid</a>.".
"$OURDOMAIN".
"</b>)";
}
}
echo "</font><br /><br />\n";
SUBPAGESTART();
SUBMENUSTART("Node Options");
......
......@@ -50,8 +50,8 @@ if (! TBProjAccessCheck($uid, $pid, $pid, $TB_PROJECT_READINFO)) {
USERERROR("You are not a member of Project $pid.", 1);
}
echo "<font size=+2><b>".
"$pid".
echo "<font size=+2>".
"Project <b>$pid</b>".
"</font>\n";
echo "<br /><br />\n";
......
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