Commit 4dda599c authored by Chad Barb's avatar Chad Barb

Added thumbnail (2x as large as the one which shows up in the list) to showexp page.
Added heading to vis(shownsfile), showexp and showproj pages, to more readily identify what you're looking at.
Added links from thumbnails to vis(shownsfile) page.
Added submenu hackiness to menu.php3 to allow embedding of things into left panel below submenu.
Removed "red letter" legend and PC  summary from bottom of thumbnail view.
parent 48351539
......@@ -575,4 +575,21 @@ function SUBMENUEND() {
<?php
}
# These are here so you can wedge something else under the menu in the left column.
function SUBMENUEND_2A() {
?>
</table>
<!-- end submenu -->
<?php
}
function SUBMENUEND_2B() {
?>
</td>
<td class="stealth" valign=top align=left width='85%'>
<?php
}
?>
......@@ -48,8 +48,16 @@ if (! TBExptAccessCheck($uid, $exp_pid, $exp_eid, $TB_EXPT_READINFO)) {
USERERROR("You do not have permission to view experiment $exp_eid!", 1);
}
$expstate = TBExptState($exp_pid, $exp_eid);
echo "<font size=+2><b>".
"<a href='showproject.php3?pid=$pid'>$pid</a>/".
"$eid</b></font>\n";
echo "<br /><br />\n";
SUBPAGESTART();
SUBMENUSTART("Experiment Options");
if ($expstate) {
......@@ -114,7 +122,15 @@ if (ISADMIN($uid)) {
WRITESUBMENUBUTTON("Send a swap/terminate request",
"request_swapexp.php3?&pid=$exp_pid&eid=$exp_eid");
}
SUBMENUEND();
SUBMENUEND_2A();
echo "<br />\n";
echo "<a href='shownsfile.php3?pid=$exp_pid&eid=$exp_eid'>";
echo "<img width=258 height=258 border=1 src='top2image.php3?pid=$pid&eid=$eid&thumb=258' />\n";
echo "</a>";
SUBMENUEND_2B();
#
# Dump experiment record.
......
......@@ -259,11 +259,13 @@ if ($thumb && !$idle) {
"<table border=0 cellpadding=4 cellspacing=0>".
"<tr>".
"<td width=128 align=center>".
"<a href='shownsfile.php3?pid=$pid&eid=$eid'>".
"<img border=1 width=128 height=128 class='stealth' ".
# " src='top2image.php3?pid=$pid&eid=$eid&thumb=128' />".
# " src='thumbs/$pid.$eid.png' />".
" src='thumbs/tn$thumb_hash.png' />".
"</td>" .
"</a>".
"</td>".
"<td align=left class='paddedcell'>".
"<b>".
"<a href='showproject.php3?pid=$pid'>$pid</a>/".
......@@ -463,8 +465,6 @@ if ($thumb && !$idle) {
}
echo "</table>\n";
}
echo "<ol>
<li><font color=red>Red</font> indicates nodes other than PCs.
A $idlemark mark by the node count indicates that the
......@@ -496,7 +496,8 @@ if ($thumb && !$idle) {
</tr>\n";
echo "</table>\n";
}
} # if ($thumb && !$idle)
} # if (mysql_num_rows($experiments_result))
#
# Standard Testbed Footer
......
......@@ -63,6 +63,13 @@ if (!$isadmin) {
}
}
echo "<font size=+2><b>".
"<a href='showproject.php3?pid=$pid'>$pid</a>/".
"<a href='showexp.php3?pid=$pid&eid=$eid'>$eid</a>".
"</b></font>\n";
echo "<br />\n";
echo "<br />\n";
if ($showevents) {
echo "<b><a href='shownsfile.php3?pid=$pid&eid=$eid'>
Hide Event List</a>
......
......@@ -50,6 +50,11 @@ if (! TBProjAccessCheck($uid, $pid, $pid, $TB_PROJECT_READINFO)) {
USERERROR("You are not a member of Project $pid.", 1);
}
echo "<font size=+2><b>".
"$pid".
"</font>\n";
echo "<br /><br />\n";
#
# A list of project experiments.
#
......
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